/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #F8EDD9;
  --cream-muted: rgba(248, 237, 217, 0.55);
  --accent: #73C7AD;
  --accent-glow: rgba(115, 199, 173, 0.4);
  /* Gold used only for editorial awards (Mac|Life Editor's Choice), so an
     award reads as a different tier to an ordinary press quote. */
  --award: #D8B863;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --max-width: 1100px;

  /* Zen background palette (v1.1) — matches the in-app calm gradient,
     navy at the top easing into a deep teal-green toward the bottom. */
  --zen-top:    #0e161e;
  --zen-mid:    #14242b;
  --zen-bottom: #1c3834;

  /* Live gradient stops driven by scroll position (see the gradient-morph
     script in index.html). They default to the midnight/zen look so the
     backdrop is correct before JS runs, on the privacy page, and when the
     visitor prefers reduced motion. */
  --bg-top:    var(--zen-top);
  --bg-mid:    var(--zen-mid);
  --bg-bottom: var(--zen-bottom);
  --glow:      rgba(115, 199, 173, 0.06);
  --glow-soft: rgba(115, 199, 173, 0.05);
  /* Glowing divider between sections — colour tracks the scroll morph
     (set by the same script); defaults to the accent so it's correct
     before JS, on the privacy page, and under reduced motion. */
  --line-core: rgba(115, 199, 173, 0.6);
  --line-glow: rgba(115, 199, 173, 0.32);
  /* Translucent panel used for every card so it floats on the gradient,
     echoing the app's frosted surfaces. */
  --zen-card:        rgba(11, 20, 24, 0.42);
  --zen-card-strong: rgba(9, 16, 20, 0.6);

  /* The site used to paint each section in a different app theme colour.
     For the Zen look every section is now transparent over the global
     gradient, and every card resolves to the same frosted panel. The
     per-theme variable names are kept so the section/card rules below
     need no changes. */
  --midnight-bg: transparent; --midnight-card: var(--zen-card);
  --forest-bg:   transparent; --forest-card:   var(--zen-card);
  --violet-bg:   transparent; --violet-card:   var(--zen-card);
  --dusk-bg:     transparent; --dusk-card:     var(--zen-card);
  --slate-bg:    transparent; --slate-card:    var(--zen-card);
  --rose-bg:     transparent; --rose-card:     var(--zen-card);
  --hotpink-bg:  transparent; --hotpink-card:  var(--zen-card);
  --mono-bg:     transparent; --mono-card:     var(--zen-card);
  --orange-bg:   transparent; --orange-card:   var(--zen-card);
}

html {
  scroll-padding-top: 57px;
}

/* === Top nav === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 21, 28, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-brand {
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--cream);
  flex-shrink: 0;
}

.site-nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav-links::-webkit-scrollbar { display: none; }

.site-nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--cream-muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav-links a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

/* Scroll-spy: the section currently under the nav highlights in the accent
   teal. Declared after :hover, and repeated for the hover state, so resting
   the pointer on the active link doesn't knock it back to cream. Colour only
   — changing the weight would reflow the whole nav as you scroll. */
.site-nav-links a.is-active,
.site-nav-links a.is-active:hover {
  color: var(--accent);
}

.site-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav.is-open .site-nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .site-nav-toggle { display: flex; }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    flex-direction: column;
    gap: 2px;
    background: rgba(12, 19, 26, 0.96);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    animation: siteNavDrop 0.18s ease-out;
  }

  .site-nav.is-open .site-nav-links {
    display: flex;
  }

  .site-nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@keyframes siteNavDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background: var(--zen-top);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Zen gradient backdrop — pinned to the viewport so the calm navy→teal
   wash sits behind everything as you scroll, just like the app's
   gameplay screen. A pseudo-element (rather than background-attachment:
   fixed) keeps it smooth on iOS Safari. The faint accent glows echo the
   subtly animated Zen backgrounds without the motion. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 45% at 50% 2%, var(--glow), transparent 70%),
    radial-gradient(80% 55% at 50% 100%, var(--glow-soft), transparent 72%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

/* === Typography — matches app === */
.title-chess {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--cream);
}

