:root {
  --ink: #26304f;
  --dusk: #3d4a7a;
  --dusk-2: #5a5f8c;
  --cream: #fbeee6;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #22201c;
  --muted: #5e584f;
  --line: #e4ddd1;
  --accent: #3d4a7a;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171c; --surface: #1d2027; --text: #ece8e1; --muted: #a9a297; --line: #2c3038; --accent: #b7c2f0; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
p, li, blockquote, figcaption, .label span { text-wrap: pretty; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section.wrap { margin-top: 56px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.small { font-size: 14px; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
h2.section { font-size: 28px; }

/* Header and footer */
.top { background: var(--dusk); color: var(--cream); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-size: 26px; color: var(--cream); text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--cream); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.pill { border: 1px solid var(--cream); border-radius: 999px; padding: 5px 14px; }
.foot { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; font-size: 15px; }
.foot-row { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 4px 0 0; color: var(--muted); }
.brand.small { color: var(--text); font-size: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 520px; }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font-weight: 500; font-size: 16px; color: inherit; }
.btn.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta .btn.primary, .page-head .btn.primary { background: var(--dusk); color: var(--cream); border-color: var(--dusk); }
.cta .btn { color: var(--accent); }
.cta .btn.primary { color: var(--cream); }
.btn.soon { border-style: dashed; opacity: 0.85; cursor: default; }
.note { font-size: 14px; color: #e9dbd4; margin: 14px 0 0; }
.more { display: inline-block; margin-top: 8px; font-weight: 500; }

/* Home hero: a dusk scene behind the words, the app beside them */
.hero { background: var(--dusk-2) var(--hero) center bottom / cover no-repeat; color: var(--cream); position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 48, 79, 0.82), rgba(38, 48, 79, 0.35)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
/* On a computer the hero fills the first screen under the header, so the page opens on it and the next section starts at the fold. */
@media (min-width: 861px) { .hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; } .hero-grid { width: 100%; } }
.hero h1 { color: var(--cream); }
.hero .lead { color: #f1e2db; }
.hero .btn { color: var(--cream); }
.hero .btn.primary { color: var(--ink); }
.phone { width: clamp(260px, 22vw, 340px); justify-self: center; border-radius: 28px; border: 6px solid var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }

/* Columns of short features */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three h2 { font-size: 21px; }
.three p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.features > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.features h2, .features h3 { font-size: 20px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

/* A sample read-aloud */
.quote-band { text-align: center; }
blockquote { font-family: var(--serif); font-size: 21px; line-height: 1.6; margin: 0 auto; max-width: 760px; }
.quote-band blockquote { font-style: italic; }

/* Land cards: each land's scene through the seasons, its color and its name */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(3, 1fr); }
.card { display: block; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: var(--land); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); transition: transform 0.2s; }
.card:hover, .card:focus-visible { transform: translateY(-3px); }
.scene { position: relative; aspect-ratio: 720 / 440; overflow: hidden; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cycle .pic { position: absolute; inset: 0; opacity: 0; }
.cycle .pic:first-child { opacity: 1; }
/* Which season is showing, so a land that barely changes doesn't look like it flickered. */
.season-tag { position: absolute; bottom: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(20, 24, 40, 0.55); color: #fff; font-size: 12px; letter-spacing: 0.03em; }
/* The seasons cross-fade: spring stays underneath; summer, autumn and winter fade in over it in turn, and winter fades
   out to spring again. The first change comes half a second after hovering; then each season shows for 2.15 seconds, with a 1-second fade. The cycle runs while hovered and pauses (never resets) off it. */
.cycle .pic:nth-child(2), .cycle .pic:nth-child(3) { animation: season-in 8.6s linear infinite paused; }
.cycle .pic:nth-child(4) { animation: season-last 8.6s linear infinite paused; }
.cycle .pic:nth-child(2) { animation-delay: 0.5s; }
.cycle .pic:nth-child(3) { animation-delay: 2.65s; }
.cycle .pic:nth-child(4) { animation-delay: 4.8s; }
.card:hover .cycle .pic, .card:focus-visible .cycle .pic { animation-play-state: running; }
@keyframes season-in { 0% { opacity: 0; } 11.63% { opacity: 1; } 36.63% { opacity: 1; } 36.7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes season-last { 0% { opacity: 0; } 11.63% { opacity: 1; } 25% { opacity: 1; } 36.63% { opacity: 0; } 100% { opacity: 0; } }
@media (hover: none) { .cycle .pic { animation-play-state: running !important; } }
@media (prefers-reduced-motion: reduce) { .cycle .pic { animation: none !important; } }
.label { padding: 10px 14px 14px; background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28)); }
.label strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.label span { display: block; font-size: 14px; opacity: 0.95; line-height: 1.4; }
.card.big .label span { font-size: 15px; }

/* Two columns: words and a phone screenshot */
.split { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.split.flip { grid-template-columns: 280px 1fr; }
.split.flip > img { order: -1; }
/* Phone screenshots beside text show the top of the screen in a shorter frame, so the two columns balance. */
.split img { border-radius: 24px; border: 5px solid var(--ink); aspect-ratio: 9 / 13; object-fit: cover; object-position: top; }
.points { padding-left: 0; list-style: none; margin: 16px 0; display: grid; gap: 10px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); }
.points li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.points strong { color: var(--text); font-weight: 600; }
/* How it works: the steps side by side, each a screenshot with its words below. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 18px; }
.steps img { border-radius: 14px; border: 4px solid var(--ink); aspect-ratio: 1 / 1; object-fit: cover; object-position: top; width: 100%; }
.step-no { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--dusk); color: var(--cream); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.steps h2 { font-size: 19px; margin: 12px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
/* The steps fit above the fold on a laptop screen. */
.page-head.tight { margin-top: 32px; }
.page-head.tight .lead { margin-bottom: 0; }
section.wrap.steps-wrap { margin-top: 24px; }
.cta { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 24px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta .buttons { justify-content: center; }
.page-head { margin-top: 48px; }

/* A land's page */
.land-hero { position: relative; background: var(--land); color: #fff; overflow: hidden; }
.land-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.land-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.land-hero h1 { color: #fff; max-width: 720px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.land-hero .lead, .land-hero .kicker { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.season { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.season figcaption { padding: 10px 14px 14px; font-size: 14px; color: var(--muted); }
.season strong { display: block; color: var(--text); font-family: var(--serif); font-weight: 400; font-size: 19px; }
.samples { display: grid; gap: 16px; }
.sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 18px 22px; }
.sample blockquote { font-size: 19px; margin: 0; max-width: none; }
.sample figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pair img { border-radius: 14px; }

/* Legal pages */
.legal { max-width: 720px; }
.legal .date { color: var(--muted); }
.legal h2 { margin-top: 1.6em; }

/* Narrow screens */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr; gap: 20px; }
  .hero-grid, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > img { order: 0; }
  .split img, .phone { max-width: 260px; justify-self: center; }
  .seasons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { gap: 10px; }
  .grid.two, .pair, .steps { grid-template-columns: 1fr; }
  .steps img { max-width: 280px; margin: 0 auto; }
  .label strong { font-size: 18px; }
  .label span { font-size: 13px; }
  .top nav { gap: 12px; font-size: 14px; }
  blockquote { font-size: 18px; }
}
