/* WisentWire — "Signal" design: light, big type, one blue accent, a live 3D hero.
   Shared by the home page and the Learn more page. */

:root {
    --bg: #f7f8fa;
    --white: #ffffff;
    --alt: #f1f3f6;
    --ink: #16181d;
    --muted: #5b6472;
    --line: #e1e5ea;
    --accent: #1f4fe0;
    --night: #101217;
    --night-ink: #f3f5f8;
    --night-muted: #a3abb7;
    --led: #3fcf5a;
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --top-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: #8fb0ff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.narrow { max-width: 980px; }

/* ---------- type ---------- */
.statement { font-size: clamp(44px, 7vw, 104px); font-weight: 700; line-height: .98; letter-spacing: -0.047em; }
.h2 { font-size: clamp(38px, 5vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -0.042em; }
.sub { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.38; color: var(--muted); letter-spacing: -0.012em; }
.sub b { color: var(--ink); font-weight: 600; }
.night .sub { color: var(--night-muted); }
.night .sub b { color: var(--night-ink); }
.kicker { font-size: 17px; font-weight: 600; color: var(--accent); }
.night .kicker { color: #8fb0ff; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }
.night .small { color: var(--night-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), filter 200ms ease, background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--ink); }
.night .btn--ghost { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.1); } .btn--ghost:hover { background: #fff; filter: none; } .night .btn--ghost:hover { background: rgba(255, 255, 255, .08); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta-row, .cta-row.center { justify-content: center; }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.top--solid { position: sticky; top: 0; background: rgba(247, 248, 250, .82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(22, 24, 29, .06); }
.top__in { height: var(--top-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.top nav a[aria-current] { font-weight: 600; }

/* ---------- home hero: the 3D scene fills the whole width ---------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--bg); isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -2; }
.hero__scene canvas { width: 100%; height: 100%; }
.hero__fallback { position: absolute; right: 4%; bottom: 8%; width: min(520px, 46%); z-index: -2; }
.has-3d .hero__fallback { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(247, 248, 250, .96) 0%, rgba(247, 248, 250, .86) 32%, rgba(247, 248, 250, .25) 58%, rgba(247, 248, 250, 0) 72%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(247, 248, 250, 0), var(--bg)); }
.hero__copy { padding-top: calc(var(--top-h) + 40px); padding-bottom: 72px; max-width: 640px; }
.hero h1 { font-size: clamp(50px, 7vw, 104px); font-weight: 700; line-height: .96; letter-spacing: -0.05em; }
.hero p { margin-top: 26px; max-width: 30ch; }
.hero .cta-row { margin-top: 34px; }
.hero__hint { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 26px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--led); }

/* ---------- trust ---------- */
.trust { padding: 34px 0; background: var(--white); border-block: 1px solid var(--line); }
.trust__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.trust__row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust__row > span { font-size: 14px; color: var(--muted); }
.esa { height: 32px; width: auto; filter: grayscale(1) brightness(.55); }
.logo { height: 42px; width: auto; filter: grayscale(1); opacity: .7; }
.logo--white { filter: brightness(0); opacity: .55; }
.logo--muke { filter: invert(1) grayscale(1) contrast(1.8); mix-blend-mode: multiply; opacity: .65; }

/* ---------- home: steps, words, pricing ---------- */
.steps { padding: clamp(96px, 12vw, 150px) 0; background: var(--white); }
.steps ol { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; counter-reset: s; }
.steps ol::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.steps li { position: relative; padding-right: 32px; counter-increment: s; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 26px; }
.steps b { display: block; font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.steps li span { display: block; margin-top: 10px; color: var(--muted); max-width: 30ch; }

.words { padding: clamp(96px, 12vw, 150px) 0; background: var(--night); color: var(--night-ink); overflow: hidden; }
.words__list { display: flex; flex-wrap: wrap; gap: 0 .35em; font-size: clamp(52px, 9vw, 132px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.words__list span:nth-child(4n + 2) { color: #8fb0ff; }
.words p { margin-top: 36px; max-width: 34ch; }
.words a { color: #8fb0ff; font-weight: 600; text-decoration: none; }

.price { padding: clamp(96px, 12vw, 150px) 0; }
.price__sheet { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 28px; background: var(--white); overflow: hidden; }
.price__col { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.price__col + .price__col { border-left: 1px solid var(--line); }
.price__col h3 { font-size: 22px; letter-spacing: -0.02em; }
.price__big { font-size: clamp(52px, 6vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.price__big small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price__col > p { color: var(--muted); }
.price__col .btn { align-self: flex-start; margin-top: 8px; }
.price__list { display: grid; gap: 10px; margin-top: 4px; }
.price__list li { position: relative; padding-left: 26px; }
.price__list li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price__notes { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); }

/* ---------- learn page ---------- */
.lhero { padding: clamp(64px, 8vw, 110px) 0 0; text-align: center; overflow: hidden; }
.lhero .statement { max-width: 13ch; margin: 14px auto 0; }
.lhero .sub { max-width: 36ch; margin: 22px auto 0; }
.lhero .cta-row { justify-content: center; margin-top: 32px; }
.lhero__device { position: relative; width: min(680px, 90vw); margin: clamp(24px, 4vw, 48px) auto 0; }
.lhero__device img { animation: float 7s var(--ease-in-out) infinite alternate; }
.lhero__device::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 6%; height: 12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 207, 90, .35), rgba(63, 207, 90, 0)); filter: blur(12px); }
@keyframes float { to { transform: translateY(-14px); } }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 36px 0 72px; font-size: 15px; }
.jump a { text-decoration: none; font-weight: 500; }

.feat { padding: clamp(110px, 13vw, 170px) 0; overflow: hidden; }
.feat--alt { background: var(--alt); }
.feat--white { background: var(--white); }
.feat--night { background: var(--night); color: var(--night-ink); }
.feat__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.feat__head .statement { max-width: 14ch; }
.feat__head .sub { max-width: 40ch; }
.feat__media { margin-top: clamp(48px, 6vw, 80px); }
.frame { position: relative; border-radius: 26px; overflow: hidden; background: #0c0d10; box-shadow: 0 0 0 1px rgba(22, 24, 29, .08), 0 40px 90px rgba(31, 79, 224, .12); }
.feat--night .frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px rgba(0, 0, 0, .55); }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame--shot img { aspect-ratio: auto; object-fit: contain; background: #1e1e1e; }
.loop-toggle { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(16, 18, 23, .6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.loop-toggle svg { width: 14px; height: 14px; }
.loop-toggle .i-play { display: none; }
.loop-toggle.is-paused .i-play { display: block; }
.loop-toggle.is-paused .i-pause { display: none; }

.code { margin: 0 auto; max-width: 900px; padding: 30px 34px; border-radius: 26px; background: var(--night); color: #e6e9ee; font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px); line-height: 1.8; overflow-x: auto; box-shadow: 0 40px 90px rgba(16, 18, 23, .2); }
.code .ln { display: block; padding: 0 12px; margin: 0 -12px; border-radius: 8px; transition: background-color .35s ease, color .35s ease; }
.code .ln.is-hot { background: rgba(31, 79, 224, .38); color: #fff; }
.code .c { color: #8b93a1; }
.code .s { color: #ffd479; }
.code .f { color: #8fb0ff; }
.code .k { color: #ff8fb8; }
.code .n { color: #c9b8ff; }

.wave { width: 100%; max-width: 980px; margin: 0 auto; height: auto; border-radius: 26px; background: var(--white); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.wave .grid { stroke: #e7ebf0; }
.wave .sig { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.js .wave .sig { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.js .wave.in .sig { stroke-dashoffset: 0; transition: stroke-dashoffset 2800ms var(--ease-in-out) 200ms; }
.wave .fault rect { fill: rgba(194, 65, 12, .07); stroke: #c2410c; stroke-dasharray: 6 6; }
.js .wave .fault { opacity: 0; }
.js .wave.in .fault { opacity: 1; transition: opacity 500ms ease 1900ms; }
.wave text { font-family: var(--font); font-size: 16px; font-weight: 600; fill: #b23a0a; }
.wave .axis { fill: var(--muted); font-weight: 400; font-size: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .feat__head { text-align: left; align-items: flex-start; }
.status { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.status i { width: 16px; height: 16px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 5px rgba(63, 207, 90, .18); transition: background-color .4s ease, box-shadow .4s ease; }
.status.is-busy i { background: #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, .18); }
.status span::after { content: "Free"; }
.status.is-busy span::after { content: "Reserved"; }

.time { padding: clamp(110px, 13vw, 170px) 0; text-align: center; background: var(--white); }
.time__old { position: relative; display: inline-block; font-size: clamp(64px, 12vw, 176px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; color: #9aa2ae; font-variant-numeric: tabular-nums; }
.time__old::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .07em; background: var(--ink); transform-origin: left center; }
.js .time__old::after { transform: scaleX(0); }
.js .time__old.in::after { transform: scaleX(1); transition: transform 700ms var(--ease-out) 900ms; }
.time__new { display: block; margin-top: 10px; font-size: clamp(64px, 12vw, 176px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; color: var(--accent); }
.time .sub { margin: 30px auto 0; max-width: 32ch; }
.time__more { margin-top: 56px; }
.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: left; }
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.stat__n { font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .42em; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat p { margin-top: 10px; color: var(--muted); max-width: 30ch; }

.stack__media { width: min(420px, 80vw); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #d9cfc4; box-shadow: 0 30px 80px rgba(16, 18, 23, .18); justify-self: center; }
.stack__media video { width: 100%; height: 100%; object-fit: cover; }
.units { margin-top: 26px; display: grid; gap: 18px; }
.unit b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.unit span { color: var(--muted); }

.specs { margin-top: 56px; border-top: 1px solid var(--line); }
.specs table { width: 100%; border-collapse: collapse; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 20px 12px 20px 0; }
.specs th { width: 32%; font-weight: 600; }
.tbd { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px dashed #b25000; color: #a14800; font-size: 13px; font-weight: 600; }

.final { padding: clamp(120px, 14vw, 190px) 0; text-align: center; }
.final .statement { max-width: 13ch; margin: 0 auto; }
.final .sub { margin: 22px auto 0; }
.final .cta-row { justify-content: center; margin-top: 32px; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--white); }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot__in span { margin-right: auto; }
.foot a { color: var(--muted); }
.foot button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; }

/* ---------- entrance on view ---------- */
.js [data-in] { opacity: 0; transform: translateY(28px); }
.js [data-in].in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .statement[data-in] { transform: translateY(40px) scale(.98); }
.js .statement[data-in].in { transform: none; }

/* ---------- dialogs (order, video) ---------- */
dialog { color: var(--ink); }
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: #fff; overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 90px rgba(16, 18, 23, .28); }
.dlg::backdrop { background: rgba(16, 18, 23, .42); backdrop-filter: blur(6px); }
.dlg[open] { animation: pop 320ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dlg__x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #eef0f3; color: var(--ink); font-size: 20px; line-height: 1; z-index: 2; }
.order { position: relative; padding: clamp(26px, 5vw, 40px); }
.order h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.order h2:focus { outline: none; }
.order__sub { margin-top: 6px; color: var(--muted); }
.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field__l { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
input[type=email], .qty input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #7d8590; background: #fff; color: var(--ink); font-size: 16px; }
.qty { display: grid; grid-template-columns: 46px 70px 46px 1fr; gap: 8px; align-items: center; }
.qty button { height: 46px; border-radius: 12px; border: 1px solid #7d8590; background: #fff; font-size: 20px; }
.qty input { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__sum { padding-left: 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.qty__sum b { font-size: 21px; color: var(--ink); }
.qty__sum span { display: block; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; }
.chips span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1px solid #7d8590; font-size: 15px; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-msg { min-height: 1.3em; margin-top: 10px; font-size: 14px; color: #b42318; }
.form-msg.is-ok { color: #067647; }
.order .btn--block { margin-top: 8px; }
.order .fine { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.order--done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 52px; }
.order--done[hidden] { display: none; }
.order--done h2:focus { outline: none; }
.dlg--video { width: min(1000px, calc(100vw - 24px), calc((100dvh - 110px) * 16 / 9)); background: #000; overflow: visible; }
.dlg--video.is-portrait { width: min(420px, calc(100vw - 24px), calc((100dvh - 110px) * 9 / 16)); }
.dlg--video .dlg__x { top: -48px; right: 0; background: rgba(255, 255, 255, .92); }
.video__frame { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; }
.dlg--video.is-portrait .video__frame { aspect-ratio: 9 / 16; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .js [data-in], .js .statement[data-in] { opacity: 1; transform: none; }
    .js .wave .sig { stroke-dashoffset: 0; }
    .js .wave .fault { opacity: 1; }
    .js .time__old::after { transform: scaleX(1); }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .top nav { display: none; }
    .hero { align-items: flex-start; min-height: 760px; }
    .hero::before { background: linear-gradient(180deg, rgba(247, 248, 250, .97) 0%, rgba(247, 248, 250, .9) 48%, rgba(247, 248, 250, .2) 72%, rgba(247, 248, 250, 0) 100%); }
    .hero__copy { padding-top: calc(var(--top-h) + 24px); }
    .hero__fallback { width: min(360px, 80%); right: 10%; }
    .steps ol { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .steps ol::before { display: none; }
    .price__sheet, .split { grid-template-columns: minmax(0, 1fr); }
    .price__col + .price__col { border-left: 0; border-top: 1px solid var(--line); }
    .split .feat__head { align-items: center; text-align: center; }
    .stats { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
    .chips { grid-template-columns: repeat(2, 1fr); }
    .qty { grid-template-columns: 46px 64px 46px; }
    .qty__sum { grid-column: 1 / -1; padding: 6px 0 0; }
    .specs th { width: 40%; }
}
