/* Oriel website. One typeface (Geist), warm paper white, near-black ink and one accent taken from Oriel's own dusk
   wallpaper. The product's screens bring the colour; the page stays quiet around them. */

@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #faf9f7;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --ink: #111113;
  --ink-2: #48484f;
  --ink-3: #82828a;
  --line: #e7e4de;
  --line-2: #d8d4cc;
  --accent: #e0562d;        /* the dusk on Oriel's wallpaper */
  --accent-ink: #b8431f;    /* the same, dark enough for text */
  --accent-soft: #fbe9e1;
  --night: #0d0c11;
  --ok: #1f8a4c;
  --ok-soft: #e3f3e9;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --bad: #b3261e;
  --bad-soft: #fbe5e3;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.06), 0 1px 1px rgba(17, 17, 19, 0.04);
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.05), 0 10px 30px -12px rgba(17, 17, 19, 0.18);
  --shadow-lg: 0 2px 6px rgba(17, 17, 19, 0.06), 0 40px 80px -30px rgba(17, 17, 19, 0.35);
  --sans: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  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; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -0.028em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 650; letter-spacing: -0.042em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.036em; }
h3 { font-size: 1.32rem; letter-spacing: -0.02em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
kbd { font-family: var(--sans); font-size: 0.82em; font-weight: 560; padding: 0.1em 0.45em 0.14em; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 560; color: var(--ink-3); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lede { font-size: clamp(1.06rem, 0.4vw + 1rem, 1.24rem); color: var(--ink-2); line-height: 1.6; max-width: 38em; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 20px;
  border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 0.97rem; font-weight: 560;
  letter-spacing: -0.005em; transition: background-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease), color 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px rgba(17, 17, 19, 0.6); }
.btn-primary:hover { background: #2a2a30; }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px #bdb8ae, var(--shadow-sm); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); background: rgba(17, 17, 19, 0.05); }
.btn-small { --h: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 100; transition: background-color 0.25s, box-shadow 0.25s; }
.site-header.scrolled { background: rgba(250, 249, 247, 0.84); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; padding: 7px 11px; border-radius: 9px; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--ink); background: rgba(17, 17, 19, 0.05); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { --h: 38px; padding: 0 15px; font-size: 0.92rem; border-radius: 10px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .header-actions [data-account-link] { display: none; } .site-header .wrap { gap: 12px; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(56px, 9vw, 104px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 12em; margin: 0 auto; }
.hero .lede { margin: 22px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 0.88rem; color: var(--ink-3); display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ok); }
.hero-stage { margin-top: clamp(44px, 6vw, 72px); perspective: 2200px; padding-bottom: clamp(56px, 8vw, 100px); }

/* A screen showing Oriel, built from the app's own pieces (so it stays sharp at any size). */
.screen {
  --tilt: 1; position: relative; width: min(1120px, 100%); margin: 0 auto; border-radius: clamp(10px, 1.6vw, 20px);
  padding: clamp(5px, 0.7vw, 10px); background: linear-gradient(#1d1c22, #0f0e13); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(17, 17, 19, 0.08);
  transform: rotateX(calc(var(--tilt) * 14deg)) scale(calc(1 - var(--tilt) * 0.05)); transform-origin: 50% 0%; will-change: transform;
}
.desk { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(6px, 1vw, 12px); overflow: hidden; container-type: inline-size; background: #241a33; }
.desk > img.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 2.7cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.4cqw;
  background: rgba(30, 20, 40, 0.38); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: rgba(255, 255, 255, 0.94); font-size: 1.08cqw; font-weight: 500; white-space: nowrap; z-index: 2;
}
.menubar .mark { width: 1.45cqw; height: 1.45cqw; border-radius: 0.35cqw; }
.menubar b { font-weight: 680; }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 1.4cqw; }
.menubar .right svg { width: 1.35cqw; height: 1.35cqw; }
.win { position: absolute; border-radius: 1.1cqw; overflow: hidden; background: rgba(28, 21, 38, 0.86); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 2.6cqw 5cqw -1.4cqw rgba(8, 4, 16, 0.6), 0 0 0 0.06cqw rgba(255, 255, 255, 0.14); }
.win img { width: 100%; height: auto; }
.desk .settings { left: 6.5cqw; top: 7.6cqw; width: 50cqw; }
.desk .search { left: 41cqw; top: 25cqw; width: 33cqw; border-radius: 1.4cqw; }
.desk .cc { right: 2cqw; top: 3.5cqw; width: 19cqw; border-radius: 1.6cqw; }
.dock {
  position: absolute; left: 50%; bottom: 1.3cqw; translate: -50% 0; display: flex; align-items: flex-end; gap: 0.75cqw; padding: 0.75cqw 0.9cqw;
  border-radius: 1.6cqw; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 0.06cqw rgba(255, 255, 255, 0.28), 0 1.2cqw 3cqw -1cqw rgba(8, 4, 16, 0.5); z-index: 2;
}
.dock span { position: relative; width: 3.6cqw; height: 3.6cqw; transition: width 0.2s var(--ease), height 0.2s var(--ease); }
.dock img { width: 100%; height: 100%; }
.dock span.on::after { content: ""; position: absolute; left: 50%; bottom: -0.55cqw; width: 0.32cqw; height: 0.32cqw; border-radius: 50%; translate: -50% 0; background: rgba(255, 255, 255, 0.85); }
.dock .sep { width: 0.06cqw; height: 3.2cqw; background: rgba(255, 255, 255, 0.3); margin: 0 0.2cqw 0.2cqw; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.tight { padding-top: 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 18px; }
.section-head.center .lede { margin-inline: auto; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.facts span { color: var(--ink-3); font-size: 0.92rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .facts div:first-child { border-top: 0; } }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature .lede { margin-top: 16px; font-size: 1.08rem; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 0.98rem; }
.points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b8431f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* A product scene: the real wallpaper with a piece of Oriel resting on it. */
.stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 7 / 5; background: #2a1d3a center / cover no-repeat; box-shadow: var(--shadow); display: grid; place-items: center; isolation: isolate; }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17, 17, 19, 0.08); pointer-events: none; }
.stage .piece { position: relative; background: rgba(28, 21, 38, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: clamp(10px, 1.4vw, 18px); box-shadow: 0 30px 60px -24px rgba(8, 4, 16, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14); overflow: hidden; }
.stage .piece img { width: 100%; height: auto; }
.stage.wide { aspect-ratio: 16 / 9; }
.stage.full .piece { box-shadow: none; border-radius: 0; width: 100%; background: none; backdrop-filter: none; }

/* Scenes */
.scenes { display: grid; gap: 22px; }
.scene-view { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--night); box-shadow: var(--shadow); }
.scene-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.9s var(--ease), transform 6s linear; }
.scene-view img.on { opacity: 1; transform: scale(1); }
.scene-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.scene-tabs button { appearance: none; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); padding: 10px 16px; border-radius: 12px; cursor: pointer; text-align: left; min-width: 150px; transition: box-shadow 0.2s, background-color 0.2s, color 0.2s; }
.scene-tabs button b { display: block; font-size: 0.95rem; font-weight: 600; }
.scene-tabs button span { font-size: 0.82rem; color: var(--ink-3); }
.scene-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.scene-tabs button[aria-selected="true"] span { color: rgba(255, 255, 255, 0.66); }
@media (max-width: 640px) { .scene-view { aspect-ratio: 4 / 3; } .scene-tabs button { min-width: 0; flex: 1 1 40%; } }

/* Small features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.tile .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); margin-bottom: 18px; }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { font-size: 1.06rem; margin-bottom: 6px; }
.tile p { color: var(--ink-2); font-size: 0.95rem; }

/* Dark band (the film) */
.dark { background: var(--night); color: #f4f2f6; }
.dark h2 { color: #fff; }
.dark .lede { color: rgba(244, 242, 246, 0.72); }
.dark .eyebrow { color: rgba(244, 242, 246, 0.6); }
.film { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -40px rgba(0, 0, 0, 0.8); }
.film video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.film-toggle { position: absolute; right: 16px; bottom: 16px; }
.dark .btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }
@media (max-width: 640px) and (orientation: portrait) { .film { aspect-ratio: 9 / 16; max-height: 82vh; margin-inline: auto; } }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
.safety div { padding-top: 26px; }
.safety h3 { font-size: 1.04rem; margin-bottom: 8px; }
.safety p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .safety { grid-template-columns: 1fr; } }
.note-card { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.note-card p + p { margin-top: 10px; }
.note-card p { color: var(--ink-2); }
.note-card h3 { margin-bottom: 10px; }
.smartscreen { border-radius: 10px; background: #1f4e8c; color: #fff; padding: 22px 22px 18px; font-family: "Segoe UI", var(--sans); box-shadow: var(--shadow); }
.smartscreen b { display: block; font-size: 1.25rem; font-weight: 400; margin-bottom: 10px; }
.smartscreen p { color: rgba(255, 255, 255, 0.9); font-size: 0.86rem; }
.smartscreen .more { display: inline-block; margin-top: 12px; text-decoration: underline; font-size: 0.86rem; }
.smartscreen .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.smartscreen .row span { border: 1px solid rgba(255, 255, 255, 0.8); padding: 6px 16px; font-size: 0.86rem; }
.smartscreen .row .run { background: #fff; color: #1f4e8c; border-color: #fff; }
@media (max-width: 760px) { .note-card { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.price-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.price-card .tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.price b { font-size: clamp(3.4rem, 6vw, 4.4rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--ink-3); }
.price-card .points { margin-top: 22px; }
.price-actions { display: grid; gap: 10px; margin-top: 28px; }
.price-actions .btn { width: 100%; }
.fine { margin-top: 14px; font-size: 0.86rem; color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 600; }
.steps h4 { margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 1.06rem; font-weight: 560; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq details > div p + p { margin-top: 10px; }

/* Closing band */
.cta { text-align: center; }
.cta h2 { max-width: 15em; margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 0.92rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 0.86rem; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .about p { margin-top: 12px; max-width: 26em; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.6; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ download sheet */
dialog.sheet { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(540px, calc(100vw - 24px)); width: 100%; }
dialog.sheet::backdrop { background: rgba(17, 17, 19, 0.42); backdrop-filter: blur(4px); }
.sheet-body { position: relative; background: var(--surface); border-radius: 20px; padding: 30px clamp(22px, 4vw, 32px) 26px; box-shadow: var(--shadow-lg); }
dialog.sheet[open] .sheet-body { animation: sheet-in 0.32s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.sheet-body h3 { font-size: 1.4rem; margin-bottom: 8px; padding-right: 30px; }
.sheet-body p { color: var(--ink-2); }
.sheet-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); }
.sheet-close:hover { color: var(--ink); }
.sheet ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 12px; }
.sheet ol li { position: relative; padding-left: 38px; color: var(--ink-2); font-size: 0.97rem; min-height: 26px; }
.sheet ol li::before { counter-increment: i; content: counter(i); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 0.82rem; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sheet .hash { margin-top: 16px; font-size: 0.72rem; color: var(--ink-3); word-break: break-all; font-family: var(--mono); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 16px; opacity: 0; z-index: 400; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 500; font-size: 0.93rem; transition: opacity 0.22s, translate 0.22s var(--ease); pointer-events: none; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ------------------------------------------------------------------ motion */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.stage[data-reveal] .piece { transform: translateY(18px) scale(0.98); transition: transform 1.1s var(--ease) 120ms; }
.stage[data-reveal].in .piece { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .stage[data-reveal] .piece { opacity: 1; transform: none; transition: none; }
  .screen { transform: none; }
  .scene-view img { transition: opacity 0.3s; transform: none; }
}

/* ------------------------------------------------------------------ app pages: account, buy, support, admin, policies */
.page { padding: clamp(48px, 7vw, 88px) 0 110px; min-height: 60vh; }
.page .wrap { max-width: 900px; }
.page.narrow .wrap { max-width: 480px; }
.page.wide .wrap { max-width: 1180px; }
.page h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); letter-spacing: -0.038em; }
.page .sub { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }
.page .updated { color: var(--ink-3); font-size: 0.9rem; margin: 10px 0 36px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.prose h2 { font-size: 1.36rem; margin: 40px 0 10px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose .card { margin: 24px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.panel { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 32px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.18rem; letter-spacing: -0.015em; }
.panel .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel .head p { color: var(--ink-3); font-size: 0.92rem; margin-top: 2px; }
.stack { display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.switch-link { text-align: center; color: var(--ink-3); font-size: 0.94rem; margin-top: 18px; }
.switch-link button, .link { appearance: none; border: 0; background: none; padding: 0; color: var(--ink); font-weight: 560; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 560; font-size: 0.92rem; }
.field .help { font-size: 0.86rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: 11px; padding: 12px 14px; background: var(--surface); font-size: 1rem; outline: none;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px #bdb8ae; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(17, 17, 19, 0.06); }
.field input.code { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 1.08rem; }
.state { font-size: 0.86rem; min-height: 1.3em; }
.state.ok { color: var(--ok); }
.state.bad { color: var(--bad); }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 0.94rem; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--bg-2); color: var(--ink-2); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }

.keybox { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; }
.keybox code { display: block; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; word-break: break-all; user-select: all; color: var(--ink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { appearance: none; border: 0; background: none; padding: 12px 14px; cursor: pointer; font-weight: 560; font-size: 0.95rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }

.list .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; padding-top: 0; }
.list .item h4 { font-size: 0.98rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list .item .meta { color: var(--ink-3); font-size: 0.88rem; }
.list .item .wide { grid-column: 1 / -1; }
.list .item .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--ink-3); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 560; color: var(--ink-3); font-size: 0.8rem; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg); }

.thread { display: grid; gap: 10px; margin-top: 12px; }
.bubble { border-radius: 12px; padding: 12px 14px; background: var(--bg-2); font-size: 0.94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.support { background: var(--accent-soft); }
.bubble small { display: block; color: var(--ink-3); font-size: 0.78rem; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.stats b { display: block; font-size: 1.7rem; font-weight: 650; letter-spacing: -0.03em; }
.stats span { color: var(--ink-3); font-size: 0.86rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

[hidden] { display: none !important; }

.header-actions [data-account-link] { opacity: 0; transition: opacity 0.2s; animation: appear 0s 1.2s forwards; }
.header-actions [data-account-link].known { opacity: 1; animation: none; }
@keyframes appear { to { opacity: 1; } }
.loading-card { display: flex; align-items: center; gap: 12px; color: var(--ink-3); padding: 28px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; border: 0; background: var(--bg-2); border-radius: 8px; padding: 6px 10px; font-size: 0.82rem; font-weight: 560; cursor: pointer; color: var(--ink-2); }
.pw-toggle:hover { color: var(--ink); }
.caps { font-size: 0.82rem; color: var(--warn); }

/* ------------------------------------------------------------------ 3D hero, glass and light */
.hero { position: relative; isolation: isolate; --glow-a: 242, 154, 120; --glow-b: 120, 92, 200; }
.hero[data-scene="aurora"] { --glow-a: 70, 210, 160; --glow-b: 70, 90, 190; }
.hero[data-scene="ocean"] { --glow-a: 245, 168, 108; --glow-b: 60, 110, 190; }
.hero[data-scene="dunes"] { --glow-a: 240, 178, 100; --glow-b: 200, 110, 80; }
.hero::before {
  content: ""; position: absolute; inset: 30% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 55%, rgba(var(--glow-b), 0.20), transparent 70%),
    radial-gradient(45% 50% at 70% 60%, rgba(var(--glow-a), 0.26), transparent 70%);
  filter: blur(30px); transition: background 0.9s var(--ease);
}
.stage3d { display: none; position: relative; width: min(1240px, 100%); margin: 0 auto; aspect-ratio: 16 / 9.4; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-stage.has-3d .stage3d { display: block; }
.hero-stage.has-3d .screen { display: none; }
.hero-stage.ready-3d .stage3d canvas { opacity: 1; }

.scene-pick {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 26px auto 0; width: fit-content; max-width: 100%; padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 30px -14px rgba(17, 17, 19, 0.35);
}
.scene-pick button {
  appearance: none; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; font-size: 0.9rem; font-weight: 560; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.scene-pick button img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(17, 17, 19, 0.1); }
.scene-pick button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.scene-pick button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(17, 17, 19, 0.25); }
@media (max-width: 560px) { .scene-pick button { padding: 5px 10px 5px 5px; font-size: 0.82rem; } .scene-pick button img { width: 22px; height: 22px; } }

/* Frosted cards with a soft light that follows the pointer. */
.section.glassy { position: relative; isolation: isolate; overflow: hidden; }
.section.glassy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(35% 45% at 15% 25%, rgba(242, 154, 120, 0.16), transparent 70%), radial-gradient(35% 45% at 85% 75%, rgba(120, 92, 200, 0.12), transparent 70%);
}
.tile, .price-card, .panel { position: relative; overflow: hidden; }
.glassy .tile, .glassy .price-card {
  background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(17, 17, 19, 0.04), 0 18px 40px -26px rgba(17, 17, 19, 0.35);
}
.tile::after, .price-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 60%);
}
.tile:hover::after, .price-card:hover::after { opacity: 1; }
.tile { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tile:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }
