/* Crusty Pixel homepage. Warm cream, flame accents, big confident type. */

:root {
  --cream: #FFF8F0;
  --cream-2: #FFEFE1;
  --cream-3: #FFE4CF;
  --white: #FFFFFF;
  --ink: #1A1210;
  --ink-2: #4A3B35;
  --muted: #776860;
  --line: rgba(26, 18, 16, .08);
  --line-2: rgba(26, 18, 16, .14);

  --crimson: #B5121B;
  --red: #E31E24;
  --orange: #F7941D;
  --amber: #FBB040;
  --flame: linear-gradient(100deg, var(--brand-1) 0%, var(--red-3) 38%, var(--orange) 76%, var(--amber) 100%);
  --flame-btn: linear-gradient(100deg, var(--brand-1) 0%, var(--red-2) 45%, var(--hot) 100%);
  /* Deeper flame for text on light backgrounds: every stop stays above 3:1 on cream */
  --flame-text: linear-gradient(100deg, #B5121B 0%, #D9301C 40%, #D2560E 75%, #C2610A 100%);

  /* Headings, titles and all bold text */
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(26, 18, 16, .05), 0 4px 14px rgba(26, 18, 16, .05);
  --shadow: 0 2px 6px rgba(26, 18, 16, .05), 0 18px 40px rgba(26, 18, 16, .09);
  --shadow-lg: 0 6px 14px rgba(26, 18, 16, .06), 0 40px 90px rgba(var(--shadow-rgb), .18);
  --glow: 0 10px 30px rgba(var(--red-rgb), .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 28px;

  /* ---- Theme: Ember (the original). Every brand colour on the page reads from these. ---- */
  --brand-1: #C8141E;
  --red-2: #E8361F;
  --red-3: #EF3B24;
  --hot: #F26B1D;
  --accent-deep: #C2410C;
  --orange-rgb: 247, 148, 29;
  --red-rgb: 232, 54, 31;
  --glint-rgb: 240, 120, 20;
  --mote-rgb: 244, 150, 96;
  --ring-rgb: 220, 100, 60;
  --shadow-rgb: 80, 24, 8;
  --shadow-rgb-2: 120, 40, 10;
  --shadow-red-rgb: 200, 60, 20;
  --paper-rgb: 255, 250, 244;
  --veil-rgb: 255, 248, 240;
  --on-dark-rgb: 255, 243, 232;
  --on-dark-2-rgb: 255, 240, 228;
  --tint-1: #FFF1E4;
  --track: #F3E7DD;
  --tint-check: #FFE7D3;
  --mark: #FFE2C7;
  --mark-pop: #FFC49A;
  --selection: #FFD3B0;
  --eyebrow-dark: #FFD9BF;
  --flag-spark: #FFE3B0;
  --stripe-1: #FBF6F1;
  --stripe-2: #F8F1EA;
  --chrome: #F7F1EB;
  --chrome-dot: #E9DED4;
  --spinner-track: #F3D9C6;
  --cube-off: #EADDD2;
  --switch-off: #E7DAD0;
  --off-1: #F6F1EC;
  --off-2: #F4F0EC;
  --off-3: #F8F5F2;
  --mote-core: #FFF4E6;
  --glint-core: #FFF6E8;
  --sky-1: #FFF7F0;
  --sky-2: #FFF3EA;
  --sky-3: #FFEDE2;
  --night: #160E0C;
  --placeholder: #A8988F;
  --cube-top: #F7941D;
  --cube-left: #E31E24;
  --cube-right: #B5121B;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-6' fill='none' stroke='%23C2410C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---- Theme: Berry (from the magenta logo). Switch with data-theme="berry" on <html>. ---- */
html[data-theme="berry"] {
  --cream: #FFF7FA;
  --cream-2: #FCECF3;
  --cream-3: #F9DEEA;
  --ink: #1E0F18;
  --ink-2: #4B3443;
  --muted: #765E6C;

  --brand-1: #8E1060;
  --crimson: #7D0E4E;
  --red: #C3157A;
  --red-2: #D41C7E;
  --red-3: #E6247F;
  --hot: #F0306A;
  --orange: #F0287E;
  --amber: #FF4A3D;
  --accent-deep: #A3105E;
  /* Deeper berry for text on light backgrounds: every stop stays above 4.5:1 */
  --flame-text: linear-gradient(100deg, #7D0E4E 0%, #B0136E 40%, #C8166E 75%, #CF2340 100%);

  --orange-rgb: 240, 40, 126;
  --red-rgb: 195, 21, 122;
  --glint-rgb: 236, 36, 120;
  --mote-rgb: 232, 120, 170;
  --ring-rgb: 196, 60, 130;
  --shadow-rgb: 70, 10, 45;
  --shadow-rgb-2: 110, 20, 70;
  --shadow-red-rgb: 180, 20, 100;
  --paper-rgb: 255, 247, 251;
  --veil-rgb: 255, 247, 250;
  --on-dark-rgb: 255, 238, 246;
  --on-dark-2-rgb: 255, 232, 243;
  --tint-1: #FCE8F2;
  --track: #F2E1EA;
  --tint-check: #FBE0EE;
  --mark: #FBD7E9;
  --mark-pop: #F6B3D5;
  --selection: #F9C4DE;
  --eyebrow-dark: #FFCFE5;
  --flag-spark: #FFD0E6;
  --stripe-1: #FCF5F8;
  --stripe-2: #F9ECF2;
  --chrome: #F7EDF2;
  --chrome-dot: #E8D8E1;
  --spinner-track: #F3D2E3;
  --cube-off: #EAD6E1;
  --switch-off: #E6D3DD;
  --off-1: #F7EEF3;
  --off-2: #F5ECF0;
  --off-3: #FAF4F7;
  --mote-core: #FFF0F7;
  --glint-core: #FFF0F7;
  --sky-1: #FFF7FB;
  --sky-2: #FCEFF6;
  --sky-3: #F9E6F0;
  --night: #170A12;
  --placeholder: #A08896;
  --cube-top: #F0287E;
  --cube-left: #C3157A;
  --cube-right: #7D0E4E;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-6' fill='none' stroke='%23A3105E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---- Theme: Violet (from the indigo-to-magenta logo). Switch with data-theme="violet" on <html>. ---- */
html[data-theme="violet"] {
  --cream: #F9F7FF;
  --cream-2: #F1ECFD;
  --cream-3: #E6DEFB;
  --ink: #150F24;
  --ink-2: #3D3452;
  --muted: #6B6380;

  --brand-1: #4B00B4;
  --crimson: #3A0A8C;
  --red: #6A12E0;
  --red-2: #7A1AF0;
  --red-3: #8E24FA;
  --hot: #C21AE8;
  --orange: #C81CF0;
  --amber: #FF2BD6;
  --accent-deep: #5B12C8;
  /* Deeper violet for text on light backgrounds: every stop stays above 5:1 */
  --flame-text: linear-gradient(100deg, #3A0A8C 0%, #6212D4 40%, #8A14D8 75%, #B0129E 100%);

  --orange-rgb: 200, 28, 240;
  --red-rgb: 106, 18, 224;
  --glint-rgb: 190, 40, 240;
  --mote-rgb: 170, 130, 240;
  --ring-rgb: 130, 70, 220;
  --shadow-rgb: 30, 10, 70;
  --shadow-rgb-2: 50, 20, 110;
  --shadow-red-rgb: 90, 20, 200;
  --paper-rgb: 250, 248, 255;
  --veil-rgb: 249, 247, 255;
  --on-dark-rgb: 244, 238, 255;
  --on-dark-2-rgb: 238, 232, 255;
  --tint-1: #EFE8FD;
  --track: #E6E0F5;
  --tint-check: #EADFFD;
  --mark: #E3D6FC;
  --mark-pop: #CDB4FA;
  --selection: #D9C8FC;
  --eyebrow-dark: #DCCBFF;
  --flag-spark: #E8D9FF;
  --stripe-1: #F7F5FD;
  --stripe-2: #F1EDFB;
  --chrome: #F1EEF9;
  --chrome-dot: #DDD7EC;
  --spinner-track: #E3D9F7;
  --cube-off: #DED6EE;
  --switch-off: #DCD5EA;
  --off-1: #F2EFF8;
  --off-2: #F0EDF6;
  --off-3: #F7F5FB;
  --mote-core: #F8F2FF;
  --glint-core: #FBF0FF;
  --sky-1: #FAF8FF;
  --sky-2: #F4F0FE;
  --sky-3: #EDE6FC;
  --night: #0F0A1E;
  --placeholder: #958CA8;
  --cube-top: #8E24FA;
  --cube-left: #6A12E0;
  --cube-right: #3A0A8C;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-6' fill='none' stroke='%235B12C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Guard against anything poking past the edges; clip (not hidden) keeps sticky panels working */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
b, strong { font-family: var(--display); font-weight: 700; }
/* Plus Jakarta Sans spaces commas and periods wide at heavy weights; tuck them in on big headings */
.pt { margin-left: -.07em; }
/* Example customer sites keep their own typefaces */
.ws b, .ws strong, .ed-page b, .ed-page strong { font-family: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--selection); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 16px; height: 16px; flex: none; }
.ico--flip { transform: scaleX(-1); }

/* flame text */
.flame {
  font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: -.035em;
  background: var(--flame-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h2 .flame, h1 .flame { line-height: .95; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 16px/1 var(--display); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .08s; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:not(.ico--flip) { transform: translateX(3px); }
.btn--flame { color: #fff; background: var(--flame-btn); background-size: 160% 100%; background-position: 0 0; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease); }
.btn--flame:hover { background-position: 100% 0; box-shadow: 0 16px 40px rgba(var(--red-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: var(--shadow); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 14.5px; }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Shared heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font: 600 13px/1 var(--display); color: var(--ink-2); letter-spacing: .01em; }
.eyebrow svg { width: 14px; height: 15px; }
.eyebrow--dark { background: rgba(255, 255, 255, .08); color: var(--eyebrow-dark); box-shadow: none; }
.head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.head h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin: 22px 0 0; }
.head--left { text-align: left; margin: 0; }
.lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); line-height: 1.55; }
.lede--dark { color: rgba(var(--on-dark-2-rgb), .72); }
.note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.section { position: relative; padding: 140px 0; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(var(--paper-rgb), .72);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(26, 18, 16, .06), 0 10px 30px rgba(26, 18, 16, .06); transition: box-shadow .3s, background-color .3s;
}
.nav.is-scrolled .nav__bar { background: rgba(var(--paper-rgb), .9); box-shadow: 0 0 0 1px rgba(26, 18, 16, .08), 0 14px 40px rgba(26, 18, 16, .1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
/* Uploaded site logo: sized by height so any shape keeps its proportions */
.brand .brand__logo { width: auto; height: 36px; max-width: 180px; object-fit: contain; }
@media (max-width: 640px) { .brand .brand__logo { height: 32px; max-width: 140px; } }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.nav__links a:hover { background: rgba(26, 18, 16, .05); color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: rgba(var(--orange-rgb), .14); }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 999px; background: var(--ink); cursor: pointer; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { pointer-events: auto; max-width: 1180px; margin: 10px auto 0; padding: 14px; display: grid; gap: 2px; border-radius: 24px; background: rgba(var(--paper-rgb), .96); box-shadow: var(--shadow); }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 12px 10px; font-weight: 600; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); font-family: var(--display); }
.mnav .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 130px; overflow: hidden; isolation: isolate; text-align: center; }

/* Aurora: a warm wash with soft curtains of light drawn on a canvas (see main.js),
   and a veil that blends into the page. */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%); }
/* Oversized so the blur fades out past the edges instead of leaving a hard border */
.aurora { position: absolute; top: -40px; left: -40px; width: calc(100% + 80px); height: calc(100% + 80px); display: block; filter: blur(16px); }
@media (max-width: 640px) {
  .aurora { filter: blur(11px); }
  .floaties i:nth-child(2n) { display: none; } /* half as many on a narrow screen */
}
/* Small floating motes: soft dots, a few brighter glints and thin rings, drifting slowly upward */
.floaties { position: absolute; inset: 0; }
.floaties i { position: absolute; left: var(--x); bottom: -20px; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, var(--mote-core) 0%, rgba(var(--mote-rgb), .7) 48%, rgba(var(--mote-rgb), 0) 72%);
  box-shadow: 0 0 8px 1px rgba(var(--orange-rgb), .18);
  animation: float-up var(--t) linear var(--d) infinite; will-change: transform, opacity; }
.floaties .glint { background: radial-gradient(circle, var(--glint-core) 0%, rgba(var(--glint-rgb), .8) 50%, rgba(var(--glint-rgb), 0) 74%); box-shadow: 0 0 10px 2px rgba(var(--orange-rgb), .28); }
.floaties .ring { background: none; box-shadow: inset 0 0 0 1.5px rgba(var(--ring-rgb), .6); }
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 0) scale(.8); }
  12% { opacity: var(--o); }
  50% { transform: translate(var(--sx), -480px) scale(1); }
  85% { opacity: var(--o); }
  100% { opacity: 0; transform: translate(0, -960px) scale(.85); }
}
/* Fades the sky into the page so the next section starts clean */
.hero__veil { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(var(--veil-rgb), 0), rgba(var(--veil-rgb), .55)); }
/* One centered column: the headline and the prompt are the hero */
.hero__copy { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; font-family: var(--display); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2s ease-in-out infinite; }
.pill__arrow { width: 14px; height: 14px; color: var(--orange); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
/* Each sentence is about 11x the font size wide, so this keeps them to one line each on desktop */
.display { font-size: clamp(2.6rem, 6.3vw, 6rem); line-height: .94; letter-spacing: -.05em; margin: 26px 0 26px; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line__in { display: inline-block; text-wrap: balance; }

.hero__sub { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero__trust { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Prompt box */
.prompt { margin-top: 38px; width: 100%; max-width: 720px; }
.prompt__tabs { position: relative; display: inline-grid; grid-template-columns: auto auto; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: rgba(26, 18, 16, .06); }
.prompt__tabs button { position: relative; z-index: 1; padding: 9px 16px; border: 0; background: none; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .3s; font-family: var(--display); }
.prompt__tabs button[aria-selected="true"] { color: var(--ink); }
.prompt__tabpill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), width .45s var(--ease); }
.prompt__box {
  position: relative; text-align: left; border-radius: 22px; background: #fff; padding: 18px 18px 14px 22px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(var(--shadow-rgb-2), .12); transition: box-shadow .3s;
}
.prompt__box::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 24px; background: var(--flame); opacity: 0; transition: opacity .35s; }
.prompt__box:focus-within { box-shadow: 0 0 0 1px transparent, 0 24px 60px rgba(var(--shadow-red-rgb), .2); }
.prompt__box:focus-within::before { opacity: 1; }
.prompt__box textarea, .prompt__box input {
  display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: 500 18px/1.5 var(--sans); min-height: 54px; padding: 0;
}
.prompt__box input { min-height: 54px; }
.prompt__box textarea::placeholder, .prompt__box input::placeholder { color: var(--placeholder); }
.prompt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.prompt__hint { font-size: 13px; color: var(--muted); }
.prompt.is-invalid .prompt__box { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.prompt__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.prompt__chips button { padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .2s; }
.prompt__chips button:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }

/* Hero art */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2s infinite; flex: none; }

