/* Grunode website. Same colors and fonts as the app (docs/design/grunode-tokens.css), light mode in green-gray.
   Layout: a calm one-column story. Hero with the real Home screen, a row of three screens, features, promise, mailing list. */
:root {
  --canvas: #f1f4f2; --surface: #ffffff; --surface-2: #e7ece9; --ink: #142019; --muted: #5f6b65;
  --line: #dde3df; --accent: #2a6b54; --on-accent: #ffffff; --accent-soft: #d5ecdf;
  --brand: #1f4537; --brand-ink: #f3efe6; --sun: #eeaa2c; --frame: #142019; --shadow: rgba(20, 32, 25, 0.28);
  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0e1412; --surface: #171f1c; --surface-2: #1f2925; --ink: #e8eeeb; --muted: #92a19a;
    --line: #27322d; --accent: #5cc6a4; --on-accent: #062018; --accent-soft: #173a30;
    --brand: #f3efe6; --brand-ink: #f3efe6; --frame: #2c3833; --shadow: rgba(0, 0, 0, 0.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0e1412; --surface: #171f1c; --surface-2: #1f2925; --ink: #e8eeeb; --muted: #92a19a;
  --line: #27322d; --accent: #5cc6a4; --on-accent: #062018; --accent-soft: #173a30;
  --brand: #f3efe6; --brand-ink: #f3efe6; --frame: #2c3833; --shadow: rgba(0, 0, 0, 0.5); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 62px); letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.8vw, 38px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0; }
a:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Logo: the official lockup, colored from tokens so it follows the theme */
.logo { display: block; height: 30px; width: auto; }
.logo .ink { fill: var(--brand); }
.logo .node { fill: var(--sun); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.top nav a:hover { background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--body); text-decoration: none; padding: 14px 22px; border-radius: 16px; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; padding-block: 32px 80px; }
.hero .copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* Rotating group word: each word rises in from below while the last one leaves upward. The period is the amber node from the logo. */
.rotor { display: block; position: relative; height: 1.22em; overflow: hidden; color: var(--accent); margin-bottom: -0.1em; }
.rotor > span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(1.4em); opacity: 0;
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity 0.8s ease; }
.rotor > span.on { transform: none; opacity: 1; }
.rotor > span.out { transform: translateY(-1.4em); opacity: 0; }
.rotor i { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.07em; border-radius: 50%; background: var(--sun); }
/* Reduced motion: no sliding. The old word fades out first, then the new one fades in, so they never overlap. */
@media (prefers-reduced-motion: reduce) {
  .rotor > span, .rotor > span.out { transform: none; transition: opacity 0.3s ease; }
  .rotor > span.on { transition-delay: 0.3s; }
}
.hero .lede { font-size: 20px; color: var(--muted); max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 12px 56px; } }

/* Phone frame around a real app screen (360 × 760 dp) */
.phone { width: min(320px, 100%); max-width: 100%; aspect-ratio: 360 / 760; border: 9px solid var(--frame); border-radius: 40px; overflow: hidden; background: #f1f4f2; box-shadow: 0 34px 60px -32px var(--shadow); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero .phone { justify-self: center; }

/* Screens row */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.head p { color: var(--muted); font-size: 18px; }
.screens-scroll { overflow-x: auto; margin-top: 36px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 28px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; scroll-snap-align: center; min-width: 0; }
.screens .phone { width: min(260px, 100%); border-width: 8px; border-radius: 34px; }
.screens figcaption { text-align: center; max-width: 30ch; display: flex; flex-direction: column; gap: 4px; }
.screens figcaption b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.screens figcaption span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .screens { grid-template-columns: repeat(3, 230px); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { background: var(--surface); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature p { color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
/* Seven features: the last one spans the row. */
.features .feature:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Promise */
.promise { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.promise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.promise li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 18px; }
.promise li::before { content: "✓"; font-weight: 700; color: var(--accent); }
.promise .side { display: flex; flex-direction: column; gap: 14px; }
.promise .side p { color: var(--muted); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* Mailing list: the one deep-green moment, with the mark turning quietly in the corner */
.beta { position: relative; overflow: hidden; background: #1f4537; color: #f3efe6; border-radius: 28px; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.beta > *:not(.watermark) { position: relative; }
.beta p { max-width: 52ch; color: rgba(243, 239, 230, 0.88); }
.beta .mail { font-size: 15px; color: rgba(243, 239, 230, 0.8); user-select: all; }
.watermark { position: absolute; right: -70px; bottom: -90px; width: 340px; height: 340px; opacity: 0.09; pointer-events: none; }
.watermark .ink { fill: #f3efe6; }
.watermark .node { fill: #eeaa2c; }
@media (prefers-reduced-motion: no-preference) { .watermark { animation: turn 60s linear infinite; } }
@keyframes turn { to { transform: rotate(360deg); } }
.join { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 520px; }
.join input[type="email"] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 13px 16px; border-radius: 14px; border: 0; background: #f3efe6; color: #142019; }
.join .btn { background: #eeaa2c; color: #142019; }
.join .btn:disabled { opacity: 0.6; cursor: default; }
.join-msg { font-weight: 600; color: #f3efe6; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) { .beta { padding: 32px 22px; } }

/* Legal pages (privacy, terms) share this stylesheet */
.legal { max-width: 720px; padding-block: 16px 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 28px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-top: 6px; }
.legal .langs { display: flex; gap: 8px; margin: 20px 0 8px; }
.legal .langs a { text-decoration: none; font-weight: 600; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.legal section { background: var(--surface); border-radius: 22px; padding: 8px 24px 20px; margin-top: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-block: 4px; }

footer { padding-block: 40px 56px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

/* A word shrunk to fit keeps its baseline */
.rotor > span { bottom: 0.18em; top: auto; line-height: 1; }
/* Legal pages and 404 use the logo files */
.top img { display: block; height: 30px; width: auto; }
