/* ==========================================================================
   ruffledgoose.dev

   One studio, several apps. White and near-black surfaces, big type, rounded
   tiles. The studio is neutral; each app brings its own colour (--app) to its
   tiles and pages. The goose adds a bit of fun. No build step: this file ships
   as written.
   ========================================================================== */

/* ---------- Fonts (OFL, self-hosted, see /fonts/LICENSES.txt) ---------- */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-wght: 700;
  --display-track: -0.035em;

  --bg: #ffffff;
  --tile: #f4f4f1;
  --tile-2: #ebebe6;
  --raised: #ffffff;
  --text: #15171c;
  --sub: #5d6068;
  --ter: #8a8d94;
  --line: rgba(21, 23, 28, .08);
  --line-strong: rgba(21, 23, 28, .14);
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(21, 23, 28, .05), 0 12px 32px -8px rgba(21, 23, 28, .12);
  --shadow-lg: 0 2px 6px rgba(21, 23, 28, .06), 0 30px 60px -18px rgba(21, 23, 28, .25);

  --goose: #ff8426;
  --paper: #fff9ed;
  --ink: #202735;

  /* The app colour. Studio pages use ink; app pages override it. */
  --app: #15171c;
  --app-ink: #15171c;
  --app-soft: #f4f4f1;
  --on-app: #ffffff;

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }

/* Dark tokens, once for the system setting and once for data-theme="dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f; --tile: #16181d; --tile-2: #1e2127; --raised: #1b1e24;
    --text: #f4f3ef; --sub: #a3a6ad; --ter: #7c8088;
    --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
    --glass: rgba(22, 24, 29, .72);
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .8);
    --app: #f4f3ef; --app-ink: #f4f3ef; --app-soft: #16181d; --on-app: #0b0c0f;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f; --tile: #16181d; --tile-2: #1e2127; --raised: #1b1e24;
  --text: #f4f3ef; --sub: #a3a6ad; --ter: #7c8088;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
  --glass: rgba(22, 24, 29, .72);
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .8);
  --app: #f4f3ef; --app-ink: #f4f3ef; --app-soft: #16181d; --on-app: #0b0c0f;
}

/* App colours. */
.walk-and-snap { --app: #c14f17; --app-ink: #a8430f; --app-soft: #fdf0e6; --on-app: #fff; --app-grad: linear-gradient(150deg, #f27a32 0%, #d4561a 50%, #b03f08 100%); }
.plavari { --app: #2e7d4f; --app-ink: #1f5c39; --app-soft: #ebf4ec; --on-app: #fff; --app-grad: linear-gradient(150deg, #4fa26e 0%, #2e7d4f 55%, #1d5a37 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .walk-and-snap { --app: #ff8a47; --app-ink: #ffb07f; --app-soft: #2a1a10; --on-app: #1a0d05; --app-grad: linear-gradient(150deg, #b8541c, #7a2f08); }
  :root:not([data-theme="light"]) .plavari { --app: #5fc07f; --app-ink: #93dbab; --app-soft: #12241a; --on-app: #06140b; --app-grad: linear-gradient(150deg, #2f7a4c, #143f27); }
}
:root[data-theme="dark"] .walk-and-snap { --app: #ff8a47; --app-ink: #ffb07f; --app-soft: #2a1a10; --on-app: #1a0d05; --app-grad: linear-gradient(150deg, #b8541c, #7a2f08); }
:root[data-theme="dark"] .plavari { --app: #5fc07f; --app-ink: #93dbab; --app-soft: #12241a; --on-app: #06140b; --app-grad: linear-gradient(150deg, #2f7a4c, #143f27); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--goose) 30%, transparent); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.app-panel :focus-visible, .beta-card :focus-visible, .tile-app:focus-visible, .feature.accent :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.prose { max-width: 68ch; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 68ch; }
section { padding-block: clamp(36px, 6vw, 72px); }

h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: var(--display-wght); letter-spacing: var(--display-track);
  line-height: 1.04; margin: 0 0 .45em; color: var(--text); text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem); margin-top: 1.4em; }
h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.15; margin-top: 1.4em; letter-spacing: -0.02em; }
h2:first-child, h3:first-child, .eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 0; }
p, li { color: var(--sub); text-wrap: pretty; }
p { margin: 0 0 1.1em; }
strong, b { color: var(--text); font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--sub); max-width: 40ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--sub); margin-bottom: 18px; }
.meta { font-size: 14px; color: var(--ter); }
a { color: var(--app-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.studio a { color: var(--text); }
ul { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: .4em; }

/* ---------- Buttons and chips ---------- */

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-text); letter-spacing: -0.01em; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, background-color .2s ease, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg) !important; }
.btn-app { background: var(--app); color: var(--on-app) !important; }
.btn-ghost { background: var(--tile); color: var(--text) !important; }
.btn.is-pending { cursor: default; }
.btn.is-pending:hover { transform: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--glass); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.chip.soon::before { background: var(--goose); opacity: 1; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

/* ---------- Floating header ---------- */

.site-header { position: sticky; top: 12px; z-index: 30; padding-inline: var(--gutter); pointer-events: none; }
.site-header .bar {
  pointer-events: auto; position: relative; z-index: 2; display: flex; align-items: center; gap: 22px;
  width: min(100%, 920px); margin: 12px auto 0; padding: 8px 10px 8px 12px; border-radius: 999px;
  background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text) !important; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--sub); text-decoration: none; font-size: 14.5px; font-weight: 550; padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.site-nav a:hover { color: var(--text); background: var(--tile); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--tile-2); }
.site-nav a[aria-current="true"] { color: var(--text); font-weight: 650; }
.menu-toggle { display: none; border: 0; background: var(--tile); color: var(--text); font: 600 14px/1 var(--font-text); cursor: pointer; padding: 11px 15px; border-radius: 999px; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--tile); color: var(--sub); cursor: pointer; transition: color .2s; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); }
.lang button { font: 600 12px/1 var(--font-text); color: var(--sub); border: 0; background: none; padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lang a { font: 600 12px/1 var(--font-text); color: var(--sub); text-decoration: none; padding: 12px; border-radius: 999px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
html[data-lang="en"] [lang="de"]:not([data-set-lang]), html[data-lang="de"] [lang="en"]:not([data-set-lang]) { display: none !important; }
html:not([data-lang]) .lang { display: none; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 40; transform: translateY(-200%); padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip-link:focus { transform: none; color: var(--bg); }

/* App pages: a second floating bar in the app's colour, like Apple's product nav. */
.app-bar { pointer-events: auto; position: relative; z-index: 1; width: min(100%, 920px); margin: 8px auto 0; }
.app-bar .wrap { width: auto; display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--app) 12%, var(--glass)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app) 18%, transparent); }
.app-bar-name { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 var(--font-display); color: var(--text) !important; text-decoration: none; white-space: nowrap; }
.app-bar-name img { width: 28px; height: 28px; border-radius: 8px; }
.app-bar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; scroll-padding-inline: 20px; }
.app-bar nav::-webkit-scrollbar { display: none; }
.app-bar nav a { color: var(--sub); text-decoration: none; font-size: 13.5px; font-weight: 550; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.app-bar nav a:hover { color: var(--text); }
.app-bar nav a[aria-current] { color: var(--on-app); background: var(--app); }

@media (max-width: 760px) {
  .site-header { top: 8px; }
  .site-header .bar { gap: 10px; margin-top: 8px; }
  .brand span { font-size: 16px; }
  html[data-lang] .menu-toggle { display: inline-flex; margin-left: auto; }
  html[data-lang] .site-nav { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; padding: 8px; flex-direction: column; align-items: stretch; gap: 2px; border-radius: 24px; background: var(--raised); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
  html[data-lang] .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 16px; font-size: 16px; }
  .app-bar .wrap { gap: 8px; }
  .app-bar-name span { display: none; }
  .app-bar nav { margin-left: 0; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- Tiles (shared by home and app pages) ---------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--tile);
  padding: clamp(22px, 3vw, 36px); color: var(--text); text-decoration: none; isolation: isolate;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
a.tile:hover { transform: translateY(-4px) scale(1.005); box-shadow: var(--shadow-lg); color: var(--text); }
.tile h2, .tile h3 { margin: 0 0 .35em; }
.tile h2 { font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); }
.tile h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); }
.tile p { margin: 0; }
.tile .kicker { font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 10px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.tall { min-height: 520px; }
.mid { min-height: 300px; }
@media (max-width: 980px) {
  .span-3 { grid-column: span 6; } .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; } .span-6 { grid-column: span 12; }
}
@media (max-width: 560px) { .span-3 { grid-column: span 12; } .bento { gap: 12px; } .tall { min-height: 460px; } }

/* Tiles drift in as they scroll into view (where the browser supports it). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } }
  }
}

/* ---------- Phone frames and screenshot placeholders ---------- */

/* Apple product bezels (developer.apple.com/design/resources, "Product Bezels").
   The bezels are never published on their own: tools/devices.py renders each
   screenshot into the bezel and only that finished image goes on the page.
   Apple's marketing guidelines apply: shown as they are – no tilting, rotating,
   cropping, overlapping, shadows or animation, at least 200 px tall.
   Black iPhone on light pages, silver on dark ones (<picture> sources). */