.title-peace {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(115,199,173,0.2);
  letter-spacing: -0.01em;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

h3 { color: var(--cream); line-height: 1.2; }

.mode-text h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
  margin-bottom: 14px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Phone Frame === */
.phone-frame {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 1350 / 2760;
}

.phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/blank-frame.webp');
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

.phone-frame img {
  position: absolute;
  top: 2.54%;
  left: 5.41%;
  width: 89.11%;
  height: 96.52%;
  object-fit: cover;
  object-position: top center;
  display: block;
  max-width: none;
  /* Clip corners to match the phone frame's rounded screen corners.
     Top corners: transparent ~51 PNG px (10.6 CSS px) from left edge.
     Bottom corners: much larger — up to 188 PNG px (39 CSS px) from left edge.
     Syntax: top-left top-right bottom-right bottom-left / h-radii / v-radii */
  -webkit-clip-path: inset(0 round 10% 10% 25% 25% / 4% 4% 5% 5%);
  clip-path: inset(0 round 10% 10% 25% 25% / 4% 4% 5% 5%);
}

.phone-frame-small { width: 220px; }

/* === App Store Button === */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.app-store-btn {
  display: inline-block;
  width: 180px;
  height: 60px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-store-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-kofi-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #FF5E5B;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.hero-kofi-link:hover {
  color: #ff7370;
  transform: translateY(-1px);
}

/* Our Android badge: the App Store badge's proportions (3:1, here 180 x 60 to match it) and black,
   with only the word Android (Google's Play badge would say the app is on Google Play, and it isn't
   yet). Opens the Android pop-up. Same design as the web daily's .android-badge. */
.android-beta-btn {
  --h: 60px;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--h) * .17);
  box-sizing: border-box; height: var(--h); width: calc(var(--h) * 3);
  background: #000; border: 1px solid #A6A6A6; border-radius: calc(var(--h) * .18); color: #fff;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.android-beta-btn:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.android-beta-icon { flex: none; width: calc(var(--h) * .5); height: calc(var(--h) * .5); }
