/*
 * Neeila public site.
 *
 * Palette and mark are taken from the app (app/globals.css) so the site and
 * the embedded experience read as one product. The proportions are inverted:
 * the app is cream-dominant with forest accents, the site leads with forest so
 * the two don't feel like the same page twice.
 */

:root {
  --ink: #17241f;
  --muted: #5f6b65;
  --line: #e2e5df;
  --paper: #f6f6f1;
  --card: #ffffff;
  --forest: #193b30;
  --forest-deep: #0f2a22;
  --forest-line: #2c5546;
  --lime: #d9ee78;
  --orange: #e9784e;
  --on-forest: #eef2e6;
  --on-forest-muted: #a9bcae;
  --link: #1d4a3b;
  --shadow: 0 14px 40px rgba(23, 36, 31, .09);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9ece6;
    --muted: #9fada6;
    --line: #2a352f;
    --paper: #121a16;
    --card: #1a241f;
    --link: #cfe88a;
    --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.narrow { max-width: 44rem; }

/* ---------- brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.04em; }
.brand-symbol {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px 10px 15px 15px; background: var(--lime); color: var(--forest);
  transform: rotate(-2deg); flex: none;
}
.brand-symbol svg { width: 19px; height: 19px; }

/* ---------- top bar ---------- */

.masthead { background: var(--forest); color: var(--on-forest); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.masthead nav { display: flex; gap: clamp(16px, 3vw, 28px); font-size: 15px; font-weight: 500; }
.masthead nav a { color: var(--on-forest-muted); text-decoration: none; }
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--lime); }

/* ---------- hero ---------- */

.hero { background: var(--forest); color: var(--on-forest); padding: clamp(48px, 9vw, 104px) 0 clamp(64px, 11vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: end; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--lime); }
.hero h1 { font-size: clamp(42px, 7.4vw, 78px); margin: 18px 0 0; }
.hero-lede { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--on-forest-muted); max-width: 34rem; }
.hero-aside { border-left: 2px solid var(--forest-line); padding-left: 24px; display: flex; flex-direction: column; gap: 16px; }
.hero-aside p { color: var(--on-forest-muted); font-size: 15px; }
.hero-aside strong { color: var(--on-forest); font-weight: 600; }

/* ---------- sections ---------- */

section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 40rem; }
.section-head .eyebrow { color: var(--orange); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { color: var(--muted); }

/* Numbered because it genuinely is a sequence: nothing reaches production
   until the merchant has designed and published. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.step-n { counter-increment: step; font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600; color: var(--forest); background: var(--lime); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.step-n::before { content: counter(step); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; }

.split { background: var(--forest); color: var(--on-forest); }
.split .section-head .eyebrow { color: var(--lime); }
.split .section-head p { color: var(--on-forest-muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(24px, 4vw, 48px); }
.col h3 { font-size: 19px; margin-bottom: 14px; color: var(--lime); }
.col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.col li { color: var(--on-forest-muted); font-size: 15.5px; padding-left: 20px; position: relative; }
.col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--forest-line); }

/* ---------- document pages ---------- */

.doc { padding: clamp(44px, 7vw, 80px) 0 clamp(64px, 9vw, 104px); }
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 7px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 50px); }
.doc-date { color: var(--muted); font-size: 14px; }
.doc section { padding: 0; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 25px; }
.doc h3 { font-size: 17px; margin-top: 10px; font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: 0; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--muted); }
.doc code { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .88em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.doc a { color: var(--link); text-underline-offset: 3px; }
.doc-note { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 16px; }

.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 46rem; }

/* ---------- contact ---------- */

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mail { font-family: "Fraunces", Georgia, serif; font-size: clamp(24px, 3.6vw, 36px); font-weight: 600; color: var(--link); text-decoration: none; letter-spacing: -.02em; word-break: break-word; }
.mail:hover, .mail:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- footer ---------- */

footer { background: var(--forest-deep); color: var(--on-forest-muted); padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 48px); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 32px; }
footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--on-forest-muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--lime); }
footer address { font-style: normal; line-height: 1.7; }
.colophon { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(238, 242, 230, .13); display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; font-size: 13.5px; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { border-left: 0; border-top: 2px solid var(--forest-line); padding-left: 0; padding-top: 22px; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}
