/* Brainyard site: one stylesheet for the landing, privacy and thank-you pages.
   Layout adapted from the Yard Boss site; colours from the Garden theme. */

@font-face {
  font-family: "Fredoka";
  src: url("Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #22324d;
  --ink-2: #46536b;
  --ink-3: #6b7790;
  --line: rgba(28, 40, 64, 0.1);
  --bg: #fff8ea;
  --surface: #ffffff;
  --sky: #d6eedb;
  --sky-2: #f0f9ee;
  --grass: #a7c957;
  --hat: #f4b400;
  --hat-dark: #c98a00;
  --link: #3f6f2a;
  --red: #e07a5f;
  --timber: #b5838d;
  --glass: #6c8ead;
  --pipes: #2a9d8f;
  --paint: #6a994e;
  --tiles: #e9c46a;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 40, 64, 0.06), 0 2px 8px rgba(28, 40, 64, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 40, 64, 0.06), 0 12px 32px rgba(28, 40, 64, 0.08);
  --shadow-lg: 0 30px 60px rgba(28, 40, 64, 0.18), 0 8px 20px rgba(28, 40, 64, 0.1);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Fredoka", sans-serif; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--hat-dark); outline-offset: 3px; border-radius: 8px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.small { font-size: 14px; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--hat); color: var(--ink);
  font: 600 18px/1.1 "Fredoka", sans-serif; text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--hat-dark), var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: inset 0 -4px 0 var(--hat-dark), var(--shadow-md); }
.button:active { transform: translateY(1px); }
.button.dark { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 #0c1424, var(--shadow-sm); }
.button.ghost { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm); }
.button.big { min-height: 60px; font-size: 20px; padding: 14px 30px; }
.button.small { min-height: 42px; font-size: 16px; padding: 8px 18px; }
.button svg { width: 22px; height: 22px; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 249, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--ink); text-decoration: none;
  font: 700 21px/1 "Fredoka", sans-serif;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.topnav a:hover { color: var(--ink); }
.topbar .button { min-height: 40px; padding: 8px 18px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
  padding: 56px 0 0;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, #a8de86 0%, var(--grass) 100%);
  border-top: 4px solid #7cc256;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-text { padding-bottom: 96px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; margin-bottom: 20px;
  background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pipes); box-shadow: 0 0 0 4px rgba(76,175,122,0.2); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--paint); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 30em; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.cta-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cta-meta svg { width: 18px; height: 18px; color: var(--pipes); }
.cta-alt { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.store-cta { margin: 0 0 28px; }
/* Apple badge: unmodified artwork, clear space around it (Apple marketing guidelines). */
.store-badge { display: inline-block; padding: 6px; margin: -6px; line-height: 0; border-radius: 12px; }
.store-badge img { display: block; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--hat-dark); outline-offset: 2px; }
.android-h { font-size: 16px; color: var(--ink-2); max-width: 30em; margin: 0 0 12px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-self: end; padding-bottom: 28px; }
.phone {
  position: relative; z-index: 2;
  width: min(300px, 70vw);
  border-radius: 46px; padding: 10px;
  background: #0f1729;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3550;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--sky); }
/* The screen: a status bar, the app screenshot at its exact 540:1170 shape
   (so nothing is cropped and tap areas line up), and a home-indicator strip. */
.phone .screen {
  --sb-top: #f2e8cf; --sb-bottom: #f2e8cf;
  position: relative; display: flex; flex-direction: column; border-radius: 37px; overflow: hidden;
  background: linear-gradient(var(--sb-top) 50%, var(--sb-bottom) 50%);
}
.phone .screen[data-stage="solved"] { --sb-top: #a49d8b; --sb-bottom: #f3f5ea; }
.phone .statusbar {
  display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 4px 26px 0 30px;
  font: 600 12px/1 "Inter", sans-serif; color: #22324d;
}
.phone .sb-icons {
  width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8;
  background: linear-gradient(90deg, currentColor 70%, transparent 70%) content-box; padding: 1px;
}
.phone .viewport { position: relative; aspect-ratio: 540 / 1170; }
.phone .viewport img { position: absolute; inset: 0; border-radius: 0; object-fit: fill; }
.phone .homebar { height: 18px; display: grid; place-items: center; }
.phone .homebar::after { content: ""; width: 34%; height: 4px; border-radius: 2px; background: rgba(34, 50, 77, .55); }
.phone.live .screen img { opacity: 0; }
.phone.live .screen img.front { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .phone.live .screen img { transition: opacity .25s ease; }
}
.phone .tap {
  position: absolute; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: 14px;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.phone .tap[hidden] { display: none; }
.phone .tap:focus-visible { outline: 3px solid var(--sun, #e9c46a); outline-offset: -3px; }
.phone-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0;
  text-align: center; font-size: 14px; color: var(--ink-2);
}

/* Decorative floating blocks around the phone. */
.blocks { position: absolute; inset: 0; pointer-events: none; }
.blk {
  position: absolute; width: 54px; height: 54px; border-radius: 14px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.14), var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.blk.s { width: 38px; height: 38px; border-radius: 11px; }
.blk.red { background: var(--red); } .blk.timber { background: var(--timber); }
.blk.glass { background: var(--glass); } .blk.pipes { background: var(--pipes); }
.blk.paint { background: var(--paint); } .blk.tiles { background: var(--tiles); }
.blk.round { border-radius: 50%; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--hat-dark);
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Proof quote */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0 0 12px; font: 600 clamp(26px, 3.4vw, 36px)/1.2 "Fredoka", sans-serif;
}
.quote p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* How it plays */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 13px; background: var(--hat); color: var(--ink);
  font: 700 22px/1 "Fredoka", sans-serif; box-shadow: inset 0 -4px 0 var(--hat-dark);
}
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ink-2); margin: 0; }

