/* Swoon site styles. Dark by default, light theme via [data-theme="light"]. */
:root {
  --bg: #150c15;
  --bg-2: #1d1120;
  --glow-a: rgba(255, 122, 138, .16);
  --glow-b: rgba(126, 92, 255, .14);
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-solid: #221425;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f6eef3;
  --text-2: rgba(246, 238, 243, .72);
  --text-3: rgba(246, 238, 243, .5);
  --rose: #ff7a8a;
  --rose-2: #ff9eaa;
  --gold: #ffc677;
  --green: #7fe0a6;
  --warn: #ffcf70;
  --danger: #ff8f8f;
  --btn-bg: #fff4f6;
  --btn-text: #1e0f1d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbf5f1;
  --bg-2: #f6ebe6;
  --glow-a: rgba(255, 122, 138, .18);
  --glow-b: rgba(255, 198, 119, .2);
  --surface: rgba(255, 255, 255, .7);
  --surface-2: #fff;
  --surface-solid: #fff;
  --line: rgba(42, 20, 38, .1);
  --line-2: rgba(42, 20, 38, .2);
  --text: #2a1426;
  --text-2: rgba(42, 20, 38, .74);
  --text-3: rgba(42, 20, 38, .52);
  --rose: #e0475d;
  --rose-2: #c93a50;
  --gold: #b9772a;
  --green: #1f8a52;
  --warn: #8a5a00;
  --danger: #c0392b;
  --btn-bg: #2a1426;
  --btn-text: #fff;
  --shadow: 0 18px 50px -24px rgba(60, 20, 40, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font: 15px/1.6 var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--glow-b), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, var(--glow-a), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 600px);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5.2vw, 64px); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(680px, 100% - 32px); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.fine { font-size: 12px; color: var(--text-3); margin: 10px 0 0; }
.stack { display: grid; gap: 14px; }

/* ---------- header / footer */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in oklab, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.site-header .row { height: 60px; }
.site-header .row.three { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header .right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 25px; letter-spacing: -.02em; font-weight: 400; }
.logo-heart { color: var(--rose); display: inline-flex; transform: translateY(-1px); margin: 0 1px; }
.logo-heart svg { width: 11px; height: 11px; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 40% { transform: scale(.95); } }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover, .small-link:hover, .back-link:hover { color: var(--text); }
.small-link { font-size: 13px; color: var(--text-2); text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: inline; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 28px; font-size: 13px; color: var(--text-3); }
.site-footer .row { align-items: flex-start; flex-wrap: wrap; }
.foot-brand p { max-width: 340px; margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; color: var(--text-2); }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 28px; }

