/* Splicehand landing page. The look is the app's own: black, a cool white, one heavy grotesque
   set tight and in sentence case, and one light, magenta and blue, where the product is. The
   page should read as a tool, not a mood. */

/* Self-hosted (latin subset) so the first screen does not wait on another host. Schibsted
   Grotesk is a variable font: one file covers every weight used. */
@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 {
  /* Pure black, not a near-black: Chrome on this Mac drew #070707 as two slightly different
     blacks in bands down the page (7 and 9 in screenshots), and a seam ran through the
     button. Zero comes out as zero whichever way a strip of the page is drawn. */
  --black: #000;
  --ink: #f2f3f5;
  --dim: #b9bdc4;
  --mute: #8d929b;
  --rule: #2a2d33;
  --panel: #0e1013;
  /* Every box on the page has this edge: a faint white hairline. Colour comes from the light
     behind a box, never from its border. */
  --hairline: rgba(255, 255, 255, 0.14);
  /* The thing to press is white, the brightest thing on a black page; the light round it
     carries the colour. */
  --accent: #f2f3f5;
  --on-accent: #0a0a0a;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  /* The light: blue and magenta, the app icon's own colours. It appears where the
     product is (behind its window, round the request bar and the button) and nowhere else. */
  --blue: #3b6bff;
  --magenta: #ff2bd1;

  /* Every vertical distance on the page is one of these (multiples of 8), and body text
     sits on a 28px line, so gaps relate to each other instead of being picked one by one. */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;
  --section: 160px;   /* between sections */
  --lead: var(--s6);  /* from a section's title to its content */

  /* The page's side margin grows with the window, so text never sits near the edge. */
  --gutter: max(clamp(24px, 6vw, 96px), env(safe-area-inset-left, 0px));
  --gutter-right: max(clamp(24px, 6vw, 96px), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--ink); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: calc(1200px + var(--gutter) + var(--gutter-right));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-right);
}
.wrap.narrow { max-width: 1100px; }
.wrap.text { max-width: 900px; }

/* A quiet line that says what the heading under it is about. */
.label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--mute);
}
/* Section headings: heavy and tight, in sentence case. The negative tracking is what makes a
   heavy grotesque read as one shape at these sizes. */
.card-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.centred { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }

/* Top bar */
.top > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; line-height: 24px; letter-spacing: -0.03em; font-weight: 800; text-decoration: none; }
.wordmark .mark { width: 38px; height: 38px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); font-size: 15px; line-height: 20px; font-weight: 500; }
.top nav a { text-decoration: none; padding: var(--s1) 0; color: var(--dim); }
.top nav a:hover { color: var(--ink); }
/* The one action in the bar is a small white pill, the same white as the page's button. */
.top nav a.get { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--on-accent); font-weight: 700; }
.top nav a.get:hover { background: #fff; color: var(--on-accent); }

/* Opening: the claim, set as large as the window allows, then the product straight after. */
.opening {
  padding-top: var(--s7);
  padding-bottom: var(--s7);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s5) var(--s6);
}
.opening-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.opening h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(44px, 6.7vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.opening .lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--dim); max-width: 660px; padding-top: var(--s1); }
.opening .cta { margin-top: var(--s2); align-items: flex-start; }