.android-beta-word { font-size: calc(var(--h) * .42); font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

/* Get in touch: a quiet line under the badges, above Ko-fi. */
.hero-contact-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.hero-contact-link:hover { color: var(--cream); transform: translateY(-1px); }
/* Phones: both badges a little smaller so they sit side by side, as on desktop. Below 360px
   there isn't room, so they stack at full size. */
@media (max-width: 420px) and (min-width: 360px) {
  .hero-actions { gap: 10px; flex-wrap: nowrap; }
  .app-store-btn { width: 150px; height: 50px; }
  .android-beta-btn { --h: 50px; }
}

/* === Hero — Midnight === */
.hero {
  position: relative;
  background: var(--midnight-bg);
  display: flex;
  /* Top-align so the content sits a fixed distance below the floating
     review badges; mobile re-centers via the responsive media query. */
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  /* Top padding: the fixed nav (57px) plus a small gap, so the playable daily fits
     on the first screen. Bottom padding: the row the floating review badges sit in,
     under the daily. */
  padding: 93px 40px 260px;
  overflow: hidden;
}

/* === Floating review badges ===
   Two App Store review cards that orbit the hero, echoing the floating
   piece animations on the chess board. Hidden on small screens because
   the hero stacks vertically and there's no room for orbiters. */
.hero-review {
  position: absolute;
  z-index: 5;
  width: 264px;
  padding: 11px 15px;
  background: rgba(26, 34, 40, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  opacity: 0;
  animation: heroReviewFade 0.8s ease-out forwards,
             heroReviewBob 6s ease-in-out infinite;
}

/* Badge outer edges are tied to the centered hero layout: the left
   badge's left edge aligns with hero-content (where "Chess" begins),
   the right badge's right edge aligns with the playable daily's right edge.
   --review-left / --review-right are set by a small inline script that
   measures the rendered positions; the calc() fallback is close enough
   if the script hasn't run yet. */
.hero-review-tr {
  --rot: 2deg;
  bottom: 64px;
  right: var(--review-right, max(40px, calc(50% - 445px)));
  animation-delay: 1.4s, 2.6s;
}

/* The three badges sit in a row at the bottom of the hero, under the content
   and the playable daily (they used to sit above them). */
.hero-review-bl {
  --rot: -2deg;
  bottom: 64px;
  left: var(--review-left, max(40px, calc(50% - 445px)));
  animation-delay: 1.6s, 3.0s;
}

/* Top-centre featured badge — sits between the two App Store badges and
   carries the press pull-quote. Wider, accent-ringed, and untilted so the
   eye reads it as the pinned/featured one. */
.hero-review-tc {
  --rot: 0deg;
  width: 280px;
  bottom: 64px;
  left: 50%;
  margin-left: -140px;
  animation-delay: 1.0s, 2.2s;
  z-index: 6;
  border-color: rgba(115,199,173,0.55);
  box-shadow: 0 0 0 1px rgba(115,199,173,0.35) inset,
              0 0 28px rgba(115,199,173,0.22),
              0 14px 36px rgba(0, 0, 0, 0.5);
}

.hero-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-review-stars {
  color: #FFC83D;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(255, 200, 61, 0.4);
  line-height: 1;
}

.hero-review-source {
  font-size: 0.62rem;
  color: var(--cream-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-review-quote {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  margin: 0;
}

/* Press variant of the floating hero badge — no stars row, accent-tinted
   source label so "Daring Fireball" reads as a publication, not a user.
   Quote bumps a touch larger so the press card carries similar visual
   weight (and line count) to the App Store cards alongside it. */
.hero-review-press .hero-review-source {
  color: var(--accent);
  font-weight: 600;
}

.hero-review-press .hero-review-quote {
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Award variant of the featured centre badge. Must follow the .hero-review-press
   rules above — same specificity, so source order decides the source colour.
   The gold ring and gold label carry the award; the stars deliberately keep the
   App Store star colour, because they sit inches from two App Store ratings and
   a second, duller gold there reads as a mistake rather than a distinction. */
.hero-review-award {
  border-color: rgba(216, 184, 99, 0.6);
  box-shadow: 0 0 0 1px rgba(216, 184, 99, 0.35) inset,
              0 0 28px rgba(216, 184, 99, 0.2),
              0 14px 36px rgba(0, 0, 0, 0.5);
}

.hero-review-award .hero-review-source { color: var(--award); }

@keyframes heroReviewFade {
  from { opacity: 0; transform: translateY(20px) rotate(var(--rot, 0deg)); }
  to   { opacity: 1; transform: translateY(0)    rotate(var(--rot, 0deg)); }
}

@keyframes heroReviewBob {
  0%, 100% { transform: translateY(0)   rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-review {
    opacity: 1;
    transform: rotate(var(--rot, 0deg));
    animation: none;
  }
}

.hero-content { max-width: 460px; }

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 12px;
  line-height: 1.1;
}

.tagline {
  font-size: 1.2rem;
  color: var(--cream-muted);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--cream-muted);
  margin-bottom: 16px;
  max-width: 400px;
}

.subtitle-cta-lead {
  margin-bottom: 32px;
}

/* === Sections === */
/* Consecutive sections stack their padding, so the space above a heading is
   twice this figure: 56px gives 112px above against the heading's 56px below,
   a 2:1 ratio. At the old 100px it was 200:56, which with the subtitles gone
   left each single-line heading marooned between its section and the last. */
.section { padding: 56px 40px; position: relative; }

/* Glowing highlight line between consecutive sections. Echoes the thin
   luminous dividers in the app (e.g. above "Board" in Settings, and below
   the menu card on the home screen). Colour tracks the scroll-morph
   backdrop. The adjacent-sibling selector means the first section after
   the press strip gets none — only the seams between sections glow. */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 84%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-core), transparent);
  box-shadow: 0 0 14px 0 var(--line-glow);
  pointer-events: none;
}

.section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 56px;
}

/* A heading that still has a subtitle under it hugs that subtitle instead, and
   the subtitle carries the 56px gap. Without this the two would stack their
   margins and leave a gulf. */