/* ---------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 8px 30px -10px var(--rose); }
.btn.primary:hover { box-shadow: 0 10px 34px -8px var(--rose); }
.btn.ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.btn.outline { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn.outline:hover, .btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn.wide { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; }
.pill:hover { background: var(--surface-2); }
.pill.active { border-color: var(--rose); color: var(--rose-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.chip.on-img { position: absolute; top: 12px; left: 12px; background: rgba(20, 10, 18, .7); color: #fff; border-color: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); }
.chip.warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 40%, transparent); background: color-mix(in oklab, var(--warn) 10%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tag { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--green); border: 1px solid color-mix(in oklab, var(--green) 45%, transparent); padding: 3px 8px; border-radius: 6px; margin-left: 8px; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rose-2); letter-spacing: .02em; margin-bottom: 18px; }
.eyebrow.center { display: flex; justify-content: center; }
.lede { font-size: 17px; color: var(--text-2); max-width: 560px; }
.center .lede, .lede.center { margin-inline: auto; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks.small { font-size: 12px; margin-top: 12px; }
.ticks.center { justify-content: center; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 em { font-style: italic; color: var(--rose-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-chat { position: relative; height: 380px; }
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 8px; padding: 10px 10px 20px; mask-image: linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.35; animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.bubble.me { background: #fff; color: #1d1020; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
:root[data-theme="light"] .bubble.me { background: var(--rose); color: #fff; }
.bubble.card-bubble { padding: 0; overflow: hidden; width: 230px; background: #241526; border: 1px solid rgba(255,255,255,.12); color: #fff; position: relative; }
.bubble.card-bubble img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bubble.card-bubble div { padding: 9px 12px 11px; }
.bubble.card-bubble strong { display: block; font-size: 14px; }
.bubble.card-bubble span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .6; }
.bubble.card-bubble .heart-react { position: absolute; left: -2px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3a2238; color: var(--rose); border: 2px solid var(--bg); animation: pop .4s .9s both cubic-bezier(.2,.9,.3,1.4); }
.chat .seen { font-size: 11px; color: var(--text-3); margin-top: -4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }

/* ---------- design cards */
.shelf { padding: 56px 0 0; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.shelf-head p { color: var(--text-2); max-width: 600px; margin: 0; font-size: 14px; }
.shelf-head .count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 24px; margin-bottom: 16px; }
.design-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.design-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--accent) 70%, transparent); }
.design-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 40%, #1a0f1a), #1a0f1a); }
.grid.three .design-card .thumb { aspect-ratio: 4 / 3; }
.design-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.design-card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin-bottom: 6px; }
.card-body p { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.design-card:hover .go { color: var(--text); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price .now { font-weight: 700; font-size: 17px; }
.price .was { color: var(--text-3); font-size: 13px; }
.price .save { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--green); }
.price.lg .now { font-size: 26px; }
.price.lg .save { flex-basis: auto; border: 1px solid color-mix(in oklab, var(--green) 45%, transparent); padding: 1px 7px; border-radius: 6px; }

/* ---------- how / faq */
.how { padding-top: 88px; }
.how .sub { color: var(--text-2); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in oklab, var(--rose) 22%, transparent); color: var(--rose-2); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.steps p { color: var(--text-2); font-size: 14px; margin: 0; }
.faq { padding-top: 80px; }
.faq-list { border-top: 1px solid var(--line); margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 6px; max-width: 680px; }

/* ---------- design page */
.design { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0 0; align-items: start; }
.design-info h1 { font-size: clamp(32px, 4vw, 46px); margin-top: 26px; }
.design-info .lede { font-size: 16px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.gallery .stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #120a12; border: 1px solid var(--line); }
.gallery .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.gallery .stage img.on { opacity: 1; }
.gallery .watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; border: 0; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1e0f1d; font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.gallery .watch:hover { transform: translate(-50%, -50%) scale(1.05); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery .thumbs button { flex: 0 0 72px; height: 46px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .6; transition: opacity .2s; }
.gallery .thumbs button.on { border-color: var(--text); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.demo-cta { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; }
.demo-cta p { margin: 0; font-size: 13px; max-width: 260px; }
.desc { color: var(--text-2); }
.bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; }
.bullets svg { flex: none; margin-top: 4px; color: var(--green); }
.note-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.note-box svg { flex: none; margin-top: 3px; }

.editor-col { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; border-radius: var(--radius); scrollbar-width: thin; }
.editor { padding: 26px; }
.editor-head h2 { margin-bottom: 6px; }
.editor-head p { font-size: 13px; }
.draft-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--gold) 12%, transparent); border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); font-size: 13px; margin-bottom: 14px; }
.draft-banner span { flex: 1; }
.ai-panel { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.ai-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13px; margin-bottom: 10px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-actions .link { margin-left: auto; }
.ai-form { margin-top: 14px; display: grid; gap: 12px; }
.tones { display: flex; flex-wrap: wrap; gap: 6px; }
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone span { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; }
.tone input:checked + span { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.tone input:focus-visible + span { outline: 2px solid var(--rose); }
.section { border: 0; border-top: 1px solid var(--line); margin: 22px 0 0; padding: 20px 0 0; min-width: 0; }
.section legend { font-weight: 700; font-size: 15px; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.section legend + * { clear: both; }
.field { display: grid; gap: 6px; margin-bottom: 16px; position: relative; }
.field .label { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field .help { font-size: 12px; color: var(--text-3); margin-top: -2px; }
.ai-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; background: color-mix(in oklab, var(--rose) 18%, transparent); color: var(--rose-2); }
input[type="text"], input[type="email"], input[type="datetime-local"], textarea {
  width: 100%; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg) 55%, transparent); border-radius: 10px; padding: 11px 13px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
:root[data-theme="light"] input[type="text"], :root[data-theme="light"] input[type="email"], :root[data-theme="light"] input[type="datetime-local"], :root[data-theme="light"] textarea { background: #fff; }
input:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in oklab, var(--rose) 20%, transparent); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field.invalid input, .field.invalid textarea, .field.invalid .photo-list { border-color: var(--danger); }
.field .count { position: absolute; right: 8px; bottom: -17px; font-size: 11px; color: var(--text-3); }
.field .count:empty { display: none; }
.field.flash input, .field.flash textarea, .line.flash input { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 60%, transparent); } 100% { box-shadow: none; } }
.lines .line { display: grid; gap: 4px; margin-bottom: 8px; }
.line-label { font-size: 12px; color: var(--text-3); }
.photo-list { display: grid; gap: 8px; }
.photo-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.photo-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo-item .pf { display: grid; gap: 6px; }
.photo-item input { padding: 7px 10px; font-size: 13px; }
.photo-item .tools { display: grid; gap: 2px; }
.photo-item .tools button { width: 28px; height: 26px; border: 0; background: none; color: var(--text-3); border-radius: 6px; }
.photo-item .tools button:hover { background: var(--surface-2); color: var(--text); }
.photo-item.uploading { opacity: .6; }
.photo-add { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; margin-top: 8px; }
.photo-add:hover, .photo-add.drag { border-color: var(--rose); background: var(--surface); }
.photo-add.full { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan { position: relative; display: grid; gap: 2px; padding: 14px 12px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--rose); background: color-mix(in oklab, var(--rose) 8%, transparent); }
.plan:has(input:focus-visible) { outline: 2px solid var(--rose); }
.plan-name { font-weight: 700; font-size: 14px; }
.plan-blurb { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.plan-price { font-size: 13px; font-weight: 600; margin-top: 6px; }
.best-tag { position: absolute; top: -9px; right: 8px; font-size: 10px; font-weight: 700; background: var(--rose); color: #fff; padding: 2px 7px; border-radius: 999px; }
.delivery { display: grid; gap: 8px; margin-bottom: 14px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--rose); background: color-mix(in oklab, var(--rose) 8%, transparent); }
.opt input { margin-top: 4px; accent-color: var(--rose); }
.opt strong { display: block; font-size: 14px; }
.opt em { font-style: normal; font-size: 12px; color: var(--text-3); }
.slug-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: color-mix(in oklab, var(--bg) 55%, transparent); }
:root[data-theme="light"] .slug-input { background: #fff; }
.slug-input:focus-within { border-color: var(--rose); }
.slug-input .prefix, .slug-input .suffix { padding: 0 10px; color: var(--text-3); font-size: 14px; white-space: nowrap; }
.slug-input .prefix { padding-right: 0; }
.slug-input input { border: 0 !important; box-shadow: none !important; padding-inline: 2px; background: transparent !important; min-width: 0; }
.errors { padding: 12px 14px; border-radius: 10px; background: color-mix(in oklab, var(--danger) 12%, transparent); border: 1px solid color-mix(in oklab, var(--danger) 40%, transparent); color: var(--danger); font-size: 14px; margin: 16px 0 0; }
.pay { margin-top: 22px; height: 52px; font-size: 15px; }
.live-preview-row { margin-top: 8px; }

.preview-modal { width: min(1100px, 100vw - 24px); height: min(760px, 100vh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: #0b060b; color: #fff; overflow: hidden; }
.preview-modal::backdrop { background: rgba(8, 3, 8, .7); backdrop-filter: blur(4px); }
.preview-modal[open] { display: flex; flex-direction: column; }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.pm-head .muted { color: rgba(255,255,255,.5); flex: 1; }
.pm-head .icon-btn { color: #fff; }
.pm-frame { flex: 1; }
.pm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); z-index: 60; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast button { border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; background: color-mix(in oklab, var(--btn-text) 12%, transparent); color: inherit; }
.toast:empty { display: none; }

/* ---------- checkout / success / manage */
.checkout, .success, .my-gifts, .message { padding-top: 56px; }
.summary { margin: 20px 0; border-top: 1px solid var(--line); }
.summary .line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary .total { font-weight: 700; font-size: 17px; }
.checkout .back-link { margin-top: 16px; }
.pay-title { font: 600 18px var(--sans); margin: 26px 0 12px; }
.pay-methods { display: grid; gap: 8px; margin-bottom: 18px; }
.pay-panel { margin-top: 4px; }
.fine code { font-size: 12px; }
/* Bank transfer box: everything visible at once. */
.acct { display: grid; gap: 10px; animation: pop .4s both; }
.acct-due { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: color-mix(in oklab, var(--rose) 12%, transparent); border: 1px solid color-mix(in oklab, var(--rose) 35%, transparent); }
.acct-due b { font: 700 24px var(--sans); }
.acct-due span { font-size: 13px; color: var(--text-2); }
.acct-box { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text); font: inherit; }
.acct-box b { font-size: 16px; }
.acct-box small { font-weight: 500; color: var(--text-3); margin: 0 4px; }
.acct-label { font-size: 12px; color: var(--text-3); }
.acct-box.charge { background: color-mix(in oklab, var(--warn) 10%, transparent); border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.acct-number { position: relative; cursor: pointer; }
.acct-number b { font: 700 26px/1.2 var(--sans); letter-spacing: .06em; }
.acct-copy { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: 12px; font-weight: 700; }
.search-tip { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.search-tip p { margin: 0 0 10px; }
.search-tip .key { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.search-tip img { display: block; width: 100%; height: auto; border-radius: 10px; }
.acct-note { font-size: 13px; color: var(--text-2); margin: 2px 0 0; }
.acct-note .countdown { font-weight: 700; color: var(--text); }
.acct-wait { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin: 4px 0 0; }
.acct-wait i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.success h1 { font-size: clamp(30px, 4vw, 44px); }
.success .eyebrow { color: var(--green); }
.link-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in oklab, var(--bg) 50%, transparent); }
.link-row input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px 0; font-size: 14px; min-width: 0; flex: 1; }
.link-row .lock { color: var(--green); display: inline-flex; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.share-row .btn { height: 38px; font-size: 13px; padding: 0 14px; }
.qr { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 13px; }
.qr svg { width: 108px; height: 108px; border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.gift-list { list-style: none; padding: 0; margin: 0; }
.gift-list li a { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.gift-list li:last-child a { border-bottom: 0; }
.gift-list img { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; }
.gift-list span { flex: 1; display: grid; }
.gift-list em { font-style: normal; font-size: 13px; color: var(--text-3); }
.notice { padding: 12px 14px; border-radius: 10px; background: color-mix(in oklab, var(--green) 12%, transparent); color: var(--green); font-size: 14px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.manage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding-top: 36px; align-items: start; }
.manage-thumb { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 18px; border: 1px solid var(--line); }
.manage h1 { font-size: 34px; margin-bottom: 4px; }
.manage .link-row { margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-grid .k { display: block; font-size: 12px; color: var(--text-3); }
.stat-grid .v { font-weight: 600; font-size: 15px; }
.status-yes { color: var(--green); } .status-ended { color: var(--danger); } .status-opened { color: var(--gold); }
.big { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.extend { display: flex; flex-wrap: wrap; gap: 8px; }
.extend .btn { height: 38px; font-size: 13px; }

.prose { padding-top: 56px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--text-2); }
.plain { padding-left: 18px; }
.plain li { margin-bottom: 8px; }
.mail { padding: 0; overflow: hidden; }
.mail summary { padding: 14px 18px; cursor: pointer; }
.mail iframe { width: 100%; height: 520px; border: 0; background: #f7f1ee; }
.ended-art { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--surface-2); color: var(--rose); }
.ended-art svg { width: 28px; height: 28px; }
.message .btn { margin-top: 10px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-chat { height: 320px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .design, .manage { grid-template-columns: 1fr; gap: 32px; }
  .editor-col { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { gap: 6px; }
  .nav a[href="/#designs"], .nav a[href="/#how"] { display: none; }
  .site-header .row.three { grid-template-columns: auto 1fr auto; }
  .site-header .row.three .logo { justify-self: center; }
  .back-link span, .small-link { display: none; }
  .grid.two, .grid.three, .steps { grid-template-columns: 1fr; }
  .shelf-head { flex-direction: column; align-items: flex-start; }
  .plans { grid-template-columns: 1fr; }
  .editor { padding: 18px; }
  .demo-cta { flex-direction: column; align-items: flex-start; }
  .qr { flex-direction: column; align-items: flex-start; }
  .preview-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
