/* ==========================================================================
   Gridium – gridium-photo.com
   Plain CSS, no build step. Brand: violet/indigo gradient + white/yellow 2×2.
   Bilingual via <html lang> + .de/.en spans (see script.js / inline head script).
   Motion lives exclusively inside (prefers-reduced-motion: no-preference).
   ========================================================================== */

/* ---- Fonts: self-hosted Inter Variable (OFL, /assets/fonts/OFL.txt) ------
   Only used where the Apple system font (SF Pro) is unavailable, so Apple
   devices never download it. */
@font-face {
  font-family: "Inter Gridium";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Gridium";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Animatable custom properties (hero mesh) ------------------------- */
@property --m1x { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --m1y { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
@property --m2x { syntax: "<percentage>"; inherits: false; initial-value: 88%; }
@property --m2y { syntax: "<percentage>"; inherits: false; initial-value: 70%; }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  --v1: #6A2BF0;
  --v2: #3B1FC4;
  --v3: #2A0F8F;
  --sun: #FFE45C;
  --paper: #FFFFFF;

  --bg:        light-dark(#F1F2FF, #0A0920);
  --bg-alt:    light-dark(#E9EBFF, #100E2C);
  --surface:   light-dark(#FFFFFF, #17153D);
  --surface-2: light-dark(#F3F3FF, #201D4E);
  --tile-idle: light-dark(#DADDFF, #2E2A6B);
  --text:      light-dark(#15123B, #F3F1FF);
  --muted:     light-dark(#55527C, #ADA9D8);
  --line:      light-dark(rgb(59 31 196 / .11), rgb(255 255 255 / .09));
  --line-2:    light-dark(rgb(59 31 196 / .22), rgb(255 255 255 / .18));
  --accent:    light-dark(#4B22D8, #BBA8FF);
  --accent-bg: light-dark(#4B22D8, #7B5CFF);
  --focus:     light-dark(#4B22D8, #FFE45C);
  --grad-a:    light-dark(#7433F2, #D2C2FF);
  --grad-b:    light-dark(#3B1FC4, #8FA6FF);
  --canvas:    light-dark(#FFFFFF, #221F52);

  --card-shadow: 0 1px 2px rgb(21 18 59 / .04), 0 18px 48px -28px rgb(59 31 196 / .28);

  --hdr-h: 64px;
  --radius-card: 32px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  /* gentle spring, with a cubic-bezier fallback below */
  --spring: cubic-bezier(.3, 1.25, .45, 1);

  /* "photo" gradients – the same palette the app uses for its sample shots */
  --g0: linear-gradient(135deg, #FFA666, #F25973);
  --g1: linear-gradient(135deg, #40A6D9, #26598C);
  --g2: linear-gradient(135deg, #8CCC59, #267340);
  --g3: linear-gradient(135deg, #F2CC4D, #D97326);
  --g4: linear-gradient(135deg, #BF73D9, #59268C);
  --g5: linear-gradient(135deg, #F28CA6, #8C3359);
  --g6: linear-gradient(135deg, #66D9CC, #1A7380);
  --g7: linear-gradient(135deg, #FFBF33, #D9408C);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.089 24.8%, 1.085 27.4%, 1.042 34.1%, 1.012 39.3%, .995 44.4%, .993 50.6%, 1 64.7%, 1.001 74.4%, 1);
  }
}
@media (prefers-color-scheme: dark) {
  :root { --card-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -30px rgb(0 0 0 / .7); }
}
/* Browsers without light-dark(): fall back to the light palette. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light;
    --bg: #F1F2FF; --bg-alt: #E9EBFF; --surface: #FFFFFF; --surface-2: #F3F3FF; --tile-idle: #DADDFF;
    --text: #15123B; --muted: #55527C; --line: rgb(59 31 196 / .11); --line-2: rgb(59 31 196 / .22);
    --accent: #4B22D8; --accent-bg: #4B22D8; --focus: #4B22D8; --grad-a: #7433F2; --grad-b: #3B1FC4; --canvas: #FFFFFF;
  }
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
  background: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter Gridium", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }
p, li { text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--v1) 30%, transparent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .cta, .page-hero, .site-header.is-over, .page-404 { --focus: #FFE45C; }

html[lang="de"] .en, html[lang="en"] .de { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 14px;
  background: var(--sun); color: #1A0B5C; font-weight: 700; text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus-visible { translate: 0 0; outline-color: #1A0B5C; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1200px, 100% - 64px); } }

.grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---- Header (glass) ----------------------------------------------------- */
.site-header {
  --hdr-fg: var(--text);
  --hdr-bg: light-dark(rgb(241 242 255 / .72), rgb(12 10 38 / .66));
  --hdr-line: var(--line);
  --hdr-hi: light-dark(rgb(255 255 255 / .8), rgb(255 255 255 / .08));
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr-h);
  color: var(--hdr-fg);
  transition: color .3s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--hdr-line);
  box-shadow: inset 0 1px 0 var(--hdr-hi), inset 0 -1px 0 rgb(255 255 255 / .04);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-over {
  --hdr-fg: #FFFFFF;
  --hdr-bg: rgb(36 14 130 / .22);
  --hdr-line: rgb(255 255 255 / .12);
  --hdr-hi: rgb(255 255 255 / .16);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; text-decoration: none; margin-right: auto; border-radius: 12px;
}
.brand .logo { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 4px 10px rgb(59 31 196 / .35)); }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }

.main-nav { display: none; gap: 2px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500;
  opacity: .82; transition: opacity .2s, background-color .2s;
}
.main-nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 10%, transparent);
}
.lang-switch button {
  min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; letter-spacing: .02em;
  opacity: .7; transition: background-color .2s, opacity .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] {
  opacity: 1; background: var(--surface); color: var(--text);
  box-shadow: 0 1px 3px rgb(21 18 59 / .18);
}
.site-header.is-over .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--v2); }

.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 650;
  color: #fff; background: linear-gradient(135deg, var(--v1), var(--v2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 6px 16px -6px rgb(59 31 196 / .6);
  transition: transform .2s var(--ease-out), filter .2s;
}
.header-cta:hover { filter: brightness(1.08); }
.site-header.is-over .header-cta { background: #fff; color: var(--v2); box-shadow: 0 6px 18px -8px rgb(0 0 0 / .4); }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.mobile-nav {
  position: fixed; inset: auto; top: calc(var(--hdr-h) + 8px); left: 12px; right: 12px;
  width: auto; margin: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(21 18 59 / .45);
}
.mobile-nav:not(.is-open) { display: none; }
@supports selector(:popover-open) { .mobile-nav:popover-open { display: block; } }
.mobile-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 18px;
  text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--surface-2); }

@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .header-cta { padding: 0 13px; }
  .header-inner { gap: 8px; }
}
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .brand { margin-right: 0; }
  .main-nav { margin-inline: auto; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * var(--hdr-h));
  padding: calc(var(--hdr-h) + clamp(36px, 7vw, 96px)) 0 clamp(64px, 9vw, 128px);
  color: #fff;
  background: var(--v2);
}
.hero-bg, .cta-bg, .page-hero::before, .page-404::before {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at var(--m1x) var(--m1y), rgb(168 110 255 / .75), transparent 70%),
    radial-gradient(50% 55% at var(--m2x) var(--m2y), rgb(64 110 255 / .55), transparent 70%),
    radial-gradient(80% 60% at 50% 115%, #1A0870, transparent 70%),
    linear-gradient(160deg, #6A2BF0 0%, #3B1FC4 55%, #2A0F8F 100%);
}
@supports (background: linear-gradient(in oklch, red, blue)) {
  .hero-bg, .cta-bg, .page-hero::before, .page-404::before {
    background:
      radial-gradient(55% 45% at var(--m1x) var(--m1y), rgb(168 110 255 / .75), transparent 70%),
      radial-gradient(50% 55% at var(--m2x) var(--m2y), rgb(64 110 255 / .55), transparent 70%),
      radial-gradient(80% 60% at 50% 115%, #1A0870, transparent 70%),
      linear-gradient(in oklch 160deg, #6A2BF0 0%, #3B1FC4 55%, #2A0F8F 100%);
  }
}
/* film grain */
.hero-bg::after, .cta-bg::after, .page-hero::after, .page-404::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: overlay;
}
.ghost {
  position: absolute; border-radius: 28%;
  border: 1px solid rgb(255 255 255 / .13);
  background: linear-gradient(145deg, rgb(255 255 255 / .09), rgb(255 255 255 / .02));
}
.g1 { width: 150px; aspect-ratio: 1; right: -40px; top: 70px; }
.g2 { width: 96px; aspect-ratio: 1; left: -30px; top: 42%; }
.g3 { width: 64px; aspect-ratio: 1; left: 44%; bottom: 36px; opacity: .7; }
.g4 { width: 120px; aspect-ratio: 1; right: 6%; bottom: -50px; }

.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 14px 6px 6px; margin-bottom: 24px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 550;
  background: rgb(255 255 255 / .12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), inset 0 1px 0 rgb(255 255 255 / .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s;
}
.hero-pill:hover { background: rgb(255 255 255 / .18); }
.pill-tag {
  display: inline-grid; place-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px;
  background: var(--sun); color: #221070; font-weight: 750; font-size: 13px;
}
.hero-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.hero h1 {
  font-size: clamp(38px, 9.4vw, 80px);
  line-height: .98; letter-spacing: -.04em; font-weight: 700;
  text-shadow: 0 2px 30px rgb(26 8 112 / .25);
}
.hero-lede {
  margin-top: 24px; max-width: 34em;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: rgb(255 255 255 / .94);
}
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.badge {
  display: inline-block; border-radius: 12px; line-height: 0;
  transition: transform .2s var(--ease-out), filter .2s;
}
.badge img { width: auto; height: 48px; }
.badge:hover { filter: drop-shadow(0 8px 20px rgb(0 0 0 / .3)); }
.soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px;
  border-radius: 999px; font-size: 14px; color: rgb(255 255 255 / .92); line-height: 1.2;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
}
.soon .android { width: 18px; height: 18px; flex: none; fill: #A7F3B8; }
.soon strong { color: #fff; font-weight: 650; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px;
  font-size: 14px; color: rgb(255 255 255 / .9);
}
.hero-facts li {
  padding: 7px 13px; border-radius: 999px;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.hero-facts strong { font-weight: 700; }

/* hero devices: official Apple bezel composites (alpha), no 3D */
.hero-visual { position: relative; }
.hero-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1.29; margin-inline: auto; }
.phone { position: absolute; margin: 0; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 1633; }
.phone-front {
  width: 54%; right: 5%; top: 5%; z-index: 2; rotate: 3deg;
  filter: drop-shadow(0 34px 40px rgb(10 0 60 / .5)) drop-shadow(0 8px 12px rgb(10 0 60 / .3));
}
.phone-back {
  width: 48%; left: 4%; top: 13%; z-index: 1; rotate: -5deg;
  filter: drop-shadow(0 26px 34px rgb(10 0 60 / .45)) brightness(.96);
}
.chip-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 18px; color: #fff; white-space: nowrap;
  font-size: 14px; font-weight: 650;
  background: rgb(40 16 150 / .66);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), inset 0 1px 0 rgb(255 255 255 / .3), 0 18px 36px -16px rgb(10 0 60 / .7);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
}
/* placed outside the screens: left of the back phone, right edge of the front phone's bezel */
.cf-template { left: 8%; bottom: 0; }
.cf-text { left: 0; top: 1%; padding: 10px 14px; gap: 10px; }
.float-text { display: grid; line-height: 1.2; }
.float-text small { font-size: 12px; font-weight: 500; opacity: .85; }
.f-aa { font-family: ui-serif, "New York", Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1; }
.f-dots { display: inline-flex; gap: 5px; }
.f-dots i { width: 10px; aspect-ratio: 1; border-radius: 50%; }
.f-dots i:nth-child(1) { background: #FFE45C; } .f-dots i:nth-child(2) { background: #FF8FA3; }
.f-dots i:nth-child(3) { background: #66D9CC; } .f-dots i:nth-child(4) { background: #fff; }
@media (max-width: 599px) {
  .hero-stage { aspect-ratio: 1 / 1.36; }
  .chip-float { font-size: 13px; padding: 7px 11px 7px 7px; border-radius: 15px; }
  .fmini { width: 36px; }
  .cf-template { left: 4%; bottom: 0; }
  .cf-text { left: 0; top: 0; }
}
.fmini { position: relative; display: block; width: 44px; aspect-ratio: 1; border-radius: 9px; background: #fff; overflow: hidden; flex: none; }
.fmini i, .pthumb i, .mini-canvas i, .mq-canvas i, .mini-frame i {
  position: absolute;
  left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  padding: var(--gap-mini, 1.5px);
}
.fmini i { --gap-mini: 1px; }
.fmini > i { left: calc(2px + var(--x) * (100% - 4px)); top: calc(2px + var(--y) * (100% - 4px)); width: calc(var(--w) * (100% - 4px)); height: calc(var(--h) * (100% - 4px)); }
.fmini i::before, .pthumb i::before, .mq-canvas i::before, .mini-frame i::before,
.mini-canvas i::before, .mini-canvas i::after {
  content: ""; display: block; width: 100%; height: 100%;
  border-radius: var(--tile-r-mini, 3px);
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 8.5vw, 120px); background: var(--bg); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.section-head-row > div:first-child { max-width: 760px; }
.kicker { font-size: 17px; font-weight: 650; color: var(--accent); margin-bottom: 14px; letter-spacing: -.005em; }
.section h2, .shuffle h2 {
  font-size: clamp(36px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.038em;
}
.lede {
  margin-top: 22px; max-width: 40em;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted);
}

/* ---- Signature: the grid rearranges ----------------------------------- */
.shuffle { background: var(--bg); padding-top: clamp(72px, 8.5vw, 120px); padding-bottom: clamp(32px, 5vw, 72px); }
.shuffle-intro { margin-bottom: clamp(24px, 4vw, 48px); }
.shuffle-intro h2 { max-width: 14ch; }
.shuffle-pin { display: flex; align-items: center; }
.shuffle-pin-grid { display: grid; gap: 24px; align-items: center; }
.shuffle-stage { --gap: 8px; --tile-r: 12px; position: relative; aspect-ratio: 1; width: min(100%, 580px); margin-inline: auto; }
.shuffle-canvas {
  position: absolute;
  left: calc((100% - var(--cw, 100%)) / 2); top: calc((100% - var(--ch, 100%)) / 2);
  width: var(--cw, 100%); height: var(--ch, 100%);
  border: calc(var(--gap) / 2) solid var(--canvas);
  border-radius: calc(var(--tile-r) + var(--gap) / 2 + 6px);
  background: var(--canvas);
  box-shadow: 0 40px 80px -40px rgb(59 31 196 / .45), 0 10px 24px -14px rgb(21 18 59 / .25);
}
.st { position: absolute; }
.st::before {
  content: ""; position: absolute; inset: calc(var(--gap) / 2);
  border-radius: var(--tile-r); background: var(--g0);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
}
.st::after { /* soft sheen, reads like a photo */
  content: ""; position: absolute; inset: calc(var(--gap) / 2); border-radius: var(--tile-r);
  background: radial-gradient(120% 90% at 20% 10%, rgb(255 255 255 / .28), transparent 55%);
}
.st.is-off { left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.st:nth-child(8n+2)::before { background: var(--g1); }
.st:nth-child(8n+3)::before { background: var(--g2); }
.st:nth-child(8n+4)::before { background: var(--g3); }
.st:nth-child(8n+5)::before { background: var(--g4); }
.st:nth-child(8n+6)::before { background: var(--g5); }
.st:nth-child(8n+7)::before { background: var(--g6); }
.st:nth-child(8n+8)::before { background: var(--g7); }

.shuffle-caption { display: grid; gap: 6px; min-height: 2.6em; }
.cap-name { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.cap-meta { font-size: 16px; color: var(--muted); font-weight: 500; }
.shuffle-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.shuffle-controls[hidden] { display: none; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step, .chip, .dice, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600;
  color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.step:hover, .chip:hover, .dice:hover, .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.step:active, .chip:active, .dice:active, .btn-ghost:active { transform: scale(.97); }
.step[aria-pressed="true"], .chip[aria-pressed="true"] {
  color: #fff; background: linear-gradient(135deg, var(--v1), var(--v2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 8px 18px -10px rgb(59 31 196 / .8);
}
.dice { background: var(--sun); color: #221070; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08); }
.dice:hover { box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08), 0 0 0 2px var(--accent); }
.dice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dice svg circle { fill: currentColor; stroke: none; }
.dice.is-rolling svg { animation: none; }

@media (min-width: 960px) {
  .shuffle-pin-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .shuffle-stage { --gap: 10px; --tile-r: 16px; }
  .steps { max-width: 440px; }
}
@media (max-width: 959px) {
  .shuffle-info { order: 2; }
  .shuffle-caption { text-align: center; justify-items: center; }
  .shuffle-controls { justify-content: center; }
  .steps { justify-content: center; }
}

/* scroll-telling mode (JS + motion allowed) */
.scrolly .shuffle-track { height: calc(100svh - var(--hdr-h) + 6 * 52svh); }
.scrolly .shuffle-pin { position: sticky; top: var(--hdr-h); height: calc(100svh - var(--hdr-h)); }
.scrolly .shuffle-stage { width: min(100%, 580px, calc(100svh - var(--hdr-h) - 64px)); }
@media (max-width: 959px) {
  .scrolly .shuffle-track { height: calc(100svh - var(--hdr-h) + 6 * 35svh); }
  .scrolly .shuffle-stage { width: min(100%, calc(100svh - var(--hdr-h) - 250px)); }
  .scrolly .shuffle-pin-grid { gap: 16px; }
  .scrolly .shuffle-controls { margin-top: 14px; }
  .scrolly .step { padding: 0 13px; font-size: 14px; }
}

/* ---- Template explorer ---------------------------------------------------- */
.tpl-filters { margin-bottom: 28px; }
.tpl-filters[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-count { font-size: 13px; font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-count { opacity: .8; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; } }
.tpl {
  position: relative; padding: 10px 10px 14px;
  border-radius: 26px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.tpl[hidden] { display: none; }
.tpl-thumb {
  display: grid; place-items: center; aspect-ratio: 1; padding: 14%;
  border-radius: 18px; background: var(--surface-2);
}
.mini-canvas, .mq-canvas, .mini-frame > span { position: relative; display: block; aspect-ratio: var(--ar); }
.mini-canvas.is-wide, .mq-canvas.is-wide { width: 100%; height: auto; }
.mini-canvas.is-tall, .mq-canvas.is-tall { height: 100%; width: auto; }
.mini-canvas i::before { background: var(--tile-idle); }
.mini-canvas i::after { position: absolute; inset: var(--gap-mini, 1.5px); width: auto; height: auto; opacity: 0; background: var(--g0); transition: opacity .35s var(--ease-out); transition-delay: calc(var(--k, 0) * 35ms); }
.mini-canvas i:nth-child(8n+2)::after { background: var(--g1); --k: 1; }
.mini-canvas i:nth-child(8n+3)::after { background: var(--g2); --k: 2; }
.mini-canvas i:nth-child(8n+4)::after { background: var(--g3); --k: 3; }
.mini-canvas i:nth-child(8n+5)::after { background: var(--g4); --k: 4; }
.mini-canvas i:nth-child(8n+6)::after { background: var(--g5); --k: 5; }
.mini-canvas i:nth-child(8n+7)::after { background: var(--g6); --k: 6; }
.mini-canvas i:nth-child(8n+8)::after { background: var(--g7); --k: 7; }
.mini-canvas i { --tile-r-mini: 4px; }
.tpl:hover .mini-canvas i::after, .tpl[data-new] .mini-canvas i::after { opacity: 1; }
.tpl:hover { transform: translateY(-3px); }
.tpl-name { -webkit-hyphens: manual; hyphens: manual; margin-top: 12px; padding-inline: 6px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.tpl-meta { padding-inline: 6px; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.tpl-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 750;
  background: var(--sun); color: #221070; box-shadow: 0 4px 10px -4px rgb(120 90 0 / .5);
}
.tpl-more { display: flex; justify-content: center; margin-top: 32px; }
.tpl-more[hidden] { display: none; }
.btn-ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-grid.is-collapsed .tpl.is-over { display: none; }

/* ---- Bento feature grid --------------------------------------------------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-smart, .c-small { grid-column: span 2; }
}
@media (min-width: 1060px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .c-smart, .c-formats, .c-devices { grid-column: span 4; }
  .c-tile, .c-themes, .c-small { grid-column: span 2; }
  .c-look, .c-text, .c-projects, .c-export { grid-column: span 3; }
}
.card {
  position: relative; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}
@supports (corner-shape: squircle) {
  .card { corner-shape: squircle; border-radius: 56px; }
  .tpl { corner-shape: squircle; border-radius: 44px; }
}
.card h3, .news-item h3, .news-wide h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.18; letter-spacing: -.022em; }
.card-copy p { margin-top: 10px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.card-copy code { color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* Smart-Grid */
.smart-demo { display: grid; gap: 20px; }
.smart-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.smart-controls[hidden] { display: none; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(21 18 59 / .16), inset 0 0 0 1px var(--line); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer;
  font-size: 20px; font-weight: 500; line-height: 1; box-shadow: 0 1px 2px rgb(21 18 59 / .12);
}
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 84px; text-align: center; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; }
.smart-result { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 24px; background: var(--surface-2); min-height: 196px; }
.smart-photos { display: flex; flex-wrap: wrap; gap: 6px; width: 104px; align-content: center; }
.smart-photos i { width: 22px; aspect-ratio: 1; border-radius: 6px; background: var(--g0); box-shadow: 0 2px 6px -2px rgb(21 18 59 / .35); }
.smart-photos i:nth-child(8n+2) { background: var(--g1); } .smart-photos i:nth-child(8n+3) { background: var(--g2); }
.smart-photos i:nth-child(8n+4) { background: var(--g3); } .smart-photos i:nth-child(8n+5) { background: var(--g4); }
.smart-photos i:nth-child(8n+6) { background: var(--g5); } .smart-photos i:nth-child(8n+7) { background: var(--g6); }
.smart-photos i:nth-child(8n+8) { background: var(--g7); }
.smart-arrow { width: 40px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smart-pick { display: grid; justify-items: center; gap: 10px; flex: 1; }
.mini-frame { width: 150px; height: 150px; display: grid; place-items: center; }
.mini-frame > span { background: #fff; border-radius: 10px; box-shadow: 0 16px 30px -16px rgb(59 31 196 / .55); }
.mini-frame > span.is-wide { width: 100%; } .mini-frame > span.is-tall { height: 100%; }
.mini-frame i { --gap-mini: 2px; --tile-r-mini: 5px; }
.mini-frame > span { padding: 0; }
.mini-frame i::before { background: var(--g0); }
.smart-name { font-weight: 650; font-size: 16px; text-align: center; }
.color-tiles i:nth-child(8n+2)::before, .mini-frame i:nth-child(8n+2)::before, .pthumb i:nth-child(8n+2)::before, .fmini i:nth-child(8n+2)::before, .mq-canvas i:nth-child(8n+2)::before { background: var(--g1); }
.color-tiles i:nth-child(8n+3)::before, .mini-frame i:nth-child(8n+3)::before, .pthumb i:nth-child(8n+3)::before, .fmini i:nth-child(8n+3)::before, .mq-canvas i:nth-child(8n+3)::before { background: var(--g2); }
.color-tiles i:nth-child(8n+4)::before, .mini-frame i:nth-child(8n+4)::before, .pthumb i:nth-child(8n+4)::before, .fmini i:nth-child(8n+4)::before, .mq-canvas i:nth-child(8n+4)::before { background: var(--g3); }
.color-tiles i:nth-child(8n+5)::before, .mini-frame i:nth-child(8n+5)::before, .pthumb i:nth-child(8n+5)::before, .fmini i:nth-child(8n+5)::before, .mq-canvas i:nth-child(8n+5)::before { background: var(--g4); }
.color-tiles i:nth-child(8n+6)::before, .mini-frame i:nth-child(8n+6)::before, .pthumb i:nth-child(8n+6)::before, .fmini i:nth-child(8n+6)::before, .mq-canvas i:nth-child(8n+6)::before { background: var(--g5); }
.color-tiles i:nth-child(8n+7)::before, .mini-frame i:nth-child(8n+7)::before, .pthumb i:nth-child(8n+7)::before, .fmini i:nth-child(8n+7)::before, .mq-canvas i:nth-child(8n+7)::before { background: var(--g6); }
.color-tiles i:nth-child(8n+8)::before, .mini-frame i:nth-child(8n+8)::before, .pthumb i:nth-child(8n+8)::before, .fmini i:nth-child(8n+8)::before, .mq-canvas i:nth-child(8n+8)::before { background: var(--g7); }
.pthumb i::before, .fmini i::before, .mq-canvas i::before { background: var(--g0); }
@media (min-width: 700px) {
  .c-smart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 36px; }
}

/* Tile by tile */
.tile-demo { position: relative; display: grid; place-items: center; min-height: 190px; border-radius: 24px; background: var(--surface-2); }
.td-grid { --s: 64px; --g: 6px; display: grid; grid-template-columns: repeat(2, var(--s)); gap: var(--g); padding: var(--g); background: #fff; border-radius: 16px; box-shadow: 0 18px 36px -20px rgb(59 31 196 / .55); }
.td { display: block; width: var(--s); height: var(--s); border-radius: 10px; position: relative; }
.td.a { background: var(--g0); z-index: 2; } .td.b { background: var(--g1); } .td.c { background: var(--g2); } .td.d { background: var(--g3); z-index: 1; }
.td-hand { position: absolute; left: calc(50% - 12px); top: calc(50% - 12px); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 6px 16px -6px rgb(21 18 59 / .5); translate: -40px -40px; }
.td-hand svg { width: 20px; height: 20px; fill: none; stroke: #221070; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Look (interactive) */
.look-demo { display: grid; gap: 24px; }
@container (min-width: 470px) { .look-demo { grid-template-columns: 190px minmax(0, 1fr); align-items: center; } .range { grid-template-columns: 96px minmax(0, 1fr); } }
.look-preview {
  --lk-gap: 6; --lk-radius: 8; --lk-outer-radius: 14; --lk-pad: 6; --lk-custom: #FFD4DF;
  display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 240px); margin-inline: auto;
  border-radius: 24px; background: var(--surface-2);
}
.look-canvas {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  width: 78%; aspect-ratio: 1;
  gap: calc(var(--lk-gap) * 1px); padding: calc(var(--lk-pad) * 1px);
  border-radius: calc(var(--lk-outer-radius) * 1px);
  background: #fff;
  box-shadow: 0 18px 36px -20px rgb(59 31 196 / .55);
  transition: background .3s;
}
.look-canvas i { border-radius: calc(var(--lk-radius) * 1px); background: var(--g0); }
.look-canvas i:first-child { grid-area: 1 / 1 / 3 / 3; }
.look-canvas i:nth-child(2) { background: var(--g1); } .look-canvas i:nth-child(3) { background: var(--g2); }
.look-canvas i:nth-child(4) { background: var(--g3); } .look-canvas i:nth-child(5) { background: var(--g4); } .look-canvas i:nth-child(6) { background: var(--g6); }
.c-look:has(input[value="transparent"]:checked) .look-canvas { background: repeating-conic-gradient(#D7D8E6 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.c-look:has(input[value="black"]:checked) .look-canvas { background: #000; }
.c-look:has(input[value="gradient"]:checked) .look-canvas { background: linear-gradient(135deg, #FFE45C, #F28CA6 50%, #6A2BF0); }
.c-look:has(input[value="custom"]:checked) .look-canvas { background: var(--lk-custom); }
.look-controls { display: grid; gap: 14px; }
.look-bg { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.look-bg legend { float: left; width: 100%; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sw { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.sw input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sw::before { content: ""; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(21 18 59 / .15); transition: box-shadow .2s; }
.sw:has(input:checked)::before { box-shadow: inset 0 0 0 1px rgb(21 18 59 / .15), 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.sw:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 0; }
.sw-transparent::before { background: repeating-conic-gradient(#C9CADB 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.sw-white::before { background: #fff; }
.sw-black::before { background: #000; }
.sw-gradient::before { background: linear-gradient(135deg, #FFE45C, #F28CA6 50%, #6A2BF0); }
.sw-custom::before { background: conic-gradient(from 90deg, #FF5E5E, #FFD24D, #5BE38C, #4CC9F0, #7B5CFF, #F25EC4, #FF5E5E); }
.look-color { width: 44px; height: 44px; padding: 8px; margin-left: 4px; border: 0; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.range { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14.5px; font-weight: 550; }
.range-label { color: var(--text); }

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, #4361EE, #4CC9F0) 0 0 / var(--fill) 100% no-repeat, var(--tile-idle);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 22px; margin-top: -8px; border-radius: 99px; border: 0;
  background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .08), 0 3px 10px rgb(21 18 59 / .25), inset 0 0 0 .5px rgb(0 0 0 / .06);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--tile-idle); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #4361EE, #4CC9F0); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 22px; border: 0; border-radius: 99px; background: #fff; box-shadow: 0 3px 10px rgb(21 18 59 / .25); }
input[type="range"]:focus-visible { outline-offset: 0; border-radius: 12px; }

/* Text & stickers */
.fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.fonts li {
  padding: 8px 14px; border-radius: 14px; background: var(--surface-2); font-size: 19px; line-height: 1.25;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ff-rounded { font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, sans-serif; font-weight: 800; }
.ff-serif { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; font-weight: 700; }
.ff-modern { font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-weight: 700; }
.ff-geo { font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif; font-weight: 700; }
.ff-type { font-family: "American Typewriter", "Courier New", Courier, monospace; font-weight: 700; }
.ff-hand { font-family: Noteworthy, "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-weight: 700; }
.ff-calli { font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive; font-weight: 900; font-size: 22px; }
.ff-chalk { font-family: "Chalkboard SE", Chalkboard, "Comic Sans MS", cursive; font-weight: 700; }
.text-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pipette { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #4361EE, #4CC9F0); }
.pipette svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swatch-row { display: inline-flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: var(--surface-2); }
.swatch-row i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.stickers { font-size: 26px; letter-spacing: .12em; }

/* Formats */
.ratios { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.formats { display: grid; gap: 14px; }
.fmt-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fmt-n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--accent-bg); font-variant-numeric: tabular-nums; }
.ratios { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px !important; align-items: end; }
.ratios li { display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.ratios li::before {
  content: ""; height: 48px; max-width: 100%; aspect-ratio: var(--r); border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent);
}
.ratios li:nth-child(5)::before { background: linear-gradient(160deg, var(--v1), #4CC9F0); box-shadow: none; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 820px) { .platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 360px) { .platforms { grid-template-columns: minmax(0, 1fr); } }
.platforms li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line); }
.platforms b { color: var(--text); font-weight: 650; }
.platforms .fmt-n { justify-self: start; }
.platforms small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.35; }
.fmt-sum { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fmt-sum b { color: var(--text); font-size: 16px; }

/* Themes */
.c-themes { --ta: #4361EE; --tb: #4CC9F0; }
.c-themes:has(input[value="standard"]:checked) { --ta: #3A0CA3; --tb: #5B23D6; }
.c-themes:has(input[value="coralReef"]:checked) { --ta: #0F766E; --tb: #FF6F59; }
.c-themes:has(input[value="roseGarden"]:checked) { --ta: #0E9F6E; --tb: #EC4899; }
.c-themes:has(input[value="sunsetCove"]:checked) { --ta: #EA580C; --tb: #0284C7; }
.c-themes:has(input[value="crimsonMint"]:checked) { --ta: #DC2626; --tb: #10B981; }
.c-themes:has(input[value="amberStorm"]:checked) { --ta: #CA8A04; --tb: #1E3A8A; }
.c-themes:has(input[value="berryLime"]:checked) { --ta: #BE185D; --tb: #84CC16; }
.theme-demo { display: grid; gap: 14px; padding: 20px; border-radius: 24px; background: #000; color: #fff; }
.theme-button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px;
  font-weight: 650; background: linear-gradient(90deg, var(--ta), var(--tb));
  text-shadow: 0 1px 2px rgb(0 0 0 / .45), 0 0 12px rgb(0 0 0 / .25);
  box-shadow: 0 10px 24px -12px var(--tb);
  transition: background .4s;
}
.theme-button svg { width: 18px; height: 18px; fill: #fff; }
.themes { display: grid; grid-template-columns: repeat(4, 46px); justify-content: center; gap: 2px 10px; }
.themes label { position: relative; display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer; }
.themes input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.themes label::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
  transition: box-shadow .2s, transform .2s var(--ease-out);
}
.themes label:has(input:checked)::before { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; transform: scale(1.05); }
.themes label:has(input:focus-visible) { outline: 3px solid #FFE45C; border-radius: 50%; }
.theme-name { text-align: center; font-size: 13px; color: rgb(255 255 255 / .75); }
.theme-name::after { content: " · Dark Mode"; }

/* Projects */
.project-list { display: grid; border-radius: 24px; background: var(--surface-2); padding: 6px 16px; }
.project-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.project-list li + li { border-top: 1px solid var(--line); }
.pthumb { position: relative; flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #fff; }
.pthumb i { --gap-mini: 1px; --tile-r-mini: 3px; }
.pmeta { display: grid; line-height: 1.3; flex: 1; min-width: 0; }
.pmeta b { font-weight: 650; }
.pmeta small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Export */
.export-demo { display: grid; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pills .is-on { color: #fff; background: linear-gradient(135deg, #3B55E0, #1F74C9); box-shadow: none; }
.dest { display: grid; gap: 8px; }
.dest > span {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(90deg, #3B55E0, #1F74C9);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
}
.dest svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
@container (min-width: 460px) { .dest { grid-template-columns: repeat(3, 1fr); } .dest > span { font-size: 14px; } }

/* Devices */
.devices { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-around; gap: 20px 18px; padding: 24px 12px 18px; border-radius: 24px; background: var(--surface-2); }
.dv { display: grid; justify-items: center; gap: 10px; }
.dv small { font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-screen { display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 3px var(--text), 0 12px 24px -16px rgb(21 18 59 / .5); }
.dv-c { flex: 1.1; border-radius: 4px; background: var(--g0); position: relative; overflow: hidden; }
.dv-c::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(transparent 48%, #fff 48% 52%, transparent 52%); }
.dv-col { flex: 1; display: grid; gap: 3px; align-content: start; }
.dv-t { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.dv-phone .dv-screen { width: 50px; height: 100px; border-radius: 13px; flex-direction: column; padding: 7px 6px; }
.dv-phone .dv-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dv-phone .dv-c { flex: none; height: 38px; }
.dv-land .dv-screen { width: 112px; height: 54px; border-radius: 13px; }
.dv-duo .dv-screen { width: 104px; height: 92px; position: relative; }
.dv-duo .dv-screen::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.dv-pad .dv-screen { width: 132px; height: 98px; border-radius: 14px; padding: 8px; }
.dv-land .dv-c, .dv-duo .dv-c, .dv-pad .dv-c { align-self: stretch; }

/* Small facts */
.c-small { justify-content: center; }
.mini-facts { display: grid; gap: 22px; }
@container (min-width: 560px) { .mini-facts { grid-template-columns: 1fr 1fr; } }
.mini-facts li { display: flex; align-items: center; gap: 14px; }
.mini-facts svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 15px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(135deg, var(--v1), var(--v2)); }
.mini-facts span { display: grid; line-height: 1.35; }
.mini-facts b { font-size: 17px; font-weight: 650; }
.mini-facts small { color: var(--muted); font-size: 15px; }

/* ---- New in 1.3 ------------------------------------------------------------ */
#neu .section-head { margin-bottom: 36px; }
.marquee {
  overflow: hidden; padding-block: 8px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.mq-set { display: flex; gap: 16px; padding-right: 16px; }
.mq-item {
  display: grid; justify-items: center; align-content: start; gap: 12px; width: 168px; padding: 16px 14px 14px;
  border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}
.mq-item > .mq-canvas { height: 108px; }
.mq-item > .mq-canvas.is-wide { width: 100%; height: auto; max-height: 108px; margin-block: auto; }
.mq-canvas { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.mq-canvas i { --gap-mini: 1.5px; --tile-r-mini: 4px; }
.mq-item .mq-canvas.is-wide { align-self: center; }
.mq-name { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.25; }
.mq-item { grid-template-rows: 108px auto; }
.mq-item > .mq-canvas { align-self: center; }
.mq-item > .mq-canvas.is-tall { justify-self: center; }

.news { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-wide { grid-column: 1 / -1; } }
@media (min-width: 1060px) { .news { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.news-item {
  padding: 28px; border-radius: 28px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}
@supports (corner-shape: squircle) { .news-item { corner-shape: squircle; border-radius: 52px; } }
.news-item h3 { margin-top: 18px; }
.news-item p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.news-wide { display: grid; gap: 0 24px; align-items: center; }
@media (min-width: 700px) { .news-wide { grid-template-columns: auto minmax(0, 1fr); } .news-wide .news-icon { grid-row: span 2; width: 72px; height: 72px; border-radius: 22px; } .news-wide .news-icon svg { width: 34px; height: 34px; } .news-wide h3 { margin-top: 0; } }
.news-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, var(--v1), var(--v2)); box-shadow: 0 10px 20px -12px rgb(59 31 196 / .8); }
.news-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-ios span { font-weight: 750; font-size: 19px; letter-spacing: -.04em; color: #fff; }

/* ---- Screenshots ------------------------------------------------------------ */
.shots-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrows { display: flex; gap: 8px; }
.arrows[hidden] { display: none; }
.arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity .2s, box-shadow .2s;
}
.arrow:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shots-note { margin-top: -28px; margin-bottom: 28px; color: var(--muted); font-size: 15px; }
.shots {
  --edge: max(16px, (100vw - 1200px) / 2);
  display: flex; gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 28px;
  scrollbar-width: none;
}
@media (min-width: 700px) { .shots { --edge: max(32px, (100vw - 1200px) / 2); } }
.shots::-webkit-scrollbar { display: none; }
.shots[hidden] { display: none; }
.shots:focus-visible { outline-offset: -3px; border-radius: 12px; }
.shot { flex: 0 0 auto; width: min(64vw, 264px); scroll-snap-align: start; }
.shots-ipad .shot { width: min(82vw, 440px); }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -34px rgb(42 15 143 / .7), 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out);
}
.shot-btn:hover { transform: translateY(-4px); }
.shot-btn img { width: 100%; height: auto; }
@supports selector(::scroll-marker) {
  .shots { scroll-marker-group: after; }
  .shots::scroll-marker-group { display: flex; justify-content: center; gap: 4px; padding-top: 6px; }
  .shot::scroll-marker {
    content: "" / "Screenshot"; width: 28px; height: 28px; border-radius: 50%;
    background: radial-gradient(circle, var(--line-2) 0 4px, transparent 4.5px);
  }
  .shot::scroll-marker:target-current { background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px); }
  .shot::scroll-marker:focus-visible { outline: 3px solid var(--focus); }
}

.lightbox {
  width: auto; max-width: min(94vw, 1000px); max-height: 94svh; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgb(8 6 30 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox img { width: auto; max-width: min(94vw, 1000px); max-height: 90svh; border-radius: 28px; }
.lightbox form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lb-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgb(20 16 60 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25);
}
.lb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---- Privacy -------------------------------------------------------------- */
.privacy { text-align: center; overflow: clip; }
.privacy::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 140vw); aspect-ratio: 1.6; translate: -50% -30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--v1) 14%, transparent), transparent);
  pointer-events: none;
}
.privacy-inner { position: relative; display: grid; justify-items: center; }
.privacy .lede { margin-inline: auto; }
.privacy h2 { max-width: 13ch; }
.privacy-lock {
  display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 28px; border-radius: 28px;
  background: linear-gradient(145deg, var(--v1), var(--v2) 60%, var(--v3));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 24px 50px -20px rgb(59 31 196 / .8);
}
.privacy-lock svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-lock circle { fill: var(--sun); stroke: none; }
.no-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; max-width: 760px; }
.no-list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 650; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
}
.no-list li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm0 3a8 8 0 0 1 6.3 12.9L7.1 5.7A8 8 0 0 1 12 4ZM4 12a8 8 0 0 1 1.7-4.9l11.2 11.2A8 8 0 0 1 4 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm0 3a8 8 0 0 1 6.3 12.9L7.1 5.7A8 8 0 0 1 12 4ZM4 12a8 8 0 0 1 1.7-4.9l11.2 11.2A8 8 0 0 1 4 12Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-note { margin-top: 44px; max-width: 40em; color: var(--muted); font-size: 16px; }
.site-note a, .legal-body a, .inline-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }

/* ---- CTA ---------------------------------------------------------------------- */
.cta-section { padding-top: 0; padding-bottom: clamp(64px, 8vw, 112px); }
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  display: grid; justify-items: center;
  padding: clamp(48px, 6vw, 80px) 24px; border-radius: 44px;
  box-shadow: 0 50px 100px -50px rgb(42 15 143 / .9);
}
@supports (corner-shape: squircle) { .cta { corner-shape: squircle; border-radius: 88px; } }
.cta-logo { width: 84px; height: 84px; margin-bottom: 30px; filter: drop-shadow(0 12px 30px rgb(255 228 92 / .35)); }
.cta h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -.038em; }
.cta-lede { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); color: rgb(255 255 255 / .86); }
.store-row-center { justify-content: center; margin-top: 32px; }
.store-row-center .badge img { height: 54px; }
.cta-fine { margin-top: 26px; font-size: 14px; color: rgb(255 255 255 / .78); }

/* ---- Footer ---------------------------------------------------------------------- */
.site-footer { padding: 64px 0 36px; background: var(--bg); border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 30em; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.footer-h { font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---- Legal pages ----------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  margin-top: calc(-1 * var(--hdr-h));
  padding: calc(var(--hdr-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px);
}
.page-hero::before { content: ""; }
.page-hero::after { z-index: -1; }
.page-hero .kicker { color: var(--sun); }
.page-hero h1 { font-size: clamp(34px, 7vw, 80px); line-height: 1.02; letter-spacing: -.04em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.page-hero .lede { color: rgb(255 255 255 / .84); }
.legal-body { padding-block: clamp(56px, 8vw, 96px); }
.measure { max-width: 760px; }
.legal-section { padding: clamp(24px, 3vw, 32px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.legal-section + .legal-section { margin-top: 16px; }
.legal-section h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 12px; }
.legal-section p, .legal-section address, .legal-section li { color: var(--muted); font-style: normal; line-height: 1.65; }
.legal-section p + p { margin-top: 12px; }
.legal-section strong { color: var(--text); font-weight: 650; }
.legal-section ul { display: grid; gap: 8px; margin-top: 8px; }
.legal-section ul li { position: relative; padding-left: 22px; }
.legal-section ul li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---- 404 --------------------------------------------------------------------------- */
.page-404 {
  position: relative; isolation: isolate; overflow: clip; color: #fff; text-align: center;
  min-height: calc(100svh - var(--hdr-h)); margin-top: calc(-1 * var(--hdr-h));
  padding: calc(var(--hdr-h) + 48px) 16px 64px; display: grid; place-content: center; justify-items: center;
}
.page-404::before { content: ""; }
.page-404::after { content: ""; z-index: -1; }
.lost-grid { --s: clamp(64px, 16vw, 96px); position: relative; display: grid; grid-template-columns: repeat(2, var(--s)); gap: 12px; margin-bottom: 76px; }
.lost-grid i { width: var(--s); aspect-ratio: 1; border-radius: 28%; background: #F7F6FF; box-shadow: 0 16px 30px -16px rgb(10 0 60 / .6); }
.lost-grid i:nth-child(2) { background: #FFE45C; }
.lost-grid i:nth-child(3) { background: #FFE45C; }
.lost-grid i:nth-child(4) { background: transparent; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5); border: 0; outline: 2px dashed rgb(255 255 255 / .0); }
.lost-tile { position: absolute; right: calc(var(--s) * -.55); bottom: calc(var(--s) * -.7); width: var(--s); aspect-ratio: 1; border-radius: 28%; background: #F7F6FF; rotate: 18deg; box-shadow: 0 20px 40px -18px rgb(10 0 60 / .7); }
.page-404 h1 { font-size: clamp(40px, 8vw, 88px); line-height: 1; letter-spacing: -.04em; }
.page-404 p { margin-top: 18px; font-size: clamp(18px, 1.8vw, 21px); color: rgb(255 255 255 / .86); max-width: 30em; }
.btn-light {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 32px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--v2); font-weight: 700; text-decoration: none; box-shadow: 0 16px 30px -16px rgb(10 0 60 / .7);
}

/* ==========================================================================
   Motion – only when the user hasn't asked for less
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }

  .hero-bg, .cta-bg, .page-hero::before, .page-404::before { animation: mesh 22s ease-in-out infinite alternate; }
  @keyframes mesh {
    50% { --m1x: 36%; --m1y: 30%; --m2x: 70%; --m2y: 88%; }
    100% { --m1x: 10%; --m1y: 40%; --m2x: 92%; --m2y: 48%; }
  }
  .ghost { animation: drift 16s ease-in-out infinite alternate; }
  .g2 { animation-duration: 19s; animation-delay: -6s; }
  .g3 { animation-duration: 13s; animation-delay: -3s; }
  .g4 { animation-duration: 21s; }
  @keyframes drift { to { transform: translate(-14px, 18px) rotate(8deg); } }

  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .phone-back { animation: rise 1.1s .1s var(--ease-out) both; }
  .phone-front { animation: rise 1.1s .22s var(--ease-out) both, float 9s 1.4s ease-in-out infinite; }
  .chip-float { animation: rise .9s .5s var(--ease-out) both; }
  @keyframes float { 50% { transform: translateY(-8px); } }
  @keyframes rise { from { opacity: 0; translate: 0 26px; } }


  .shuffle-canvas { transition: left .75s var(--ease-io), top .75s var(--ease-io), width .75s var(--ease-io), height .75s var(--ease-io); }
  .st {
    transition: left .8s var(--spring), top .8s var(--spring), width .8s var(--spring), height .8s var(--spring), opacity .45s var(--ease-out);
    transition-delay: calc(var(--i) * 22ms);
  }
  .shuffle-caption.is-swap .cap-name, .shuffle-caption.is-swap .cap-meta { animation: capIn .6s var(--ease-out) both; }
  .shuffle-caption.is-swap .cap-meta { animation-delay: .06s; }
  @keyframes capIn { from { opacity: 0; translate: 0 14px; filter: blur(6px); } }
  .dice.is-rolling svg { animation: roll .6s var(--spring); }
  @keyframes roll { from { rotate: -200deg; scale: .7; } }

  .td.a { animation: swapA 5s var(--ease-io) infinite; }
  .td.d { animation: swapD 5s var(--ease-io) infinite; }
  .td-hand { animation: hand 5s var(--ease-io) infinite; }
  @keyframes swapA { 0%, 18% { translate: 0 0; scale: 1; } 24% { scale: 1.08; } 50%, 68% { translate: calc(var(--s) + var(--g)) calc(var(--s) + var(--g)); scale: 1; } 94%, 100% { translate: 0 0; } }
  @keyframes swapD { 0%, 22% { translate: 0 0; } 50%, 72% { translate: calc(-1 * (var(--s) + var(--g))) calc(-1 * (var(--s) + var(--g))); } 94%, 100% { translate: 0 0; } }
  @keyframes hand { 0% { translate: -40px -40px; opacity: 0; } 12% { opacity: 1; } 18% { translate: -34px -34px; scale: .9; } 50% { translate: 36px 36px; scale: .9; } 58% { scale: 1; opacity: 1; } 68%, 100% { translate: 36px 36px; opacity: 0; } }

  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .theme-button { transition: background .4s, box-shadow .4s; }
  .lightbox[open] { animation: lbIn .35s var(--ease-out); }
  .lightbox[open]::backdrop { animation: fadeIn .35s var(--ease-out); }
  @keyframes lbIn { from { opacity: 0; scale: .94; } }
  @keyframes fadeIn { from { opacity: 0; } }

  .mobile-nav { transition: opacity .25s var(--ease-out), translate .25s var(--ease-out), display .25s allow-discrete, overlay .25s allow-discrete; }
  @starting-style { .mobile-nav:popover-open { opacity: 0; translate: 0 -8px; } }

  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

  /* scroll-driven reveals – progressive enhancement */
  @supports (animation-timeline: view()) {
    .card, .tpl, .news-item, .no-list li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    @keyframes reveal { from { opacity: 0; translate: 0 36px; scale: .98; } }
  }
}

/* Reduced motion: keep the marquee as a static, scrollable row */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
  .mq-set + .mq-set { display: none; }
  .td-hand { display: none; }
}

@media print {
  .site-header, .shuffle-controls, .tpl-filters, .lightbox { display: none !important; }
  .hero, .cta, .page-hero { color: #000; background: none; }
}

/* text sample */
.text-sample {
  position: relative; display: grid; place-items: center; min-height: 150px; border-radius: 22px; overflow: hidden;
  background: var(--g0);
}
.text-sample::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgb(255 255 255 / .35), transparent 60%); }
.text-sample b {
  position: relative; font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive; font-weight: 900;
  font-size: clamp(34px, 9cqi, 50px); color: #fff; text-shadow: 0 4px 18px rgb(120 20 40 / .35); rotate: -4deg;
}
.text-sample .ts-sticker { position: absolute; right: 12%; top: 14%; font-size: 34px; rotate: 14deg; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .2)); }
.text-sample .ts-sticker + .ts-sticker { right: auto; left: 10%; top: auto; bottom: 12%; rotate: -12deg; font-size: 28px; }
.text-sample .ts-handle { position: absolute; inset: 28% 22%; border: 1.5px dashed rgb(255 255 255 / .8); border-radius: 10px; }
.text-sample .ts-handle::before, .text-sample .ts-handle::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.text-sample .ts-handle::before { left: -6px; top: -6px; } .text-sample .ts-handle::after { right: -6px; bottom: -6px; }

/* shuffle progress */
.shuffle-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.shuffle-progress i { width: 22px; height: 4px; border-radius: 99px; background: var(--line-2); transition: background-color .3s, width .3s var(--ease-out); }
.shuffle-progress i.is-on { width: 44px; background: linear-gradient(90deg, var(--v1), #4CC9F0); }
@media (max-width: 959px) { .shuffle-progress { justify-content: center; } }

/* Smart-Grid demo on narrow cards */
@container (max-width: 440px) {
  .smart-controls { display: grid; grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 0 8px; }
  .stepper { justify-self: start; }
  .smart-result { gap: 10px; padding: 16px 12px; }
  .smart-photos { width: 72px; gap: 5px; }
  .smart-photos i { width: 18px; border-radius: 5px; }
  .smart-arrow { width: 24px; }
  .mini-frame { width: 116px; height: 116px; }
}

/* explicit aspect ratios (CLS-safe lazy images) */
.shots-iphone .shot-btn img { aspect-ratio: 479 / 1038; }
.shots-ipad .shot-btn img { aspect-ratio: 799 / 1066; }
.badge img { aspect-ratio: 119.664 / 40; }
.soon img { aspect-ratio: 646 / 250; }

@media (max-width: 374px) {
  .brand-name { display: none; }
}


/* ==========================================================================
   Review round 2
   ========================================================================== */

/* cards: clip instead of hidden so sticky children work */
.card { overflow: clip; }

/* motion pause control (WCAG 2.2.2) */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0 14px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: rgb(255 255 255 / .92);
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: rgb(255 255 255 / .14); }
.motion-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .mt-play, .motion-toggle[aria-pressed="true"] .mt-pause { display: none; }
.motion-toggle[aria-pressed="true"] .mt-play { display: block; }
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }
html.is-paused .shuffle-canvas, html.is-paused .st { transition-duration: .01ms !important; }
.marquee:focus-within .marquee-track, .marquee:hover .marquee-track { animation-play-state: paused; }

/* mobile menu: backdrop + close button + X toggle */
.mobile-nav::backdrop { background: rgb(8 6 30 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.menu-close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--surface-2); color: var(--text);
}
.menu-close svg, .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-nav { padding-top: 58px; }

/* lightbox: centered, close on the image, prev/next */
.lightbox { width: fit-content; max-width: 100vw; margin: auto; overflow: visible; }
.lb-frame { position: relative; }
.lightbox img {
  display: block; width: auto; max-width: min(92vw, 1100px); border-radius: 26px;
  height: min(88svh, calc(92vw * 1947 / 899)); aspect-ratio: 899 / 1947;
}
.lightbox[data-device="ipad"] img { height: min(90svh, calc(88vw * 1866 / 1399)); aspect-ratio: 1399 / 1866; }
.lightbox form { display: none; }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-nav {
  position: fixed; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgb(20 16 60 / .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25);
}
.lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: max(12px, 2vw); } .lb-next { right: max(12px, 2vw); }
.lb-count { position: fixed; left: 50%; bottom: max(10px, 2svh); translate: -50% 0; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #fff; background: rgb(20 16 60 / .6); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lb-nav { top: auto; bottom: max(10px, 2svh); translate: none; width: 48px; height: 48px; }
  .lightbox img { height: min(80svh, calc(92vw * 1947 / 899)); }
  .lightbox[data-device="ipad"] img { height: min(80svh, calc(92vw * 1866 / 1399)); }
}

/* violet brand band ("Neu in 1.3") */
.section-brand { position: relative; isolation: isolate; overflow: clip; color: #fff; background: var(--v2); --focus: #FFE45C; }
.section-brand .kicker { color: var(--sun); }
.section-brand .grad { background: linear-gradient(100deg, #FFFFFF, #FFE45C); -webkit-background-clip: text; background-clip: text; }
.section-brand .news-item, .section-brand .mq-item {
  background: rgb(255 255 255 / .09); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 0 rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.section-brand .news-item p { color: rgb(255 255 255 / .86); }
.section-brand .news-icon { background: #fff; box-shadow: 0 10px 20px -12px rgb(0 0 0 / .5); }
.section-brand .news-icon svg { stroke: var(--v2); }
.section-brand .news-ios span { color: var(--v2); }
.section-brand .mq-canvas { box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5); }
.news-ios { background: linear-gradient(135deg, var(--v1), var(--v2)); }

/* template explorer in color */
.tpl-thumb { background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--tile-idle))); }
.mini-canvas { background: #fff; border-radius: 6px; box-shadow: 0 0 0 3px #fff, 0 10px 20px -12px rgb(59 31 196 / .55); }
.mini-canvas i::after { opacity: 1; }
.mini-canvas i::before { background: transparent; }
.tpl { transition: transform .35s var(--ease-out), box-shadow .35s; }
.tpl:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 44px -26px rgb(59 31 196 / .55); }
.tpl .mini-canvas { transition: transform .45s var(--spring); }
.tpl:hover .mini-canvas { transform: scale(1.05) rotate(-1.5deg); }
.tpl-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #221070; vertical-align: 1px; }

/* bento: tablet without holes/stretch, devices spans full width */
@media (min-width: 700px) and (max-width: 1059px) {
  .c-look, .c-devices, .c-formats, .c-text { grid-column: span 2; }
  .c-smart { order: 1; } .c-tile { order: 2; } .c-themes { order: 3; } .c-look { order: 4; } .c-text { order: 5; }
  .c-formats { order: 6; } .c-projects { order: 7; } .c-export { order: 8; } .c-devices { order: 9; }
  .c-tile .tile-demo { min-height: 220px; }
}
@media (min-width: 1060px) {
  .c-devices { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 48px; align-items: center; }
  .c-devices .card-copy { grid-column: 1; }
  .c-devices .devices { grid-column: 2; grid-row: 1 / span 2; }
  .c-devices .mini-facts { grid-column: 1; }
}
.c-devices .mini-facts { gap: 16px; }
.mini-facts svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; }

/* "Dein Look": preview stays visible while dragging on phones */
@media (max-width: 699px) {
  .look-preview {
    position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 2; width: 100%; aspect-ratio: auto; height: 190px;
    box-shadow: 0 16px 30px -22px rgb(21 18 59 / .6);
  }
  .look-canvas { width: auto; height: 82%; }
}
.c-look .look-demo { align-items: start; }

/* hero on tablet: phones close to the text */
@media (max-width: 959px) {
  .hero-grid { gap: 28px; }
}

/* forced colors */
@media (forced-colors: active) {
  [aria-pressed="true"], .chip[aria-pressed="true"], .step[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: 2px; }
  .sw:has(input:checked), .themes label:has(input:checked) { outline: 3px solid Highlight; }
  .grad { color: CanvasText; background: none; }
}

/* reduced motion: marquee wraps instead of scrolling */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; }
  .marquee-track { width: auto; justify-content: center; }
  .mq-set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
}

@supports selector(::scroll-marker) {
  .shot:nth-child(1)::scroll-marker { content: "" / "Screenshot 1"; }
  .shot:nth-child(2)::scroll-marker { content: "" / "Screenshot 2"; }
  .shot:nth-child(3)::scroll-marker { content: "" / "Screenshot 3"; }
  .shot:nth-child(4)::scroll-marker { content: "" / "Screenshot 4"; }
  .shot:nth-child(5)::scroll-marker { content: "" / "Screenshot 5"; }
  .shot:nth-child(6)::scroll-marker { content: "" / "Screenshot 6"; }
}

/* gallery strip in the export card */
.gallery-mini { display: grid; gap: 10px; margin-top: auto; padding: 16px; border-radius: 22px; background: var(--surface-2); }
.gallery-mini p { font-size: 14px; font-weight: 650; color: var(--muted); }
.gm-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pthumb.gm { width: auto; height: 76px; aspect-ratio: var(--ar); border-radius: 10px; box-shadow: 0 10px 20px -14px rgb(59 31 196 / .6); }
.c-projects .project-list { flex: 1; align-content: center; }

/* pause: one-shot entrances simply end, scroll-linked reveals keep following the scroll */
html.is-paused .hero-copy > *, html.is-paused .phone, html.is-paused .chip-float { animation: none !important; }
html.is-paused .card, html.is-paused .tpl, html.is-paused .news-item, html.is-paused .no-list li { animation-play-state: running !important; }


/* ==========================================================================
   Compact pass (round 4) – less empty space everywhere
   ========================================================================== */
.section { padding-block: clamp(56px, 6.4vw, 92px); }
.section-head { margin-bottom: clamp(28px, 3vw, 40px); }
.section h2, .shuffle h2 { font-size: clamp(32px, 4.8vw, 66px); line-height: 1.03; }
.lede { max-width: 60ch; margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); }
.kicker { margin-bottom: 10px; }
.hero { padding: calc(var(--hdr-h) + clamp(24px, 4vw, 56px)) 0 clamp(44px, 5vw, 72px); }
.hero-pill { margin-bottom: 18px; }
.hero-lede { margin-top: 18px; }
.store-row { margin-top: 26px; }
.hero-facts { margin-top: 24px; }
.motion-toggle { margin-top: 12px; }
@media (min-width: 960px) { .hero-stage { width: min(100%, 470px); } }

/* ---- Ideen: intro + controls left, collage right, all in one viewport ---- */
.shuffle { padding-block: clamp(56px, 6.4vw, 92px); }
.shuffle-pin-grid {
  display: grid; gap: 18px 56px; align-items: center;
  grid-template-areas: "intro" "stage" "info";
}
.shuffle-intro { grid-area: intro; margin: 0; }
.shuffle-intro h2 { max-width: none; font-size: clamp(30px, 3.6vw, 50px); }
.shuffle-intro .lede { margin-top: 12px; font-size: clamp(16px, 1.25vw, 18px); }
.shuffle-info { grid-area: info; order: 0; }
.shuffle-stage { grid-area: stage; width: min(100%, 560px, 62svh); }
.shuffle-progress { margin-bottom: 12px; }
.shuffle-caption { min-height: 0; gap: 2px; }
.cap-name { font-size: clamp(26px, 2.8vw, 40px); }
.shuffle-controls { margin-top: 14px; gap: 8px; }
@media (min-width: 960px) {
  .shuffle-pin-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "intro stage" "info stage";
    align-content: center;
  }
  .shuffle-intro { align-self: end; }
  .shuffle-info { align-self: start; text-align: left; }
  .shuffle-caption { justify-items: start; text-align: left; }
  .shuffle-controls, .steps, .shuffle-progress { justify-content: flex-start; }
}
@media (max-width: 959px) {
  .shuffle-caption { text-align: center; justify-items: center; }
  .shuffle-intro { text-align: left; }
}
/* scroll-telling only on wide screens; the pin holds intro, controls and collage */
.scrolly .shuffle { padding-block: 0; }
.scrolly .shuffle-track { height: calc(100svh - var(--hdr-h) + 6 * 40svh); }
.scrolly .shuffle-pin { position: sticky; top: var(--hdr-h); height: calc(100svh - var(--hdr-h)); padding-block: 24px; }
.scrolly .shuffle-stage { width: min(100%, 560px, 62svh, calc(100svh - var(--hdr-h) - 48px)); }
@media (max-width: 959px) {
  .scrolly .shuffle-track { height: auto; }
  .scrolly .shuffle-pin { position: static; height: auto; }
}

/* ---- Template explorer ---- */
.tpl-grid { gap: 12px; }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; } }
.tpl { padding: 8px 8px 12px; border-radius: 22px; }
.tpl-thumb { padding: 12%; border-radius: 15px; }
.tpl-name { margin-top: 9px; font-size: 15px; }
.tpl-meta { font-size: 13px; }
.tpl-badge { top: 14px; right: 14px; }
.tpl-filters { margin-bottom: 20px; }
.tpl-more { margin-top: 22px; }

/* ---- Bento ---- */
.bento { gap: 14px; }
.card { gap: 20px; padding: clamp(20px, 2.4vw, 30px); }
.card-copy p { margin-top: 8px; font-size: 16px; }
.tile-demo { min-height: 160px; }
.smart-result { min-height: 150px; padding: 16px; }
.look-demo { gap: 18px; }
.look-controls { gap: 6px; }
.theme-demo { padding: 16px; gap: 10px; }
.project-list li { padding: 9px 0; }
.devices { padding: 18px 10px 14px; }
.gallery-mini { padding: 12px 14px; }
.text-sample { min-height: 120px; }
@container (max-width: 360px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .platforms li { padding: 9px 11px; } .platforms small { font-size: 12px; } }
@media (max-width: 699px) {
  .fonts li { font-size: 17px; padding: 6px 11px; }
  .ratios { gap: 10px 6px !important; }
  .ratios li::before { height: 38px; }
  .look-preview { height: 160px; }
}

/* ---- Neu in 1.3 ---- */
#neu .section-head { margin-bottom: 24px; }
.marquee { padding-block: 4px 28px; }
.mq-item { width: 150px; padding: 12px 12px 12px; gap: 10px; grid-template-rows: 92px auto; }
.mq-item > .mq-canvas { height: 92px; }
.mq-item > .mq-canvas.is-wide { max-height: 92px; }
.news { gap: 14px; }
.news-item { padding: 22px; }
.news-item h3 { margin-top: 14px; }

/* ---- Screenshots ---- */
.shots { padding-bottom: 20px; }
.shots-note { margin-top: -18px; margin-bottom: 20px; }

/* ---- Privacy ---- */
.privacy-lock { width: 72px; height: 72px; margin-bottom: 20px; border-radius: 22px; }
.privacy-lock svg { width: 42px; height: 42px; }
.no-list { margin-top: 28px; gap: 8px; }
.no-list li { padding: 10px 18px 10px 12px; }
.site-note { margin-top: 28px; }

/* ---- CTA + footer ---- */
.cta-section { padding-bottom: clamp(48px, 6vw, 80px); }
.cta { padding: clamp(40px, 5vw, 64px) 20px; }
.cta-logo { width: 68px; height: 68px; margin-bottom: 22px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 60px); }
.store-row-center { margin-top: 24px; }
.cta-fine { margin-top: 18px; }
.site-footer { padding: 44px 0 28px; }
.footer-grid { gap: 28px; }
.footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.footer-bottom { margin-top: 24px; padding-top: 18px; }
@media (max-width: 480px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links a { font-size: 15px; }
}

/* ---- Legal pages: spacing only ---- */
.page-hero { padding: calc(var(--hdr-h) + clamp(32px, 5vw, 64px)) 0 clamp(36px, 5vw, 60px); }
.legal-body { padding-block: clamp(40px, 5vw, 64px); }
.legal-section { padding: clamp(20px, 2.4vw, 28px); }
.legal-section + .legal-section { margin-top: 12px; }
h2 .grad { white-space: nowrap; }
@media (min-width: 1060px) { .section-head { max-width: 1040px; } .section-head-row > div:first-child { max-width: 900px; } }
.privacy h2 { max-width: 20ch; }
@media (max-width: 699px) {
  .dest { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dest > span { flex-direction: column; gap: 4px; min-height: 64px; border-radius: 16px; font-size: 12px; text-align: center; padding: 8px 4px; line-height: 1.2; }
  .gm-row { flex-wrap: nowrap; gap: 8px; }
  .pthumb.gm { height: 54px; }
  .devices { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: end; padding: 16px 10px 12px; gap: 8px; }
  .dv-phone .dv-screen { width: 36px; height: 72px; border-radius: 10px; padding: 5px 4px; }
  .dv-phone .dv-c { height: 26px; }
  .dv-land .dv-screen { width: 76px; height: 38px; border-radius: 10px; padding: 4px; }
  .dv-duo .dv-screen { width: 64px; height: 56px; padding: 4px; }
  .dv-pad .dv-screen { width: 78px; height: 58px; border-radius: 10px; padding: 5px; }
  .dv-t { height: 5px; }
  .dv small { font-size: 11px; }
}
.cta-section { padding-top: 0; }
.no-list { max-width: 900px; }