/* Screens gallery */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 20px 28px; margin-top: 36px !important;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  max-width: var(--max); margin: 0 auto;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.gallery { justify-content: safe center; }
.gallery img {
  width: 200px; height: auto; border-radius: 22px;
  box-shadow: var(--shadow-md);
}

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,0.14);
}
.icon svg { width: 28px; height: 28px; }
.icon.red { background: var(--red); } .icon.glass { background: var(--glass); }
.icon.pipes { background: var(--pipes); } .icon.paint { background: var(--paint); }
.icon.tiles { background: var(--hat); color: var(--ink); }
.benefit h3 { font-size: 21px; margin: 4px 0 6px; }
.benefit p { color: var(--ink-2); margin: 0; }

/* Fair by design */
.fair {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 28px;
  background: linear-gradient(135deg, #effaf2 0%, #e4f6ea 100%);
  border: 1px solid rgba(76,175,122,0.25);
}
.fair h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.fair > div > p { color: var(--ink-2); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 28px; height: 28px; color: var(--pipes); }

/* Join */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.join-card {
  padding: 30px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.join-card h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 8px; }
.join-card h3 svg { width: 26px; height: 26px; }
.join-card > p { color: var(--ink-2); }
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.numbered li::before {
  content: counter(n); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--sky); font: 700 16px/1 "Fredoka", sans-serif;
}
.numbered .button { margin-top: 8px; }

/* Signup */
.signup {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start;
  padding: 44px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.signup h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 10px; }