/* ---------- Ticker ---------- */
.ticker { padding: 26px 0; overflow: hidden; background: var(--ink); color: rgb(var(--on-dark-rgb)); }
.ticker__row { display: flex; width: max-content; will-change: transform; }
.ticker__set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.ticker span { font: 800 clamp(2rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.ticker span:nth-child(4n+3) { font-style: italic; color: var(--orange); }
.ticker img { width: 40px; height: 40px; flex: none; }

/* ---------- Build stage ---------- */
.build { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.stage { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.stage__chat { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; height: 640px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head img { width: 28px; height: 28px; }
.chat__head div { display: grid; line-height: 1.2; }
.chat__head b { font-size: 15px; }
.chat__head span { font-size: 12.5px; color: var(--muted); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat__retry { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--crimson); text-decoration: none; font-family: var(--display); }
.chat__retry:hover { background: var(--cream); }
.msg { max-width: 100%; font-size: 14.5px; line-height: 1.5; animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg--you { align-self: flex-end; max-width: 92%; padding: 11px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: rgb(var(--on-dark-rgb)); }
.msg--ai { display: flex; gap: 10px; align-items: flex-start; }
.msg__state { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--spinner-track); border-top-color: var(--orange); animation: spin .8s linear infinite; }
.msg.is-done .msg__state { animation: none; border: 0; background: #DCFCE7; color: #15803D; display: grid; place-items: center; }
.msg.is-done .msg__state::after { content: ""; width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes spin { to { transform: rotate(360deg); } }
.msg__body { flex: 1; min-width: 0; }
.msg__body > p { color: var(--ink-2); }
.msg__body > p b { color: var(--ink); }
.brief { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--cream); display: grid; gap: 8px; font-size: 13px; }
.brief__row { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: center; }
.brief__row > span { color: var(--muted); }
.brief__sw { display: flex; gap: 4px; }
.brief__sw i { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.plan-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-chips span { padding: 4px 10px; border-radius: 999px; background: var(--cream); font-size: 12.5px; font-weight: 500; transition: background-color .3s, color .3s; }
.plan-chips span.is-on { background: var(--ink); color: #fff; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__actions button { padding: 8px 12px; border-radius: 999px; border: 0; background: var(--flame-btn); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(var(--red-rgb), .25); transition: transform .25s var(--ease); font-family: var(--display); }
.msg__actions button:hover { transform: translateY(-2px); }
.msg__actions button[disabled] { opacity: .5; cursor: default; transform: none; }
.pulled { margin-top: 8px; display: grid; gap: 5px; font-size: 13px; }
.pulled li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pulled { padding: 0; }
.pulled li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }

.stage__preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.devices { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.devices button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; font-family: var(--display); }
.devices button svg { width: 18px; height: 15px; }
.devices button[aria-checked="true"] { background: var(--ink); color: #fff; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pages span { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--muted); animation: msg-in .4s var(--ease) both; font-family: var(--display); }
.pages span.is-on { color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }

/* Browser frame */
.browser { margin: 0 auto; width: 100%; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); transition: max-width .7s var(--ease); max-width: 100%; }
.browser[data-device="tablet"] { max-width: 620px; }
.browser[data-device="phone"] { max-width: 340px; }
.browser__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.browser__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #E9DED4; }
.browser__bar > i:nth-child(1) { background: #FF8E7A; }
.browser__bar > i:nth-child(2) { background: #FFC86B; }
.browser__bar > i:nth-child(3) { background: #8ED69A; }
.browser__url { position: absolute; left: 50%; transform: translateX(-50%); max-width: 55%; padding: 4px 14px; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { position: relative; overflow: hidden; }
.stage .browser__view { height: 590px; overflow-y: auto; scrollbar-width: thin; }
.browser__scan { position: absolute; z-index: 5; left: 0; right: 0; height: 120px; top: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(var(--orange-rgb), 0), rgba(var(--orange-rgb), .16) 70%, rgba(var(--red-rgb), .55) 100%); border-bottom: 2px solid var(--orange); transition: transform .6s var(--ease), opacity .3s; }
.browser__scan.is-on { opacity: 1; }
.site-host { container-type: inline-size; }

/* ---------- Generated site template (.ws) ---------- */
.ws {
  --ws-bg: #FFF8EE; --ws-ink: #3B2A1E; --ws-muted: #7C6555; --ws-accent: #B4471A; --ws-accent-ink: #fff; --ws-card: #fff;
  --ws-head: 'Fraunces', serif; --ws-w: 600; --ws-style: normal; --ws-track: -.02em; --ws-radius: 999px; --ws-img: 16px;
  background: var(--ws-bg); color: var(--ws-ink); font: 400 14px/1.55 var(--sans); min-height: 100%;
  transition: background-color .5s, color .5s;
}
.ws-h, .ws-title, .ws-logo { font-family: var(--ws-head); font-weight: var(--ws-w); font-style: var(--ws-style); letter-spacing: var(--ws-track); }
.ws-nav { display: flex; align-items: center; gap: 18px; padding: 16px 26px; }
.ws-logo { font-size: 19px; line-height: 1; }
.ws-nav .ws-links { display: flex; gap: 16px; margin-left: auto; font-size: 13px; color: var(--ws-muted); }
.ws-btn { display: inline-block; padding: 10px 18px; border-radius: var(--ws-radius); background: var(--ws-accent); color: var(--ws-accent-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ws-btn--sm { padding: 7px 13px; font-size: 12px; }
.ws-btn--line { background: transparent; color: var(--ws-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.ws-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: center; padding: 18px 26px 30px; }
.ws-kicker { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); margin-bottom: 10px; }
.ws-title { font-size: clamp(28px, 5.4cqi, 50px); line-height: 1.02; margin-bottom: 14px; }
.ws-sub { color: var(--ws-muted); font-size: 15px; margin-bottom: 20px; max-width: 30em; }
.ws-hero__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-hero__img { border-radius: var(--ws-img); overflow: hidden; aspect-ratio: 5 / 4.4; background: rgba(0, 0, 0, .06); }
.ws-hero__img img, .ws-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ws-cards { padding: 10px 26px 26px; }
.ws-h { font-size: 24px; margin-bottom: 14px; }
.ws-cards__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ws-card { padding: 16px; border-radius: calc(var(--ws-img) * .75); background: var(--ws-card); display: grid; gap: 4px; }
.ws-card b { font-size: 15px; font-weight: 600; }
.ws-card span { color: var(--ws-muted); font-size: 13px; }
.ws-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 0 26px 26px; height: 180px; }
.ws-gallery div { border-radius: calc(var(--ws-img) * .75); overflow: hidden; background: rgba(0, 0, 0, .06); }
.ws-band { margin: 0 26px 22px; padding: 22px 24px; border-radius: var(--ws-img); background: var(--ws-ink); color: var(--ws-bg); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ws-band p { font-family: var(--ws-head); font-style: var(--ws-style); font-size: 20px; font-weight: var(--ws-w); letter-spacing: var(--ws-track); }
.ws-band .ws-btn { background: var(--ws-bg); color: var(--ws-ink); }
.ws-foot { padding: 14px 26px 22px; font-size: 12px; color: var(--ws-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@container (max-width: 560px) {
  .ws-nav .ws-links { display: none; }
  .ws-nav .ws-btn { margin-left: auto; }
  .ws-hero { grid-template-columns: 1fr; padding-top: 6px; }
  .ws-hero__img { order: -1; aspect-ratio: 16 / 11; }
  .ws-cards__row { grid-template-columns: 1fr; }
  .ws-gallery { grid-template-columns: 1fr 1fr; height: 220px; }
  .ws-gallery div:first-child { grid-column: 1 / -1; }
  .ws-title { font-size: 30px; }
}
/* drawing states */
.ws [data-block] { position: relative; }
.is-building .ws [data-block] { opacity: 0; }
.ws [data-block].is-drawing { opacity: 1; }
.ws [data-block].is-drawing > * { opacity: 0; }
.ws [data-block].is-drawing::after {
  content: ""; position: absolute; inset: 8px 26px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(0, 0, 0, .05) 30%, rgba(var(--orange-rgb), .18) 50%, rgba(0, 0, 0, .05) 70%);
  background-size: 300% 100%; animation: shimmer 1s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.ws [data-block].is-drawn { opacity: 1; animation: draw-in .7s var(--ease) both; }
@keyframes draw-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- Theme AI ---------- */
.theme { background: var(--cream-2); }
.theme__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.theme__copy h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-top: 22px; }
.theme__chat { margin-top: 30px; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.theme__input { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--cream); font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.theme__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.theme__chips button { padding: 12px 14px; border: 0; border-radius: 12px; background: var(--cream); font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background-color .2s, transform .25s var(--ease), box-shadow .2s; font-family: var(--display); }
.theme__chips button:hover { transform: translateY(-2px); }
.theme__chips button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.browser--float { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.browser--float:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.theme .browser__view { height: 520px; }
.restyle-wipe { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--flame); transform: scaleX(0); transform-origin: left; }

/* ---------- Editor ---------- */
.edit { background: var(--cream); }
.editor { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.editor__side { position: sticky; top: 110px; display: grid; gap: 16px; }
.modes { display: grid; gap: 8px; }
.modes button { display: grid; gap: 2px; text-align: left; padding: 14px 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s, transform .25s var(--ease); }
.modes button b { font: 800 19px/1.2 var(--display); letter-spacing: -.02em; }
.modes button span { font-size: 13.5px; color: var(--muted); }
.modes button:hover { transform: translateX(4px); }
.modes button[aria-selected="true"] { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.mode-panel { padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; }
.mode-panel[hidden] { display: none; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow-y: auto; }
.bubble { padding: 9px 13px; border-radius: 14px; font-size: 14px; max-width: 90%; animation: msg-in .4s var(--ease) both; }
.bubble--ai { background: var(--cream); border-bottom-left-radius: 4px; }
.bubble--you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips button { padding: 9px 13px; border-radius: 999px; border: 0; background: var(--cream); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; font-family: var(--display); }
.ask-chips button:hover { transform: translateY(-2px); background: #fff; }
.ask-chips button[disabled] { opacity: .45; pointer-events: none; }
.mode-meta, .mode-help { font-size: 13.5px; color: var(--muted); }
.point-target { padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 13.5px; font-weight: 600; font-family: var(--display); }
.point-target span { color: var(--muted); font-weight: 500; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; background: var(--cream); font-family: var(--display); }
.card-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tools[hidden] { display: none; }
.card-tools button { padding: 8px 12px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--display); }
.card-tools button[data-tool="del"] { background: #B91C1C; }
.undo-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.undo-row .btn { gap: 6px; }

/* the editable page */
.ed-page { --e-bg: #FBF3F0; --e-ink: #2D2626; --e-muted: #7A6A68; --e-accent: #9D2B4F; --e-card: #fff; --e-head: 'DM Serif Display', serif;
  background: var(--e-bg); color: var(--e-ink); font: 400 14px/1.55 var(--sans); padding-bottom: 26px; transition: background-color .6s, color .6s; }
.ed-page.is-premium { --e-bg: #171313; --e-ink: #F5EBDD; --e-muted: #B8A99A; --e-accent: #C9A86A; --e-card: #231D1C; --e-head: 'Cormorant Garamond', serif; }
.ed-nav { display: flex; align-items: center; gap: 16px; padding: 16px 26px; }
.ed-logo { font: 400 21px/1 var(--e-head); }
.ed-links { margin-left: auto; display: flex; gap: 16px; font-size: 13px; color: var(--e-muted); }
.ed-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 14px 26px 26px; }
.ed-kicker { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--e-muted); margin-bottom: 10px; }
.ed-title { font: 400 clamp(30px, 4vw, 50px)/1.02 var(--e-head); letter-spacing: -.01em; margin-bottom: 12px; }
.is-premium .ed-title { font-weight: 500; font-style: italic; }
.ed-sub { color: var(--e-muted); margin-bottom: 18px; }
.ed-btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--e-accent); color: #fff; font-size: 13.5px; font-weight: 600; transition: transform .3s var(--ease), box-shadow .3s; }
.is-premium .ed-btn { color: #171313; border-radius: 2px; }
.ed-btn.is-loud { transform: scale(1.12); box-shadow: 0 10px 30px color-mix(in srgb, var(--e-accent) 50%, transparent); }
.ed-hero__img { border-radius: 18px; overflow: hidden; aspect-ratio: 7 / 6; transition: filter .5s; }
.ed-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero__img.is-bright { filter: brightness(1.18) saturate(1.1); }
.is-premium .ed-hero__img { border-radius: 2px; }
.ed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 26px; }
.ed-card { padding: 16px; border-radius: 14px; background: var(--e-card); display: grid; gap: 4px; transition: background-color .6s, box-shadow .3s; }
.ed-card b { font-size: 15px; }
.ed-card span { font-size: 13px; color: var(--e-muted); }
.ed-card.is-hl { box-shadow: 0 0 0 2px var(--e-accent); }
.ed-card .ed-ico { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--e-accent) 18%, transparent); display: grid; place-items: center; margin-bottom: 4px; }
.ed-pricing { margin: 20px 26px 0; padding: 18px 20px; border-radius: 14px; background: var(--e-card); }
.ed-pricing p { font: 400 22px/1 var(--e-head); margin-bottom: 10px; }
.ed-pricing div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed color-mix(in srgb, var(--e-ink) 18%, transparent); font-size: 14px; }
.ed-pricing div b { font-weight: 600; }
.ed-flash { animation: ed-flash 1s var(--ease); }
@keyframes ed-flash { 0% { box-shadow: 0 0 0 0 rgba(var(--orange-rgb), .9); } 100% { box-shadow: 0 0 0 14px rgba(var(--orange-rgb), 0); } }
.ed-typing { animation: draw-in .6s var(--ease) both; }
/* point + click affordances */
.ed-page[data-mode="point"] [data-el], .ed-page[data-mode="click"] [data-el] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 4px; border-radius: 6px; transition: outline-color .15s; }
.ed-page[data-mode="point"] [data-el]:hover, .ed-page[data-mode="click"] [data-el]:hover { outline-color: rgba(var(--orange-rgb), .9); }
.ed-page [data-el].is-picked { outline: 2px solid var(--orange) !important; outline-offset: 4px; }
.ed-page [contenteditable="true"] { outline: 2px solid #3B82F6 !important; outline-offset: 3px; cursor: text; border-radius: 4px; }

/* ---------- Bento ---------- */
.features { background: var(--cream-2); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile h3 { font-size: 23px; letter-spacing: -.03em; line-height: 1.1; }
.tile__text p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.tile__fine { font-size: 12px; color: var(--muted); }
.tile--wide { flex-direction: row; align-items: center; }
.tile--wide .tile__text { flex: 1; }
.tile--wide > :last-child { flex: 1.1; }

.versions { display: grid; gap: 10px; }
.versions__card { padding: 16px 18px; border-radius: 16px; background: var(--cream); min-height: 96px; }
.versions__tag { font-size: 12px; font-weight: 600; color: var(--crimson); font-family: var(--display); }
.versions__title { margin-top: 6px; font: 600 22px/1.15 'Fraunces', serif; letter-spacing: -.02em; }
.versions__range { width: 100%; accent-color: var(--orange); }
.versions__ticks { display: flex; justify-content: space-between; padding: 0 4px; font-size: 11.5px; color: var(--muted); }

.audit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ring { position: relative; display: grid; justify-items: center; gap: 4px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--track); stroke-width: 4.5; }
.ring .ring__val { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; }
.ring.is-great .ring__val { stroke: #22C55E; }
.ring b { position: absolute; top: 28px; font: 800 22px/1 var(--display); }
.ring span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-family: var(--display); }
.audit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.audit__list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--cream); transition: opacity .4s, transform .4s var(--ease); }
.audit__list li.is-fixed { opacity: .5; text-decoration: line-through; }
.sev { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.sev--low { background: var(--amber); }
.tile--tall .btn { align-self: flex-start; }

.fr { display: grid; gap: 10px; }
.fr__field { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--cream); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.fr__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--orange); }
.fr__field span { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--display); }
.fr__field input { border: 0; outline: 0; background: none; font: 600 17px var(--display); color: var(--ink); width: 100%; }
.fr__hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.fr__hits li { display: flex; gap: 8px; align-items: baseline; }
.fr__hits small { width: 54px; flex: none; font-size: 11.5px; color: var(--muted); }
.fr__hits mark { background: var(--mark); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; font-family: var(--display); }
.fr__hits mark.is-pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.15); background: var(--mark-pop); } }
.fr__hits mark { display: inline-block; }

.cost { display: grid; gap: 12px; }
.cost__req { padding: 12px 14px; border-radius: 14px; background: var(--cream); font-weight: 500; }
.cost__bar { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cost__bar i { display: block; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.cost__bar b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--flame); transition: width 1.2s var(--ease); }
.cost__val { font-weight: 600; color: var(--ink); font-family: var(--display); }
.cost .btn { justify-self: start; pointer-events: none; }

.addon { display: grid; gap: 12px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; }
.switch input { position: absolute; opacity: 0; }
.switch__track { position: relative; width: 52px; height: 30px; border-radius: 99px; background: var(--switch-off); transition: background-color .3s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s var(--ease); }
.switch input:checked + .switch__track { background: #22C55E; }
.switch input:checked + .switch__track .switch__knob { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--orange); outline-offset: 3px; }
.slots { position: relative; padding: 12px; border-radius: 14px; background: var(--cream); transition: background-color .4s; }
/* Off state stays readable: greyed surfaces, muted text, a small "Off" note */
.slots:not(.is-on) { background: var(--off-2); }
.slots:not(.is-on) .slots__grid span { background: var(--off-3); color: var(--muted); }
.slots:not(.is-on)::after { content: "Off"; position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 700; color: var(--muted); font-family: var(--display); }
.slots__day { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; font-family: var(--display); }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots__grid span { padding: 6px 0; border-radius: 8px; background: #fff; text-align: center; font-size: 12.5px; font-weight: 600; font-family: var(--display); }
.slots__grid span.is-taken { color: var(--muted); text-decoration: line-through; background: transparent; }
.slots.is-on .slots__grid span:not(.is-taken) { animation: pop .5s var(--ease) both; }

.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inbox li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 13.5px; animation: msg-in .5s var(--ease) both; }
.inbox b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); }
.inbox em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #15803D; background: #DCFCE7; padding: 3px 8px; border-radius: 99px; font-family: var(--display); }
.inbox__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
/* Muted with colour, not opacity, so the text stays readable */
.inbox .is-spam { background: var(--off-1); }
.inbox .is-spam b { text-decoration: line-through; color: var(--muted); }
.inbox .is-spam em { color: #B91C1C; background: #FEE2E2; }

.photo-opt { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.photo-opt__img { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.photo-opt__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-opt__meta { display: grid; gap: 8px; font-size: 13px; }
.photo-opt__meta p:first-child { display: flex; flex-direction: column; }
.photo-opt__meta b { font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.photo-opt__meta span { color: var(--muted); }
.photo-opt__bar { display: block; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.photo-opt__bar b { display: block; height: 100%; width: 100%; background: var(--flame); transition: width 1.4s var(--ease); }
.photo-opt__gps { font-weight: 600; color: #15803D; opacity: 0; transition: opacity .4s .9s; font-family: var(--display); }
.photo-opt.is-done .photo-opt__gps { opacity: 1; }

.serp { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--cream); }
.serp__url { font-size: 12.5px; color: #3F6212; }
.serp__title { font-size: 19px; color: #1D4ED8; font-weight: 500; min-height: 1.4em; }
.serp__desc { font-size: 13.5px; color: var(--ink-2); min-height: 3em; }
.serp .btn { justify-self: start; margin-top: 8px; }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 999px; background: var(--cream); }
.seg button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; font-family: var(--display); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.team { display: grid; gap: 12px; }
.team .seg { justify-self: start; }
.perm { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.perm li { display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.perm li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: #DCFCE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-6' fill='none' stroke='%2315803D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: background-color .3s; }
.perm li.is-off { color: var(--muted); text-decoration: line-through; }
.perm li.is-off::before { background: var(--track) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%238A7B74' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.tile--host { background: var(--ink); color: rgb(var(--on-dark-rgb)); }
.tile--host .tile__text p { color: rgba(var(--on-dark-rgb), .7); }
.host { display: grid; gap: 12px; }
.host__status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; font-family: var(--display); }
.host__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.host__chips span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 600; font-family: var(--display); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 72px; }
.stats > div { display: grid; gap: 6px; padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px var(--line); }
.stats b { font: 800 clamp(2.8rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.05em; background: var(--flame-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Captions only: the animated numbers are spans inside <b> and must keep the big gradient style */
.stats > div > span { font-size: 15px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing { background: var(--cream); }
.pricing .lede { font-size: 17px; max-width: 700px; margin-left: auto; margin-right: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transform-style: preserve-3d; transition: box-shadow .4s var(--ease); }
.plan:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
/* Spinning flame border drawn in the border box, so it can't cover the card when tilt creates a stacking context */
.plan--featured {
  border: 2px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--spin, 0deg), var(--brand-1), var(--orange), var(--amber), var(--red), var(--brand-1)) border-box;
  animation: spin-border 6s linear infinite;
}
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
.plan__flag { position: absolute; top: -15px; left: 30px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; font-family: var(--display); }
.plan__cubes { position: absolute; top: 26px; right: 24px; width: 84px; height: 60px; }
.plan__cubes svg { position: absolute; }
.plan__tier { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--display); }
.plan__name { font-size: 40px; margin: 6px 0 22px; }
.plan__price { display: flex; align-items: flex-start; font: 800 64px/1 var(--display); letter-spacing: -.05em; }
.plan__price .cur { font-size: 30px; margin: 6px 2px 0 0; }
.plan__price .per { align-self: flex-end; margin: 0 0 9px 8px; font: 500 15px var(--sans); letter-spacing: 0; color: var(--muted); }
.plan__alt { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.plan__desc { margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
/* Gigapixel: the founding member plan */
.plan--founding { box-shadow: 0 0 0 1.5px rgba(var(--orange-rgb), .55), var(--shadow-sm); }
/* Deeper gradient than the buttons so small white text stays readable */
.plan__flag--founding { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(100deg, var(--crimson), var(--accent-deep)); box-shadow: 0 6px 16px rgba(var(--red-rgb), .3); }
.plan__flag--founding svg { width: 12px; height: 12px; color: var(--flag-spark); }
.plan__note { margin: -14px 0 22px; padding: 10px 12px; border-radius: 12px; background: var(--tint-1); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.plan__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15.5px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--tint-check) var(--check-icon) center / 12px no-repeat; }
.plans__foot { margin-top: 36px; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--cream); padding-top: 40px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .head { position: sticky; top: 120px; }
.faq-grid h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-top: 22px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; cursor: pointer; font: 700 19px/1.3 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--cream-2); transition: transform .4s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 2px; border-radius: 2px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 24px 22px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Claim (dark) ---------- */
.claim { position: relative; padding: 150px 0; background: var(--night); color: rgb(var(--on-dark-rgb)); overflow: hidden; isolation: isolate; }
.claim__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(600px 400px at 15% 20%, rgba(var(--red-rgb), .35), transparent 70%), radial-gradient(500px 360px at 88% 62%, rgba(var(--orange-rgb), .22), transparent 70%); }
.claim__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.claim h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-top: 22px; color: rgb(var(--on-dark-rgb)); }
.perks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.perks__ico svg { width: 20px; height: 22px; }
.perks b { display: block; font-size: 17px; }
.perks span { color: rgba(var(--on-dark-rgb), .65); font-size: 15px; }

.formcard { position: relative; border-radius: 30px; padding: 34px; background: var(--cream); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); min-height: 560px; }
.fm { display: grid; gap: 14px; }
.fm__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.fm__title { font: 800 26px/1 var(--display); letter-spacing: -.03em; }
.fm__progress { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); font-family: var(--display); }
.fm__cubes { display: flex; gap: 4px; }
.fm__cubes i { width: 14px; height: 14px; border-radius: 4px; background: var(--cube-off); transition: background-color .3s, transform .45s var(--ease); }
.fm__cubes i.is-on { transform: translateY(-3px) rotate(45deg) scale(.9); }
.fm__cubes i.is-on:nth-child(1) { background: var(--crimson); }
.fm__cubes i.is-on:nth-child(2) { background: var(--red); }
.fm__cubes i.is-on:nth-child(3) { background: var(--hot); }
.fm__cubes i.is-on:nth-child(4) { background: var(--orange); }
.fm__cubes i.is-on:nth-child(5) { background: var(--amber); }
.fld { position: relative; }
.fld input, .fld textarea {
  width: 100%; padding: 26px 46px 10px 18px; border: 0; border-radius: 16px; background: #fff; color: var(--ink);
  font: 500 16px/1.4 var(--sans); box-shadow: inset 0 0 0 1.5px var(--line-2); outline: 0; transition: box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 96px; padding-right: 18px; }
.fld input:focus, .fld textarea:focus { box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 5px rgba(var(--orange-rgb), .15); }
.fld label { position: absolute; left: 19px; top: 18px; font-size: 16px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .2s; }
.fld label span { font-size: .85em; }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--ink-2); font-weight: 600; font-family: var(--display); }
.fld__ok { position: absolute; right: 14px; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: #22C55E; color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.fld__ok svg { width: 14px; height: 14px; }
.fld.is-valid .fld__ok { transform: scale(1); }
.fld__msg { margin: 6px 4px 0; font-size: 13px; color: var(--muted); min-height: 0; }
.fld.is-error input, .fld.is-error textarea { box-shadow: inset 0 0 0 2px #DC2626; }
.fld.is-error .fld__msg, .choice.is-error .fld__msg { color: #B91C1C; font-weight: 500; }
.fld__msg button { border: 0; background: none; padding: 0; color: var(--crimson); font-weight: 700; text-decoration: underline; cursor: pointer; font-family: var(--display); }
.fld__count { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--muted); }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; padding: 0; font-family: var(--display); }
.choice .fld__msg { grid-column: 1 / -1; margin-top: 0; }
.choice--plans { grid-template-columns: repeat(3, 1fr); }
.choice__tag { justify-self: start; margin-bottom: 4px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(100deg, var(--crimson), var(--accent-deep)); color: #fff; font: 700 11px/1.2 var(--display); font-style: normal; letter-spacing: .01em; }
.choice__opt--founding span { box-shadow: inset 0 0 0 1.5px rgba(var(--orange-rgb), .6); }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; }
.choice__opt span { display: grid; align-content: start; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s, transform .25s var(--ease), background-color .2s; }
.choice__opt small { font-size: 13px; color: var(--muted); }
.choice__opt:hover span { transform: translateY(-2px); }
.choice__opt input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--tint-1); }
.choice__opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.choice.is-error .choice__opt span { box-shadow: inset 0 0 0 2px #DC2626; }
.fm__submit { margin-top: 6px; }
.fm__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.fm.is-sending .fm__spinner { display: inline-block; }
.fm.is-sending .fm__submit .ico { display: none; }
.fm.is-sending .fm__submit { pointer-events: none; opacity: .85; }
.fm__error { padding: 10px 14px; border-radius: 12px; background: #FEE2E2; color: #991B1B; font-size: 14px; font-weight: 500; }
.fm__fine { font-size: 13px; color: var(--muted); text-align: center; }
.fm.shake { animation: shake .4s; }
.fm-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 40px; text-align: center; border-radius: 30px; background: var(--cream); outline: 0; }
.fm-done[hidden] { display: none; }
.fm-done__cube { width: 70px; height: 77px; }
.fm-done__title { font: 800 36px/1.05 var(--display); letter-spacing: -.04em; }
.fm-done p:last-child { color: var(--ink-2); max-width: 26em; }
.fm-done__burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.fm-done__burst i { position: absolute; width: 12px; height: 12px; border-radius: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgb(var(--on-dark-rgb)); padding: 40px 0 34px; overflow: hidden; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: rgba(var(--on-dark-rgb), .7); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: rgba(var(--on-dark-rgb), .55); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(var(--on-dark-rgb), .8); }
.badge svg { width: 14px; height: 16px; }
/* Legal row: its own line between the main links and the copyright */
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 36px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__legal-label { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--on-dark-rgb), .45); }
.footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; }
.footer__legal a { display: inline-block; padding: 6px 0; color: rgba(var(--on-dark-rgb), .7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, transform .2s var(--ease); }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal a:active { transform: translateY(1px); }
.footer__legal a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
@media (max-width: 640px) {
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__legal ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }
  .footer__legal a { padding: 10px 0; }
}

/* ---------- Motion start states ---------- */
.cp-anim [data-hero], .cp-anim [data-reveal], .cp-anim [data-rise] { opacity: 0; }
.cp-anim .display .line__in { transform: translateY(105%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 9px 10px; }
  .stage { grid-template-columns: 300px minmax(0, 1fr); }
  .editor { grid-template-columns: 300px minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--tall { grid-row: span 2; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { padding-top: 120px; }
  .theme__grid, .claim__grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .stage, .editor { grid-template-columns: minmax(0, 1fr); }
  .stage__chat { height: 360px; order: 2; }
  .editor__side { position: static; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .modes button span { display: none; }
  .faq-grid .head { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan--featured { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 100px 0; }
  .browser--float { transform: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { top: 10px; padding: 0 10px; }
  .brand { font-size: 18px; }
  .hero { padding: 104px 0 56px; }
  .display { font-size: clamp(2.2rem, 10.5vw, 2.9rem); line-height: 1; }
  /* Narrow screens: keep sparkles at the edges so none sit on the text */
  .hero__sub { font-size: 17.5px; }
  .prompt__tabs { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .prompt__tabs button { padding: 9px 6px; font-size: 12.5px; white-space: normal; line-height: 1.2; }
  .prompt__box { padding: 14px 14px 12px 16px; }
  .prompt__box textarea, .prompt__box input { font-size: 16px; }
  .prompt__hint { display: none; }
  .prompt__foot .btn { width: 100%; }
  .ticker { padding: 18px 0; }
  .ticker img { width: 28px; height: 28px; }
  .head { margin-bottom: 44px; }
  .lede { font-size: 17px; }
  .section { padding: 80px 0; }
  .stage .browser__view { height: 480px; }
  .devices button span { display: none; }
  .theme .browser__view { height: 460px; }
  .theme__chips { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr; }
  .ed-hero { grid-template-columns: 1fr; padding: 6px 16px 20px; }
  .ed-hero__img { order: -1; aspect-ratio: 16 / 10; }
  .ed-nav { padding: 14px 16px; }
  .ed-links { display: none; }
  .ed-cards { grid-template-columns: 1fr; padding: 0 16px; }
  .ed-pricing { margin: 16px 16px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile--tall { grid-row: auto; }
  .stats { grid-template-columns: 1fr; }
  .plan { padding: 30px 22px 24px; }
  .claim { padding: 90px 0; }
  .formcard { padding: 22px 16px; border-radius: 24px; }
  .choice, .choice--plans { grid-template-columns: 1fr; }
  .fm__top { flex-direction: column; align-items: flex-start; }
  .faq summary { font-size: 17px; padding: 18px; }
  .faq__a { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .browser--float { transform: none; }
}

/* On dark sections the brighter flame reads fine */
.claim .flame, .tile--host .flame { background-image: var(--flame); }

/* Build preview before anything has been drawn */
.stage-empty { height: 590px; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); }
.stage-empty svg { width: 44px; height: 48px; opacity: .9; }
.stage-empty b { font: 800 22px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
@media (max-width: 640px) { .stage-empty { height: 480px; } }


/* ---------- Theme preview switch (remove this block and the markup to drop it) ---------- */
.theme-switch { position: fixed; z-index: 120; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px;
  border-radius: 999px; background: rgba(var(--paper-rgb), .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow); font: 600 13px/1 var(--display); }
.theme-switch__label { color: var(--muted); margin-right: 6px; }
.theme-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 600 13px/1 var(--display); cursor: pointer; transition: background-color .25s, color .25s; }
.theme-switch button i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.theme-switch button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .theme-switch { left: 10px; bottom: 10px; } .theme-switch__label { display: none; } }
