/* ── Kargano — shared stylesheet for inner pages ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #FFFFFF;
  --gray:         #F7F7F7;
  --ink:          #161516;
  --muted:        #838185;
  --accent:       #FF8F51;
  --accent-hover: #F57A36;
  --accent-press: #E06830;
  --max-w:        1200px;
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --line:         #E8E7E4;
}

@view-transition { navigation: auto; }

html { scroll-behavior: smooth; background: #EFEEEC; }
body { font-family: var(--font-body); color: var(--ink); background: #EFEEEC; -webkit-font-smoothing: antialiased; }

/* ── Page frame ── */
.page-frame {
  background: #fff;
  border-radius: 20px;
  margin: 12px;
  box-shadow: 0 8px 40px rgba(22,21,22,.08);
  overflow: clip;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── Header ── */
header {
  position: sticky; top: 12px; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22,21,22,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

/* ── Wordmark ── */
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem;
  letter-spacing: .06em; color: var(--ink); background: none; border: none;
  padding: 0; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: flex-end; gap: 7px; text-decoration: none; flex-shrink: 0;
}
.wordmark-logo { height: 20px; width: auto; flex-shrink: 0; display: block; margin-bottom: 1px; }

/* ── Desktop nav ── */
.nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500; color: var(--ink);
  background: none; border: none; padding: 8px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 5px; border-radius: 4px;
  transition: color .15s; text-decoration: none; line-height: 1; white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-chevron { width: 10px; height: 10px; flex-shrink: 0; transition: transform .2s; pointer-events: none; }
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid rgba(22,21,22,.1);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(22,21,22,.12);
  min-width: 210px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  z-index: 200; list-style: none;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .15s, transform .15s;
}
.nav-dropdown li a {
  display: block; font-family: var(--font-body); font-size: .875rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 6px;
  transition: background .12s, color .12s; white-space: nowrap;
}
.nav-dropdown li a:hover { background: var(--gray); color: var(--accent); }

/* ── Mobile toggle + menu ── */
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink); border-radius: 4px; flex-shrink: 0;
}
body.nav-open { overflow: hidden; }
.nav-mobile {
  position: fixed; top: 80px; left: 0; right: 0;
  max-height: calc(100dvh - 80px);
  background: #fff; z-index: 10000; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none; flex-direction: column;
  border-top: 1px solid rgba(22,21,22,.08);
  box-shadow: 0 8px 32px rgba(22,21,22,.10);
}

/* ── Mobile accordion ── */
.nav-acc { border-top: 1px solid rgba(22,21,22,.07); width: 100%; padding: 0 24px; }
.nav-acc-item { border-bottom: 1px solid rgba(22,21,22,.07); }
.nav-acc-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 0; background: none; border: none;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--ink); cursor: pointer; text-align: left; min-height: 52px;
}
.nav-acc-toggle .nav-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-acc-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-acc-links { list-style: none; padding-bottom: 8px; }
.nav-acc-links a {
  display: flex; align-items: center; padding: 13px 16px; min-height: 44px;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(22,21,22,.05); transition: color .15s;
}
.nav-acc-links li:last-child a { border-bottom: none; }
.nav-acc-links a:hover, .nav-acc-links a:active { color: var(--accent); }

/* ── Buttons ── */
.btn {
  font-family: var(--font-body); font-weight: 500; font-size: .9375rem;
  background: var(--accent); color: var(--white); border: none; border-radius: 4px;
  padding: 12px 24px; cursor: pointer; text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; line-height: 1;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,143,81,.28); }
.btn:active { background: var(--accent-press); transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; min-height: 56px; }

/* ── Sections ── */
section { padding: 104px 0; background: var(--white); }
section.bg-gray { background: #FAFAF9; }
section + section { border-top: 1px solid #E8E7E4; }

/* ── Typography ── */
h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -.03em; color: var(--ink); margin-bottom: 24px;
}
h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin-bottom: 20px;
}
h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }

.eyebrow {
  display: block; font-family: var(--font-body); font-size: .6875rem;
  font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.lead { font-size: 1.125rem; line-height: 1.72; color: var(--muted); max-width: 640px; }
.body-copy p { font-size: 1.0625rem; line-height: 1.72; color: var(--ink); margin-bottom: 16px; }
.body-copy p:last-child { margin-bottom: 0; }

/* ── Page hero ── */
.page-hero { padding: 96px 0 80px; }
.page-hero h1 { max-width: 820px; }

/* ── 3-point cards (hairline style) ── */
.points-section { padding-bottom: 104px; }
.points-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid #E8E7E4; border-bottom: 1px solid #E8E7E4;
}
.point-card { padding: 36px 32px; border-right: 1px solid #E8E7E4; }
.point-card:last-child { border-right: none; }
.point-card h3 { font-size: 1rem; margin-bottom: 10px; }
.point-card p { font-size: .9375rem; line-height: 1.65; color: var(--muted); margin: 0; }

/* ── Numbered steps ── */
.steps-wrap { max-width: 680px; }
.step { display: flex; gap: 28px; margin-bottom: 52px; }
.step:last-child { margin-bottom: 0; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; color: var(--accent); line-height: 1; flex-shrink: 0; min-width: 44px; }
.step-body { padding-top: 4px; }
.step-body h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step-body p { font-size: 1rem; line-height: 1.7; color: var(--muted); }

/* ── Mini sections (why-ai-voice) ── */
.mini-section { max-width: 680px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid #E8E7E4; }
.mini-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-section h3 { font-size: 1.125rem; margin-bottom: 10px; }
.mini-section p { font-size: 1.0625rem; line-height: 1.72; color: var(--ink); }

/* ── CTA band ── */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); max-width: 520px; margin: 0 auto 32px; }

/* ── Footer ── */
.site-footer { background: #FAFAF9; padding-top: 72px; border-top: 1px solid #E8E7E4; position: relative; overflow: hidden; }
.footer-bird { position: absolute; bottom: 24px; right: 24px; width: 420px; pointer-events: none; fill: #FF8F51; opacity: .15; z-index: 0; flex-shrink: 0; transform: scaleX(-1); }
.footer-grid, .footer-bar { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0; padding-bottom: 64px; }
.footer-brand { padding-right: 40px; }
.footer-brand .wordmark { font-size: 1rem; }
.footer-tagline { font-size: .9375rem; color: var(--muted); margin: 14px 0 20px; line-height: 1.55; max-width: 220px; }
.footer-col { padding: 0 28px; border-left: 1px solid #E8E7E4; }
.footer-col-head { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .9375rem; color: var(--ink); text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bar { border-top: 1px solid #E8E7E4; padding: 20px 0; }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-bar-inner span, .footer-bar-inner a { font-size: .8125rem; color: var(--muted); text-decoration: none; }
.footer-bar-inner a:hover { color: var(--accent); }

/* ── Accents ── */
.accent-orange { color: #FF8F51; }
.accent-teal   { color: #129B8B; }
.accent-coral  { color: #F2545B; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .points-grid { grid-template-columns: 1fr; border: none; }
  .point-card { border-right: none; border-bottom: 1px solid #E8E7E4; }
  .point-card:last-child { border-bottom: none; }
}
@media (max-width: 820px) {
  .nav, .nav-cta-desktop { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile {
    display: flex;
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-mobile.open {
    visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-col { border-left: none; padding: 0; }
  .footer-brand { padding-right: 0; }
  section { padding: 72px 0; }
  .page-hero { padding: 64px 0 56px; }
  .points-section { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .page-frame { margin: 8px; border-radius: 16px; }
  header { top: 8px; }
  header .header-inner { height: 56px; }
  .nav-mobile { top: 64px; max-height: calc(100dvh - 64px); }
  section { padding: 64px 0; }
  .page-hero { padding: 52px 0 44px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── FAQ page ── */
.faq-list { max-width: 720px; }
.faq-item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h2 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.faq-item p {
  font-size: .9375rem;
  line-height: 1.75;
  color: #3a393b;
  max-width: 640px;
}
