/* Plainspace studio website. Plainspace brand tokens. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
}

:root {
  --charcoal: #1C1C1C;
  --panel: #262626;
  --ink: #F2F2F2;
  --muted: #A3A3A3;
  --blue: #2E56F5;
  --hair: rgba(255, 255, 255, 0.14);
  --hair-blue: rgba(255, 255, 255, 0.24);
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --t-reveal: 900ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--charcoal); -webkit-text-size-adjust: 100%; }
body {
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 14.6px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Type ---------- */
.h-sec { font-size: clamp(40px, 5.4vw, 76px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.h-sub { font-size: clamp(19px, 0.6vw + 16px, 22px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
.h-sub em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 8px; }
.lead { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(18px, 0.6vw + 15px, 21px); line-height: 1.5; max-width: 40em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Wordmark: hollow at rest, solid on hover ---------- */
.mark {
  font-weight: 500; letter-spacing: -0.035em; text-decoration: none; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
  transition: color 240ms var(--ease-out);
}
.mark:hover, .mark:focus-visible { color: var(--ink); }

/* ---------- Floating pill menu ---------- */
.pill {
  position: fixed; top: 14px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 20px; background: #111; border: 1px solid var(--hair); border-radius: 999px;
  transform: translateX(-50%); opacity: 0; filter: blur(4px); pointer-events: none;
  transition: opacity 300ms var(--ease-out), filter 300ms var(--ease-out);
}
.pill.show { opacity: 1; filter: blur(0); pointer-events: auto; }
.pill .mark { font-size: 21px; margin-right: 12px; }
.pill .pl { font-size: 15px; text-decoration: none; padding: 7px 13px; border-radius: 999px; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.pill .pl:hover, .pill .pl:focus-visible { background: var(--ink); color: var(--charcoal); }

/* ---------- Hero: blue field, live hammerheads, drifting work photos ---------- */
.hero { position: relative; min-height: max(100svh, 680px); display: flex; flex-direction: column; justify-content: space-between; background: var(--blue); overflow: hidden; overflow: clip; }
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: clamp(20px, 3vw, 36px); z-index: 2; }
.hero-head .mark { font-size: clamp(26px, 2.2vw, 32px); }
.hero-head .who { text-align: right; font-size: 15px; line-height: 1.5; }
.hero-copy { padding-top: 40px; padding-bottom: clamp(40px, 6vw, 88px); z-index: 2; }
.statement { font-size: clamp(34px, 4.6vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.statement span { display: block; }
.statement .tone { color: rgba(255, 255, 255, 0.66); }
.prepared { margin-top: 18px; font-size: 16px; }
.intro { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(18px, 0.6vw + 15px, 21px); line-height: 1.5; max-width: 36em; }

.orbs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.orb { position: absolute; will-change: transform; }
.orb > div { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,0.4); animation: orbit var(--od, 22s) linear infinite; animation-delay: var(--odl, 0s); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.o1 { width: clamp(150px, 21vw, 320px); right: 7vw; top: 30%; --od: 26s; }
.o2 { width: clamp(70px, 7.5vw, 116px); right: 27vw; top: 15%; --od: 19s; --odl: -6s; }
.o3 { width: clamp(64px, 6.5vw, 100px); right: 4vw; top: 12%; --od: 23s; --odl: -11s; }
.o4 { width: clamp(64px, 7vw, 108px); right: 26vw; top: 64%; --od: 21s; --odl: -3s; }
.o5 { width: clamp(70px, 7.5vw, 116px); right: 11vw; top: 72%; --od: 25s; --odl: -15s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(10px) rotate(0deg); } to { transform: rotate(360deg) translateX(10px) rotate(-360deg); } }

/* ---------- Rounded dark panel ---------- */
.panel { background: #141414; border: 1px solid var(--hair); border-radius: 24px; overflow: hidden; }

/* ---------- Pill button: hollow at rest, solid on hover ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; text-decoration: none; padding: 13px 24px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--charcoal); }
.btn:active { transform: scale(0.97); }

/* ---------- IVARA browser frames ---------- */
.frames { position: relative; margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.frame { background: #141414; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.frame .bar span { margin-left: 10px; font-size: 14px; color: var(--muted); }
.frame img { width: 100%; height: auto; transform: scale(1.1); will-change: transform; }

/* ---------- Dot wave ---------- */
.flowpanel { margin-top: clamp(36px, 5vw, 64px); }
.flowpanel .flow { margin: 0; padding: clamp(20px, 3.4vw, 48px); }
canvas.wave { display: block; width: 100%; height: clamp(220px, 26vw, 360px); }

/* ---------- Tabs ---------- */
.tabs { margin-top: clamp(36px, 5vw, 64px); padding: clamp(16px, 2.4vw, 32px); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: transparent; border: 1.5px solid rgba(242,242,242,0.4); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 160ms var(--ease-out); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--charcoal); border-color: var(--ink); }
.tab:active { transform: scale(0.97); }
.tabpanels { display: grid; margin-top: clamp(20px, 2.4vw, 32px); }
.tp { grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.js .tp[hidden] { display: grid; visibility: hidden; opacity: 0; filter: blur(6px); }
.tp { transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out); }
.tp-media { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #1C1C1C; display: flex; align-items: center; justify-content: center; padding: 0; }
.tp-media .tests { width: 84%; height: auto; }
.tp-media.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tp-text p { max-width: 32em; }
.tp-blue { grid-template-columns: 1fr; align-self: stretch; }
.tp-blue .tp-text { background: var(--blue); border-radius: 16px; padding: clamp(24px, 3.4vw, 48px); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tp-blue .tp-text p { font-size: clamp(18px, 0.6vw + 15px, 21px); max-width: 38em; }
@media (hover: hover) and (pointer: fine) { .tp-media.photo:hover img { transform: scale(1.035); } }

/* ---------- Growth: ad variant grid ---------- */
.growth { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.stack > div { margin-top: clamp(24px, 2.6vw, 36px); }
.stack p { max-width: 30em; }
.variants { padding: clamp(20px, 3vw, 44px); }
.variants svg { width: 100%; height: auto; overflow: visible; }
.vb { fill: none; stroke: #fff; stroke-width: 1.6; }
.vcell { transition: opacity 700ms var(--ease-out); }
.vcell.out { opacity: 0.08; }
.vfill { fill: var(--blue); opacity: 0; transition: opacity 700ms var(--ease-out); }
.vcell.kept .vfill { opacity: 1; }
.vtext { font-family: var(--font); font-size: 17px; font-weight: 500; fill: #F2F2F2; opacity: 0; transition: opacity 500ms var(--ease-out) 300ms; }
.vcell.kept .vtext { opacity: 1; }
.vdraw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-smooth); }
.vcell.on .vdraw { stroke-dashoffset: 0; }
.vh { opacity: 0; transition: opacity 400ms var(--ease-out) 500ms; }
.vcell.on .vh { opacity: 1; }
.ugcflow .fl-blue { opacity: 0; }
.drawn.ugcflow .fl-blue { animation: fadeIn 600ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 220ms + 200ms); }
.ugcflow .fl-box, .ugcflow .fl-line { animation-delay: calc(var(--i) * 220ms) !important; }
.ugcflow .fl-text { animation-delay: calc(var(--i) * 220ms + 250ms) !important; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(88px, 11vw, 168px) 0; overflow: hidden; overflow: clip; }
.sec + .sec { padding-top: clamp(40px, 5vw, 80px); }
.sec.blue { background: var(--blue); padding: clamp(64px, 8vw, 128px) 0; }
.sec.blue + .sec { padding-top: clamp(88px, 11vw, 168px); }

/* ---------- Price card ---------- */
.card { border-radius: 24px; background: var(--charcoal); padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 44px); max-width: 860px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.row:first-child { padding-top: 0; }
.what { font-size: clamp(17px, 0.4vw + 15px, 19px); font-weight: 500; }
.what span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.amt { font-size: clamp(20px, 0.8vw + 16px, 26px); white-space: nowrap; letter-spacing: -0.015em; }
.amt.q { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.row.total { border-bottom: 0; padding-top: 22px; padding-bottom: 0; align-items: center; }
.row.total .amt { font-size: clamp(44px, 4.6vw, 68px); letter-spacing: -0.035em; line-height: 1; }

/* ---------- Screenshot with annotations ---------- */
.shot { margin-top: clamp(32px, 4vw, 56px); }
.shot svg { width: 100%; height: auto; }
.shot .m-only { display: none; }
.anno-box, .anno-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.anno-handle, .anno-chip { opacity: 0; }
.anno-chip { filter: blur(6px); }
.anno-chip text { font-family: var(--font); font-weight: 500; }
.drawn .anno-box { animation: drawLine 900ms var(--ease-smooth) forwards; }
.drawn .anno-handle { animation: fadeIn 300ms var(--ease-out) forwards; animation-delay: 650ms; }
.drawn .anno-line { animation: drawLine 600ms var(--ease-smooth) forwards; animation-delay: 850ms; }
.drawn .anno-chip { animation: chipIn 600ms var(--ease-out) forwards; animation-delay: 1250ms; }
.drawn .a2 { animation-delay: calc(var(--d, 0ms) + 500ms) !important; }
.drawn .anno-box.a2 { --d: -650ms; }
.drawn .anno-handle.a2 { --d: 0ms; }
.drawn .anno-line.a2 { --d: 200ms; }
.drawn .anno-chip.a2 { --d: 600ms; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes chipIn { to { opacity: 1; filter: blur(0); } }

.includes { margin-top: clamp(48px, 6vw, 88px); }
.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); }
.dash li { position: relative; padding-left: 22px; margin-bottom: 20px; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1.5px; background: var(--ink); }
.today li span { display: block; color: var(--muted); font-size: 0.94em; margin-top: 3px; }

/* ---------- Flow ---------- */
.flow { margin-top: clamp(36px, 5vw, 64px); }
.flow svg { width: 100%; height: auto; }
.flow .v { display: none; }
.flow text, .tests text, .tl text { font-family: var(--font); }
.fl-box, .fl-line { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fl-blue { opacity: 0; }
.fl-text, .fl-handle { opacity: 0; }
.drawn .fl-box, .drawn .fl-line { animation: drawLine 900ms var(--ease-smooth) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
.drawn .fl-blue, .drawn .fl-handle { animation: fadeIn 500ms var(--ease-out) forwards; animation-delay: 600ms; }
.drawn .fl-text { animation: fadeIn 600ms var(--ease-out) forwards; animation-delay: calc(300ms + var(--i, 0) * 110ms); }
.fl-lit { fill: #fff; opacity: 0; }
.fl-run { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: square; stroke-dasharray: 10 200; stroke-dashoffset: 10; }
.running .fl-lit { animation: flowLit 13s linear infinite; animation-delay: calc(var(--i) * 1.5s); }
.running .fl-run { animation: flowRun 13s linear infinite; }
@keyframes flowLit {
  0% { opacity: 0; }
  5% { opacity: 0.16; }
  12% { opacity: 0.16; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flowRun {
  0%, 60% { stroke-dashoffset: 10; }
  92% { stroke-dashoffset: -100; }
  100% { stroke-dashoffset: -100; }
}
.grid4 { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); row-gap: clamp(28px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px); }
.grid4 p, .adblock p { max-width: 34em; }

/* ---------- Advertising ---------- */
.adgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3.4vw, 56px); row-gap: clamp(40px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.adblock .media { overflow: hidden; margin-bottom: 20px; aspect-ratio: 16 / 9; background: var(--panel); }
.adblock .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.adblock .tests { width: 100%; height: 100%; }
.adblock.blue { background: var(--blue); padding: clamp(22px, 3vw, 40px); transition: background-color 300ms ease; }
.ts-box, .ts-line { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ts-keep { fill: var(--blue); opacity: 0; }
.ts-keep-box { fill: none; stroke: #fff; stroke-width: 1.4; transition: stroke-opacity 400ms ease; }
.ts-text, .ts-handle { opacity: 0; }
.drawn .ts-box, .drawn .ts-line { animation: drawLine 800ms var(--ease-smooth) forwards; animation-delay: calc(var(--i, 0) * 260ms); }
.drawn .ts-text, .drawn .ts-handle { animation: fadeIn 500ms var(--ease-out) forwards; animation-delay: calc(200ms + var(--i, 0) * 260ms); }
.drawn .ts-keep { animation: fadeIn 700ms var(--ease-out) forwards; animation-delay: 1500ms; }
@media (hover: hover) and (pointer: fine) {
  .adblock:hover .media img { transform: scale(1.035); }
  .adblock.blue:hover { background-color: #3760F7; }
  .adblock .tests:hover .ts-keep { opacity: 1; }
}

/* ---------- Timeline ---------- */
.tl { margin-top: clamp(32px, 4vw, 56px); }
.tl svg { width: 100%; height: auto; }
.tl .v { display: none; }
.tl-box { fill: none; stroke: #fff; stroke-width: 2; stroke-opacity: 0.4; transition: stroke-opacity 500ms var(--ease-out); }
.tl-box.on { stroke-opacity: 1; }
.tl-join { stroke: #fff; stroke-width: 2; stroke-opacity: 0.4; transition: stroke-opacity 500ms var(--ease-out); }
.tl-join.on { stroke-opacity: 1; }
.tl-track { stroke: #fff; stroke-opacity: 0.18; stroke-width: 2; }
.tl-prog { stroke: #fff; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }

.pay { border-radius: 24px; margin-top: clamp(28px, 3vw, 44px); background: var(--blue); padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 44px); }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--hair-blue); }
.prow b { font-size: clamp(20px, 0.8vw + 16px, 26px); font-weight: 400; white-space: nowrap; letter-spacing: -0.015em; }
.prow.ptotal { border-bottom: 0; padding-top: 20px; font-weight: 500; align-items: center; }
.prow.ptotal b { font-size: clamp(32px, 3vw, 48px); letter-spacing: -0.03em; }
.pnote { margin-top: 14px; font-size: 15px; }
.needs { margin-top: clamp(48px, 6vw, 88px); }

.next { margin-top: clamp(88px, 10vw, 152px); }
.next p { margin-top: 20px; font-size: clamp(22px, 1.6vw + 14px, 34px); line-height: 1.3; letter-spacing: -0.02em; max-width: 26em; }

/* ---------- Terms ---------- */
.terms { margin-top: clamp(48px, 6vw, 80px); }
.terms summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 500; padding: 12px 24px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: transparent; user-select: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary:hover, .terms summary:focus-visible { background: var(--ink); color: var(--charcoal); }
.terms summary:active { transform: scale(0.97); }
.plus { position: relative; width: 12px; height: 12px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform 250ms var(--ease-smooth); }
.plus::after { transform: rotate(90deg); }
.terms[open] .plus::after { transform: rotate(0deg); }
.terms-body { margin-top: 28px; max-width: 52em; }
.terms[open] .terms-body { animation: termsIn 400ms var(--ease-out); }
.terms-body li { margin-bottom: 12px; font-size: 16px; }
@keyframes termsIn { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }

/* ---------- Footer ---------- */
.foot { position: relative; padding: clamp(96px, 12vw, 200px) 0 clamp(20px, 3vw, 40px); overflow: hidden; overflow: clip; }
.foot .mark { display: block; font-size: clamp(56px, 17.6vw, 300px); letter-spacing: -0.055em; line-height: 0.82; -webkit-text-stroke-width: 1.5px; margin-left: -0.04em; white-space: nowrap; }

/* ---------- Reveal: fade and blur, no travel ---------- */
.js .rv { opacity: 0; filter: blur(8px); }
.js .rv.in { opacity: 1; filter: blur(0); transition: opacity var(--t-reveal) var(--ease-out), filter var(--t-reveal) var(--ease-out); transition-delay: var(--delay, 0ms); }


/* ---------- Phone ---------- */
@media (max-width: 960px) {
  .pill .d { display: none; }
  .growth { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-head .who { font-size: 13px; }
  .hero { justify-content: flex-start; }
  .hero-copy { margin-top: auto; padding-top: 0; }
  .o1 { width: 132px; right: -14px; top: 92px; }
  .o2 { width: 64px; right: 150px; top: 104px; }
  .o3 { width: 52px; right: 120px; top: 200px; }
  .statement { font-size: 32px; }
  .o4, .o5 { display: none; }
  .frames { grid-template-columns: 1fr; }
  .tp { grid-template-columns: 1fr; align-items: start; }
  .tab { font-size: 15px; padding: 9px 16px; }
  .tp-media .tests { width: 100%; }
  .tp-media { padding: 0 10px; }
  .pill { padding-left: 16px; }
  .two, .grid4, .adgrid { grid-template-columns: 1fr; }
  .two > ul + ul { margin-top: 0; }
  .needs .two > div + div, .grid4 > div + div { margin-top: 0; }
  .needs .two { row-gap: 28px; }
  .flow .h, .tl .h { display: none; }
  .flow .v, .tl .v { display: block; }
  .shot .d-only { display: none; }
  .shot .m-only { display: inline; }
  .row { flex-direction: column; gap: 4px; }
  .row.total { flex-direction: row; align-items: flex-end; }
  .prow { flex-direction: column; gap: 2px; }
  .prow.ptotal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 419px) {
  .row.total { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb > div { animation: none; }
  .tp { transition: none; }
  .vdraw { stroke-dashoffset: 0; transition: none; }
  .vh { opacity: 1; }
  .drawn.ugcflow .fl-blue, .ugcflow .fl-blue { opacity: 1; animation: none; }
  .js .rv { filter: none; }
  .js .rv.in { transition: opacity 400ms ease; }
  .anno-box, .anno-line, .fl-box, .fl-line, .ts-box, .ts-line { stroke-dashoffset: 0; animation: none !important; }
  .anno-handle, .fl-text, .fl-handle, .fl-blue, .ts-text, .ts-handle, .ts-keep { opacity: 1; animation: none !important; }
  .anno-chip { opacity: 1; filter: none; animation: none !important; }
  .running .fl-lit, .running .fl-run { animation: none; }
  .tl-prog { stroke-dashoffset: 0; }
  .tl-box, .tl-join { stroke-opacity: 1; }
  .adblock .media img { transition: none; }
}

/* Prices continue the blue field of the hero. */
#prices { padding-top: 8px; }

/* ---------- Ocean and selection layers ---------- */
canvas.sea { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
canvas.selcv { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.hero-copy, .hero-head { will-change: transform, opacity; transform-origin: 30% 100%; }

/* The charcoal page rises over the blue field with rounded corners. */
#prices { padding-bottom: calc(clamp(64px, 8vw, 128px) + 40px); }
#website { background: var(--charcoal); border-radius: 40px 40px 0 0; margin-top: -40px; }

/* Headings fill in word by word as they scroll into view. */
.h-sec .w { display: inline-block; }
.js .h-sec .w { opacity: 0.16; }

/* Panels settle into place as they scroll in. */
.js .settle { opacity: 0.15; will-change: transform, opacity; transform-origin: 50% 0; }

/* Footer wordmark fills letter by letter. */
.foot .mark .l { transition: color 200ms var(--ease-out); }
.foot .mark:hover .l, .foot .mark:focus-visible .l { color: var(--ink) !important; }

/* What the selection box is on reacts a little. */
.orb > div img, .tp-media img { transition: transform 700ms var(--ease-out); }
.orb > div.is-sel img, .tp-media.is-sel img { transform: scale(1.07); }
.fl-box.is-sel, .tl rect.is-sel { stroke-opacity: 1; }
.tab.is-sel:not([aria-selected="true"]) { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .js .h-sec .w, .js .settle { opacity: 1; }
  .frame img { transform: none; }
}

/* ---------- Plan buttons: hollow pill, fills from the centre on hover ---------- */
.plan-at { margin-top: clamp(24px, 3vw, 36px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.plan-btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: transparent; cursor: pointer;
  padding: 13px 20px 13px 24px; border: 1.5px solid var(--ink); border-radius: 999px;
  transition: color 260ms var(--ease-out), transform 160ms var(--ease-out);
}
.plan-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: scale(0.2, 0); opacity: 0; transition: transform 380ms var(--ease-out), opacity 200ms var(--ease-out); }
.plan-btn i { position: relative; width: 12px; height: 12px; flex: none; }
.plan-btn i::before, .plan-btn i::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease-smooth); }
.plan-btn i::after { transform: rotate(90deg); }
.plan-btn:hover, .plan-btn:focus-visible { color: var(--charcoal); }
.plan-btn:hover::before, .plan-btn:focus-visible::before { transform: scale(1); opacity: 1; }
.plan-btn:hover i::before { transform: rotate(90deg); }
.plan-btn:hover i::after { transform: rotate(180deg); }
.plan-btn:active { transform: scale(0.97); }
.tp-text .plan-btn { margin-top: 20px; }

/* ---------- Plan sheet ---------- */
html.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: var(--blue); }
.sheet-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet-x {
  position: fixed; top: 16px; right: var(--gutter); z-index: 5;
  display: inline-flex; align-items: center; gap: 12px; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--blue); background: var(--ink); border: 0; border-radius: 999px; width: 52px; height: 52px; padding: 0; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity 300ms var(--ease-out), background-color 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.sheet-x i { position: relative; width: 16px; height: 16px; }
.sheet-x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet-x i::before, .sheet-x i::after { content: ""; position: absolute; left: 0; top: 7.25px; width: 16px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.sheet-x i::after { transform: rotate(-45deg); }
.sheet-x:hover, .sheet-x:focus-visible { background: #fff; }
.sheet-x:active { transform: scale(0.96); }
.sheet.in .sheet-x { opacity: 1; }
.sheet-body { clear: both; }

.s-head { padding-top: clamp(80px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 72px); }
.s-title { font-size: clamp(44px, 7.2vw, 112px); font-weight: 400; line-height: 0.98; letter-spacing: -0.04em; max-width: 13em; }
.s-title .tone { color: rgba(255, 255, 255, 0.62); }
.sw { display: inline-block; opacity: 0.12; filter: blur(8px); }
.sheet.in .sw { animation: sfill 700ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes sfill { to { opacity: 1; filter: blur(0); } }
.s-lead { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(19px, 0.8vw + 15px, 24px); line-height: 1.45; max-width: 34em; }
.si { opacity: 0; filter: blur(8px); }
.sheet.in .si { animation: sfill 800ms var(--ease-out) forwards; animation-delay: calc(450ms + var(--i) * 90ms); }

.s-panel { background: var(--charcoal); border-radius: 32px 32px 0 0; min-height: 60vh; padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.s-panel h3 { font-size: clamp(19px, 0.6vw + 16px, 22px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.s-panel p { max-width: 34em; }

/* Steps: boxes wipe in left to right, joined by lines; the key step is blue. */
.st-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); margin-bottom: clamp(40px, 5vw, 72px); }
.st { position: relative; min-height: 112px; border: 1.5px solid #fff; padding: 18px 18px 16px; font-size: clamp(16px, 0.4vw + 14px, 19px); font-weight: 500; line-height: 1.3; display: flex; align-items: flex-end;
  clip-path: inset(0 100% 0 0); }
.st.key { background: var(--blue); border-color: var(--blue); }
.st + .st::before { content: ""; position: absolute; top: 50%; right: 100%; width: clamp(20px, 2.6vw, 40px); height: 1.5px; background: #fff; }
.st.key::after, .st:first-child::after { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; background: #fff; }
.sheet.in .st { animation: wipe 700ms var(--ease-smooth) forwards; animation-delay: calc(650ms + var(--i) * 140ms); }
@keyframes wipe { to { clip-path: inset(-24px -60px -24px -60px); } }
@media (hover: hover) and (pointer: fine) {
  .st { transition: background-color 260ms var(--ease-out); }
  .st:not(.key):hover { background: rgba(255, 255, 255, 0.08); }
}

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(40px, 5vw, 72px); }
.use { background: #141414; border: 1px solid var(--hair); border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); }
.use h3 { font-size: clamp(24px, 1.6vw + 14px, 34px) !important; font-weight: 400 !important; letter-spacing: -0.03em !important; margin-bottom: 14px !important; }
.sblocks { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); row-gap: clamp(28px, 3vw, 44px); }
.srows { border-top: 1px solid var(--hair); }
.srow { display: grid; grid-template-columns: minmax(180px, 0.6fr) 1.4fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); font-size: clamp(17px, 0.4vw + 15px, 20px); }
.srow b { font-weight: 500; }
.s-panel .btn { margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 760px) {
  .st-row { grid-template-columns: 1fr; gap: 18px; }
  .st { min-height: 0; padding: 16px; }
  .st + .st::before { top: auto; bottom: 100%; right: auto; left: 24px; width: 1.5px; height: 18px; }
  .uses, .sblocks { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 1fr; gap: 4px; }
  .sheet-x { top: 12px; right: 12px; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .sheet-x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plan-btn { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw, .si { opacity: 1; filter: none; animation: none !important; }
  .st { clip-path: none; animation: none !important; }
}