.section h2:has(+ .section-subtitle) {
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--cream-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* === Cross-device family shot (iPhone · iPad · Mac) ===
   Apple-style overlapping line-up: the MacBook sits behind, with the iPad
   and iPhone stepping in front of it, all bottom-aligned and sized to
   roughly real-world proportions (phone smallest, Mac the widest object).
   Everything is percentage-based so it scales intact down to mobile. */
.device-trio {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 8px auto 0;
  aspect-ratio: 100 / 42;
}

.device-trio img {
  position: absolute;
  bottom: 0;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

/* Left-to-right: iPhone, iPad, Mac (smallest → largest). Smaller devices
   sit in front, overlapping the next one along. Widths track the devices'
   real-world proportions (≈77.6 : 178 : 312 mm wide) so they read at the
   correct relative sizes — the iPad even stands a touch taller than the
   open MacBook, as it does in real life. */
.trio-iphone { width: 12%; left: 5%;    z-index: 3; }
.trio-ipad   { width: 28%; left: 13.5%; z-index: 2; }
.trio-mac    { width: 62%; left: 33%;   z-index: 1; }

/* === How It Works — Forest === */
.how-it-works { background: var(--forest-bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step { text-align: center; }
.step .phone-frame { margin: 0 auto 20px; }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--cream-muted); font-size: 0.95rem; }

/* === Modes — Violet === */
.modes { background: var(--violet-bg); }

.mode-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.mode-row:last-child { margin-bottom: 0; }
.mode-row-reverse { flex-direction: row-reverse; }
.mode-text { flex: 1; }
.mode-text p { color: var(--cream-muted); font-size: 1.05rem; line-height: 1.7; }

/* Extra modes grid */
.modes-extra-grid {
  display: grid;
  /* minmax(0, …): a plain 1fr column can't shrink below its phone frame, which made the
     page wider than a phone's screen (440 px at 390) and pushed the menu button off it. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.mode-card {
  text-align: center;
}

.mode-card .phone-frame {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 220px; /* .phone-frame-small's size, now shrinking to fit its column */
}

.mode-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}

.mode-card p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Platforms — iPad & Mac === */
.platforms { background: var(--midnight-bg); }

.platforms-lead {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.platforms-devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.platforms-devices img {
  display: block;
  width: 100%;
  height: auto;
}

.device-mac { flex: 0 1 640px; max-width: min(640px, 92vw); }
.device-ipad { flex: 0 1 260px; max-width: min(260px, 60vw); }

/* === Customisation — Rose === */
.customisation { background: var(--orange-bg); }

/* Both screenshots sit together as a pair beside the combined copy. */
.customisation-frames {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-shrink: 0;
}

.customisation-frames .phone-frame { width: 200px; }

.customisation-text h2 { text-align: left; margin-bottom: 16px; }

.customisation-text p {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px;
}

.customisation-content {
  display: flex;
  align-items: center;
  gap: 64px;
  justify-content: center;
}

.customisation-text h2 { text-align: left; margin-bottom: 16px; }

.customisation-text p {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px;
}

.customisation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customisation-list li {
  color: var(--cream-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.customisation-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* === Widgets — Slate === */
.widgets { background: var(--slate-bg); }

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.widget-card {
  background: var(--slate-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.widget-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(115,199,173,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.widget-card h3 {
  font-size: 1.0rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.widget-card p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Accessibility — Slate === */
.accessibility { background: var(--rose-bg); }

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.access-card {
  background: var(--rose-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.access-card h3 {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.access-card p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Screenshots — Rose === */
.screenshots { background: var(--forest-bg); }

.screenshot-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-scroll .phone-frame { scroll-snap-align: center; flex-shrink: 0; width: 220px; }
.screenshot-scroll::-webkit-scrollbar { display: none; }
.screenshot-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* === Quotes — Dusk === */
.quotes { background: var(--hotpink-bg); }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quotes-subhead {
  text-align: center;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

.quotes-subhead + .quotes-grid { margin-bottom: 48px; }
.quotes .section-inner > .quotes-subhead:first-of-type { margin-top: 40px; }
.quotes .section-inner > .quotes-subhead + .quotes-grid + .quotes-subhead { margin-top: 32px; }

.quote-card {
  background: var(--hotpink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.quote-card::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.quote-card blockquote {
  font-size: 1.0rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--cream-muted);
}

.quote-card cite a {
  color: var(--accent);
  border-bottom: 1px solid rgba(115,199,173,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.quote-card cite a:hover { border-bottom-color: var(--accent); }

/* Press-tier card — same shape, accent ring + tint to mark it as
   editorial coverage rather than an App Store review. */
.quote-card-press {
  border-color: rgba(115,199,173,0.45);
  box-shadow: 0 0 0 1px rgba(115,199,173,0.18) inset,
              0 8px 24px rgba(0,0,0,0.25);
}

.quote-card-press::before { opacity: 0.55; }

.quote-card-press blockquote { font-size: 1.08rem; }

/* Award-tier card — an editorial award outranks a plain press quote, so it
   swaps the accent ring for gold and leads with the award line instead of
   the decorative quote glyph (which would collide with it). */
.quote-card-award {
  border-color: rgba(216, 184, 99, 0.5);
  box-shadow: 0 0 0 1px rgba(216, 184, 99, 0.22) inset,
              0 8px 28px rgba(0,0,0,0.3);
}

.quote-card-award::before { content: none; }

/* A one-line quote in a full-height grid cell reads as a half-empty card, so
   short solo cards centre their content rather than stranding it at the top.
   The decorative glyph is absolutely positioned, so it stays in the corner. */
.quote-card-centred {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.award-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0 0 14px;
}

.award-stars {
  color: var(--award);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.award-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--award);
  font-weight: 600;
}

/* Screen-reader-only text: the star glyphs are decorative, so the rating is
   restated here for assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Stack two short press cards in one grid cell, each taking ~half the height
   of a normal card. Collapses gracefully on mobile when the parent grid
   becomes a single column. */
.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote-stack > .quote-card { flex: 1; }

.quote-card-short { padding: 32px 28px 14px; }
.quote-card-short blockquote { margin-bottom: 8px; }

/* App Store review cards: cite (★★★★★ App Store review) sits above
   the quote, in gold. Hide the decorative " mark since the cite now
   carries the visual weight at the top. */
.quote-card-app-store::before { display: none; }

.quote-card-app-store cite {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #E8B341;
  margin-bottom: 12px;
}

/* === Features — Hot Pink === */
.features { background: var(--dusk-bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--dusk-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(115,199,173,0.25);
}

.feature h3 { font-size: 1.0rem; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--cream-muted); font-size: 0.9rem; }

/* === FAQ — Forest === */
.faq { background: var(--orange-bg); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--orange-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.faq-item h3 {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-item a { color: var(--accent); }

@media (max-width: 600px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* === CTA — Mono === */
.cta {
  text-align: center;
  background: var(--mono-bg);
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { color: var(--cream-muted); font-size: 1.05rem; margin-bottom: 28px; }
.cta-support { margin-top: 20px; margin-bottom: 0; font-size: 0.95rem; }
.cta-support a { color: var(--accent); }

/* === Support the developer — Rose === */
.support-dev {
  background: var(--rose-bg);
  text-align: center;
}

.support-dev h2 {
  margin-bottom: 28px;
}

.support-dev .section-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: #FF5E5B;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 94, 91, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.kofi-btn:hover {
  transform: translateY(-2px);
  background: #ff7370;
  box-shadow: 0 10px 28px rgba(255, 94, 91, 0.45);
}

.support-dev-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--cream-muted);
}

/* === Footer === */
footer {
  background: var(--zen-card-strong);
  border-top: 1px solid var(--border);
  color: var(--cream-muted);
  padding: 48px 40px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }
.footer-contact { font-size: 0.9rem; margin-bottom: 16px; }
.footer-contact a { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: rgba(248,237,217,0.25); }

/* === Press strip ===
   Slim band between the hero and How-to-Play that surfaces editorial
   coverage. Visually separates the indie marketing copy below from the
   third-party validation row, without the weight of a full section. */
.press-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 11px;
  padding: 18px 16px;
  background: rgba(0,0,0,0.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.press-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.press-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.94rem;
  color: var(--cream);
}

a.press-name {
  border-bottom: 1px solid rgba(115,199,173,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

a.press-name:hover { color: var(--accent); border-bottom-color: var(--accent); }

.press-item[hidden] { display: none; }

/* Separators are drawn, not marked up: every visible item that has a visible
   item before it gets a leading dot. So whichever names the fitter drops,
   there is never a stray dot or one leading the row. */
.press-item:not([hidden]) ~ .press-item:not([hidden])::before {
  content: '·';
  color: var(--cream-muted);
  margin-right: 11px;
}

@media (max-width: 600px) {
  .press-strip { padding: 14px 16px; }
  .press-name { font-size: 0.98rem; }
}

/* === Legal Pages (Privacy, Terms) === */
.legal { background: var(--midnight-bg); padding-top: 60px; }
.legal h2 { text-align: left; margin-bottom: 4px; }

.legal-back {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-updated {
  color: var(--cream-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

/* === Android beta page (android.html): two numbered steps, each with its link === */
.beta-page { min-height: 72vh; } /* a short page, so the footer doesn't float halfway up */
.beta-page .section-inner { max-width: 640px; }
.beta-intro { color: var(--cream-muted); font-size: 1.02rem; line-height: 1.65; margin: 12px 0 28px; }
.beta-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.beta-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.beta-step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(115,199,173,0.14); color: var(--accent); font-weight: 700;
}
.beta-step h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.beta-step p { color: var(--cream-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 14px; }
.beta-step strong { color: var(--cream); font-weight: 600; }
.beta-btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: #0e161e; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.beta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(115,199,173,0.25); }
.beta-notes { color: var(--cream-muted); font-size: 0.92rem; line-height: 1.6; padding-left: 20px; margin: 0; }
.beta-notes li + li { margin-top: 6px; }

.legal-content {
  max-width: 720px;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-content p { margin-bottom: 16px; }

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a { color: var(--accent); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    min-height: auto;
    padding: 60px 24px;
  }

  .hero-content { max-width: 100%; }
  .hero-icon { margin: 0 auto 24px; }
  .subtitle { margin: 0 auto 16px; }
  .subtitle-cta-lead { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }

  /* Floating review badges fall into normal flow inside hero-content on
     mobile, appearing below the tagline. */
  .hero-review {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 360px;
    /* Top margin separates the pair from the tagline above. */
    margin: 18px auto 0;
    /* Reset rotation so they read upright on mobile. */
    --rot: 0deg;
    /* Keep fade-in but skip the bob to feel calm. */
    animation: heroReviewFade 0.6s ease-out forwards;
    animation-delay: 0.2s;
  }
  /* Tight stack between the badges. */
  .hero-review + .hero-review { margin-top: 6px; }
  /* Bottom margin on the last badge separates the stack from the subtitle. */
  .hero-review:last-of-type { margin-bottom: 32px; }
  /* Stagger the fade-ins down the stack. */
  .hero-review-tc { animation-delay: 0.4s; }
  .hero-review-tr { animation-delay: 0.6s; }
  /* Centre the stars + 'App Store review' row to match the centred hero text. */
  .hero-review-meta { justify-content: center; }

  .steps { grid-template-columns: 1fr; gap: 48px; }

  .mode-row,
  .mode-row-reverse {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .mode-text h3 { text-align: center; }

  .customisation-content { flex-direction: column; text-align: center; }
  .customisation-text h2 { text-align: center; }
  .customisation-list { align-items: center; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .modes-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widgets-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 64px 20px; }
  .section h2 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .widgets-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 16px; align-items: center; }
  .modes-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .mode-card .phone-frame { max-width: 200px; }
  .phone-frame-small { width: 200px; }
  .customisation-frames .phone-frame { width: 140px; }
  .screenshot-scroll .phone-frame { width: 200px; }
  .screenshot-scroll { padding: 0 20px 20px; gap: 16px; }
}

/* The menu's Today’s Daily link, in the accent colour. */
.site-nav-links a.site-nav-daily { color: var(--accent); font-weight: 600; }

/* ── Phone hero order: title → the playable daily → the Mac|Life quote →
   download badges → get in touch / Ko-fi → the other quotes (Sam, 30 Oct;
   the daily replaced the puzzle preview and the daily link, 24 Nov).
   hero-content's children are lifted into the hero's own column with
   display: contents, so the daily can sit between them. ── */
@media (max-width: 900px) {
  .hero { gap: 0; padding-top: calc(57px + env(safe-area-inset-top, 0px) + 28px); }
  .hero-content { display: contents; }
  .hero-icon        { order: 1; }
  .hero h1          { order: 2; }
  .tagline          { order: 3; }
  .hero-daily       { order: 4; margin: 26px auto 0; }
  .hero-review-tc   { order: 6; margin-top: 22px !important; margin-bottom: 0 !important; }
  .subtitle         { order: 7; }
  .subtitle-cta-lead{ order: 8; }
  .hero-main       { display: contents; }
  .hero-actions     { order: 9; margin-bottom: 24px; }
  .hero-signup-email{ order: 10; width: 100%; max-width: 440px; margin: 0 auto 24px; }
  .hero-links       { order: 11; justify-content: center; }
  .hero-review-bl   { order: 12; margin-top: 40px !important; }
  .hero-review-tr   { order: 13; }
}

/* ── Today's daily, playable in the hero (the web daily in a frame; index.html .hero-daily) ──
   A big heading over it says it is playable right here. The frame has a fixed size: the daily
   lays itself out to fit the frame it is given. 700px tall leaves it its normal (not compact)
   header; narrower than 700px wide keeps its phone layout, where the results fill the frame and
   Show Board folds them away. */
.hero-daily { flex: none; width: 420px; text-align: center; }
/* Wider than the frame under it, so it stays one line at this size. */
.hero-daily-title { font-size: 2.8rem; margin: 0 -40px 6px; white-space: nowrap; }
.hero-daily-accent { color: var(--accent); text-shadow: 0 0 16px var(--accent-glow); }
.hero-daily-sub { font-size: 1rem; color: var(--cream-muted); margin: 0 0 18px; }
.hero-daily-frame {
  /* Fits the first screen under the nav and heading; below 620px the daily
     switches to its compact header and Dock, made for short screens. */
  height: clamp(560px, calc(100vh - 230px), 700px);
  border-radius: 28px;
  overflow: hidden;
  background: #2E3847;
  border: 1px solid rgba(115,199,173,0.38);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hero-daily-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* The Android pop-up (index.html #android-modal), opened by the hero's Android badge: this page's
   overlay and backdrop around the shared card (.cpa-*, below). */
.android-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.android-modal[hidden] { display: none; }
.android-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
html.modal-open { overflow: hidden; }

/* ── The Android pop-up card (.cpa-*). The SAME block is in chesspeace-website/style.css and
   web-daily/public/css/app.css, so the pop-up looks identical on the homepage and the daily page:
   change one, copy it to the other. Every font, size and colour is set here, so neither page's own
   styles leak in; each page keeps only its own overlay and backdrop around the card. ── */
.cpa-card {
  position: relative; box-sizing: border-box; width: 100%; max-width: 460px; /* the title on one line */
  padding: 26px 24px 12px; border-radius: 24px; text-align: center;
  background: #242B38; border: 1.5px solid rgba(247, 237, 217, 0.32); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  line-height: 1.45; color: #F7EDD9; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.cpa-title {
  margin: 0; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.25;
  letter-spacing: 0; text-shadow: none; color: #F7EDD9; text-wrap: balance;
}
.cpa-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: #B8B2A6; text-wrap: balance; }
/* Under the title: Join the test version now, full width, straight to the steps. Then "Or get an
   email…" (.cpa-sub) and the launch list: the email box and Keep me updated on one row
   (stacking only when the card is too narrow for both). */
.cpa-join { display: block; box-sizing: border-box; width: 100%; margin: 18px 0 0; text-align: center; text-decoration: none; }
.cpa-form { margin: 16px 0 0; } /* the same as above the email line, so it sits midway */
.cpa-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cpa-row .cpa-input { flex: 3 1 180px; width: auto; min-width: 0; } /* takes most of the row */
.cpa-row .cpa-btn { flex: 1 0 auto; }
.cpa-form[hidden] { display: none; }
.cpa-input {
  box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(247, 237, 217, 0.22); background: #1C222D; color: #F7EDD9;
  font-family: inherit; font-size: 16px; line-height: 1.25;
}
.cpa-input:focus { outline: 2px solid #73C7AD; outline-offset: 1px; }
.cpa-btn {
  padding: 12px 16px; border: 0; border-radius: 12px; cursor: pointer;
  background: #73C7AD; color: #1F2633; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.25;
}
.cpa-btn:disabled { opacity: 0.5; }
.cpa-btn:focus-visible, .cpa-close:focus-visible { outline: 3px solid #73C7AD; outline-offset: 2px; }
.cpa-consent { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: #8C877A; }
.cpa-consent a { color: #73C7AD; }
.cpa-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #73C7AD; }
.cpa-msg.err { color: #FF8A80; }
.cpa-msg[hidden] { display: none; }
.cpa-msg button { background: none; border: 0; padding: 0; font: inherit; color: #73C7AD; text-decoration: underline; cursor: pointer; }
.cpa-close {
  display: inline-block; margin: 6px 0 0; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  color: #B8B2A6; font-family: inherit; font-size: 15px; line-height: 1.25;
}
.cpa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cpa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Phones: a little tighter, so the title stays on one line where it can. */
@media (max-width: 420px) {
  .cpa-card { padding-left: 18px; padding-right: 18px; }
  .cpa-title { font-size: 17px; }
  .cpa-btn { font-size: 15px; padding-left: 12px; padding-right: 12px; }
}
/* ── end of the shared Android pop-up block ── */

/* The two sign-up cards: the morning email in the left column, the Android list under the daily (index.html .hero-signup). */
.hero-signup {
  text-align: left;
  background: #2E3847; border: 1px solid rgba(115,199,173,0.28); border-radius: 18px; padding: 14px 16px 12px;
}
.hero-signup-title { margin: 0 0 10px; color: var(--cream); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.hero-signup-form { display: flex; gap: 8px; }
.hero-signup-email[hidden], .hero-signup-form[hidden], .hero-signup-msg[hidden] { display: none; }
.hero-signup-form input[type="email"] {
  flex: 1; min-width: 0; padding: 10px 13px; border-radius: 11px; font: inherit; font-size: 16px;
  border: 1px solid rgba(248,237,217,0.22); background: #242B38; color: var(--cream);
}
.hero-signup-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hero-signup-form button {
  flex: none; padding: 10px 16px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--accent); color: #1F2633; font: inherit; font-weight: 700;
}
.hero-signup-form button:disabled { opacity: 0.5; }
.hero-signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero-signup-consent { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--cream-muted); }
.hero-signup-msg { margin: 8px 0 0; font-size: 0.9rem; color: var(--accent); }
.hero-signup-msg.err { color: #FF8A80; }
@media (max-width: 900px) {
  .hero-daily { width: 100%; max-width: 440px; }
  .hero-daily-title { font-size: min(2.6rem, 8.2vw); margin: 0 0 6px; } /* one line down to a 320px screen */
  /* As tall as the puzzle needs at this width (its board is as wide as the frame, plus about
     330px of title, Dock and buttons), but never taller than the screen below the nav. */
  .hero-daily-frame { height: min(700px, calc(100svh - 80px), calc(min(440px, 100vw - 48px) + 330px)); min-height: 560px; border-radius: 24px; }
}

/* Desktop hero: the left column sits level with the middle of the playable daily, and only
   the Mac|Life quote stays, under the links (the two App Store quotes are in the reviews
   section further down). Phones keep all three in the stacked order above. */
@media (min-width: 901px) {
  /* A grid (index.html .hero): the Mac|Life quote and "Play today's daily now" share the top row;
     under it the left column (.hero-main, the hero's usual stack and spacing) sits centred beside
     the daily. hero-content and hero-daily step aside
     (display: contents) so their children sit in the grid themselves. */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 460px) clamp(32px, 5vw, 80px) 420px;
    grid-template-areas:
      "review . dhead"
      "main   . frame";
    justify-content: center;
    align-items: start;
    gap: 22px 0;
    padding-bottom: 80px;
  }
  .hero-content, .hero-daily { display: contents; }
  .hero-review-bl, .hero-review-tr { display: none; }
  .hero-review-tc {
    /* Wide enough for the quote to sit on three lines, and set in from the left column's edge. */
    grid-area: review; align-self: center; justify-self: end; width: 340px;
    position: relative; left: auto; bottom: auto; margin: 0 24px 0 0;
  }
  .hero-daily-head { grid-area: dhead; align-self: center; text-align: center; }
  .hero-daily-sub { margin-bottom: 0; }
  .hero-daily-frame { grid-area: frame; }
  .hero-main { grid-area: main; align-self: center; }
  .hero-main .hero-signup-email { margin-bottom: 20px; }
  /* Get in touch and Ko-fi: one row, centred under the email box (both span the column). */
  .hero-main .hero-links { justify-content: center; }
  /* Signed up already, so no email box: the row lines up with the badges above it instead. */
  .hero-main .hero-signup-email[hidden] + .hero-links { justify-content: flex-start; }
}

/* Get in touch and Ko-fi, side by side. */
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.hero-links .hero-contact-link { margin: 0; }
.footer-credit { font-size: 0.72rem; color: var(--cream-muted); opacity: 0.7; margin-top: 8px; }