.phone { position: relative; flex: none; width: 260px; aspect-ratio: 600 / 1227; }
.phone.framed picture, .phone.framed img { display: block; width: 100%; height: auto; }
/* Screens without a real screenshot yet get a plain, non-Apple placeholder card. */
.phone:not(.framed) { padding: 4%; border-radius: 13% / 6.4%; background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.phone:not(.framed) > .shot { width: 100%; height: 100%; border-radius: 10% / 4.8%; }
.watch { position: relative; flex: none; width: 150px; aspect-ratio: 416 / 496; padding: 6%; border-radius: 30%; background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.watch > .shot { width: 100%; height: 100%; border-radius: 26%; }
.watch .shot.todo { padding: 10px 10px; font-size: 11px; gap: 4px; }
.watch .shot.todo span { display: none; }
.watch .shot.todo b { font-size: 8px; letter-spacing: .04em; }
.watch .shot.todo strong { font-size: 12px; }
/* Devices never move: no reveal, hover or scroll animation on anything that holds one. */
.reveal:has(.phone, .watch) { animation: none !important; }
/* Until the real screenshot exists, the screen says what it should show.
   docs/screenshots.md lists every shot by its id. */
.shot.todo {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 20px; text-align: left; overflow: hidden; hyphens: auto;
  background: repeating-linear-gradient(135deg, var(--app-soft) 0 14px, color-mix(in srgb, var(--app) 9%, var(--app-soft)) 14px 28px);
  color: var(--text); font-size: 13px; line-height: 1.4;
}
.shot.todo b { font: 700 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--app-ink); }
.shot.todo strong { font: var(--display-wght) 19px/1.15 var(--font-display); letter-spacing: -0.02em; }
.shot.todo span { color: var(--sub); }

/* ---------- Home ---------- */

.home-hero { padding-block: clamp(36px, 7vw, 96px) 18px; }
.home-hero h1 { max-width: 12ch; }
.home-hero .lede { max-width: 44ch; }
.home-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.home-bento { padding-top: 16px; }

.tile-goose { background: radial-gradient(120% 90% at 50% 110%, #ffd9b8 0%, #fff1e2 45%, #fffaf3 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0; cursor: pointer; min-height: 420px; border: 0; font: inherit; width: 100%; }
.tile-goose img { width: min(78%, 360px); margin-bottom: -2px; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tile-goose:hover img { transform: rotate(-3deg); }
.tile-goose.honking img { animation: honk .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes honk { 30% { transform: rotate(-8deg) translateY(-10px) scale(1.03); } 60% { transform: rotate(4deg); } }
.tile-goose .bubble { position: absolute; top: 28px; left: 50%; transform: translateX(-10%); max-width: 70%; padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: #fff; color: #15171c; font: 700 18px/1.25 var(--font-display); letter-spacing: -0.01em; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
.tile-goose .hint { position: absolute; left: 24px; top: 24px; font-size: 12px; font-weight: 600; color: #8a6a50; }
:root[data-theme="dark"] .tile-goose { background: radial-gradient(120% 90% at 50% 110%, #4a2c16 0%, #251912 50%, #16181d 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-goose { background: radial-gradient(120% 90% at 50% 110%, #4a2c16 0%, #251912 50%, #16181d 100%); } }
:root[data-theme="dark"] .tile-goose { background: radial-gradient(120% 90% at 50% 110%, #4a2c16 0%, #251912 50%, #16181d 100%); }

.tile-app { color: #fff; background: var(--app-grad); display: flex; flex-direction: column; min-height: 560px; }
.tile-app h2, .tile-app h3, .tile-app p { color: inherit; }
.tile-app p { max-width: 30ch; }
.tile-app .app-id { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.tile-app .app-id img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.tile-app .app-id strong { color: inherit; font: 700 19px/1.1 var(--font-display); display: block; }
.tile-app .chip { background: rgba(255,255,255,.2); color: #fff; margin-top: 6px; }
.tile-app .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.18); width: fit-content; position: relative; z-index: 1; backdrop-filter: blur(8px); }
.tile-app.span-5 { padding-bottom: 380px; }
.tile-app.span-5 .go { position: absolute; left: clamp(22px, 3vw, 36px); bottom: clamp(22px, 3vw, 36px); }
@media (max-width: 980px) {
  .tile-app { min-height: 0; padding-bottom: 330px; }
  .tile-app .go, .tile-app.span-5 .go { position: absolute; left: 22px; bottom: 22px; }
}

.tile-fact { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 220px; }
.tile-fact .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--raised); box-shadow: var(--shadow); color: var(--text); }
.tile-fact .icon svg { width: 26px; height: 26px; }
.tile-fact h3 { margin-bottom: 6px; }
.tile-fact p { font-size: 15px; }

.tile-studio { background: var(--paper); color: var(--ink); }
.tile-studio { display: flex; flex-direction: column; }
.tile-studio h2 { color: var(--ink); max-width: 14ch; }
.stats { display: flex; gap: clamp(18px, 4vw, 48px); flex-wrap: wrap; margin-top: auto; padding-top: 30px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font: var(--display-wght) clamp(2.6rem, 2rem + 2vw, 4rem)/1 var(--font-display); letter-spacing: -0.04em; color: inherit; }
.stats span { font-size: 14px; color: #5d6068; }
.tile-studio p { color: #5d6068; max-width: 46ch; font-size: 17px; }
:root[data-theme="dark"] .tile-studio { background: var(--tile); color: var(--text); }
:root[data-theme="dark"] .stats span { color: var(--sub); }
:root[data-theme="dark"] .tile-studio h2 { color: var(--text); }
:root[data-theme="dark"] .tile-studio p { color: var(--sub); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-studio { background: var(--tile); color: var(--text); } :root:not([data-theme="light"]) .stats span { color: var(--sub); } :root:not([data-theme="light"]) .tile-studio h2 { color: var(--text); } :root:not([data-theme="light"]) .tile-studio p { color: var(--sub); } }
:root[data-theme="dark"] .tile-studio { background: var(--tile); color: var(--text); } :root[data-theme="dark"] .stats span { color: var(--sub); } :root[data-theme="dark"] .tile-studio h2 { color: var(--text); } :root[data-theme="dark"] .tile-studio p { color: var(--sub); }

.tile-egg { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 300px; }
.egg { align-self: center; width: 92px; height: 116px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(60% 50% at 35% 30%, #fff 0%, #f6efe3 60%, #e7dccb 100%); box-shadow: inset -8px -10px 20px rgba(120, 90, 50, .15), 0 18px 30px -14px rgba(0,0,0,.3); transform-origin: 50% 90%; animation: wobble 4s ease-in-out infinite; }
.egg::after { content: ""; display: block; width: 26px; height: 10px; margin: 46px 0 0 30px; border-top: 2px solid #b9a688; clip-path: polygon(0 0, 25% 100%, 50% 0, 75% 100%, 100% 0); opacity: 0; transition: opacity .3s; }
.tile-egg:hover .egg::after { opacity: 1; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(2deg); } }

.tile-contact { background: var(--text); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.tile-contact h3, .tile-contact p { color: inherit; }
.tile-contact p { opacity: .7; }
.tile-contact .btn { background: var(--bg); color: var(--text) !important; width: fit-content; }
.tile-contact.span-12 { flex-direction: row; align-items: center; gap: 24px; min-height: 0; flex-wrap: wrap; }
.tile-contact.span-12 h3 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); margin-bottom: 4px; }

/* ---------- App pages ---------- */

.app-hero { text-align: center; padding-block: clamp(44px, 8vw, 110px) 0; overflow: hidden; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); margin-bottom: 22px; }
.app-hero h1 { margin-inline: auto; max-width: 16ch; }
.app-hero .lede { margin-inline: auto; max-width: 38ch; }
.app-hero .actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }
.app-hero .meta { margin: 10px 0 0; }
.stage { position: relative; margin-top: clamp(40px, 6vw, 70px); padding: clamp(36px, 5vw, 64px) 20px; border-radius: var(--radius-xl); background: var(--app-grad); display: flex; justify-content: center; align-items: center; gap: clamp(18px, 4vw, 56px); }
.stage .phone { width: clamp(200px, 22vw, 280px); }
.stage .phone:nth-child(1), .stage .phone:nth-child(3) { width: clamp(180px, 19vw, 240px); }
@media (max-width: 700px) { .stage .phone:nth-child(1), .stage .phone:nth-child(3) { display: none; } }

.app-intro { text-align: center; }
.app-intro h2 { max-width: 18ch; margin-inline: auto; }
.app-intro p { max-width: 50ch; margin-inline: auto; font-size: 19px; }

.feature { display: flex; flex-direction: column; min-height: 300px; }
.feature.with-phone { min-height: 560px; }
.feature.with-phone .phone { margin: 28px auto 0; width: 220px; }
.feature.with-watch .watch { margin: auto auto 0; }
.feature .kicker { color: var(--app-ink); }
.feature p { max-width: 36ch; }
.feature.accent { background: var(--app-grad); color: #fff; }
.feature.accent h3, .feature.accent p, .feature.accent .kicker { color: inherit; }
.feature.accent p { opacity: 1; }
.feature.soft { background: var(--app-soft); }
.big-number { font: var(--display-wght) clamp(4.5rem, 3rem + 5vw, 8.5rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--app); margin: 0 0 10px; }
.big-number + h3 { margin-top: auto; }
.feature.accent .big-number { color: inherit; }
.dice { font-size: 96px; line-height: 1; margin: auto auto 6px; display: inline-block; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.feature:hover .dice { transform: rotate(200deg); }

.privacy-band { margin-top: 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: var(--tile); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 52px); }
.privacy-band h2 { margin: 0 0 12px; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.privacy-band li { display: flex; gap: 12px; align-items: center; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--raised); color: var(--text); font-weight: 600; }
.privacy-band li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--app); color: var(--on-app); font-size: 14px; flex: none; }
@media (max-width: 800px) { .privacy-band { grid-template-columns: 1fr; } }

.more-from { padding-top: 16px; }
.more-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px clamp(22px, 3vw, 40px); padding-left: 0; border-radius: var(--radius-xl); background: var(--tile); overflow: hidden; }
.more-card img.goose { width: 150px; height: auto; align-self: end; margin-bottom: -27px; }
.more-card .say { font: 700 20px/1.2 var(--font-display); color: var(--text); margin: 0 0 4px; }
.more-card p { margin: 0; }
.more-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .more-card { grid-template-columns: auto minmax(0, 1fr); padding: 22px 22px 22px 0; } .more-card img.goose { width: 110px; } .more-card .links { grid-column: 1 / -1; padding-left: 22px; } }

/* ---------- Text pages (legal, support, releases, Impressum) ---------- */

.hero { padding-block: clamp(40px, 6vw, 80px) 10px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); hyphens: auto; }
.card { background: var(--tile); border-radius: var(--radius-lg); padding: 24px 26px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 30px; }
.grid .card h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.grid .card p { margin-bottom: 0; font-size: 15.5px; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; font-size: 21px; border-radius: 14px; background: var(--raised); margin-bottom: 14px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; }
.points li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.points li:first-child { border-top: 0; padding-top: 0; }
.points .ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; font-size: 16px; border-radius: 12px; background: var(--tile); }
.points p { margin: 0; }
.doc { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr) 220px; gap: 60px; }
  .doc > .toc { order: 2; position: sticky; top: 150px; align-self: start; }
  .doc > .doc-body { order: 1; }
}
.toc p { font-size: 13px; font-weight: 600; color: var(--ter); margin: 0 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 12px; font-size: 14.5px; color: var(--sub); text-decoration: none; border-radius: 10px; }
.toc a:hover { color: var(--text); background: var(--tile); }
.doc-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); scroll-margin-top: 150px; }
.doc-body > :first-child { margin-top: 0; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--tile); border-radius: var(--radius); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--sub); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 20px; }
.faq .answer > :last-child { margin-bottom: 0; }
.release { display: grid; grid-template-columns: 1fr; gap: 6px; padding-block: 30px; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .release { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; } }
.release .when { font-size: 14.5px; color: var(--ter); padding-top: 4px; }
.release h3 { margin: 0 0 .6em; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--on-app); background: var(--app); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 4px; }
.notice { background: color-mix(in srgb, #f5a623 14%, var(--tile)); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px; }
.notice p { color: var(--text); margin: 0; }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(60px, 8vw, 110px); font-size: 14px; }
.site-footer > .wrap { position: relative; border-top: 2px solid var(--text); padding-block: 40px 30px; }
.footer-goose { position: absolute; right: 10px; bottom: 100%; margin-bottom: -2px; display: block; width: 120px; line-height: 0; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.footer-goose img { width: 100%; height: auto; }
.footer-goose:hover { transform: translateY(-8px) rotate(-6deg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font: 650 14px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0 0 12px; }
.footer-grid p { margin: 8px 0 10px; font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: var(--sub); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .footer-brand { font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 36px; color: var(--ter); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-studio { grid-column: 1 / -1; } .footer-goose { width: 96px; } }

/* ---------- 404 ---------- */

.lost { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding-block: clamp(40px, 7vw, 90px) 0; }
.lost .tile-goose { min-height: 380px; cursor: default; }
.lost .tile-goose img { transform: rotate(10deg) translate(-3%, 5%); }
@media (max-width: 800px) { .lost { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .feature:not(.with-phone):not(.with-watch) { min-height: 0; }
  .big-number + h3 { margin-top: 18px; }
  .dice { font-size: 72px; margin: 24px auto 0; }
}

/* ==========================================================================
   Home, take 2: giant wordmark, tilted device showcase, big app panels,
   workshop roadmap, values and studio questions.
   ========================================================================== */

.hero-wordmark { padding-block: clamp(40px, 7vw, 90px) 0; overflow: hidden; }
.hero-wordmark .eyebrow { margin-bottom: 0; }
.wordmark { --wm: clamp(3rem, calc((min(100vw, 1260px) - 2 * var(--gutter)) / 6), 12.8rem); position: relative; isolation: isolate; padding-top: calc(var(--wm) * .78); }
.hero-wordmark .eyebrow { position: relative; z-index: 2; }
.wordmark h1 {
  position: relative; z-index: 1; margin: 0; white-space: nowrap;
  font-size: var(--wm); line-height: .82; letter-spacing: -0.045em; font-variant-ligatures: none;
  /* The goose hides behind the letters, so they need a solid fill. */
  color: var(--text);
}
.wordmark-goose {
  position: absolute; z-index: 0; left: 49%; bottom: calc(var(--wm) * .38); width: calc(var(--wm) * 1.15);
  border: 0; background: none; padding: 0; cursor: pointer; line-height: 0;
  transform-origin: 50% 100%; animation: peek-up 1s .4s cubic-bezier(.3, 1.5, .5, 1) both;
}
.wordmark-goose img { width: 100%; height: auto; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); }
.wordmark-goose:hover img { transform: translateY(-10px) rotate(-4deg); }
.wordmark-goose.honking img { animation: honk .55s cubic-bezier(.3, 1.6, .5, 1); }
.wordmark-goose .bubble {
  position: absolute; z-index: 1; left: 88%; bottom: 78%; width: max-content; max-width: 240px; padding: 10px 15px;
  border-radius: 20px 20px 20px 6px; background: var(--text); color: var(--bg); text-align: left;
  font: 650 15px/1.3 var(--font-text); letter-spacing: -0.01em;
  animation: pop .4s 1.3s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes peek-up { from { transform: translateY(70%); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } }
.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: clamp(22px, 3vw, 36px); }
.hero-row .lede { margin: 0; max-width: 46ch; }
@media (max-width: 700px) {
  .wordmark { padding-top: calc(var(--wm) * 2.25); }
  .wordmark-goose { left: 50%; width: calc(var(--wm) * 2.4); bottom: calc(var(--wm) * .36); }
  .wordmark-goose .bubble { left: auto; right: 90%; bottom: 46%; max-width: 160px; border-radius: 18px 18px 6px 18px; font-size: 13px; padding: 8px 12px; }
}

/* The devices in a straight line-up on a colour band (Apple: no tilting). */
.showcase { position: relative; margin-top: clamp(30px, 5vw, 60px); padding: clamp(36px, 5vw, 64px) var(--gutter); overflow: hidden;
  background: linear-gradient(115deg, #ffb37a 0%, #ff9a5a 26%, #f6efe4 50%, #a8dab9 74%, #5aa877 100%); }
.showcase-row { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 44px); }
.showcase .phone { width: clamp(200px, 19vw, 250px); }
.showcase .watch { width: clamp(130px, 12vw, 160px); }
:root[data-theme="dark"] .showcase { background: linear-gradient(115deg, #6b3415 0%, #3a2214 30%, #16181d 50%, #173524 72%, #1e5636 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .showcase { background: linear-gradient(115deg, #6b3415 0%, #3a2214 30%, #16181d 50%, #173524 72%, #1e5636 100%); } }
:root[data-theme="dark"] .showcase { background: linear-gradient(115deg, #6b3415 0%, #3a2214 30%, #16181d 50%, #173524 72%, #1e5636 100%); }
@media (max-width: 1000px) { .showcase-row > :nth-child(4) { display: none; } }
@media (max-width: 700px) { .showcase-row > :nth-child(1) { display: none; } }
@media (max-width: 460px) { .showcase-row > :nth-child(3) { display: none; } .showcase .phone { width: 220px; } }

/* Big app panels, one per app, in the app's colour. */
.apps-showcase { padding-top: clamp(20px, 4vw, 40px); }
.apps-showcase .wrap { display: grid; gap: 18px; }
.app-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center;
  min-height: 600px; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--app-grad); color: #fff; }
.app-panel.flip .app-panel-text { order: 2; }
.app-panel h2 { color: inherit; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin: 0 0 6px; }
.app-panel .app-id { display: flex; align-items: center; gap: 16px; }
.app-panel .app-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.app-panel .chip, .beta-card .chip, .tile-app .chip { background: rgba(0,0,0,.2); color: #fff; }
.app-panel .claim { font: var(--display-wght) clamp(2.2rem, 1.2rem + 3vw, 3.8rem)/1.02 var(--font-display); letter-spacing: var(--display-track); color: inherit; margin: 28px 0 22px; max-width: 14ch; text-wrap: balance; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: inherit; margin: 0; font-size: 16px; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(0,0,0,.2); font-size: 12px; font-weight: 700; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.btn-light { background: #fff; color: #15171c !important; }
.btn-clear { background: rgba(0,0,0,.2); color: #fff !important; }
.app-panel-shots .phone { width: clamp(200px, 17vw, 230px); }
.app-panel-shots { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 28px); }
@media (max-width: 900px) {
  .app-panel { grid-template-columns: 1fr; min-height: 0; padding-bottom: 0; }
  .app-panel.flip .app-panel-text { order: 0; }
  .app-panel-shots { padding-bottom: 32px; }
}

/* Section heads for the studio part of the page. */
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin: 0; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.2rem); }

/* Workshop: what is being built right now. */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.roadmap li { position: relative; margin: 0; display: flex; flex-direction: column; gap: 6px; min-height: 280px; padding: 28px; border-radius: var(--radius-xl); background: var(--tile); }
.roadmap li::after { content: ""; position: absolute; top: 46px; right: -16px; width: 16px; border-top: 2px dashed var(--line-strong); }
.roadmap li:last-child::after { display: none; }
.roadmap .when { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 999px; background: var(--app-soft); color: var(--app-ink); font-size: 13px; font-weight: 650; margin-bottom: 14px; }
.roadmap .egg-step .when { background: var(--raised); color: var(--sub); }
.roadmap h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); }
.roadmap p { margin: 0; }
.progress { margin-top: auto; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--app) 15%, transparent); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--app); }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .progress span { animation: fill linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  @keyframes fill { from { width: 0; } }
} }
.roadmap .egg { margin: auto 0 0 auto; width: 70px; height: 88px; }
.workshop-cta { margin: 18px 0 0; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } .roadmap li { min-height: 0; } .roadmap li::after { display: none; } .progress { margin-top: 18px; } }

/* Values and studio questions. */
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value { padding: 28px; border-radius: var(--radius-xl); background: var(--tile); min-height: 260px; display: flex; flex-direction: column; }
.value .num { font: var(--display-wght) 15px/1 var(--font-display); color: var(--goose); margin-bottom: auto; padding-bottom: 40px; }
.value h3 { margin: 0 0 8px; font-size: 1.35rem; }
.value p { margin: 0; font-size: 15.5px; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } .value { min-height: 0; } .value .num { padding-bottom: 20px; } }
.studio-faq { max-width: 820px; margin-top: clamp(36px, 5vw, 60px); }

.contact-band { padding-top: 0; }

/* Beta page */
.beta-card { display: flex; flex-direction: column; gap: 18px; background: var(--app-grad); color: #fff; min-height: 300px; }
.beta-card h2 { color: inherit; font-size: 1.7rem; margin: 0 0 4px; }
.beta-card p { color: inherit; }
.beta-card .app-id { display: flex; align-items: center; gap: 14px; }
.beta-card .app-id img { width: 56px; height: 56px; border-radius: 14px; }
.beta-card .chip { background: rgba(255,255,255,.22); color: #fff; }
.beta-card .btn { margin-top: auto; width: fit-content; }
.beta-card .btn.is-pending { opacity: .75; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { margin: 0; padding: 28px; border-radius: var(--radius-xl); background: var(--tile); }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); font: 700 17px/1 var(--font-display); margin-bottom: 26px; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- "Try it" boxes on the app pages ---------- */

.try { padding-top: 0; }
.try-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 56px); border-radius: var(--radius-xl); background: var(--app-soft); }
.try-text h2 { margin: 0 0 12px; }
.try-text .btn { margin-top: 8px; }
.left-pill { margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.challenge-card { --cat: #c2175c; padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: var(--raised); box-shadow: var(--shadow-lg); border-top: 6px solid var(--cat); }
.challenge-card.flip { animation: card-flip .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes card-flip { 0% { transform: rotateY(0) scale(1); } 40% { transform: rotateY(80deg) scale(.96); } 100% { transform: rotateY(0) scale(1); } }
.challenge-card .cat { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--cat) 14%, transparent); color: var(--cat); font-size: 13px; font-weight: 700; }
.challenge-card .c-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); margin: 18px 0 10px; }
.challenge-card .c-hint { font-size: 18px; color: var(--text); }
.challenge-card .c-tip { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--tile); font-size: 15px; color: var(--sub); }
.challenge-card .c-tip b { display: block; color: var(--text); margin-bottom: 2px; }
.plants { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.plant { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; border: 0; background: var(--raised); color: var(--text); font: 550 14.5px/1 var(--font-text); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, background-color .15s; }
.plant:hover { transform: translateY(-1px); }
.plant[aria-pressed="true"] { background: var(--app); color: var(--on-app); box-shadow: none; }
.plant small { font-size: 11px; font-weight: 700; padding: 2px 5px; border-radius: 999px; background: var(--tile); color: var(--sub); }
.plant[aria-pressed="true"] small { background: rgba(255,255,255,.25); color: inherit; }
.counter .note { font-size: 18px; color: var(--text); font-weight: 550; min-height: 1.5em; }
.link-btn { border: 0; background: none; padding: 0; margin-left: 8px; color: var(--app-ink); font: inherit; text-decoration: underline; cursor: pointer; }
.ring { position: relative; width: min(100%, 340px); margin-inline: auto; }
.ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: color-mix(in srgb, var(--app) 14%, transparent); }
.ring-fill { stroke: var(--app); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .6s cubic-bezier(.3, 1.2, .5, 1); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font: var(--display-wght) clamp(3.4rem, 2.4rem + 3vw, 5.4rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--text); }
.ring-label span { color: var(--sub); font-size: 15px; }
.counter.done .ring { animation: honk .6s cubic-bezier(.3, 1.6, .5, 1); }
@media (max-width: 860px) { .try-box { grid-template-columns: 1fr; } .counter .ring { order: -1; width: 220px; } }

