/* Greenly site (tasks 64, 87): the app's greens, light and dark. Headings in Fraunces, a garden-journal serif; body in
   the phone's own sans so it opens fast. */
:root {
  --green: #3b6939;
  --green-deep: #1f4d2b;
  --forest: #1d3f22;
  --leaf: #cfe6be;
  --leaf-ink: #cfe6be;
  --bg: #f3f5ef;
  --card: #ffffff;
  --ink: #17231a;
  --muted: #4f5d4a;
  --line: #dde5d6;
  --radius: 20px;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #b9d9a2;
    --green-deep: #d5e8c6;
    --forest: #0f2413;
    --leaf: #2f4a33;
    --leaf-ink: #cfe6be;
    --bg: #111612;
    --card: #1b221c;
    --ink: #e3ece0;
    --muted: #a9b8a6;
    --line: #2b352c;
    color-scheme: dark;
  }
}
* { 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(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
::selection { background: var(--leaf); color: var(--green-deep); }
a { color: var(--green); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { overflow-x: clip; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand img, .brand svg { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.lang { display: flex; gap: 2px; flex-wrap: wrap; }
.lang a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--leaf); color: var(--green-deep); }

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.play {
  display: inline-flex; align-items: center; gap: 10px; background: var(--green-deep); color: #fff;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 17px;
  box-shadow: 0 8px 22px -10px rgba(31, 77, 43, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.play:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(31, 77, 43, 0.8); }
@media (prefers-color-scheme: dark) { .play { background: var(--leaf-ink); color: #102414; box-shadow: none; } }
.play svg { width: 22px; height: 22px; }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.hint { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Phones: real screens with a thin dark rim, as on the store. */
.phone { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #152017; background: var(--card);
  box-shadow: 0 30px 60px -28px rgba(20, 40, 22, 0.55), 0 8px 18px -10px rgba(20, 40, 22, 0.35); }

/* Hero: words left, two phones leaning into each other right. */
.hero { display: grid; gap: 40px; align-items: center; padding-block: 24px 72px; }
.hero-phones { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 0.82; }
.hero-phones .phone { position: absolute; width: 60%; }
.hero-phones .back { right: 0; top: 0; transform: rotate(5deg); }
.hero-phones .front { left: 0; top: 9%; transform: rotate(-4deg); }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-block-start: 56px; }
}

/* A feature told as a page of a garden book: text and one screen. */
.feature-row { display: grid; gap: 40px; align-items: center; padding: 40px 16px 88px; }
.feature-row .solo { width: min(72%, 300px); margin: 0 auto; transform: rotate(2deg); }
.feature-text p { color: var(--muted); max-width: 36em; }
@media (min-width: 820px) { .feature-row { grid-template-columns: 1.2fr 0.8fr; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4 12.5l5 5L20 6.5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4 12.5l5 5L20 6.5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; }

/* The camera: the deep green band, three real screens, five answers. */
.camera { background: var(--forest); color: #eef4ea; padding: 88px 0 96px; }
.camera h2 { color: #f3f5ef; }
.camera-lead { color: #bcd3ae; font-size: 19px; margin: 0 0 40px; max-width: 34em; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-color: #4d7a4a transparent; }
.strip .phone { scroll-snap-align: start; border-color: #0a150c; }
.strip .phone:nth-child(2) { transform: translateY(28px); }
@media (min-width: 820px) { .strip { overflow: visible; max-width: 880px; } }
.modes { display: grid; gap: 26px 40px; margin: 56px 0 0; }
@media (min-width: 700px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.modes dt { display: flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--serif); color: #f3f5ef; margin-bottom: 6px; }
.modes dt svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #b9d9a2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modes dd { margin: 0; color: #bcd3ae; max-width: 30em; }

/* Two short promises side by side. */
.pair { display: grid; gap: 40px; padding: 88px 16px; }
.pair p { color: var(--muted); max-width: 32em; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; gap: 64px; } }

.closing { background: var(--leaf); padding: 72px 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing .grow { border-radius: 20px; margin-bottom: 18px; box-shadow: 0 12px 24px -12px rgba(20, 40, 22, 0.5); }
.closing h2 { color: var(--green-deep); margin-bottom: 26px; }
.play.light { background: var(--green-deep); }
@media (prefers-color-scheme: dark) { .play.light { background: var(--leaf-ink); } }
.disclaimer { color: var(--muted); font-size: 14px; margin: 26px 0 0; max-width: 40em; }

.invite { text-align: center; padding: 40px 0 64px; max-width: 560px; margin: 0 auto; }
.invite .sprout { width: 88px; height: 88px; margin: 0 auto 16px; display: block; }
.gift { display: inline-block; background: var(--leaf); color: var(--green-deep); border-radius: 999px; padding: 6px 14px; font-weight: 600; margin-bottom: 16px; }
.code { font: 700 28px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.12em; margin: 20px 0 6px; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 8px 0 48px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 24px; margin-top: 32px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--ink); max-width: 70ch; }
.doc code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

footer { border-top: 1px solid var(--line); padding: 22px 16px 44px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Cabinet (task 64) */
.cabinet { padding: 8px 0 48px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); width: 100%; max-width: 420px;
}
.row .field { width: auto; flex: 1 1 140px; }
.stack .play { align-self: flex-start; border: 0; cursor: pointer; }
.link { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 12px 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

/* Questions: plain reading, one answer per block. */
.faq { padding: 8px 16px 88px; }
.faq h2 { margin-bottom: 28px; }
.qa { border-top: 1px solid var(--line); padding: 22px 0; display: grid; gap: 6px; }
@media (min-width: 820px) { .qa { grid-template-columns: 0.8fr 1.2fr; gap: 40px; } }
.qa h3 { font: 600 21px/1.3 var(--serif); margin: 0; letter-spacing: -0.01em; }
.qa p { margin: 0; color: var(--muted); max-width: 40em; }

/* The camera's scan: the same bright line the app draws over a photo while it looks (task 75). */
.scan { position: relative; border-radius: 26px; overflow: hidden; }
.scan .phone { margin: 0; }
.scan::after {
  content: ""; position: absolute; left: 10%; right: 10%; height: 3px; top: 18%; border-radius: 3px; opacity: 0;
  background: #e9f7dc; box-shadow: 0 0 12px 3px rgba(185, 217, 162, 0.85);
}

/* Motion (task 88). Everything is visible by default; html.motion is set by the script only when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  /* The focal moment: the sprout grows as in the app's launch — stem, then the two leaves — and the page arrives. */
  .grow .stem { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .motion .grow .stem { animation: stem 0.55s var(--ease) 0.15s both; }
  .motion .grow .leaf { transform-box: fill-box; animation: leaf 0.6s var(--ease) both; }
  .motion .grow .leaf.l { transform-origin: 100% 100%; animation-delay: 0.55s; }
  .motion .grow .leaf.r { transform-origin: 0% 100%; animation-delay: 0.68s; }
  .motion .hero h1 { animation: arrive 0.8s var(--ease) 0.2s both; }
  .motion .hero .lead { animation: arrive 0.8s var(--ease) 0.32s both; }
  .motion .hero .play, .motion .hero .fine { animation: arrive 0.8s var(--ease) 0.44s both; }
  .motion .hero-phones .front { animation: settle-front 1.1s var(--ease) 0.25s both; }
  .motion .hero-phones .back { animation: settle-back 1.3s var(--ease) 0.25s both; }
  /* The closing sprout grows again when it comes into view. */
  .motion .closing .grow:not(.in) .stem { animation: none; stroke-dashoffset: 1; }
  .motion .closing .grow:not(.in) .leaf { animation: none; transform: scale(0); }

  /* Sections come in quietly; lists come in as lists, with a capped stagger. */
  .motion .reveal { opacity: 0; transform: translateY(26px); filter: blur(4px);
    transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.7s var(--ease); transition-delay: var(--d, 0s); }
  .motion .reveal.in { opacity: 1; transform: none; filter: none; }
  .motion .strip .reveal { transform: translateY(40px) rotate(-2deg); }
  .motion .strip .reveal.in:nth-child(2) { transform: translateY(28px); }
  /* Ticks are set like tasks done. */
  .motion .ticks li::before { clip-path: inset(0 100% 0 0); transition: clip-path 0.5s var(--ease); transition-delay: var(--d, 0s); }
  .motion .ticks.in li::before { clip-path: inset(0 0 0 0); }
  /* The scan line sweeps only while the screen is on view. */
  .motion .scan.in::after { animation: sweep 2.4s ease-in-out 0.6s infinite alternate; }

  .lang a { transition: background-color 0.2s, color 0.2s; }
}
@media (prefers-reduced-motion: reduce) {
  /* Fewer, gentler: sections still fade in, nothing moves or sweeps. */
  .motion .reveal { opacity: 0; transition: opacity 0.4s ease; }
  .motion .reveal.in { opacity: 1; }
  .play, .play:hover { transition: none; transform: none; }
}
@keyframes stem { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes leaf { from { transform: scale(0) rotate(-12deg); } to { transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } }
@keyframes settle-front { from { opacity: 0; transform: translateY(40px) rotate(-10deg); filter: blur(3px); } }
@keyframes settle-back { from { opacity: 0; transform: translateY(56px) rotate(12deg); filter: blur(4px); } }
@keyframes sweep { 0% { top: 16%; opacity: 1; } 100% { top: 52%; opacity: 1; } }

/* Partner programme (task 93). */
.pp-terms { display: grid; gap: 14px; margin: 0; }
.pp-terms div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.pp-terms dt { font: 600 clamp(40px, 6vw, 56px)/1 var(--serif); color: var(--green); letter-spacing: -0.02em; font-size: clamp(34px, 4.6vw, 48px); white-space: nowrap; width: 3.1ch; }
.pp-terms dd { margin: 0; color: var(--muted); }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--leaf); color: var(--green-deep); font: 600 16px/32px var(--serif); text-align: center; }
.pair h2 + p + h2 { margin-top: 36px; }
.kit { background: var(--forest); color: #eef4ea; padding: 80px 0; }
.kit h2 { color: #f3f5ef; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
@media (min-width: 820px) { .kit-grid { grid-template-columns: repeat(4, 1fr); } }
.kit-grid a { display: grid; gap: 10px; color: #cfe6be; text-decoration: none; font-size: 15px; }
.kit-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 16px; background: #0f1a10; }
.kit-grid a:hover span { text-decoration: underline; }
.apply { background: var(--leaf); padding: 72px 0; }
.apply h2 { color: var(--green-deep); }
.apply-form { display: grid; gap: 16px; max-width: 720px; }
@media (min-width: 700px) { .apply-form { grid-template-columns: 1fr 1fr; } .apply-form .wide, .apply-form button, .apply-form .form-status { grid-column: 1 / -1; } }
.apply-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.apply-form .field { max-width: none; font-weight: 400; }
.apply-form textarea { resize: vertical; }
.apply-form button { justify-self: start; border: 0; cursor: pointer; }
.apply-form button:disabled { opacity: 0.6; cursor: progress; }
.apply-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status[data-tone="ok"] { color: var(--green-deep); }
.form-status[data-tone="error"] { color: #9b2c1f; }
@media (prefers-color-scheme: dark) { .form-status[data-tone="error"] { color: #f0a494; } }

/* Google sign-in on the site (task 94): the app's white button with the four-colour G. */
.google-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; align-self: flex-start;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #1f1f1f;
  font: 600 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: box-shadow 0.2s; }
.google-button:hover { box-shadow: 0 4px 14px -6px rgba(20, 40, 22, 0.35); }
.google-button svg { width: 20px; height: 20px; }
.apply-google { display: grid; gap: 8px; margin: 0 0 22px; max-width: 720px; }
.apply-google .hint { margin: 0; color: var(--muted); font-size: 14px; }
