/* Cepter Search - one flat colour, one dark object.
   The colours, shapes and motion are the search bar's own. */

@font-face { font-family: "Space Grotesk"; src: url("assets/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* Registered, so the whole page (and the accent inside the bar) glides from one colour to the next. */
@property --page { syntax: "<color>"; inherits: true; initial-value: #D4FF3A; }

:root {
  --page: #D4FF3A;
  --ink: #0E0F0A;
  --surface: #111214;
  --paper: #F4F5F0;
  --chip: rgba(255, 255, 255, .07);
  --chip2: rgba(255, 255, 255, .12);
  --muted: rgba(244, 245, 240, .64);
  --spring: cubic-bezier(.34, 1.364, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --side: clamp(20px, 5.2vw, 92px);
  transition: --page .7s var(--ease);
  scroll-behavior: smooth;
}
:root[data-a="1"] { --page: #FF7A59; }
:root[data-a="2"] { --page: #7CD4FF; }
:root[data-a="3"] { --page: #C3A6FF; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 1.125rem/1.55 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol { margin: 0; }
button, input { font: inherit; color: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px 20px; border-radius: 99px; background: var(--surface); color: var(--paper); }
.skip:focus { top: 14px; }

/* ---------- top ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--side); }
.mark { display: flex; align-items: center; gap: 12px; font: 600 1.1875rem "Space Grotesk", sans-serif; letter-spacing: -.02em; text-decoration: none; }
.mark svg { width: 34px; height: 34px; fill: var(--ink); stroke: none; }
.mark g { stroke: var(--page); stroke-width: 2; }
.toplink { padding: 8px 0; font-weight: 700; font-size: 1rem; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- the scroll: words on the left, the bar stays on the right ---------- */
.show { display: flex; align-items: flex-start; gap: clamp(32px, 5vw, 96px); padding: 0 var(--side); }
.words { flex: 1 1 0; min-width: 0; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
h1, .step h2 { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: -.048em; line-height: .96; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.5vw, 6.75rem); margin-left: -.045em; }
.step h2 { font-size: clamp(2.6rem, 5vw, 5.25rem); margin-left: -.045em; }
.step p, .step ol { max-width: 31em; margin-top: 1.6em; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); }
.step ol { padding-left: 1.3em; }
.step li { padding-left: .35em; }
.step li + li { margin-top: .55em; }
.step li::marker { font: 600 1em "Space Grotesk", sans-serif; }
.keys { white-space: nowrap; }
kbd { display: inline-block; padding: .08em .62em .1em; border-radius: 99px; background: var(--ink); color: var(--page); font: 700 .82em/1.6 Manrope, sans-serif; white-space: nowrap; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2.4rem; }
.dl { display: inline-flex; align-items: center; height: 64px; padding: 0 34px; border-radius: 99px; background: var(--surface); color: var(--paper); font-weight: 700; font-size: 1.125rem; text-decoration: none; transition: transform .3s var(--spring), background-color .2s, color .2s; }
.dl:hover { background: var(--paper); color: var(--ink); transform: scale(1.03); }
.dl:active { transform: scale(.97); }
.fine { font-size: 1rem; }

/* ---------- the bar ---------- */
.stage { position: sticky; top: 0; flex: 0 1 600px; min-width: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.cs { position: relative; width: 100%; height: 432px; color: var(--paper); container-type: inline-size; }
.bar { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; min-width: 72px; height: 72px; padding: 9px; border-radius: 99px; background: var(--surface); transition: width .56s var(--spring), transform .56s var(--spring); }
.go { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--page); color: var(--ink); transition: transform .25s var(--spring); }
.go svg { width: 22px; height: 22px; stroke-width: 2.6; }
.go:hover { transform: scale(1.05); }
.inner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; transition: opacity .25s .24s; }
#q { flex: 1; min-width: 0; height: 54px; padding: 0 14px; border: 0; outline: 0; background: none; font: 600 1.3125rem Manrope, sans-serif; letter-spacing: -.01em; color: var(--paper); caret-color: var(--page); }
#q::placeholder { color: rgba(244, 245, 240, .5); font-weight: 500; }
.bar:has(#q:focus-visible) { box-shadow: 0 0 0 4px var(--page), 0 0 0 7px var(--surface); }
.badge { flex: none; margin-left: 12px; padding: 7px 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font: 700 .875rem/1.3 Manrope, sans-serif; animation: pop .3s var(--spring) both; }
.dock { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--chip); }
.dock svg { width: 42px; height: 38px; padding: 10px 11px; border-radius: 99px; transition: background-color .25s, color .25s; }
.dock svg.lit { background: var(--page); color: var(--ink); }
.knob { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--chip2); transition: background-color .25s, color .25s; }
.knob svg { width: 21px; height: 21px; transition: transform .5s var(--spring); }
.cs[data-panel="set"] .knob { background: var(--page); color: var(--ink); }
.cs[data-panel="set"] .knob svg { transform: rotate(90deg); }

/* closed: the bar is a circle again, quietly pulsing */
.cs:not(.is-open) .bar { width: 72px; }
.cs:not(.is-open) .inner { opacity: 0; visibility: hidden; transition: opacity .1s, visibility 0s .1s; }
.cs:not(.is-open) .go::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); animation: ring 2.4s ease-out infinite; }
.cs.big .bar { transform: translate(calc(50cqw - 36px), 150px) scale(2.5); transform-origin: 36px 36px; }
.cs.squish .bar { animation: squish .42s var(--ease); }

.panel { position: absolute; inset: 82px 0 auto; padding: 12px; border-radius: 36px; background: var(--surface); transform-origin: 50% 0; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.95); transition: opacity .16s, transform .4s var(--spring), visibility 0s .2s; }
.cs.is-open[data-panel="results"] .results,
.cs.is-open[data-panel="gallery"] .gallery,
.cs.is-open[data-panel="set"] .set { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }

#rows { position: relative; display: grid; gap: 4px; }
.hi { position: absolute; left: 12px; right: 12px; top: 12px; height: 50px; border-radius: 99px; background: var(--page); transition: transform .32s var(--spring), opacity .15s; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; height: 50px; padding: 0 10px 0 20px; border-radius: 99px; text-align: left; font-size: 1.0625rem; transition: color .16s; animation: rise .32s var(--spring) both; }
.row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row b { font-weight: 800; }
.row .ct { padding: 4px 13px; border-radius: 99px; background: var(--chip); color: var(--muted); font-size: .875rem; white-space: nowrap; transition: background-color .16s, color .16s; }
.row .new { padding: 3px 11px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: .8125rem; }
.row.on { color: var(--ink); }
.row.on .ct { background: rgba(0, 0, 0, .12); color: var(--ink); }
.none { padding: 22px; text-align: center; color: var(--muted); font-size: 1rem; }

.cmp { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 16 / 9; }
.shot { display: block; width: 100%; height: 100%; stroke: none; }
.cut { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--paper); pointer-events: none; }
.cut i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .25s var(--spring); }
.cut svg { width: 22px; height: 22px; stroke-width: 2.4; }
#split { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
#split:hover ~ .cut i, .cmp:hover .cut i { transform: scale(1.1); }
.cmp:has(#split:focus-visible) { outline: 3px solid var(--page); outline-offset: 3px; }
.under { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 0 14px; color: var(--muted); font-size: 1rem; }
.save { padding: 8px 22px; border-radius: 99px; background: var(--page); color: var(--ink); font-weight: 700; }

.card { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 10px 14px 10px 26px; border-radius: 99px; background: var(--chip); font-weight: 700; font-size: 1.0625rem; }
.card + .card { margin-top: 8px; }
.card kbd { background: var(--chip2); color: var(--paper); }
.sws { display: flex; gap: 12px; padding-right: 4px; }
.sw { width: 44px; height: 44px; border-radius: 50%; transition: transform .28s var(--spring), box-shadow .2s; }
.sw:hover { transform: scale(1.1); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 4px #1C1D1F, 0 0 0 6px var(--paper); }
.sw:focus-visible { outline-color: var(--paper); outline-offset: 8px; }
.a0 { background: #D4FF3A; } .a1 { background: #FF7A59; } .a2 { background: #7CD4FF; } .a3 { background: #C3A6FF; }
.pair { display: flex; gap: 8px; }
.pair em { font-style: normal; padding: 8px 18px; border-radius: 99px; background: var(--chip); font-weight: 600; font-size: 1rem; }
.pair .al { background: var(--page); color: var(--ink); font-weight: 800; }

.toast { position: absolute; z-index: 3; left: 50%; top: 92px; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px 0 10px; border-radius: 99px; background: var(--surface); color: var(--paper); font-weight: 600; font-size: 1.0625rem; white-space: nowrap; opacity: 0; transform: translate(-50%, -12px) scale(.92); transition: opacity .16s, transform .34s var(--spring); pointer-events: none; }
.toast svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--page); color: var(--ink); stroke-width: 3.4; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- questions: the page's own dark panel ---------- */
.faq { position: relative; z-index: 2; margin-top: 8vh; padding: clamp(64px, 9vw, 136px) var(--side) 40px; border-radius: clamp(36px, 5vw, 72px) clamp(36px, 5vw, 72px) 0 0; background: var(--surface); color: var(--paper); }
.faq :focus-visible { outline-color: var(--page); }
.in { display: flex; gap: clamp(32px, 5vw, 96px); align-items: flex-start; }
.faq h2 { flex: 1 1 0; font: 600 clamp(2.4rem, 4.2vw, 4.25rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.qs { flex: 0 1 600px; min-width: 0; }
details { border-radius: 34px; background: var(--chip); interpolate-size: allow-keywords; }
details + details { margin-top: 8px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 28px; border-radius: 34px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: -6px; border: solid var(--page); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .34s var(--spring), margin .34s; }
details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
details p { padding: 0 28px 26px; color: rgba(244, 245, 240, .78); font-size: 1.0625rem; }
details::details-content { height: 0; overflow: clip; transition: height .36s var(--ease), content-visibility .36s allow-discrete; }
details[open]::details-content { height: auto; }
footer { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(72px, 10vw, 150px); font-size: 1rem; color: var(--muted); }
footer a { text-underline-offset: 4px; }
.legal { margin-left: auto; }

@keyframes pop { from { opacity: 0; transform: scale(.7); } }
@keyframes rise { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes squish { 35% { transform: scale(.96, .9); } 70% { transform: scale(1.02, 1.035); } }

/* ---------- phones and narrow windows: the bar sits on top, the words pass under it ---------- */
@media (max-width: 960px) {
  .show { flex-direction: column; align-items: stretch; gap: 0; }
  .top { position: relative; padding-block: 16px; }
  .stage { order: -1; z-index: 3; box-shadow: 0 2px 0 var(--page); flex: none; height: auto; margin: 0 calc(var(--side) * -1); padding: 6px max(12px, calc(var(--side) - 8px)) 18px; background: var(--page); align-items: flex-start; }
  .cs { height: 306px; max-width: 560px; margin: 0 auto; }
  .bar { min-width: 60px; height: 60px; padding: 7px; }
  .go { width: 46px; height: 46px; }
  #q { height: 46px; padding: 0 10px; font-size: 1.125rem; }
  .knob, .dock svg:last-child { display: none; }
  .panel { inset-block-start: 68px; padding: 10px; border-radius: 30px; }
  .row { height: 44px; padding: 0 8px 0 16px; font-size: 1rem; }
  .hi { height: 44px; inset: 10px 10px auto; }
  .cmp { aspect-ratio: auto; height: 176px; border-radius: 22px; }
  .under { padding-top: 8px; }
  .save { padding: 5px 18px; }
  .card { min-height: 64px; padding-left: 20px; }
  .sw { width: 38px; height: 38px; }
  .sws { gap: 9px; }
  .toast { top: 76px; max-width: 100%; }
  .cs:not(.is-open) .bar { width: 60px; }
  .cs.big .bar { transform: translate(calc(50cqw - 30px), 96px) scale(2.2); transform-origin: 30px 30px; }
  .step { min-height: 64vh; min-height: 64svh; justify-content: flex-start; padding: 34px 0 64px; }
  .hero { min-height: calc(100svh - 420px); padding-top: 14px; }
  .step p, .step ol { margin-top: 1.1em; }
  .get { margin-top: 1.7rem; }
  .in { flex-direction: column; align-items: stretch; }
  .qs { flex: none; }
  .legal { margin-left: 0; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.75rem; }
  .dl { width: 100%; justify-content: center; }
  .row .ct { padding: 3px 10px; font-size: .8125rem; }
}
/* short laptop screens */
@media (min-width: 961px) and (max-height: 700px) { h1 { font-size: clamp(3rem, 5.4vw, 5rem); } }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
