/* Warp Mirror — product page and help shell. Accent colours follow the app's four themes. */
:root {
  color-scheme: dark;
  --bg: #04070f; --bg-2: #070c18; --panel: #0b1322; --panel-2: #101a2d;
  --ink: #f6f8fc; --soft: #c9d3e1; --muted: #8f9db2;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --void: #5eead4; --violet: #f0abfc; --aurora: #67e8f9; --ember: #fdba74;
  --accent: var(--void); --accent-2: #14b8a6; --accent-deep: #0f766e; --glow-a: #312e81; --glow-b: #0f766e;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1200px; --r: 14px;
}
:root[data-theme="violet"] { --accent: var(--violet); --accent-2: #c026d3; --accent-deep: #86198f; --glow-a: #7c3aed; --glow-b: #db2777; }
:root[data-theme="aurora"] { --accent: var(--aurora); --accent-2: #0891b2; --accent-deep: #155e75; --glow-a: #06b6d4; --glow-b: #22c55e; }
:root[data-theme="ember"] { --accent: var(--ember); --accent-2: #ea580c; --accent-deep: #9a3412; --glow-a: #f97316; --glow-b: #be123c; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.accent { color: var(--accent); transition: color .5s; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(4, 7, 15, .74); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.12rem var(--display); letter-spacing: -.01em; flex: none; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a, .platform { font-size: .9rem; color: var(--soft); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .platform:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; font: 500 .75rem var(--mono); flex: none; }
.lang > * { padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--accent); color: #041014; }
.lang a:hover { color: var(--ink); }
.platform { color: var(--muted); font-size: .8rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-go { background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-2) 35%, transparent); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; isolation: isolate; }
.warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 18% 22%, color-mix(in srgb, var(--glow-a) 55%, transparent), transparent 70%), radial-gradient(38% 46% at 82% 70%, color-mix(in srgb, var(--glow-b) 45%, transparent), transparent 70%); opacity: .55; transition: background .6s; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(4, 7, 15, .5); font: 500 .78rem var(--mono); color: var(--soft); letter-spacing: .02em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.55rem); font-weight: 700; letter-spacing: -.035em; }
.hero .lede { font-size: 1.13rem; color: var(--soft); max-width: 50ch; margin: 24px 0 30px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .8rem var(--mono); color: var(--muted); }
.facts li::before { content: "✓"; color: var(--accent); margin-right: 7px; }
.hero-devices { margin: 0; }
.devices { position: relative; padding: 0 0 8% 13%; }
.devices > .zoom:first-child { display: block; }
.devices > .zoom:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 27%; }
.beam { position: absolute; left: 22%; bottom: 30%; width: 16%; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: .14 .1; animation: beam 1.6s linear infinite; filter: drop-shadow(0 0 6px var(--accent)); pointer-events: none; opacity: .9; }
@keyframes beam { to { stroke-dashoffset: -.48; } }

/* Device frames */
.zoom { display: block; cursor: zoom-in; text-decoration: none; }
.browser { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0d1424; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4); transition: transform .3s; }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #151d2f; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3650; }
.browser .bar i:first-child { background: #ff5f57aa; } .browser .bar i:nth-child(2) { background: #febc2eaa; } .browser .bar i:nth-child(3) { background: #28c840aa; }
.browser .url { margin-left: 10px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: #0a101c; color: var(--soft); font: 400 .72rem/22px var(--mono); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .url b { font-weight: 400; color: var(--muted); }
.phone { display: block; padding: 7px; border-radius: 26px; background: linear-gradient(160deg, #2a3348, #0d1220 50%, #232c40); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .3s; }
.phone img { border-radius: 20px; }
.zoom:hover .browser, .zoom:hover .phone { transform: translateY(-4px); }

/* Sections */
.section { padding: 100px 0 0; }
.section > .wrap > .lede, .themes-copy .lede { max-width: 62ch; color: var(--soft); font-size: 1.08rem; margin: 16px 0 30px; }

/* Steps */
.steps { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 40px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step-list button { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.step-list button:hover { border-color: var(--line-2); }
.step-list .num { grid-row: span 2; font: 500 .8rem var(--mono); color: var(--muted); padding-top: 3px; }
.step-list b { font: 600 1.05rem var(--display); }
.step-list .txt { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.step-list [aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, .02)); }
.step-list [aria-selected="true"] .num { color: var(--accent); }
.step-list [aria-selected="true"] .txt { color: var(--soft); }
.step-panels { display: grid; }
.step-panel { margin-bottom: 30px; }
.js .step-panel { margin: 0; grid-area: 1 / 1; }
.js [data-panel][hidden] { display: none; }
.js [data-panel]:not([hidden]) { animation: fade .45s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.step-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 26%; gap: 22px; align-items: end; }
.step-panel.solo .step-stage { grid-template-columns: minmax(0, 270px); justify-content: center; }

/* Send */
.send-ui { margin-top: 36px; display: grid; gap: 20px; }
.send-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.send-tabs button { text-align: left; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--ink); font: inherit; cursor: pointer; display: grid; gap: 2px; }
.send-tabs button b { font: 600 1rem var(--display); }
.send-tabs button small { font: 400 .72rem var(--mono); color: var(--muted); }
.send-tabs [aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, .02)); }
.send-tabs [aria-selected="true"] small { color: var(--accent); }
.send-panel { max-width: 1000px; margin-bottom: 20px; }
.js .send-panel { margin-bottom: 0; }

/* Themes */
.themes-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 50px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 12px var(--sw); }
.swatch[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.theme-stage { position: relative; padding-right: 18%; }
.theme-stage > .zoom:last-child { position: absolute; right: 0; bottom: -6%; width: 25%; }
.theme-stage img { transition: opacity .25s; }
.theme-stage img.swap { opacity: .25; }

/* Privacy band */
.privacy { margin-top: 110px; padding: 26px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.privacy li { font: 600 1rem var(--display); display: flex; align-items: center; gap: 10px; }
.privacy li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.privacy p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 52ch; }
.privacy a { color: var(--accent); text-decoration: none; white-space: nowrap; }

/* Footer */
.site-footer { padding: 34px 0 44px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-inner p { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-inner p span a { margin-left: .3em; }
.footer-inner p img { border-radius: 6px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 4, 10, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 30px 90px #000; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .platform { display: none; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero-inner, .themes-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .privacy { margin-top: 84px; }
  .section { padding-top: 84px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .step-stage { grid-template-columns: minmax(0, 1fr) 30%; gap: 12px; }
  .browser .bar { height: 26px; } .browser .url { height: 18px; line-height: 18px; font-size: .64rem; }
  .phone { padding: 4px; border-radius: 16px; } .phone img { border-radius: 12px; }
  .lb-close { top: 6px; right: 6px; }
}

/* Beta button: two lines, "coming soon" above the action */
.btn-beta { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 56px; padding: 7px 22px; line-height: 1.2; }
.btn-beta small { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