/* Goose poses (generated, see assets/goose-poses). Placeholders until drawn properly. */
.section-head.with-goose { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head.with-goose .pose { width: clamp(130px, 18vw, 230px); height: auto; margin-bottom: -18px; }
.more-card img.goose.pose { width: 120px; margin: -10px 0 -27px 24px; }
.beta-hero { position: relative; }
.beta-hero .pose { position: absolute; right: 0; bottom: -30px; width: clamp(120px, 18vw, 220px); height: auto; }
@media (max-width: 700px) { .beta-hero .pose { position: static; width: 120px; display: block; margin-bottom: 10px; } .more-card img.goose.pose { width: 90px; } }

/* ==========================================================================
   Polish pass after the UI review (mobile first)
   ========================================================================== */


/* App panels: one phone on small screens, centred phones on tablets. */
@media (max-width: 560px) {
  .app-panel-shots .phone:nth-child(2) { display: none; }
  .app-panel-shots .phone { width: 220px; }
  .buttons { display: grid; grid-template-columns: 1fr; }
  .buttons .btn { justify-content: center; padding: 15px 16px; }
}

/* Only links lift on hover. */

/* Tiles with big numbers: number on top, text right under it. */
.big-number + h3 { margin-top: 18px; }
.tabular, .big-number, .ring-label strong, .stats strong { font-variant-numeric: tabular-nums; }

/* Values: headings on one line across the row. */
.value .num { margin-bottom: 36px; padding-bottom: 0; }
.roadmap li::after { display: none; }

/* Text pages: calmer headings, readable line length, no TOC wall on phones. */
.wrap.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.doc-body > * { max-width: 68ch; }
.hero h1 { hyphens: manual; }
@media (max-width: 760px) { .doc > .toc { display: none; } }

/* Tap targets. */
.lang button { min-height: 36px; padding: 10px 12px; }
@media (max-width: 760px) { .lang button { min-height: 40px; } .menu-toggle { min-height: 44px; } }
.footer-grid a { display: inline-block; padding-block: 5px; }
.footer-grid li { margin-bottom: 0; }

/* Small fixes. */
.more-card .btn-ghost { background: var(--raised); }
.challenge-card { border-top: 0; box-shadow: inset 0 6px 0 var(--cat), var(--shadow-lg); }
@media (max-width: 560px) { .try-box { padding: 20px; } .challenge-card { padding: 22px; } }
.footer-goose { margin-bottom: 0; }
.wordmark h1 { word-spacing: .02em; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
  .beta-hero .pose { float: right; width: 96px; margin: 0 0 8px 12px; }
}

/* FAQ next to its heading on wide screens. */
@media (min-width: 980px) {
  .values .faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; margin-top: clamp(48px, 6vw, 80px); align-items: start; }
  .values .faq-wrap .studio-faq { margin-top: 0; max-width: none; }
}
.faq-wrap h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); margin-top: 0; }