.signup-intro p { color: var(--ink-2); }
form label.field { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
form input[type="email"] {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; color: var(--ink);
  background: #f7f9fc; border: 1.5px solid #d9e0ea; border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
form input[type="email"]:focus { outline: none; background: #fff; border-color: var(--glass); box-shadow: 0 0 0 4px rgba(79,179,232,0.2); }
fieldset { border: 0; padding: 0; margin: 18px 0 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.segmented { display: flex; gap: 8px; }
.segmented label {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 14px; border: 1.5px solid #d9e0ea; background: #f7f9fc;
  font-weight: 600; cursor: pointer; transition: 0.15s;
}
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--hat-dark); outline-offset: 2px; }
.checkrow { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-weight: 500; cursor: pointer; }
.checkrow input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
form .button { width: 100%; margin-top: 22px; }
.form-error {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: #fdecea; color: #8a1f11; font-weight: 600;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  margin: 0 0 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px;
  margin-top: -11px; border-radius: 50%; background: var(--sky-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322324d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* Final call to action */
.final {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: 32px;
  background: linear-gradient(160deg, #24345a 0%, var(--ink) 100%); color: #fff;
}
.final h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 12px; position: relative; }
.final p { color: rgba(255,255,255,0.75); font-size: 18px; margin-bottom: 28px; position: relative; }
.final .cta { justify-content: center; position: relative; }
.final .blk { opacity: 0.9; }

/* Footer */
footer.site {
  margin-top: 88px; padding: 40px 0 48px; background: var(--ink); color: rgba(255,255,255,0.7);
  font-size: 15px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer.site .brand { color: #fff; margin-right: auto; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* Platform-aware buttons: both show unless the phone type is known. */
.ios-only-inline, .android-only-inline { display: none; }
.is-ios .android-only, .is-android .ios-only { display: none; }
.is-ios .ios-only-inline, .is-android .android-only-inline { display: inline; }

/* ---------- Simple pages (privacy, thank you) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
  padding: 56px 0 44px; border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.page-head p { color: var(--ink-2); margin: 0; }
.prose { padding: 48px 0 0; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .updated { font-size: 15px; color: var(--ink-3); }
.panel {
  padding: 32px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 8px;
}


/* Launch-list form in the hero */
.hero-form {
  max-width: 480px; padding: 22px; margin-bottom: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md);
}
.hero-form fieldset { margin-top: 14px; }
.hero-form .button { margin-top: 16px; }
.form-note { margin: 10px 0 0; }

/* Language menu */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " \25BE"; font-size: 12px; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 160px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 9px; }
.langs li a:hover, .langs li a[aria-current] { background: var(--sky); color: var(--ink); }

/* Small "join the test now" block */
.test-now { max-width: 760px; margin: 28px auto 0; color: var(--ink-2); font-size: 15px; }
.test-now summary { cursor: pointer; font-weight: 600; color: var(--ink); text-align: center; }
.test-now p { margin: 10px 0 0; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; text-align: left; }
.join-col { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.join-col h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.join-col ol { margin: 0; padding-left: 20px; }
.join-col li + li { margin-top: 6px; }
.join-note { font-size: 14px; }
.is-ios .join .iphone { order: -1; }
@media (max-width: 640px) { .join { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 8px; }
  .hero-visual { padding-bottom: 40px; }
  .phone { width: min(260px, 66vw); }
  .steps-row, .benefit-grid, .join-grid { grid-template-columns: 1fr; }
  .fair, .signup { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  section.block { padding: 64px 0; }
  .topnav a.navlink { display: none; }
  .hero-form { max-width: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .cta .button { width: 100%; }
  .topbar .button { display: none; }
  .hero-form { padding: 18px; }
  .gallery img { width: 180px; }
  .benefit { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .final { border-radius: 24px; padding: 56px 20px; }
  .blk.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blk { animation: none; }
  .button { transition: none; }
}

/* ---------- Brainyard additions ---------- */
.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.puzzle { padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.puzzle img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; margin: 0 auto 18px; border-radius: 16px; }
.puzzle h3 { font-size: 22px; margin-bottom: 6px; }
.puzzle p { color: var(--ink-2); margin: 0; }
.hero-form .checkrow { margin: 8px 0 0; font-size: 15px; }
@media (max-width: 900px) { .puzzle-grid { grid-template-columns: 1fr; } }

/* ---------- Playable Flower Beds in the phone ---------- */
.phone .beds-live {
  position: absolute; z-index: 1; display: grid; touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.beds-live .cell {
  position: relative; display: grid; place-items: center; margin: 0; padding: 0;
  border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.beds-live .cell:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.beds-live .mark { pointer-events: none; }
.beds-live .mark.flower { width: 62%; height: 62%; fill: #D62246; }
.beds-live .mark.cross { width: 32%; height: 32%; fill: rgba(0, 0, 0, 0.45); }
.beds-live .cell.bad { background: rgba(179, 38, 30, 0.28); }
.beds-live .cell.bad .mark.flower { fill: #B3261E; }
.beds-live .cell.hinted { box-shadow: inset 0 0 0 3px #22324d; background: rgba(255, 255, 255, 0.45); }
.phone .demo-hint { border-radius: 50%; }
.phone .demo-banner {
  position: absolute; z-index: 2; margin: 0; padding: 6px 10px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1.3; text-align: center;
}
.phone .demo-banner[hidden] { display: none; }
.phone .demo-card {
  position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 1.5%;
  padding: 12px 12px 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md);
  text-align: center;
}
.phone .demo-card p { margin: 0 0 10px; font-family: "Fredoka", sans-serif; font-size: 17px; line-height: 1.2; color: var(--ink); }
.phone .demo-card .button { display: block; min-height: 0; margin-bottom: 2px; padding: 9px 12px; font-size: 16px; }
.phone .demo-card .linkish {
  margin: 0; padding: 6px; border: 0; background: none; font: inherit; font-size: 14px;
  color: var(--ink-2); text-decoration: underline; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .beds-live .mark { animation: mark-in .15s ease-out; }
  .beds-live.solved .mark.flower { animation: pop .5s ease-out; }
  .phone .demo-card { animation: card-in .25s ease-out; }
}
@keyframes mark-in { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
