/* Ungray — marketing site + app prototype.
   Visual language follows the brief: serif display headlines, airy sky hero, glossy blue buttons,
   frosted product mockups on soft grey cards. */

:root {
  --ink: #0b0d12;
  --ink-2: #2b2f3a;
  --muted: #6b7080;
  --muted-2: #9aa0ad;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-tint: #eceff8;
  --blue-a: #2a8af0;
  --blue-b: #2148ee;
  --blue-ink: #1d4ed8;
  --ok: #16a34a;
  --spectrum: linear-gradient(90deg, #ff6a3d, #ffb547 22%, #7bd389 45%, #3aa0ff 70%, #8b5cf6);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 50px -24px rgba(30, 50, 120, .25);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-sm);
  font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue-a); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background-image:
    radial-gradient(100% 100% at 65% 80%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 100%),
    radial-gradient(115% 115% at 10% 17%, var(--blue-a) 0, var(--blue-b) 100%);
  box-shadow:
    16px 16px 24px rgba(148, 172, 243, .38),
    inset -3px -3px 4px rgba(191, 229, 251, .4),
    inset 4px 4px 4px rgba(19, 26, 228, .1);
}
.btn-primary:hover { filter: brightness(1.06) saturate(1.05); }

.btn-dark {
  color: #fff;
  background: linear-gradient(180deg, #2b2e36, #121318);
  box-shadow: 0 10px 24px -8px rgba(10, 12, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-dark:hover { filter: brightness(1.15); }

.btn-light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(20, 30, 60, .25);
}
.btn-light:hover { background: #fafbfd; }

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.brand-mark { width: 24px; height: 24px; flex: none; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 30; }
.nav-inner { display: flex; align-items: center; gap: 44px; height: 72px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { opacity: .92; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .signin { font-size: 14px; font-weight: 500; padding: 0 10px; }
.nav--on-sky { color: #fff; }
.nav--solid { position: sticky; top: 0; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }

.float-cta {
  position: fixed; top: 14px; right: 16px; z-index: 60;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: 148px; overflow: hidden; }
/* Height follows the 16:10 artwork so the peak and the sun both stay in frame at any width. */
.scene { position: absolute; inset: 0 0 auto; height: max(62.5vw, 760px); z-index: -1; pointer-events: none; }
.scene-layer { position: absolute; inset: 0; }
.scene-layer svg { width: 100%; height: 100%; display: block; }
.scene-gray { filter: grayscale(1) contrast(1.06) brightness(1.03); animation: ungray 2.8s cubic-bezier(.6, 0, .3, 1) .5s both; }
.scene-edge {
  position: absolute; top: 0; bottom: 18%; left: 0; width: 2px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 15%, #fff 70%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 28px 8px rgba(255, 255, 255, .6);
  animation: edge 2.8s cubic-bezier(.6, 0, .3, 1) .5s both;
}
.scene-fade { position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); }
@keyframes ungray { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes edge { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hero-copy { text-align: center; color: #fff; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow-pill b { padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--blue-ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.015em;
  font-size: clamp(46px, 7.4vw, 86px); line-height: .98; text-wrap: balance;
}
.hero .display { text-shadow: 0 2px 40px rgba(20, 60, 140, .18); }
.lede { margin: 24px auto 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(20, 50, 120, .35), 0 0 18px rgba(30, 80, 180, .45); }

/* ---------- Product mockup ---------- */
.showcase { margin-top: 72px; position: relative; }
.desk {
  position: relative; padding: clamp(14px, 3.4vw, 44px); border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 90% 100%, #f59a5b 0, rgba(245, 154, 91, 0) 70%),
    radial-gradient(50% 70% at 20% 0%, #3f7fe8 0, rgba(63, 127, 232, 0) 75%),
    linear-gradient(160deg, #5b8fea 0%, #a9bdf0 40%, #f4c9a0 75%, #f3a46e 100%);
  box-shadow: 0 40px 90px -40px rgba(40, 70, 160, .55);
}
.window {
  border-radius: 14px; overflow: hidden; background: #fbfbfd;
  box-shadow: 0 30px 60px -30px rgba(10, 20, 50, .55), 0 0 0 1px rgba(255, 255, 255, .5);
}
.win-bar { display: flex; align-items: center; height: 40px; padding: 0 14px; background: #f1f2f6; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dots { display: flex; gap: 7px; width: 80px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e0e2e8; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; font-weight: 500; color: var(--ink-2); }
.win-actions { width: 80px; display: flex; justify-content: flex-end; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffb547, #ff6a3d); box-shadow: 0 0 0 2px #fff; }
.win-body { display: grid; grid-template-columns: 230px 1fr; min-height: 470px; }
.shoebox { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; background: #f8f9fb; }
.shoebox-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 6px; font-size: 13px; font-weight: 600; }
.shoebox-head span { font-weight: 400; color: var(--muted-2); font-size: 12px; }
.shoebox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.shoebox li { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; font-size: 12.5px; }
.shoebox li.active { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -8px rgba(20, 30, 60, .3); }
.shoebox li img { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; flex: none; }
.shoebox li b { display: block; font-weight: 500; color: var(--ink-2); }
.status { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 5px; }
.status.ok { color: var(--ok); }
.status.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mini-bar { height: 4px; width: 92px; border-radius: 4px; background: var(--bg-tint); overflow: hidden; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; width: 40%; background: var(--spectrum); border-radius: inherit; animation: load 2.6s ease-in-out infinite; }
@keyframes load { 0% { width: 8%; } 70% { width: 92%; } 100% { width: 92%; } }
.usage { margin-top: auto; padding: 10px 8px 2px; font-size: 11.5px; color: var(--muted); }
.usage .meter { margin-top: 6px; height: 5px; border-radius: 5px; background: var(--bg-tint); overflow: hidden; }
.usage .meter i { display: block; width: 60%; height: 100%; background: linear-gradient(90deg, var(--blue-a), var(--blue-b)); }

.stage { display: flex; flex-direction: column; padding: 14px; gap: 12px; min-width: 0; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-tint); font-size: 12.5px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 500; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 30, 60, .15); }
.tb-right { display: flex; gap: 8px; }

.toast {
  position: absolute; left: 50%; top: clamp(2px, 1.2vw, 18px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(20, 22, 30, .78); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.toast .tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); }
.toast .tick svg { width: 11px; height: 11px; }

/* ---------- Before / after slider ---------- */
.ba { position: relative; overflow: hidden; border-radius: 10px; background: #ddd; --pos: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba .ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input[type=range]:focus-visible + .ba-handle::after { outline: 2px solid var(--blue-a); outline-offset: 3px; }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; background: rgba(15, 17, 24, .55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.stage .ba { flex: 1; min-height: 360px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.section-title .dim { color: #7c8191; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 560px; text-wrap: pretty; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: 44px; }
.card { position: relative; border-radius: var(--radius-lg); padding: 26px; overflow: hidden; background: var(--bg-soft); box-shadow: inset 0 0 0 1px rgba(20, 30, 60, .04); }
.card h3 { font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card--blue { color: #fff; background: radial-gradient(120% 90% at 10% 0%, #6aa8ff 0, rgba(106, 168, 255, 0) 60%), linear-gradient(170deg, #4b86f3, #2d5fe6); box-shadow: 0 30px 60px -30px rgba(40, 80, 220, .6); }
.card--blue p { color: rgba(255, 255, 255, .85); }
.chip-inline { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: .92em; }
.card-ui { margin-top: 22px; }

.drop-ui { border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 16px; padding: 22px; text-align: center; background: rgba(255, 255, 255, .08); }
.drop-ui .drop-ico { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.drop-ui small { display: block; color: rgba(255, 255, 255, .75); font-size: 12.5px; margin-top: 4px; }
.file-chip { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(10, 20, 60, .28); font-size: 12.5px; text-align: left; }
.file-chip img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.file-chip .grow { flex: 1; min-width: 0; }
.file-chip .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-top: 6px; overflow: hidden; }
.file-chip .bar i { display: block; height: 100%; width: 70%; background: #fff; border-radius: inherit; animation: load 3s ease-in-out infinite; }

.morph { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .5); }
.morph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.morph .bw { animation: morph 4.5s ease-in-out infinite; }
@keyframes morph { 0%, 20% { clip-path: inset(0 0 0 0); } 55%, 80% { clip-path: inset(0 0 0 100%); } 100% { clip-path: inset(0 0 0 100%); } }
.morph .pill { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 17, 24, .6); color: #fff; font-size: 11.5px; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.dl-ui { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 16px 30px -20px rgba(20, 30, 60, .45), 0 0 0 1px var(--line); font-size: 13px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.dl-row + .dl-row { margin-top: 2px; }
.dl-row.sel { background: var(--bg-soft); box-shadow: inset 0 0 0 1.5px var(--blue-a); }
.dl-row .radio { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c9cdd8; flex: none; }
.dl-row.sel .radio { box-shadow: inset 0 0 0 5px var(--blue-a); }
.dl-row .grow { flex: 1; }
.dl-row small { display: block; color: var(--muted-2); font-size: 11.5px; }
.dl-row .tag { font-size: 11px; font-weight: 600; color: var(--blue-ink); background: #e8efff; padding: 2px 7px; border-radius: 6px; }
.dl-ui .btn { margin-top: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.tile { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #e9eaee; cursor: pointer; }
.tile:nth-child(1), .tile:nth-child(6) { grid-column: span 2; aspect-ratio: auto; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile .bw { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .3, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img, .tile.on img { transform: scale(1.03); }
.tile:hover .bw, .tile.on .bw { clip-path: inset(0 0 0 100%); }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.tile figcaption span:last-child { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.hint { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted-2); }

/* Video */
.video-panel {
  margin-top: 44px; border-radius: var(--radius-xl); padding: clamp(20px, 3.4vw, 40px);
  background: radial-gradient(80% 60% at 85% 0%, rgba(80, 120, 255, .28), rgba(80, 120, 255, 0) 70%), linear-gradient(180deg, #16181f, #0d0e13);
  color: #fff; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  box-shadow: 0 40px 80px -40px rgba(10, 20, 60, .6);
}
.player { border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.player-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.player-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-in-out infinite alternate; }
.player-screen .bw { animation: kenburns 9s ease-in-out infinite alternate, scan 6s linear infinite; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes scan { 0% { clip-path: inset(0 0 0 0); } 45%, 100% { clip-path: inset(0 0 0 100%); } }
.rec { position: absolute; top: 12px; left: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-size: 11.5px; font-weight: 500; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7bd389; box-shadow: 0 0 8px #7bd389; }
.player-bar { padding: 12px 14px 14px; background: #121318; }
.filmstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 34px; position: relative; }
.filmstrip i { border-radius: 3px; background-size: cover; background-position: center; }
.filmstrip i.g { filter: grayscale(1); }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px rgba(255, 255, 255, .8); animation: playhead 6s linear infinite; }
@keyframes playhead { from { left: 0; } 45%, to { left: 100%; } }
.player-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.video-copy h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.01em; }
.video-copy p { margin-top: 14px; color: rgba(255, 255, 255, .7); }
.spec { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.spec svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #7bd389; }
.price-callout { margin-top: 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-callout b { font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.price-callout span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.video-copy .btn { margin-top: 20px; }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.trio-vis { height: 230px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #f1f3f9, #e7eaf4); position: relative; overflow: hidden; display: grid; place-items: center; padding: 18px; }
.trio-item p { margin-top: 18px; font-size: 15px; color: var(--muted); }
.trio-item p b { color: var(--ink); font-weight: 600; }

.layers { position: relative; width: 210px; height: 170px; }
.layer { position: absolute; width: 150px; height: 104px; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 26px -14px rgba(20, 30, 60, .5), 0 0 0 2px #fff; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer.l1 { left: 0; top: 0; transform: rotate(-4deg); }
.layer.l2 { left: 30px; top: 30px; transform: rotate(2deg); }
.layer.l2 .chroma { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 106, 61, .8), rgba(255, 181, 71, .7) 30%, rgba(123, 211, 137, .7) 55%, rgba(58, 160, 255, .8) 80%); filter: blur(6px); }
.layer.l3 { left: 60px; top: 62px; transform: rotate(-1deg); }
.layer-tag { position: absolute; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #fff; color: var(--ink-2); box-shadow: 0 2px 6px rgba(20, 30, 60, .15); white-space: nowrap; }

.timer-card { width: 100%; max-width: 250px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .45); font-size: 12.5px; }
.timer-row { display: flex; align-items: center; gap: 10px; padding: 6px; }
.timer-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.timer-row .grow { flex: 1; }
.timer-row small { color: var(--muted-2); display: block; font-size: 11px; }
.timer-row code { font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: #d9480f; background: #fff1e8; padding: 4px 7px; border-radius: 6px; }

.toggle-card { width: 100%; max-width: 250px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .45); font-size: 13px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row small { display: block; color: var(--muted-2); font-size: 11.5px; }
.switch { width: 38px; height: 22px; border-radius: 22px; background: #d6d9e2; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.lock { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.lock svg { width: 14px; height: 14px; color: var(--ok); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 70px); margin-top: 44px; align-items: center; }
.stats-vis { position: relative; border-radius: var(--radius-xl); background: linear-gradient(180deg, #eef1f9, #e3e7f3); aspect-ratio: 1 / 1.05; overflow: hidden; }
.print { position: absolute; background: #fff; padding: 10px 10px 34px; border-radius: 4px; box-shadow: 0 24px 40px -20px rgba(20, 30, 60, .55); }
.print img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.print.p1 { width: 46%; left: 10%; top: 12%; transform: rotate(-7deg); }
.print.p2 { width: 46%; right: 9%; top: 22%; transform: rotate(5deg); }
.print.p3 { width: 46%; left: 26%; bottom: 7%; transform: rotate(-1deg); }
.print.p1 img, .print.p3 img { filter: grayscale(1) sepia(.25); }
.stat-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { border-bottom: 0; }
.stat-num { font-size: clamp(44px, 5vw, 58px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.stat-num small { font-size: .42em; letter-spacing: 0; margin-left: 2px; }
.stat-row h4 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.stat-row p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { padding-bottom: 20px; }
.pricing-head { text-align: center; }
.pricing-head .display { color: var(--ink); font-size: clamp(44px, 6vw, 72px); }
.billing { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.billing .on { color: var(--ink); }
.tswitch { width: 44px; height: 26px; border-radius: 26px; border: 0; padding: 0; background: #1c1d22; position: relative; cursor: pointer; }
.tswitch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.tswitch[aria-checked=true]::after { transform: translateX(18px); }
.save { font-size: 11.5px; font-weight: 600; color: var(--ok); background: #e8f7ee; padding: 3px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 24px 22px; background: linear-gradient(180deg, #f6f7fb, #eff1f7); box-shadow: inset 0 0 0 1px rgba(20, 30, 60, .05), var(--shadow-card); }
.plan.featured { background: #fff; box-shadow: 0 0 0 1.5px var(--blue-a), 0 30px 60px -30px rgba(40, 80, 220, .45); }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--blue-ink); background: #e8efff; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; min-height: 48px; }
.price b { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 13.5px; }
.price-note { font-size: 12.5px; color: var(--muted-2); min-height: 19px; margin-top: 4px; }
.plan .btn { margin-top: 18px; }
.plan-blurb { margin-top: 14px; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.plan ul .lead { font-weight: 600; color: var(--ink); }
.plan li.ck { display: flex; gap: 8px; }
.plan li.ck::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a8af0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pack-picker { margin-top: 14px; display: grid; gap: 6px; }
.pack-picker label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; cursor: pointer; }
.pack-picker label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--blue-a); }
.pack-picker input { accent-color: var(--blue-a); margin: 0 8px 0 0; }
.pack-picker .per { color: var(--muted-2); font-size: 12px; }
.addons { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addon { border-radius: var(--radius); padding: 18px 20px; background: var(--bg-soft); display: flex; gap: 14px; align-items: flex-start; }
.addon .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.addon .ico svg { width: 18px; height: 18px; }
.addon b { display: block; font-weight: 500; }
.addon span { font-size: 13.5px; color: var(--muted); }
.fine { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted-2); }

/* FAQ */
.faq { max-width: 860px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 15.5px; }

/* Closing CTA */
.closing { position: relative; margin-top: clamp(80px, 11vw, 140px); padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 9vw, 120px); background: linear-gradient(180deg, #fff 0%, #eef1f8 45%, #e4e8f3 100%); overflow: hidden; }
.closing .section-title { font-size: clamp(28px, 3.6vw, 40px); }
.closing .btn { margin-top: 32px; }
.float-print { position: absolute; background: #fff; padding: 8px 8px 26px; border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(20, 30, 60, .45); animation: bob 7s ease-in-out infinite; }
.float-print img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.float-print.f1 { width: 150px; right: 12%; top: 16%; transform: rotate(8deg); }
.float-print.f2 { width: 120px; right: 28%; bottom: 14%; transform: rotate(-9deg); animation-delay: -3s; }
.float-print.f2 img { filter: grayscale(1); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Footer */
.footer { padding: 56px 0 28px; background: #e4e8f3; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; padding-bottom: 36px; border-bottom: 1px solid rgba(20, 30, 60, .1); }
.footer h5 { margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.footer ul a:hover { color: var(--blue-ink); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .55); font-size: 12px; color: var(--ink-2); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; font-size: 12.5px; color: var(--muted); }
.new { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--blue-a); color: #fff; margin-left: 6px; }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .card:first-child { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .video-panel { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(1), .tile:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .signin { display: none; }
  .hero { padding-top: 116px; }
  .scene { height: 1000px; } /* the copy wraps longer on phones; keep it on open sky, above the mist */
  .win-body { grid-template-columns: 1fr; }
  .shoebox { display: none; }
  .stage .ba { min-height: 260px; }
  .toast { font-size: 11.5px; }
  .steps, .trio, .addons { grid-template-columns: 1fr; }
  .steps .card:first-child { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stats-vis { max-width: 420px; width: 100%; margin-inline: auto; }
  .stat-row { grid-template-columns: 1fr; gap: 10px; }
  .float-print { display: none; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage-toolbar .seg { display: none; }
  .stage-toolbar { justify-content: flex-end; }
}

/* "More than color" tool cards */
#tools .steps { grid-template-columns: repeat(3, 1fr); }
.recolor-ui { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .5); }
.recolor-ui img { width: 100%; height: 100%; object-fit: cover; }
.swatch-row { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; padding: 7px; border-radius: 12px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.swatch-row i { flex: 1; aspect-ratio: 1; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch-row i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-a); }
.zoom-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zoom-ui figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .5); }
.zoom-ui img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; transform: scale(2.6); transform-origin: 38% 45%; }
.zoom-ui img.px { image-rendering: pixelated; filter: blur(.6px) contrast(.92); }
.zoom-ui figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 17, 24, .6); color: #fff; font-size: 11px; font-weight: 500; }
.phone-ui { width: 62%; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; padding: 10px; background: #0d0f14; display: grid; align-content: center; gap: 10px; box-shadow: 0 16px 30px -18px rgba(20, 30, 60, .6); }
.phone-ui .morph { aspect-ratio: 4 / 3; border-radius: 8px; box-shadow: none; }
.phone-ui span { color: rgba(255, 255, 255, .9); font-family: "EB Garamond", Georgia, serif; font-size: 15px; line-height: 1.1; text-align: center; }
@media (max-width: 980px) { #tools .steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scene-gray { clip-path: inset(0 0 0 100%); }
}

/* Public preview notice (main.js adds it when /api/health reports preview mode) */
.preview-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: #0f121a; color: #e8ebf3; font-size: 13.5px; text-align: center; }
.preview-bar a { color: #9cc7ff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
