/* ==========================================================================
   Kisan Bhai - shared stylesheet
   Palette follows the app theme: primary #1B5E20, secondary #43A047,
   surface #F1F8E9.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --green-900: #0b3d14;
  --green-800: #14491a;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #43a047;
  --green-300: #a5d6a7;
  --green-200: #c8e6c9;
  --green-100: #e8f5e9;
  --green-50:  #f1f8e9;

  --amber-600: #c87f00;
  --amber-500: #f6a609;
  --amber-100: #fff3dc;

  --ink:    #13211a;
  --ink-2:  #35483c;
  --muted:  #68796e;

  --surface:      #ffffff;
  --surface-2:    #f7faf4;
  --page:         #ffffff;
  --line:         #dfeadc;
  --line-strong:  #c7d8c4;

  --shadow-sm: 0 1px 2px rgba(11, 61, 20, .06), 0 1px 3px rgba(11, 61, 20, .08);
  --shadow-md: 0 6px 16px rgba(11, 61, 20, .08), 0 2px 6px rgba(11, 61, 20, .05);
  --shadow-lg: 0 24px 48px rgba(11, 61, 20, .14), 0 8px 16px rgba(11, 61, 20, .07);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --container: 1140px;
  --header-h: 68px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans Telugu",
    Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-100: #16301c;
    --green-50:  #122718;
    --amber-100: #33260c;

    --ink:    #e9f1e8;
    --ink-2:  #c2d2c2;
    --muted:  #93a694;

    --surface:      #15211a;
    --surface-2:    #121c16;
    --page:         #0c140f;
    --line:         #243227;
    --line-strong:  #324636;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, .5);
  }
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-500); }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: var(--green-50); }
.section--sunk { background: var(--surface-2); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--green-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease,
    border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--green-600); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--green-100); color: var(--ink); border-color: var(--green-300); }

.btn--sm { padding: 10px 16px; font-size: .9rem; }

/* Google Play call to action */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 11px 20px 11px 16px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; background: #000; }
.btn-play__text { display: grid; line-height: 1.15; text-align: left; }
.btn-play__text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.btn-play__text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .btn-play { background: #fff; color: #0c140f; }
  .btn-play:hover { background: var(--green-100); color: #0c140f; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.nav a:hover { color: var(--green-700); background: var(--green-100); }
.nav a[aria-current="page"] { color: var(--green-700); }

.header-cta { margin-left: 8px; }

/* Two download buttons live in the header: .header-cta for desktop and one
   inside the nav for the mobile panel. Only ever show one of them. */
.nav .btn { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .btn { display: inline-flex; margin-top: 8px; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 7vw, 86px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--green-100), transparent 62%),
    radial-gradient(760px 420px at -6% 8%, var(--amber-100), transparent 58%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--green-700); }

.hero__lede {
  font-size: clamp(1.03rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  max-width: 34rem;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .92rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--green-500); flex: none; }

.hero__art { display: flex; justify-content: center; }

/* --- Phone mockup ------------------------------------------------------- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(165deg, #22312a, #0d1511);
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
}
.phone__screen {
  border-radius: 29px;
  overflow: hidden;
  background: #f1f8e9;
  color: #13211a;
  font-size: 12px;
  line-height: 1.4;
}

.ui-top {
  background: #1b5e20;
  color: #fff;
  padding: 30px 16px 18px;
}
.ui-top small { opacity: .82; font-size: 10.5px; letter-spacing: .02em; }
.ui-top strong { display: block; font-family: var(--font-display); font-size: 19px; margin-top: 2px; }

.ui-marquee {
  background: #f6a609;
  color: #2b1d00;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 16px;
  white-space: nowrap;
  overflow: hidden;
}

.ui-body { padding: 14px; display: grid; gap: 12px; }

.ui-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #2e7d32, #43a047);
  color: #fff;
  border-radius: 14px;
  padding: 11px 14px;
}
.ui-score b { font-family: var(--font-display); font-size: 17px; }
.ui-score span { font-size: 10px; opacity: .9; }

.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-tile {
  background: #fff;
  border: 1px solid #e3efe1;
  border-radius: 14px;
  padding: 11px 12px;
}
.ui-tile i {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #1b5e20;
  margin-bottom: 8px;
}
.ui-tile small { color: #6b7c70; font-size: 10px; display: block; }
.ui-tile b { font-family: var(--font-display); font-size: 16px; }
.ui-tile b.pos { color: #2e7d32; }
.ui-tile b.neg { color: #c62828; }

.ui-summary {
  background: #fff;
  border: 1px solid #e3efe1;
  border-radius: 14px;
  padding: 12px;
}
.ui-summary .row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; color: #45564a; }
.ui-summary .row.total { border-top: 1px dashed #d6e6d4; margin-top: 6px; padding-top: 7px; font-weight: 700; color: #13211a; }

.ui-actions { display: flex; gap: 8px; }
.ui-actions span {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #e3efe1;
  border-radius: 11px;
  padding: 9px 4px;
  font-size: 10px;
  font-weight: 600;
  color: #35483c;
}

.ui-nav {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #e3efe1;
  padding: 9px 4px 13px;
  color: #9fb0a3;
}
.ui-nav i:first-child { color: #1b5e20; }

/* --- Proof strip -------------------------------------------------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.strip b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--green-700);
}
.strip small { color: var(--muted); font-size: .85rem; }

/* --- Cards / features --------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 16px;
}
.card__icon--amber { background: var(--amber-100); color: var(--amber-600); }

.card__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.card__list li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink-2); }
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .52em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; padding-top: 10px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* --- Language chips ----------------------------------------------------- */
.langs { display: flex; flex-wrap: wrap; gap: 12px; }
.lang {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}
.lang b { display: block; font-family: var(--font-display); font-size: 1.22rem; }
.lang small { color: var(--muted); font-size: .84rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq__q:hover { color: var(--green-700); }
.faq__q svg { flex: none; transition: transform .2s ease; color: var(--green-600); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 20px 20px; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__item.is-open .faq__a { display: block; }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 46rem; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 26px; }
.cta .btn-play { background: #fff; color: var(--green-900); }
.cta .btn-play:hover { background: var(--green-100); color: var(--green-900); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: 54px 28px;
  margin-top: clamp(56px, 8vw, 96px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__about p { color: var(--muted); font-size: .93rem; max-width: 30ch; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6px 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.site-footer a:hover { color: var(--green-600); text-decoration: underline; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .86rem;
}

/* --- Sub-page hero + legal prose --------------------------------------- */
.page-hero {
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 6vw, 64px);
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); margin-bottom: 0; max-width: 60ch; }

.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-600); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: .85rem;
  color: var(--ink-2);
}

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: clamp(40px, 6vw, 68px); }

.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.toc h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 70vh; overflow: auto; }
.toc a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9rem;
  padding: 6px 12px;
  border-left: 2px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.toc a:hover { background: var(--green-100); color: var(--green-700); }