/* Dark mode: a faint light edge on tiles so they don't melt into the page. */
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .value, :root[data-theme="dark"] .roadmap li, :root[data-theme="dark"] .faq details { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile, :root:not([data-theme="light"]) .value, :root:not([data-theme="light"]) .roadmap li, :root:not([data-theme="light"]) .faq details { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); } }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .value, :root[data-theme="dark"] .roadmap li, :root[data-theme="dark"] .faq details { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }

/* Mobile app pages: shorter phone tiles. */
@media (max-width: 560px) {
  .feature.with-phone { min-height: 0; }
  .feature.with-phone .phone { width: 200px; margin: 24px auto 0; }
}

/* ---------- Mini UI: small rebuilt app elements instead of emoji ---------- */

.mini { margin-top: auto; padding-top: 26px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-text); letter-spacing: -0.01em; }
.mini small { display: block; font-size: 11.5px; color: var(--sub); font-weight: 600; }

/* A fanned stack of challenge cards. */
.mini-stack { position: relative; height: 150px; }
.mini-card { --cat: #c2175c; position: absolute; left: 50%; bottom: 0; width: 210px; padding: 14px 16px; border-radius: 18px; background: var(--raised); box-shadow: inset 0 4px 0 var(--cat), var(--shadow); transform-origin: 50% 120%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.mini-card small { color: var(--cat); }
.mini-card b { font-size: 17px; color: var(--text); }
.mini-card:nth-child(1) { transform: translateX(-50%) rotate(-9deg) translateY(-14px); opacity: .7; }
.mini-card:nth-child(2) { transform: translateX(-50%) rotate(5deg) translateY(-6px); opacity: .85; }
.mini-card:nth-child(3) { transform: translateX(-50%); }
.feature:hover .mini-card:nth-child(1) { transform: translateX(-62%) rotate(-14deg) translateY(-22px); }
.feature:hover .mini-card:nth-child(2) { transform: translateX(-40%) rotate(10deg) translateY(-12px); }
.mini-reroll { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--tile); color: var(--text); }

