/* Nut Jar site styles. Light theme by default, dark via prefers-color-scheme. */
:root {
  --forest-900: #0f2a2c;
  --forest-800: #10302f;
  --forest-600: #1b4a42;
  --forest-400: #2e6b4f;
  --cream: #fbefd8;
  --cream-soft: #fbf4e2;
  --acorn-dark: #76523a;
  --acorn: #b4651f;
  --acorn-light: #d9822b;
  --firefly: #f4c95d;

  --bg: var(--cream-soft);
  --surface: #fffaf0;
  --surface-2: #f4e8cf;
  --text: #0f2a2c;
  --muted: #4a4a3c;
  --line: #e2d3b4;
  --link: #6a4630;
  --accent: #1b4a42;
  --icon: #2e6b4f;

  --radius: 18px;
  --wrap: 1080px;
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2a2c;
    --surface: #10302f;
    --surface-2: #143a37;
    --text: #fbf4e2;
    --muted: #d9ccb1;
    --line: #1f4a44;
    --link: #f4c95d;
    --accent: #f4c95d;
    --icon: #f4c95d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--firefly); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--firefly); color: var(--forest-900);
  padding: 8px 14px; border-radius: 10px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest-900);
  color: var(--cream);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.brand img { width: 32px; height: 32px; }
.site-nav ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--firefly); }
@media (max-width: 420px) { .site-nav .opt { display: none; } }

/* ---------- Buttons ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--firefly); color: var(--forest-900);
  text-decoration: none; font-weight: 800;
  padding: 13px 20px; border-radius: 14px;
  border: 2px solid var(--firefly);
  transition: transform .15s ease, background .15s ease;
}
.btn-store:hover { background: #f7d67f; transform: translateY(-1px); }
.btn-store svg { width: 22px; height: 22px; }
.btn-store small { display: block; font-weight: 600; font-size: 0.72rem; line-height: 1.1; opacity: .85; }
.btn-store span { line-height: 1.15; }

/* ---------- Hero (always a night scene) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--forest-900) 0%, var(--forest-800) 55%, var(--forest-600) 100%);
  color: var(--cream-soft);
  padding: 40px 0 0;
}
.hero-trees { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero .wrap { display: grid; gap: 28px; align-items: end; }
.hero-copy { padding-bottom: 8px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.9rem;
  color: var(--firefly); letter-spacing: .02em; margin-bottom: 14px;
}
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero .lede { font-size: 1.15rem; color: #efe3c8; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.hero-cta .note { color: #e6d8ba; font-size: 0.95rem; }

.hero-phones {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 320px; padding-top: 10px;
}
.phone {
  border-radius: 30px 30px 0 0; border: 6px solid #0a1f21; border-bottom: 0;
  background: #0a1f21; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.phone img { border-radius: 24px 24px 0 0; }
.hero-phones .main { width: min(270px, 74vw); position: relative; z-index: 2; }
.hero-phones .side { display: none; width: 210px; position: absolute; bottom: 0; opacity: .92; }
.hero-phones .left { left: 0; transform: translateX(8%) rotate(-5deg); transform-origin: bottom right; }
.hero-phones .right { right: 0; transform: translateX(-8%) rotate(5deg); transform-origin: bottom left; }
@media (min-width: 560px) { .hero-phones .side { display: block; } .hero-phones { min-height: 440px; } }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 24px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-phones .main { width: 290px; }
}

.firefly { fill: var(--firefly); }
@media (prefers-reduced-motion: no-preference) {
  .firefly { animation: glow 4.5s ease-in-out infinite; }
  .firefly:nth-of-type(2n) { animation-delay: -1.6s; animation-duration: 5.5s; }
  .firefly:nth-of-type(3n) { animation-delay: -3.1s; animation-duration: 6.5s; }
  @keyframes glow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--acorn-dark); margin-bottom: 10px; display: block; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--firefly); } }

.icon { width: 36px; height: 36px; color: var(--icon); flex: none; }
.icon path, .icon circle, .icon rect, .icon line, .icon polyline, .icon ellipse {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
}
.steps li .icon { grid-row: span 2; }
.steps h3 { margin: 4px 0 0; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { grid-template-columns: 1fr; } .steps li .icon { grid-row: auto; } }

/* Scene trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto 36px; max-width: 860px; }
.trio figure { margin: 0; }
.trio img { border-radius: 16px; border: 1px solid var(--line); background: var(--forest-900); }
.trio figcaption { text-align: center; font-family: var(--font-display); font-weight: 500; margin-top: 10px; font-size: clamp(.9rem, 3.4vw, 1.15rem); }
@media (min-width: 640px) { .trio { gap: 24px; } .trio img { border-radius: 22px; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.points p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .points.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } .points.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* Views */
.views { display: grid; gap: 40px; }
.view { display: grid; gap: 20px; align-items: center; }
.view figure { margin: 0; justify-self: center; width: min(280px, 80vw); }
.view img { border-radius: 22px; border: 1px solid var(--line); background: var(--forest-900); }
.view .copy p { color: var(--muted); }
@media (min-width: 760px) {
  .view { grid-template-columns: 300px 1fr; gap: 48px; }
  .view.flip { grid-template-columns: 1fr 300px; }
  .view.flip figure { order: 2; }
}

/* Pricing */
.plans { display: grid; gap: 18px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { background: var(--forest-900); color: var(--cream-soft); border-color: var(--forest-600); }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.plan .price { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 16px; color: var(--muted); }
.plan.pro .price { color: var(--firefly); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; margin-top: 4px; flex: none; color: var(--icon); }
.plan.pro li svg { color: var(--firefly); }
.plan li svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 20px; max-width: 760px; }

/* Closing band */
.closing { background: var(--forest-800); color: var(--cream-soft); text-align: center; padding: 64px 0; }
.closing h2 { color: var(--cream); }
.closing p { color: #e6d8ba; max-width: 40ch; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: #e6d8ba; padding: 36px 0; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer a { color: var(--cream); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer p { margin: 0; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Document pages (legal, support, 404) ---------- */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc .updated { color: var(--muted); font-size: .95rem; margin-bottom: 1.6em; }
.doc .lead { font-size: 1.12rem; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--acorn); }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 8px;
}
.contact-card p { margin: 0; }
.contact-card a { font-weight: 800; font-size: 1.15rem; overflow-wrap: anywhere; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.notfound { text-align: center; padding: 72px 0 96px; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 24px; }

@media (prefers-color-scheme: dark) {
  .site-header { border-bottom: 1px solid var(--line); }
  .site-footer { border-top: 1px solid var(--line); }
}