.toc a.is-active { border-left-color: var(--green-600); color: var(--green-700); font-weight: 700; background: var(--green-100); }

.prose { max-width: 70ch; }
.prose h2 {
  font-size: 1.42rem;
  margin-top: 2.2em;
  padding-top: .2em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1.2rem; }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: .94rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--green-50); font-family: var(--font-display); color: var(--ink); }

/* Tables also appear outside .prose (the "app at a glance" card), so the
   wrapper carries the styling as well. */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table-wrap th, .table-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.table-wrap th {
  background: var(--green-50);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.callout {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 0 0 1.6rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--amber { background: var(--amber-100); border-left-color: var(--amber-500); }

/* --- Forms (contact / deletion request) --------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500);
  outline: 2px solid color-mix(in srgb, var(--green-500) 30%, transparent);
  outline-offset: 0;
}
.field small { color: var(--muted); font-size: .84rem; }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.contact-line b { font-family: var(--font-display); }
.copy-btn {
  margin-left: auto;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--green-700);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--green-100); }

.form-note {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--muted);
}

/* --- Reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two-up sections (form + sidebar, copy + chips) get cramped well before
     the phone breakpoint, so they stack earlier than the 3-up grids. */
  .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .toc ul { grid-template-columns: 1fr; }
  .btn, .btn-play { width: 100%; }
  .btn-row { gap: 10px; }
}