/* Live Activity on a dark lock screen. */
.dark-tile { background: #101216; color: #f4f3ef; }
.dark-tile h3, .dark-tile p { color: inherit; }
.dark-tile p { color: #a3a6ad; }
.dark-tile .kicker { color: #ff9d5c; }
.mini-live { display: grid; gap: 14px; justify-items: center; }
.island { display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 999px; background: #000; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.island .dot { width: 18px; height: 18px; border-radius: 50%; background: #ff8a47; }
.island .cam { color: #ff8a47; }
.live-card { position: relative; width: 100%; max-width: 360px; display: grid; gap: 12px; padding: 16px 18px; border-radius: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.live-card small { color: #ff9d5c; }
.live-card b { color: #fff; font-size: 18px; }
.live-stats { display: flex; gap: 22px; }
.live-stats span { display: grid; font-size: 12px; color: #a3a6ad; }
.live-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.live-cam { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ff8a47; font-size: 20px; }

/* Apple Health workout card. */
.mini-health { background: var(--raised); border-radius: 22px; padding: 16px 18px !important; margin-top: auto; box-shadow: var(--shadow); }
.mini-health { margin-top: 26px; }
.h-head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.h-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--app-soft); font-size: 18px; }
.h-head b { font-size: 15px; color: var(--text); }
.h-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.h-grid b { font-size: 18px; color: var(--app); font-variant-numeric: tabular-nums; }
.h-grid b i { font-style: normal; font-size: 12px; color: var(--sub); }
.h-route { height: 46px; margin-top: 12px; border-radius: 12px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 46'%3E%3Cpath d='M8 36 C40 10 70 40 100 22 S160 6 190 26 S250 40 292 12' fill='none' stroke='%23ff8a47' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat, var(--tile); }
@media (max-width: 420px) { .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Widgets. */
.mini-widgets { display: flex; gap: 14px; justify-content: center; }
.widget { width: 150px; aspect-ratio: 1; border-radius: 30px; padding: 16px; display: flex; flex-direction: column; background: var(--raised); box-shadow: var(--shadow); }
.widget b { font-size: 19px; line-height: 1.15; color: var(--text); }
.w-challenge { background: var(--app-grad); }
.w-challenge small, .w-challenge b, .w-challenge span { color: #fff; }
.w-challenge span { margin-top: auto; font-size: 12px; font-weight: 600; opacity: .9; }
.w-streak b { font-size: 44px; line-height: 1; color: var(--app); font-variant-numeric: tabular-nums; }
.w-week { display: flex; gap: 4px; margin-top: auto; }
.w-week i { flex: 1; height: 8px; border-radius: 4px; background: var(--app); }
.w-week i.off { background: var(--tile-2); }
.w-ring { position: relative; align-items: center; justify-content: center; }
.w-ring svg { position: absolute; inset: 14px; transform: rotate(-90deg); }
.w-ring circle { fill: none; stroke-width: 5; stroke: color-mix(in srgb, var(--app) 18%, transparent); }
.w-ring circle.fill { stroke: var(--app); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 26.4; }
.w-ring b { font-size: 34px; }
.w-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.w-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }

/* Leaderboard. */
.mini-board { background: var(--raised); border-radius: 22px; padding: 14px 16px !important; margin-top: 26px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.b-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.b-head b { font-size: 15px; color: var(--text); }
.b-row { display: grid; grid-template-columns: 14px 28px 52px 1fr 26px; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.b-row.me { font-weight: 700; }
.b-rank { color: var(--sub); font-size: 12px; }
.b-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 60% 85%); color: hsl(var(--h) 50% 30%); font-size: 12px; font-weight: 700; }
.b-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--app) var(--w), var(--tile-2) var(--w)); }
.b-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* Meal photo with recognised plants. */
.mini-scan { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.scan-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 40% 35%, #f3e9d2, #d9c9a3); font-size: 52px; overflow: hidden; }
.scan-photo i { position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; }
.scan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.scan-chips span { padding: 6px 10px; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow); font-size: 13px; color: var(--text); }
.scan-chips b { color: var(--app); }

/* Line icons on text pages (replacing emoji). */
.points .ico, .card-icon { color: var(--app-ink); background: var(--app-soft); }
.studio .points .ico, .studio .card-icon { color: var(--text); background: var(--tile); }
.points .ico svg { width: 18px; height: 18px; }
.card-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Home, take 3 (after the second review): apps in the hero, a playable
   Walk & Snap panel, a timeline, one studio section, the goose saying hello.
   ========================================================================== */

.hero-wordmark { padding-bottom: clamp(28px, 4vw, 48px); }
.hero-row { gap: 26px; }
.hero-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.app-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 22px; background: var(--tile); color: var(--text) !important; text-decoration: none; transition: background-color .2s, transform .2s; }
.app-chip:hover { background: var(--tile-2); transform: translateY(-2px); }
.app-chip img { width: 44px; height: 44px; border-radius: 11px; }
.app-chip > span:not(.arrow):not(.beta-mark) { display: grid; line-height: 1.2; }
.app-chip b { font-size: 15px; }
.app-chip small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.app-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app); }
.app-chip .dot.soon { background: var(--goose); animation: pulse 2s ease-in-out infinite; }
.app-chip .arrow { color: var(--ter); margin-left: 4px; transition: transform .2s; }
.app-chip:hover .arrow { transform: translateX(3px); color: var(--text); }
.app-chip.beta { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.beta-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--text); color: var(--bg); font: 700 22px/1 var(--font-display); }
@media (max-width: 560px) { .hero-apps { display: grid; width: 100%; } .app-chip { width: 100%; } .app-chip .arrow { margin-left: auto; } }

/* Walk & Snap panel: a real challenge to play with instead of placeholder screens. */
.panel-try { display: grid; gap: 14px; justify-items: start; }
.panel-try-label { margin: 0; font-size: 13px; font-weight: 650; color: #fff; opacity: .95; }
.panel-try .challenge-card { width: 100%; max-width: 440px; color: var(--text); }
.app-panel .panel-try .challenge-card h3 { color: var(--text); }
@media (max-width: 900px) { .panel-try { padding-bottom: 32px; } }

/* Plavari's counter as a card in its home panel (before the release, instead of screenshots). */
.counter-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 20px; align-items: center; width: 100%; max-width: 460px; padding: clamp(20px, 3vw, 30px); border-radius: 30px; background: var(--raised); color: var(--text); box-shadow: var(--shadow-lg); }
.counter-card .ring { width: 120px; margin: 0; }
.counter-card .ring-label strong { font-size: 2.6rem; }
.counter-card .ring-label span { font-size: 12px; }
.counter-card .note { margin: 0; font-size: 17px; text-wrap: balance; }
.counter-card .plants, .counter-card .meta { grid-column: 1 / -1; }
.counter-card .plants { margin: 14px 0 6px; gap: 6px; }
.counter-card .plant { padding: 8px 11px; font-size: 14px; }
.counter-card .meta { margin: 0; font-size: 13px; color: var(--sub); }
.app-panel .counter-card :focus-visible { outline-color: var(--app); }

/* Workshop as a timeline next to the goose at work. */
.workshop-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.workshop-intro h2 { margin: 0 0 10px; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.2rem); }
.workshop-intro .pose { width: clamp(160px, 22vw, 260px); height: auto; margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--app); }
.timeline .egg-step::before { box-shadow: inset 0 0 0 4px var(--line-strong); }
.timeline .when { display: inline-block; font-size: 12.5px; font-weight: 650; color: var(--app-ink); margin-bottom: 4px; }
.timeline .egg-step .when { color: var(--sub); }
.timeline h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + .9vw, 2rem); }
.timeline p { margin: 0 0 12px; }
.timeline .progress { margin-top: 0; max-width: 360px; }
.timeline .egg { margin: 4px 0 0; width: 54px; height: 68px; }
@media (max-width: 860px) { .workshop-grid { grid-template-columns: 1fr; } .workshop-intro .pose { position: absolute; right: 0; top: 0; width: 110px; } .workshop-intro { position: relative; padding-right: 110px; } }

/* One studio section: statement and values on the left, questions on the right. */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.studio-statement h2 { margin: 0 0 26px; font-size: clamp(2rem, 1.1rem + 2.8vw, 3.6rem); }
.values-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.values-list li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line-strong); color: var(--sub); }
.values-list b { color: var(--text); font-weight: 650; }
.studio-faq { margin: 0; max-width: none; }
.studio-faq h3 { margin: 0 0 10px; font-size: 1.3rem; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .values-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact: the goose waves. */
.contact-goose { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(22px, 3vw, 36px) clamp(22px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--tile); }
.contact-goose .pose { width: clamp(80px, 9vw, 120px); height: auto; margin: -40px 0 -10px; }
.contact-goose h2 { margin: 0 0 4px; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.contact-goose p { margin: 0; }
@media (max-width: 700px) { .contact-goose { grid-template-columns: auto minmax(0, 1fr); } .contact-goose .btn { grid-column: 1 / -1; justify-content: center; } .contact-goose .pose { margin: 0; width: 72px; } }

/* Footer on phones: two columns so long links don't collide. */
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
