/* =========================================================================
   ASL Buddy — marketing site
   "Terra" design system: forest green, warm paper, one clay accent.
   No build step. Plain CSS with custom properties.
   ========================================================================= */

:root {
  /* Palette */
  --forest:    #2F5D45;
  --forest-700:#274E3A;
  --fern:      #3E7D54;
  --moss:      #6B8F71;
  --sage:      #DCE6DA;
  --oat:       #EFE8DA;
  --paper:     #F6F2E9;
  --linen:     #FFFFFF;
  --bark:      #23271F;
  --driftwood: #6E6A5E;
  --clay:      #C0683E;
  --clay-soft: #F0DBCB;
  --clay-ink:  #9A4A26;
  --rust:      #B4503C;

  /* Semantic */
  --bg:          var(--paper);
  --bg-alt:      #EFEADC;
  --surface:     var(--linen);
  --ink:         var(--bark);
  --ink-soft:    #4A4A40;
  --muted:       var(--driftwood);
  --line:        #E3DCCD;
  --line-strong: #D6CCB8;
  --accent:      var(--forest);
  --accent-ink:  #234735;

  /* Type */
  --serif: "New York", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(35,39,31,.06), 0 2px 6px rgba(35,39,31,.05);
  --shadow:    0 4px 14px rgba(35,39,31,.08), 0 2px 6px rgba(35,39,31,.05);
  --shadow-lg: 0 18px 48px rgba(35,39,31,.16), 0 6px 16px rgba(35,39,31,.08);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--fern); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--forest); color: var(--paper); padding: .65em 1.1em;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--forest { background: linear-gradient(160deg, var(--forest) 0%, var(--forest-700) 100%); color: var(--paper); }
.section--forest h2, .section--forest h3 { color: var(--paper); }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fern); margin: 0 0 .6em;
}
.section--forest .eyebrow { color: var(--sage); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.section--forest .section-head p { color: #DDE7DC; }
.lede { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Sub-page header ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(38px, 6vw, 72px) clamp(22px, 3vw, 34px); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 460px at 82% -20%, rgba(107,143,113,.20), transparent 60%),
    radial-gradient(620px 380px at 4% 0%, rgba(192,104,62,.09), transparent 55%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .2em; }
.page-head .lede { max-width: 62ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  padding: .85em 1.4em; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--b); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--fern); box-shadow: var(--shadow); }
.btn--ghost { background: var(--sage); color: var(--accent-ink); border-color: rgba(47,93,69,.18); }
.btn--ghost:hover { background: #cfdccc; }
.btn--clay { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--clay:hover { background: #b35c34; }
.btn--on-forest { background: var(--paper); color: var(--accent-ink); }
.btn--on-forest:hover { background: #fff; }
.btn--ghost-on-forest { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-on-forest:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .35em .7em; border-radius: 999px; background: var(--sage); color: var(--accent-ink);
}
.pill--clay { background: var(--clay-soft); color: var(--clay-ink); }
.pill--new  { background: var(--clay-soft); color: var(--clay-ink); text-transform: uppercase; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(246,242,233,.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links a:not(.btn) {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: .5em .7em; border-radius: 8px;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--oat); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--forest); background: var(--oat); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow);
  }
  .nav__links.open a { padding: .8em .6em; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: var(--surface); cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav__toggle span::before { position: absolute; top: -6px; }
  .nav__toggle span::after  { position: absolute; top: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 520px at 78% -10%, rgba(107,143,113,.22), transparent 60%),
    radial-gradient(760px 460px at 8% 8%, rgba(192,104,62,.10), transparent 55%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin-bottom: .25em; }
.hero h1 .accent { color: var(--fern); }
.hero__sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero__meta .dot { color: var(--fern); font-weight: 800; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }

/* ---------- App screenshots (frameless) ---------- */
.shot { position: relative; width: 256px; max-width: 100%; margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); background: var(--paper);
}

.hero__phones { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__phones .shot { width: 210px; }
.hero__phones .shot:nth-child(1) { position: absolute; transform: translateX(-166px) rotate(-7deg) scale(.84); z-index: 1; }
.hero__phones .shot:nth-child(2) { position: relative; z-index: 3; }
.hero__phones .shot:nth-child(3) { position: absolute; transform: translateX(166px) rotate(7deg) scale(.84); z-index: 1; }

/* ---------- Trust / logos strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; color: var(--muted); }
.trust .stat { text-align: center; min-width: 130px; }
.trust .stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--forest); line-height: 1; }
.trust .stat span { font-size: .9rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sage); color: var(--forest); margin-bottom: 16px; font-size: 1.4rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.22rem; margin-bottom: .35em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.feature .pill { margin-top: 14px; }
.feature--link { display: block; text-decoration: none; color: inherit; }
.feature--link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.feature--link h3 { color: var(--ink); }
.feature__more { display: inline-block; margin-top: 14px; color: var(--accent-ink); font-weight: 700; font-size: .92rem; }
.feature--link:hover .feature__more { color: var(--forest); }

/* ---------- Alternating showcase rows ---------- */
.showcase { display: grid; gap: clamp(48px, 7vw, 92px); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.show-row:nth-child(even) .show-row__media { order: 2; }
.show-row__media { display: flex; justify-content: center; }
.show-row__body { max-width: 46ch; }
.show-row__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.show-row__body p { color: var(--ink-soft); font-size: 1.06rem; }
.section--forest .show-row__body p { color: #DEE8DD; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checklist .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--forest); font-size: .8rem; font-weight: 800; }
.checklist .ic svg { width: 14px; height: 14px; }
.section--forest .checklist .ic { background: rgba(255,255,255,.16); color: #fff; }
.checklist b { color: var(--ink); }
.section--forest .checklist b { color: #fff; }

/* floating caption pill over a screenshot */
.media-tag {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: .4em .9em; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
  white-space: nowrap;
}

/* ---------- Family / social showcase cards ---------- */
.family-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.fp {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r); padding: 22px;
}
.fp h4 { color: #fff; font-family: var(--serif); font-size: 1.18rem; margin: 0 0 .35em; }
.fp p { color: #DEE8DD; margin: 0; font-size: .98rem; }
.fp .ic { width: 34px; height: 34px; margin-bottom: 12px; color: var(--sage); }
.fp .ic svg { width: 32px; height: 32px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; position: relative; box-shadow: var(--shadow-sm); }
.step__n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--paper);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--oat); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 36px; }
.price-toggle button {
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-soft); cursor: pointer;
  border: 0; background: transparent; padding: .6em 1.1em; border-radius: 999px; transition: all .18s ease;
}
.price-toggle button[aria-selected="true"] { background: var(--surface); color: var(--forest); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: .72rem; color: var(--clay-ink); font-weight: 700; margin-left: .4em; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 820px; margin-inline: auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--forest); box-shadow: var(--shadow); position: relative; }
.plan__flag {
  position: absolute; top: -13px; left: 28px; background: var(--clay); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px;
}
.plan__name { font-family: var(--serif); font-size: 1.5rem; }
.plan__for { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.plan__price { display: flex; align-items: baseline; gap: .25em; margin-bottom: 2px; }
.plan__amt { font-family: var(--serif); font-size: 2.8rem; color: var(--ink); line-height: 1; }
.plan__per { color: var(--muted); font-size: 1rem; }
.plan__note { color: var(--ink-soft); font-size: .9rem; min-height: 2.4em; margin-bottom: 18px; }
.plan__feats { list-style: none; display: grid; gap: 11px; margin: 6px 0 24px; }
.plan__feats li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; font-size: .96rem; color: var(--ink-soft); }
.plan__feats .ic { color: var(--fern); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan__amt[data-hide="true"] { display: none; }
.price-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.faq-cats { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 4px; }
.faq-cats button {
  font: inherit; text-align: left; cursor: pointer; border: 0; background: transparent;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: .65em .8em; border-radius: 10px;
  transition: all .15s ease;
}
.faq-cats button:hover { background: var(--oat); }
.faq-cats button.active { background: var(--sage); color: var(--accent-ink); }
.faq-groups { display: grid; gap: 34px; }
.faq-group h3 { font-size: 1.35rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 2px; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink); display: block;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--fern); transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--forest); }
.faq-item__body { padding: 0 40px 20px 2px; color: var(--ink-soft); }
.faq-item__body p { margin: 0 0 .7em; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--paper); }
.cta-band p { color: #DEE8DD; font-size: 1.15rem; max-width: 50ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }
.cta-note { margin-top: 18px; color: #C7D6C8; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bark); color: #C9C8BF; padding-block: 54px 30px; }
.footer a { color: #D7D6CC; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #9D9C92; font-size: .92rem; max-width: 32ch; margin-top: 12px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: .94rem; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  color: #87867D; font-size: .86rem;
}
.footer__bottom .note { max-width: 60ch; }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px;
  scrollbar-width: thin;
}
.gallery .shot { width: 200px; scroll-snap-align: center; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { margin-top: 6px; }
  .hero__sub { max-width: none; }
}
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 8px; }
  .hero__sub { max-width: none; }
  .show-row { grid-template-columns: 1fr; }
  .show-row:nth-child(even) .show-row__media { order: 0; }
  .show-row__media { order: -1; }
  .family-points { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-cats { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: 6px; gap: 6px; }
  .faq-cats button { white-space: nowrap; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .trust { gap: 18px; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__phones .shot:nth-child(1), .hero__phones .shot:nth-child(3) { display: none; }
  .hero__phones .shot { width: 248px; }
}