.cta { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
/* 56px tall: a 20px line and 18px above and below. */
.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 18px 28px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.button:hover { background: #fff; color: var(--on-accent); }
.small { font-size: 14px; line-height: 20px; color: var(--mute); }

/* Demo */
.demo-frame { position: relative; background: var(--panel); aspect-ratio: 16 / 10; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.demo-frame video, .demo-frame img { width: 100%; height: 100%; object-fit: contain; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: background 0.2s, transform 0.2s;
}
.play:hover { background: #fff; transform: scale(1.05); }
.play::before {
  content: "";
  border-left: 22px solid var(--on-accent);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 7px;
}
.demo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-top: var(--s2); }

/* What to ask */
.ask { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.ask-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); }
.ask-columns h3 { margin: 0; padding-bottom: var(--s2); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--mute); }
.ask-columns ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ask-columns li { padding: var(--s2) 0; border-top: 1px solid var(--rule); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

/* The difference */
.difference { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.versus { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
.versus > div { padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.versus > .head { padding: 0 0 var(--s2); border-top: 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--mute); }
.versus > .head.us { color: var(--ink); font-weight: 700; }
.versus > .them { color: var(--mute); }
.versus > .last { border-bottom: 1px solid var(--rule); }

.frame { display: block; padding: var(--s1); background: #050506; border: 1px solid var(--hairline); border-radius: 16px; }
.frame img { border-radius: 9px; }

/* The rest of the suite: six short entries, no pictures. */
.also { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
.also-grid > div { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.also-grid h3 { margin: 0 0 var(--s1); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.also-grid p { color: var(--dim); }

/* How it works: a real sequence, so the steps are numbered. */
.how { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s6); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--hairline); padding-top: var(--s3); }
.steps li::before { content: counter(step); display: block; width: fit-content; margin-bottom: var(--s2); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--blue), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 0 0 var(--s1); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { color: var(--dim); }
.how > .small { margin-top: calc(var(--s3) - var(--lead)); }

/* Privacy: the claim on the left, the four facts behind it on the right. */
.privacy { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s5) var(--s6); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.facts li { padding: var(--s3) 0; border-top: 1px solid var(--hairline); color: var(--dim); }
.facts strong { color: var(--ink); font-weight: 700; }

/* Pricing: the app and the AI are paid for separately, so they are shown side by side. */
.pricing { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.price { align-items: flex-start; }
.price .figure span { font-size: 0.42em; letter-spacing: -0.01em; color: var(--mute); font-weight: 500; }
.price .allowance { color: var(--ink); font-weight: 700; }
.price > p:last-of-type { flex: 1; }
.price form { display: contents; }
.price-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s6); color: var(--dim); }
.price-notes strong { display: block; color: var(--ink); font-weight: 700; }
@media (max-width: 1100px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price { border: 1px solid var(--hairline); border-radius: 16px; padding: var(--s4); background: #050506; display: flex; flex-direction: column; gap: var(--s2); }
.price h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--mute); }
.price .figure { font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.price p { color: var(--dim); }


/* Questions */
.questions { padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--s5); }
.questions .label { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); }
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
/* A plus that turns into a cross when the answer is open. */
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq .answer { padding: 0 var(--s6) var(--s3) 0; color: var(--dim); }

/* End card */
.end { max-width: 1000px; padding-bottom: var(--s8); display: flex; flex-direction: column; align-items: center; gap: var(--s6); text-align: center; }
.end .line { font-weight: 800; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; }

/* The footer: the brand and what it is on the left, two short lists of links, then a base line.
   Solid black, so the end card's glow stops at its top edge. */
footer { position: relative; background: var(--black); border-top: 1px solid var(--hairline); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s6); padding-top: var(--s6); padding-bottom: var(--s6); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.foot-brand p { max-width: 360px; font-size: 16px; line-height: 24px; color: var(--mute); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); font-size: 16px; line-height: 24px; }
.foot nav h2 { margin: 0 0 var(--s1); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--mute); }
.foot nav a { color: var(--dim); text-decoration: none; padding: 2px 0; }
.foot nav a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding-top: var(--s3); padding-bottom: max(var(--s4), env(safe-area-inset-bottom, 0px)); background: linear-gradient(var(--rule), var(--rule)) var(--gutter) 0 / calc(100% - var(--gutter) - var(--gutter-right)) 1px no-repeat; }   /* the rule is as wide as the text, not the padded box */

/* The launch list form on the end card. The field is as tall as the button (56px). */
.notify { display: flex; flex-direction: column; align-items: center; gap: var(--s3); width: 100%; max-width: 560px; }
.notify-row { display: flex; gap: var(--s1); width: 100%; }
.notify input[type="email"] {
  flex: 1 1 0; min-width: 0; height: 56px;
  background: var(--panel); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius);
  font: inherit; font-size: 17px; padding: 0 20px;
}
.notify input[type="email"]::placeholder { color: var(--mute); }
.notify input[type="email"]:focus-visible { outline-offset: -2px; }
.notify button { border: 0; cursor: pointer; font-family: inherit; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { color: var(--ink); }
.notice.error { color: #f2c38b; font-size: 15px; line-height: 24px; }

/* Text pages (privacy) */
.prose { padding-top: var(--s7); padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--s3); }
.prose h1 { padding-bottom: var(--s4); }
.prose h2 { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--dim); }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s1); }

/* The opening rises into place once. It starts in place for anyone who prefers no motion. */
@media (prefers-reduced-motion: no-preference) {
  .opening > * { animation: title-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .opening > :nth-child(2) { animation-delay: 0.08s; }
  .opening > :nth-child(3) { animation-delay: 0.16s; }
  .opening > :nth-child(4) { animation-delay: 0.24s; }
  @keyframes title-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 820px) {
  :root { --section: 96px; --lead: var(--s5); --s8: 96px; }
  body { font-size: 17px; }
  .opening { padding-top: var(--s5); padding-bottom: var(--s5); }
  .top > .wrap { padding-top: 10px; padding-bottom: 10px; }
  /* On a phone the bar keeps the two links people look for, and the button. */
  .top nav { gap: 0 var(--s3); }
  .top nav a:not(.get):not(.keep) { display: none; }
  .versus { grid-template-columns: 1fr; }
  .versus > .head { display: none; }
  .versus > .them { padding-bottom: var(--s1); }
  .versus > .us { border-top: 0; padding-top: var(--s1); }
  .versus > .them::before, .versus > .us::before { display: block; font-size: 14px; line-height: 20px; font-weight: 500; padding-bottom: var(--s1); }
  .versus > .them::before { content: "By hand"; }
  .versus > .us::before { content: "With Splicehand"; color: var(--mute); }
  .ask-columns { grid-template-columns: 1fr; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); }
  .foot-brand { grid-column: 1 / -1; }
  .steps, .prices, .privacy, .price-notes { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: var(--s4); }
  .also-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .ask-columns li { font-size: 18px; }
  .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .notify-row { flex-direction: column; gap: var(--s2); }
  .notify input[type="email"] { flex: none; }
}

/* ---- Light ---------------------------------------------------------------------------- */

