/* LookRecipe — imagetoprompt.tools */
:root {
  --bg: #f6f1ea;
  --bg-2: #efe7dc;
  --paper: #fffdf9;
  --ink: #1b1714;
  --ink-2: #4a423c;
  --muted: #7a7068;
  --line: rgba(27, 23, 20, 0.12);
  --accent: #e8611a;
  --accent-2: #c94d0d;
  --accent-soft: #fde4d3;
  --cobalt: #3e63b8;
  --cobalt-soft: #dfe7f7;
  --red: #b3261e;
  --ok: #2f8f5b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(27, 23, 20, 0.06), 0 12px 32px -12px rgba(27, 23, 20, 0.22);
  --shadow-lg: 0 2px 6px rgba(27, 23, 20, 0.06), 0 40px 80px -30px rgba(27, 23, 20, 0.45);
  --display: "Fraunces", "Iowan Old Style", Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; letter-spacing: 0.01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 30; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(42px, 5.4vw, 80px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; font-family: var(--sans); font-weight: 700; }
p { margin: 0; }
em.serif { font-style: italic; color: var(--accent-2); }
:lang(zh) em.serif { font-style: normal; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- buttons ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(27, 23, 20, .55); }
.btn:active { transform: translateY(0); }
.btn-accent { --b: var(--accent); box-shadow: 0 10px 28px -12px rgba(232, 97, 26, .9); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: rgba(246, 241, 234, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { background: rgba(27, 23, 20, .06); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lang:hover { background: rgba(27, 23, 20, .06); }
.lang svg { width: 17px; height: 17px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--bg); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
}
@media (max-width: 960px) and (min-width: 520px) { .nav-tools .btn { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 760px; background: radial-gradient(60% 55% at 78% 30%, rgba(62, 99, 184, .16), transparent 70%), radial-gradient(40% 40% at 10% 10%, rgba(232, 97, 26, .12), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 .line { display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.kbd { display: inline-block; font: 600 14px/1 var(--mono); padding: 5px 7px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); color: var(--ink); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.compare { position: relative; aspect-ratio: 2 / 3; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #9cb4e0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .25); }
.compare-knob { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); cursor: ew-resize; transition: transform .15s; }
.compare-knob:hover, .compare.dragging .compare-knob { transform: scale(1.08); }
.compare-knob svg { width: 26px; height: 26px; }
.compare-label { position: absolute; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 16, 14, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .02em; pointer-events: none; transition: opacity .2s; }
.compare-label.l { left: 16px; }
.compare-label.r { right: 16px; }
.compare.hint .compare-handle { animation: nudge 2.4s ease-in-out 0.8s 1; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-36px); } 65% { transform: translateX(28px); } }

.float-card { position: absolute; z-index: 2; background: rgba(255, 253, 249, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 14px; }
.float-card.recipe { left: -48px; top: 54%; width: 228px; animation: bob 7s ease-in-out infinite; }
.float-card.recipe b { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.float-card.recipe b i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 143, 91, .18); }
.float-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--cobalt-soft); color: #23407f; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip.warm { background: var(--accent-soft); color: #8a3409; }
.float-card.you { right: -36px; bottom: 14%; display: flex; align-items: center; gap: 10px; animation: bob 8s ease-in-out -3s infinite; }
.float-card.you img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.float-card.you span { display: grid; line-height: 1.3; }
.float-card.you small { color: var(--muted); font-size: 14px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 420px); margin-top: 8px; }
  .float-card.recipe { left: -12px; top: 58%; width: 210px; }
  .float-card.you { right: -10px; }
}
@media (max-width: 520px) {
  .float-card.recipe { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.marquee { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; font-size: 15.5px; }
.marquee span::before { content: "✦"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: #17130f; color: #f4eee6; }
.section.dark .lead, .section.dark p { color: #cfc5ba; }
.section.dark .eyebrow { color: #ff9b61; }

/* ---------- recipe demo ---------- */
.demo { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.demo-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 2 / 3; }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; }
.demo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .25)); pointer-events: none; }
.pin { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 800 14px/1 var(--sans); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .18s, background .18s, color .18s; }
.pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: ping 2.6s ease-out infinite; }
.pin:hover, .pin.active { transform: scale(1.15); background: var(--accent); color: #fff; }
.pin.active::before { border-color: var(--accent); }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.prompt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prompt-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prompt-top .title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.prompt-top .title i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 143, 91, .16); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-2); margin-left: auto; }
.tabs button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.prompt-body { padding: 20px 22px; min-height: 248px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prompt-body .seg { border-radius: 6px; padding: 1px 2px; margin: -1px -2px; transition: background .2s, color .2s, box-shadow .2s; cursor: default; }
.prompt-body span.seg[data-k]:not(.chip) { background: linear-gradient(transparent 62%, rgba(232, 97, 26, .16) 0); }
.prompt-body span.seg.hl:not(.chip) { background: var(--accent-soft); color: #6d2a06; box-shadow: 0 0 0 2px var(--accent-soft); }
.prompt-body .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-body .tag-list .chip { font-size: 14px; padding: 7px 12px; }
.prompt-body .tag-list .chip { transition: background .2s, color .2s, transform .2s; }
.prompt-body .tag-list .chip.hl { background: var(--accent); color: #fff; transform: translateY(-1px); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0 16px 16px; }
.legend-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: border-color .15s, background .15s; }
.legend-item b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 14px; flex: none; }
.legend-item:hover, .legend-item.active { border-color: var(--accent); background: #fff6ef; color: var(--ink); }
.legend-item.active b { background: var(--accent); color: #fff; }
.prompt-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fbf8f3; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.prompt-foot .count { font-variant-numeric: tabular-nums; }
.prompt-foot .btn { margin-left: auto; }
.copy-ok { color: var(--ok); font-weight: 650; }
.demo-note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-photo { max-width: 420px; width: 100%; margin-inline: auto; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.step-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { position: relative; border-radius: 18px; border: 1px solid var(--line); background: transparent; padding: 20px 22px 20px 74px; cursor: pointer; text-align: left; width: 100%; transition: background .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-2); color: var(--ink-2); transition: background .2s, color .2s; }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step[aria-selected="true"] { background: var(--paper); border-color: transparent; box-shadow: var(--shadow); }
.step[aria-selected="true"]::before { background: var(--accent); color: #fff; }
.step[aria-selected="true"] .bar { animation: fill var(--dur, 6s) linear forwards; }
.steps.paused .step .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.browser { border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #ece5db; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cfc3; }
.browser-bar i:nth-child(1) { background: #f0705a; }
.browser-bar i:nth-child(2) { background: #f4bd4f; }
.browser-bar i:nth-child(3) { background: #5cc26c; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 360px; background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 4px 12px; font-size: 14px; color: var(--muted); }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.browser-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform .7s ease; }
.browser-view img.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps .browser { order: -1; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature.wide { grid-column: span 3; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.feature .ico.blue { background: var(--cobalt-soft); color: var(--cobalt); }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.feature figure { margin: 8px 0 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.feature figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---------- person → set ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; gap: clamp(12px, 2vw, 24px); align-items: center; }
.flow figure { margin: 0; display: grid; gap: 12px; }
.flow figure img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.flow figure.tall img { aspect-ratio: 2 / 3; }
.flow figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.flow figcaption b { display: block; color: var(--ink); font-size: 15.5px; }
.flow .op { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 20px; color: var(--accent-2); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .op { display: none; }
  .flow figure.result { grid-column: 1 / -1; }
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(20, 16, 14, .6); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .25s; }
.gallery button:hover span, .gallery button:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 860px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(14, 11, 9, .82); backdrop-filter: blur(6px); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 16px; }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-size: 15px; }
.lightbox .x { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- pricing ---------- */
.free-banner { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; margin: -20px auto 40px; padding: 14px 22px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); width: fit-content; max-width: 100%; text-align: center; }
.free-banner strong { color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { position: relative; border-radius: var(--radius); padding: 30px 26px 26px; background: #221c17; border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 16px; align-content: start; }
.plan.featured { background: linear-gradient(180deg, #2c2119, #221c17); border-color: rgba(255, 155, 97, .55); box-shadow: 0 30px 60px -30px rgba(232, 97, 26, .6); }
.plan .badge { position: absolute; top: -12px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 750; letter-spacing: .04em; }
.plan h3 { color: #fff; font-size: 20px; }
.plan .desc { font-size: 15px; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 10px; color: #fff; }
.price b { font: 600 56px/1 var(--display); letter-spacing: -0.03em; }
.price span { color: #cfc5ba; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: #e2d9cf; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: #ff9b61; flex: none; margin-top: 3px; }
.plan .btn { width: 100%; margin-top: 6px; }
.plan .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.plan .btn-ghost:hover { border-color: #fff; }
.costs { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.costs table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.costs caption { text-align: left; font-weight: 700; color: #fff; font-size: 18px; padding-bottom: 12px; }
.costs th, .costs td { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; font-weight: 500; color: #e2d9cf; }
.costs td { text-align: right; font-variant-numeric: tabular-nums; color: #fff; font-weight: 650; white-space: nowrap; }
.calc { border-radius: var(--radius); background: #221c17; border: 1px solid rgba(255, 255, 255, .08); padding: 22px; display: grid; gap: 14px; }
.calc h3 { color: #fff; font-size: 18px; }
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 15px; color: #e2d9cf; }
.calc output { font-variant-numeric: tabular-nums; color: #fff; font-weight: 700; min-width: 2ch; text-align: right; }
.calc input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.calc .total { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: #fff; font-weight: 650; }
.calc .total em { font-style: normal; color: #ff9b61; }
.fine { margin-top: 26px; font-size: 14px; color: #a99d92 !important; text-align: center; }
@media (max-width: 900px) { .plans, .costs { grid-template-columns: 1fr; } .plan .desc { min-height: 0; } }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 8px; }
.trust p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 650; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 24px 22px; color: var(--ink-2); }
.faq .a p + p { margin-top: 10px; }

/* ---------- cta ---------- */
.cta { text-align: center; display: grid; gap: 22px; justify-items: center; padding: clamp(56px, 8vw, 96px) var(--gutter); border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, #2f4f97, #1d2f5d); color: #fff; position: relative; overflow: hidden; }
.lang-suggest { position: relative; z-index: 51; background: var(--ink); color: #fff; font-size: 14.5px; }
.lang-suggest .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 0; flex-wrap: wrap; }
.lang-suggest a { font-weight: 700; color: #ffb27f; }
.lang-suggest button { border: 0; background: transparent; color: #cfc5ba; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; }
.cta h2 { max-width: 16ch; }
.cta p { color: #d7e1f7; max-width: 52ch; }
.cta .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn-ghost:hover { border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .about { display: grid; gap: 14px; max-width: 360px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; transition: .25s; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 620px) {
  .mobile-cta { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); transition: transform .3s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
  .site-footer { padding-bottom: 96px; }
}

/* hero entrance: CSS only so it never delays first paint of the LCP image */
.hero .intro { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .intro:nth-child(2) { animation-delay: .06s; }
.hero .intro:nth-child(3) { animation-delay: .12s; }
.hero .intro:nth-child(4) { animation-delay: .18s; }
.hero .intro:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* keep the H1 (likely LCP element) visible from the first frame */
.hero h1.intro { animation-name: rise-t; }
@keyframes rise-t { from { transform: translateY(10px); } }