::selection { background: var(--magenta); color: #000; }
main { overflow-x: clip; position: relative; isolation: isolate; }
/* The same light as the end card, coming down from the top of the window behind the top bar. */
main::before, main::after { content: ""; position: absolute; z-index: -1; top: -160px; width: min(760px, 62vw); height: 560px; filter: blur(70px); pointer-events: none; }
main::before { left: 8%; background: radial-gradient(50% 60% at 50% 0%, rgba(59, 107, 255, 0.7), transparent 72%); }
main::after { right: 8%; background: radial-gradient(50% 60% at 50% 0%, rgba(255, 43, 209, 0.62), transparent 72%); }

/* The top bar stays, blurring what scrolls under it. The bar itself is the full width of the
   page (a strip sized in vw is wider than the page by the scrollbar and made it scroll sideways). */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* The aura: three soft lights behind the product window, as if the screen lit the room. */
.demo { position: relative; isolation: isolate; }
.demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -16% -6%;
  background:
    radial-gradient(46% 60% at 22% 42%, rgba(59, 107, 255, 0.75), transparent 72%),
    radial-gradient(44% 58% at 78% 50%, rgba(255, 43, 209, 0.66), transparent 72%),
    radial-gradient(30% 34% at 52% 96%, rgba(140, 70, 255, 0.5), transparent 74%);
  filter: blur(80px);
}
.demo-frame { box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }

.caret { flex: none; width: 2px; height: 22px; margin-left: -8px; background: var(--ink); }

/* The button: a streak of light runs round its edge, and it glows where it stands. */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.button { position: relative; isolation: isolate; box-shadow: 0 8px 40px rgba(255, 43, 209, 0.3), 0 0 24px rgba(59, 107, 255, 0.28); transition: background 0.2s, box-shadow 0.3s, transform 0.2s; }
.button::before, .button::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 3px);
  padding: 2px;
  background: conic-gradient(from var(--turn), transparent 0 52%, var(--blue) 70%, var(--magenta) 88%, #fff 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.button::after { filter: blur(9px); opacity: 0.9; }
.button:hover { box-shadow: 0 8px 60px rgba(255, 43, 209, 0.55), 0 0 30px rgba(59, 107, 255, 0.45); transform: translateY(-1px); }
.button:active { transform: translateY(0); }

/* What it does: one job per card, a picture and the request that gets it. */
.jobs { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--lead); }
.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.job { display: flex; flex-direction: column; gap: var(--s3); }
.job h3 { margin: 0 0 var(--s1); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.job p { color: var(--dim); max-width: 520px; }
.shot { margin: 0; }
.shot img, .shot video { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 9px; }
/* The demo's frame while it waits for its recording: dashed, with a play ring. */
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); padding: var(--s4); text-align: center; text-wrap: balance; color: var(--mute); border: 1px dashed rgba(255, 255, 255, 0.24); }
.demo-frame.placeholder { font-size: clamp(18px, 2vw, 24px); line-height: 1.35; color: var(--dim); background: radial-gradient(60% 80% at 50% 50%, #1a1d26, #0b0c10); }
.placeholder .small { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 12px; }
.ring { width: 88px; height: 88px; margin-bottom: var(--s2); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(255, 43, 209, 0.35), inset 0 0 30px rgba(59, 107, 255, 0.25); }
.ring::before { content: ""; margin-left: 6px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }

/* ---- Scenes: an illustration of each job, in its picture slot until the real one exists ---- */

/* Each is drawn at rest in its finished state; the motion is added below for those who want it. */
.scene { position: relative; aspect-ratio: 5 / 3; border-radius: 9px; overflow: hidden; background: radial-gradient(90% 120% at 50% 0%, #171a24, #0a0b0f); display: flex; align-items: center; justify-content: center; container-type: inline-size; }
/* A stand-in for whoever is on camera: a head and shoulders. */
.sc-person { position: absolute; left: 50%; bottom: 0; width: 56%; aspect-ratio: 1 / 1.1; transform: translateX(-50%); }
.sc-person::before { content: ""; position: absolute; left: 50%; top: 0; width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.24); transform: translateX(-50%); }
.sc-person::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; border-radius: 50% 50% 0 0 / 80% 80% 0 0; background: rgba(255, 255, 255, 0.16); }

/* Fillers: a transcript whose ums are marked, struck and closed up. */
.sc-fillers { padding: 9%; }
.sc-script { font-size: 4.6cqw; line-height: 1.5; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.sc-script s { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; color: var(--magenta); text-decoration-thickness: 2px; }

/* Captions: a vertical video, the spoken word lit as it is said. */
.sc-phone { position: relative; height: 88%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #35606b, #4a4468 60%, #2a1f3d); border: 1px solid var(--hairline); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.sc-phone .sc-person { width: 86%; bottom: 14%; }
.sc-cap { position: absolute; left: 6%; right: 6%; bottom: 9%; text-align: center; text-transform: uppercase; font-size: 3.3cqw; line-height: 1.2; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.sc-cap b { display: inline-block; font-weight: 900; }
.sc-cap b.key { color: #ffe14d; }

/* Moments: the long recording, the five picks lit on it, and a vertical clip for each. */
.sc-moments { flex-direction: column; gap: 9%; padding: 8%; }
.sc-long { position: relative; flex: none; width: 100%; height: 16%; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 6px), #151821; }
.sc-long i { position: absolute; top: -8%; bottom: -8%; left: var(--x); width: 8%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--magenta)); box-shadow: 0 0 18px rgba(255, 43, 209, 0.5); }
.sc-reels { display: flex; justify-content: center; gap: 4%; width: 100%; height: 56%; }
.sc-reels i { position: relative; flex: none; height: 100%; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #35606b, #4a4468); border: 1px solid var(--hairline); }
.sc-reels i:nth-child(2n) { background: linear-gradient(160deg, #2f5a4d, #35606b); }
.sc-reels .sc-person { width: 90%; }

/* Versions: one piece of footage in three shapes, the subject in the middle of each. */
.sc-versions { gap: 3%; padding: 4%; }
.sc-versions div { position: relative; flex: none; height: var(--h); aspect-ratio: var(--r); border-radius: 8px; overflow: hidden; background: linear-gradient(120deg, #2f5a4d, #35606b 35%, #4a4468 65%, #2f5a4d) 0 0 / 300% 100%; border: 1px solid var(--hairline); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.sc-versions div::after { content: attr(data-size); position: absolute; left: 8px; top: 6px; font-size: 11px; line-height: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.sc-versions .sc-person { width: auto; height: 78%; }

/* Beat: four clips over the beats of the music, the cuts sitting on a beat. */
.sc-beat { flex-direction: column; align-items: stretch; gap: 5%; padding: 9%; }
.sc-clips { display: flex; gap: 1.2%; height: 36%; }
.sc-clips i { flex: 1 1 0; min-width: 0; border-radius: 8px; background: linear-gradient(#2f5a4d, #1f3d35); }
.sc-clips i:nth-child(2n) { background: linear-gradient(#35606b, #24424a); }
.sc-clips i:nth-child(3n) { background: linear-gradient(#4a4468, #332f4a); }
.sc-ticks { display: flex; justify-content: space-between; height: 12%; }
.sc-ticks i { width: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.3); }
.sc-ticks i.on { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.sc-music { height: 16%; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 5px), #1c4a40; }

/* Titles: a lower third over an interview. */
.sc-titles { background: linear-gradient(140deg, #24424a, #332f4a 70%, #1a1626); }
.sc-titles .sc-person { left: 62%; width: 46%; }
.sc-l3 { position: absolute; left: 7%; bottom: 13%; display: flex; flex-direction: column; padding: 0.5em 1em 0.55em 0.8em; border-left: 4px solid var(--magenta); border-radius: 0 8px 8px 0; background: rgba(0, 0, 0, 0.78); font-size: 4cqw; line-height: 1.2; }
.sc-l3 b { font-weight: 800; letter-spacing: -0.02em; }
.sc-l3 span { font-size: 0.62em; color: var(--dim); }

/* Looks: the same shot twice, the film look wiping across it. */
.sc-land { position: absolute; inset: 0; background: radial-gradient(circle at 68% 44%, #fff3c4 0 5%, #ffd27a 5.5% 8%, transparent 8.5%), linear-gradient(#27469c 0%, #c95a92 44%, #f4a15d 62%, #16324a 62.5%, #0c1622 100%); }
.sc-land.old { filter: sepia(0.9) saturate(1.5) contrast(1.1) brightness(1.1); clip-path: inset(0 0 0 50%); }
.sc-land.old::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6)); }
.sc-wipe { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.7); }
.sc-tag { position: absolute; top: 6%; left: 5%; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 12px; line-height: 16px; font-weight: 700; }
.sc-tag.right { left: auto; right: 5%; }

/* Effect: points of light at night drawn out into streaks, and the slider that sets how far. */
.sc-effect { background: linear-gradient(#070914, #171029 70%, #0a0b12); }
.sc-effect > i { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c), transparent); filter: drop-shadow(0 0 8px var(--c)); }
.sc-slider { position: absolute; left: 8%; right: 8%; bottom: 8%; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(0, 0, 0, 0.6); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--dim); }
.sc-slider u { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.sc-slider u::before { content: ""; display: block; width: 68%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--magenta)); }

@media (prefers-reduced-motion: no-preference) {
  .sc-script s { animation: sc-um 9s calc(var(--d, 0) * 0.45s) infinite both; }
  @keyframes sc-um {
    0%, 10% { max-width: 6em; opacity: 1; color: var(--ink); text-decoration-color: transparent; }
    20%, 32% { max-width: 6em; opacity: 1; color: var(--magenta); text-decoration-color: currentColor; }
    42%, 90% { max-width: 0; opacity: 0; }
    100% { max-width: 6em; opacity: 1; color: var(--ink); text-decoration-color: transparent; }
  }
  .sc-cap b, .sc-cap b.key { color: #fff; animation: sc-word 3.5s calc(var(--d) * 0.5s) infinite; }
  @keyframes sc-word { 0%, 13% { color: #ffe14d; transform: scale(1.14); } 15%, 100% { color: #fff; transform: none; } }
  .sc-long i, .sc-reels i { animation: sc-pop 7s calc(var(--d) * 0.45s) infinite both; }
  @keyframes sc-pop { 0%, 4% { opacity: 0; transform: scale(0.6); } 12%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.6); } }
  .sc-versions div { animation: sc-pan 8s ease-in-out infinite alternate; }
  @keyframes sc-pan { to { background-position: 100% 0; } }
  .sc-clips i { animation: sc-snap 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
  @keyframes sc-snap { 0%, 30% { flex-grow: var(--g); } 46%, 92% { flex-grow: 1; } 100% { flex-grow: var(--g); } }
  .sc-ticks i.on { animation: sc-tick 5s infinite; }
  @keyframes sc-tick { 0%, 38% { background: rgba(255, 255, 255, 0.3); box-shadow: none; transform: none; } 48% { transform: scaleY(1.6); } 56%, 92% { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); transform: none; } 100% { background: rgba(255, 255, 255, 0.3); box-shadow: none; } }
  .sc-l3 { animation: sc-l3 5.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
  @keyframes sc-l3 { 0%, 8% { opacity: 0; transform: translateX(-28px); clip-path: inset(0 100% 0 0); } 24%, 82% { opacity: 1; transform: none; clip-path: inset(0); } 94%, 100% { opacity: 0; transform: translateX(-12px); clip-path: inset(0); } }
  .sc-land.old { animation: sc-wipe-clip 5s ease-in-out infinite alternate; }
  .sc-wipe { animation: sc-wipe 5s ease-in-out infinite alternate; }
  @keyframes sc-wipe-clip { from { clip-path: inset(0 0 0 20%); } to { clip-path: inset(0 0 0 80%); } }
  @keyframes sc-wipe { from { left: 20%; } to { left: 80%; } }
  .sc-effect > i { animation: sc-streak 5s ease-in-out infinite; }
  @keyframes sc-streak { 0%, 15% { width: 6px; } 50%, 85% { width: var(--w); } 100% { width: 6px; } }
  .sc-slider u::before { animation: sc-slide 5s ease-in-out infinite; }
  @keyframes sc-slide { 0%, 15% { width: 6%; } 50%, 85% { width: 68%; } 100% { width: 6%; } }
}

/* ---- More requests: two strips of them drifting past, one each way ---------------------- */

.marquee { padding-top: var(--lead); display: flex; flex-direction: column; gap: var(--s2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; width: max-content; }
.marquee ul { list-style: none; margin: 0; padding: 0 var(--s1); display: flex; gap: var(--s2); }
.marquee li { white-space: nowrap; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--hairline); background: #050506; font-size: 19px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee ul { animation: marquee 60s linear infinite; }
  .marquee-row:nth-child(2n) ul { animation-direction: reverse; animation-duration: 70s; }
  .marquee:hover ul { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-left: var(--gutter); padding-right: var(--gutter-right); }
  .marquee-row { width: auto; }
  .marquee ul { flex-wrap: wrap; padding: 0; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Parts of the page rise into place when scrolled to (the class is added by the page's script). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* The lines under a plan's description on the pricing page: its size against Starter, typical use. */
.price .allowance span { display: block; font-weight: 500; color: var(--mute); }

@media (max-width: 820px) {
  .jobs-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .marquee li { font-size: 17px; padding: 10px 18px; }
  .sc-tag, .sc-slider { font-size: 11px; }
}

/* The email form in the opening sits on the left, under the text. */
.opening .cta, .opening .notify { align-items: flex-start; }
.opening .cta { width: 100%; }

/* Frames and the suite's entries light up under the pointer. */
.also-grid > div { border: 1px solid var(--hairline); border-radius: 16px; padding: var(--s3); background: #050506; }
.lit { position: relative; }
.lit::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 43, 209, 0.22), rgba(59, 107, 255, 0.12) 45%, transparent 70%); }
.lit:hover::after { opacity: 1; }
.also-grid > div { transition: border-color 0.3s; }
.also-grid > div:hover { border-color: rgba(255, 255, 255, 0.32); }

/* The end card stands in the same light. */
.end { position: relative; isolation: isolate; }
.end::before, .end::after { content: ""; position: absolute; z-index: -1; bottom: 0; width: min(640px, 60vw); height: 440px; filter: blur(64px); pointer-events: none; }
.end::before { left: -8%; background: radial-gradient(50% 62% at 50% 100%, rgba(59, 107, 255, 0.62), transparent 72%); }
.end::after { right: -8%; background: radial-gradient(50% 62% at 50% 100%, rgba(255, 43, 209, 0.56), transparent 72%); }

@media (prefers-reduced-motion: no-preference) {
  .button::before, .button::after { animation: turn 3.2s linear infinite; }
  @keyframes turn { to { --turn: 360deg; } }
  .demo::before { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(-9%, 2%, 0) scale(0.96); opacity: 0.55; } to { transform: translate3d(9%, -4%, 0) scale(1.16); opacity: 1; } }
  /* The top and end glows are two lights each, blue and magenta, out of step with each other. Only
     transform and opacity move, so the blur is not redrawn each frame. */
  main::before, .end::before { animation: glow-a 9s ease-in-out infinite alternate; }
  main::after, .end::after { animation: glow-b 11s ease-in-out infinite alternate; }
  .end::before { animation-delay: -4s; }
  .end::after { animation-delay: -6s; }
  /* Each light travels towards the other's side and back, so blue and magenta cross and mix. */
  @keyframes glow-a { from { transform: translateX(-12%) scale(0.9); opacity: 0.45; } to { transform: translateX(46%) scale(1.3); opacity: 1; } }
  @keyframes glow-b { from { transform: translateX(12%) scale(1.3); opacity: 1; } to { transform: translateX(-46%) scale(0.9); opacity: 0.45; } }
  .caret { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
@media (max-width: 820px) {
  .faq .answer { padding-right: 0; }
  .demo::before { filter: blur(48px); }
}

/* ---- The hero's simulation ------------------------------------------------------------ */

.live {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: var(--s2);
  border-radius: 20px;
  /* Solid black with a hairline: the colour comes from the glow around the card, so the card
     itself stays as crisp as the app's own panels. */
  border: 1px solid var(--hairline);
  background: #050506;
  box-shadow: 0 20px 80px rgba(255, 43, 209, 0.26), 0 10px 60px rgba(59, 107, 255, 0.28);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: 15px;
  line-height: 20px;
}
.live-ask { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-weight: 500; }
.live-ask svg { flex: none; color: var(--magenta); }
.live-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live .caret { height: 18px; margin-left: -6px; }

/* A small timeline: a title lane, the clips, and the beats of the music under them. */
.live-stage { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: #101216; overflow: hidden; }
.live-lane { position: relative; height: 22px; }
.live-title { position: absolute; inset: 0 18% 0 22%; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--magenta)); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transform: scaleX(0.2); transform-origin: left; transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-title i { width: 8px; height: 8px; background: #fff; transform: rotate(45deg); border-radius: 1px; }
.live.title .live-title { opacity: 1; transform: none; }
/* An effect's bar lies over every clip it changes, as on the app's timeline. */
.live-fx { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #35475b; color: #e9f0f8; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; opacity: 0; transform: scaleX(0.2); transform-origin: left; transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live.fx .live-fx { opacity: 1; transform: none; }
/* What the effect does to the picture, roughly: a warm film look, or streaked highlights. */
.live-clips > div { position: relative; }
.live.look .live-clips > div { filter: sepia(0.85) saturate(1.5) brightness(1.25); }
.live-clips > div::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(255, 255, 255, 0.5) 15px 17px, transparent 18px 34px); opacity: 0; transition: opacity 0.6s; }
.live.streaks .live-clips > div { filter: saturate(1.7) brightness(1.2); }
.live.streaks .live-clips > div::after { opacity: 1; }
.live-clips { display: flex; gap: 4px; height: 64px; }
.live-clips > div { flex: 1 1 0; min-width: 0; border-radius: 7px; padding: 5px 7px; overflow: hidden; background: linear-gradient(#2f5a4d, #1f3d35); transition: flex-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s; }
.live-clips > div:nth-child(2n) { background: linear-gradient(#35606b, #24424a); }
.live-clips > div:nth-child(3n) { background: linear-gradient(#4a4468, #332f4a); }
.live-clips b { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.live-beats { display: flex; justify-content: space-between; height: 10px; padding: 0 1px; opacity: 0; transition: opacity 0.4s; }
.live-beats i { width: 2px; height: 100%; border-radius: 1px; background: var(--magenta); }
.live.beats .live-beats { opacity: 1; }
/* While it works, a band of light sweeps the timeline. */
.live-stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 43, 209, 0.35), rgba(59, 107, 255, 0.35), transparent); opacity: 0; }
.live.working .live-stage::after { opacity: 1; animation: sweep 1.1s ease-in-out; }
@keyframes sweep { to { left: 100%; } }

.live-changes { list-style: none; margin: 0; padding: 0 4px; min-height: 76px; display: flex; flex-direction: column; gap: 6px; color: var(--dim); }
.live-changes li { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.live-changes li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); }
.live-changes li.on { opacity: 1; transform: none; }
/* A slider the effect came with: its name, and a track whose fill moves as it is adjusted. */
.live-changes li.slider::before { display: none; }
.live-changes li.slider span { flex: none; width: 84px; padding-left: 16px; }
.live-changes li.slider i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.live-changes li.slider b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--magenta)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (max-width: 1000px) {
  .opening { grid-template-columns: minmax(0, 1fr); }
  .live { max-width: 560px; justify-self: start; }
}

/* ---- Texture -------------------------------------------------------------------------- */

/* The opening sits on a ghost of the app's timeline, not a square grid: a ruler with a tick
   every fifth of a second and a timecode every second, a faint line down from each second,
   and a playhead crossing the page. Everything is measured from the centre of the page so the
   labels and lines agree at any width. It fades out before the first section. */
.backdrop-timeline {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 100%;
  background-position: calc(50% + 60px) 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 8%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0, #000 8%, transparent 70%);
}
.ruler { position: absolute; top: 0; left: 0; right: 0; height: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) calc(50% + 12px) 0 / 24px 6px repeat-x; }
.ruler span { position: absolute; top: 10px; font-size: 11px; line-height: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.3); }
/* The playhead: a bright head on the ruler and a short, faint line below it. The line stops
   above the headline so the moving thing stays in the ruler and the demo keeps the eye. */
.playhead { position: absolute; top: 0; left: 0; width: 1px; height: 96px; background: linear-gradient(to bottom, #fff 0, var(--magenta) 30%, transparent 100%); box-shadow: 0 0 10px 1px rgba(255, 43, 209, 0.35); transform: translateX(62vw); }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 13px; height: 15px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
@media (prefers-reduced-motion: no-preference) {
  .playhead { animation: play 36s linear infinite; }
  @keyframes play { from { transform: translateX(-2vw); } to { transform: translateX(102vw); } }
}
/* Film grain over everything: it breaks up the banding in the soft glows and belongs to the
   subject. Drawn once by the browser from an SVG noise filter; nothing is downloaded. */
body::after {
  content: "";
  position: fixed;
  z-index: 10;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

/* ---- Account pages: sign-in, account, connecting a Mac ---------------------------------- */

.page { max-width: calc(720px + var(--gutter) + var(--gutter-right)); padding-top: var(--s7); padding-bottom: var(--section); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.page.wide { max-width: calc(960px + var(--gutter) + var(--gutter-right)); }
.page > section { width: 100%; display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); }
.page h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.page .lead { font-size: 20px; line-height: 30px; color: var(--dim); max-width: 620px; }
.page .lead strong { color: var(--ink); font-weight: 700; }
.page .dim { color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: var(--s1); width: 100%; max-width: 560px; }
.field { flex: 1 1 0; min-width: 0; height: 56px; background: var(--panel); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); font: inherit; font-size: 17px; padding: 0 20px; }
.field::placeholder { color: var(--mute); }
button.button { border: 0; cursor: pointer; font-family: inherit; }
/* A second-rank action: the same shape as the button, without the light. */
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--hairline); box-shadow: none; padding: 13px 22px; font-size: 16px; }
.button.quiet::before, .button.quiet::after { display: none; }
.button.quiet:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); box-shadow: none; transform: none; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--dim); text-decoration: underline; cursor: pointer; }
button.link:hover { color: var(--ink); }
.code { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; padding: var(--s3) var(--s4); border: 1px solid var(--hairline); border-radius: 16px; background: #050506; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); width: 100%; }
.panel { border: 1px solid var(--hairline); border-radius: 16px; padding: var(--s4); background: #050506; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.panel.row { flex-direction: row; align-items: center; justify-content: space-between; }
.panel h2 { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.panel p { color: var(--dim); }
.figure { font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.figure span { font-size: 0.5em; letter-spacing: -0.02em; color: var(--mute); }
.figure.small-figure { font-size: 24px; }
.meter { width: 100%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rows th { text-align: left; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--mute); padding: 0 var(--s2) var(--s1) 0; }
.rows td { padding: var(--s2) var(--s2) var(--s2) 0; border-top: 1px solid var(--rule); color: var(--dim); }
.rows td:first-child { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 820px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
  .code { font-size: 32px; }
}

/* ---- The account area: who is signed in and a way round on the left, the sections on the right. */

.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-top: var(--s6); padding-bottom: var(--section); }
.account-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--s3); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--blue)); }
.who-email { font-weight: 700; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.who-plan { font-size: 14px; line-height: 20px; color: var(--mute); }
.account-side nav { display: flex; flex-direction: column; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s1) 0; }
.account-side nav a, .signout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; font-size: 16px; line-height: 24px; color: var(--dim); text-decoration: none; }
.account-side svg { flex: none; width: 18px; height: 18px; color: var(--mute); transition: color 0.15s; }
.account-side nav a:hover svg, .signout:hover svg { color: var(--magenta); }
.signout { width: calc(100% + 24px); background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.signout:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.account-side nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.account-main { min-width: 0; display: flex; flex-direction: column; gap: var(--s7); }
.account-main > section { display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: 88px; }
.account-main h3 { margin: var(--s2) 0 0; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.015em; }
.account-main .dim { color: var(--dim); }
.section-title { margin: 0; padding-bottom: var(--s2); border-bottom: 1px solid var(--rule); font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; }
.banner { padding: var(--s2) var(--s3); border-radius: 12px; border: 1px solid rgba(255, 43, 209, 0.45); background: rgba(255, 43, 209, 0.08); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.stats .panel { padding: var(--s3); }
.plan-list { border: 1px solid var(--hairline); border-radius: 16px; background: #050506; overflow: hidden; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; align-items: center; gap: var(--s3); padding: var(--s3); border-top: 1px solid var(--rule); }
.plan-row:first-child { border-top: 0; }
.plan-row.current { background: rgba(255, 255, 255, 0.05); }
.plan-row strong { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.plan-row span { color: var(--mute); font-size: 15px; }
.plan-row p { color: var(--dim); }
.plan-action { display: flex; justify-content: flex-end; min-width: 150px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; color: #fff !important; background: linear-gradient(120deg, var(--blue), var(--magenta)); }
.soon { color: var(--mute); }
.billing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.billing-row p { color: var(--dim); max-width: 560px; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
/* The month's AI as one bar: the allowance with what is used filled, then extra usage as a
   second, hatched segment on the same scale. Amber when most is used, red when almost all is. */
.usage-panel { padding: var(--s4); gap: var(--s2); }
.usage-panel .figure span { font-size: 0.42em; }
.usage-line { color: var(--ink) !important; font-weight: 700; }
.usage-bar { display: flex; gap: 4px; width: 100%; height: 12px; }
.usage-bar .month { display: block; min-width: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.usage-bar .month i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.usage-bar .extra { display: block; min-width: 6px; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 4px, rgba(255, 255, 255, 0.16) 4px 8px); }
.usage-key { display: flex; align-items: center; gap: 10px; }
.usage-key .swatch { flex: none; width: 18px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 4px, rgba(255, 255, 255, 0.16) 4px 8px); }
.usage-note { color: var(--ink) !important; }
.usage-low .usage-bar .month i { background: #f2a93b; }
.usage-low .usage-note { color: #f2c38b !important; }
.usage-very-low .usage-bar .month i, .usage-empty .usage-bar .month i { background: #ff5a5f; }
.usage-very-low .usage-note, .usage-empty .usage-note { color: #ff8a8d !important; }
.usage-details { width: 100%; border-top: 1px solid var(--rule); padding-top: var(--s2); }
.usage-details summary { cursor: pointer; color: var(--dim); font-weight: 500; width: fit-content; }
.usage-details summary:hover, .usage-details[open] summary { color: var(--ink); }
.usage-details dl { margin: var(--s2) 0 var(--s1); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
.usage-details dt { font-size: 14px; line-height: 20px; color: var(--mute); }
.usage-details dd { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .usage-details dl { grid-template-columns: minmax(0, 1fr); } }
/* Two weeks of use, a bar a day. */
.chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 180px; padding: var(--s3) var(--s3) var(--s2); border: 1px solid var(--hairline); border-radius: 16px; background: #050506; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 36px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--blue), var(--magenta)); }
.bar span { font-size: 12px; line-height: 16px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rows td.end { text-align: right; padding-right: 0; }
/* Deleting the account: folded away until asked for, in the same hairline card as the rest. */
.danger { border: 1px solid var(--hairline); border-radius: 16px; background: #050506; }
.danger summary { list-style: none; cursor: pointer; padding: var(--s3); font-weight: 700; color: var(--dim); }
.danger summary::-webkit-details-marker { display: none; }
.danger summary:hover, .danger[open] summary { color: var(--ink); }
.danger > p { padding: 0 var(--s3); color: var(--dim); max-width: 680px; }
.danger form { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); }
.danger label strong { color: var(--ink); }
.danger-row { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: 560px; }
.danger-row .field { flex: 1 1 220px; height: 50px; }
/* A page that is not final yet (the terms, until they have been reviewed). */
.draft-note { padding: var(--s2) var(--s3); border-radius: 12px; border: 1px solid rgba(242, 195, 139, 0.5); background: rgba(242, 195, 139, 0.08); color: #f2c38b; }
.prose .draft-note { color: #f2c38b; }
@media (max-width: 900px) {
  .account { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s4); }
  .account-side { position: static; }
  .account-side nav { flex-direction: row; overflow-x: auto; gap: var(--s1); }
  .account-side nav a { margin: 0; white-space: nowrap; }
  .signout { margin: 0; width: auto; }
  .stats, .stats.two, .packs { grid-template-columns: minmax(0, 1fr); }
  .plan-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .plan-action { justify-content: flex-start; }
}

/* Connecting a Mac at the account's limit: which one it replaces. */
.replace { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.replace legend { margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; }
.choice:has(input:checked) { border-color: rgba(255,255,255,.4); }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }

/* A button whose form is on its way to the server (layouts/site.blade.php's script). */
.is-busy { cursor: progress; pointer-events: none; }
.is-busy .spinner {
  display: inline-block; width: 16px; height: 16px; margin: 0 10px -3px 0;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-busy .spinner { animation: none; border-right-color: currentColor; opacity: 0.6; } }
.is-done { pointer-events: none; }
.download-hint { margin: 0; }

/* Admin (/admin): a working page for the owner, in the site's own type and edges. Tables are
   the one place numbers line up in columns, so they use tabular figures. */
.admin { padding-top: var(--s6); padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--s4); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.admin-head .small { max-width: 640px; }
.admin-crumb { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 12px; }
.admin-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: 0; }
.admin-totals div { border: 1px solid var(--hairline); border-radius: 16px; padding: var(--s2) var(--s3); background: #050506; }
.admin-totals dt { color: var(--mute); font-size: 14px; }
.admin-totals dd { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-filters { display: flex; gap: var(--s1); flex-wrap: wrap; }
.admin-filters input, .admin-filters select { font: inherit; font-size: 15px; color: var(--ink); background: #050506; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 14px; }
.admin-filters input { flex: 1 1 260px; min-width: 0; }
.admin-filters .button.quiet { padding: 10px 18px; font-size: 15px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.admin-table th { text-align: left; font-weight: 500; color: var(--mute); padding: 12px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--dim); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table audio { width: 200px; height: 32px; }
.admin-name { color: var(--ink); font-weight: 600; }
.admin-meta { color: var(--mute); font-size: 13px; }
.admin-status { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 13px; white-space: nowrap; }
.admin-status.on { color: var(--ink); }
.admin-status.off { color: var(--mute); }
.admin-empty code, .admin-meta code { font-size: 13px; }
@media (max-width: 720px) {
  .admin-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-pages { display: flex; gap: var(--s3); align-items: center; }
