/* Studio (experiment control): Apple product page. Centred thesis, one live device, then quiet rows.
   Scoped to html.v-studio so it can share a document with less.css. Also used by privacy.html and support.html. */
.v-studio {
  --bg: #fbfbfd; --surface: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e3e3e8;
  --accent: #E83A88; --ok: #30b05a; --short: #f08a24; --zero: #e5483d;
  --device: #1d1d1f; --screen: #f2f2f7; --card: #ffffff;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;

  @media (prefers-color-scheme: dark) {
    --bg: #000; --surface: #111113; --fg: #f5f5f7; --muted: #a1a1a6; --line: #2a2a2e;
    --accent: #FF5FA8; --device: #2c2c2e; --screen: #000; --card: #1c1c1e;
    color-scheme: dark;
  }

  & *, & *::before, & *::after { box-sizing: border-box }
  & body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased }
  .wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px }
  & h1, & h2, & h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.025em }
  & p { margin: 0 }
  & a { color: var(--accent) }
  & a:focus-visible, & button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px }

  & nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line) }
  & nav .wrap { display: flex; align-items: center; gap: 20px; height: 52px; font-size: 13px }
  .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-right: auto; color: var(--fg); text-decoration: none }
  .links { display: flex; gap: 20px }
  .links a { color: var(--muted); text-decoration: none }
  .links a:hover { color: var(--fg) }
  .icon { width: 28px; height: 28px; border-radius: 7px; flex: none }
  .pill { display: inline-flex; align-items: center; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500; border-radius: 999px; padding: 6px 14px; font-size: 13px }

  .hero { text-align: center; padding-block: 72px 32px }
  .eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 12px }
  .hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1; font-weight: 700 }
  .hero .sub { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 30ch; margin: 20px auto 0; line-height: 1.35 }
  .ctas { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px }
  .store { display: inline-flex; align-items: center; gap: 10px; background: var(--fg); color: var(--bg); border-radius: 12px; padding: 10px 20px 10px 16px; text-decoration: none; line-height: 1.1; text-align: left }
  .store svg { width: 22px; height: 22px; fill: currentColor }
  .store small { display: block; font-size: 11px; opacity: .8 }
  .store b { font-size: 19px; font-weight: 600; letter-spacing: -.01em }
  .textlink { font-size: 17px; text-decoration: none }
  .textlink:hover { text-decoration: underline }

  .stage { display: flex; justify-content: center; padding-block: 24px 8px }
  .phone { width: min(330px, 100%); aspect-ratio: 330/680; background: var(--device); border-radius: 54px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35) }
  .screen { position: relative; height: 100%; background: var(--screen); border-radius: 43px; overflow: hidden; display: flex; flex-direction: column; padding: 56px 14px 14px; gap: 10px; font-size: 13px }
  .island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 28px; background: #000; border-radius: 20px }
  .bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 0 4px }
  .bar .finish { color: var(--accent); font-weight: 500 }
  .focus { background: var(--card); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px }
  .focus .name { font-size: 17px; font-weight: 600 }
  .weight { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums }
  .weight small { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: 0 }
  .plates { display: flex; align-items: center; justify-content: center; gap: 2px; height: 46px }
  .plates i { display: block; border-radius: 3px }
  .plates .shaft { height: 6px; width: 70px; background: #b8b8bf; border-radius: 3px }
  .sets { display: flex; justify-content: space-between; gap: 6px }
  .set { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: transparent; font: 600 17px/1 var(--text); color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; transition: transform .15s, background .2s, border-color .2s }
  .set.next { border-color: var(--accent); color: var(--accent); border-width: 3px }
  .set.ok { background: var(--ok); border-color: var(--ok); color: #fff }
  .set.short { background: var(--short); border-color: var(--short); color: #fff }
  .set.zero { background: var(--zero); border-color: var(--zero); color: #fff }
  .set:active { transform: scale(.92) }
  .row { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center }
  .row span { color: var(--muted); font-variant-numeric: tabular-nums }
  .rest { margin-top: auto; background: var(--accent); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; border: 0; font-family: var(--text); font-size: 13px }
  .rest b { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums }
  .hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px }

  & section { padding-block: 88px }
  .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
  .big { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 700; margin-top: 10px }
  .lede { color: var(--muted); font-size: 21px; max-width: 44ch; margin-top: 16px; line-height: 1.4 }
  .gestures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 48px }
  .g { background: var(--surface); padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
  .g svg { width: 36px; height: 36px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
  .g h3 { font-size: 19px; letter-spacing: -.01em }
  .g p { color: var(--muted); font-size: 15px }
  .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center }
  .watch { justify-self: center; width: 200px; aspect-ratio: 200/240; background: var(--device); border-radius: 52px; padding: 12px; position: relative }
  .watch::after { content: ""; position: absolute; right: -9px; top: 62px; width: 10px; height: 40px; border-radius: 4px; background: var(--device) }
  .wscreen { height: 100%; background: #000; border-radius: 42px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px }
  .ring { width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--accent) 0 68%, #2a2a2e 0); display: grid; place-items: center }
  .ring div { width: 94px; height: 94px; border-radius: 50%; background: #000; display: grid; place-items: center; font-family: var(--mono); font-size: 24px }
  .hr { color: #ff453a; font-weight: 600 }
  .ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px }
  .ticks li { display: flex; gap: 12px; font-size: 17px }
  .ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px }

  .left { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px }
  .left div { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0 }
  .left s { color: var(--muted); text-decoration-thickness: 1px }
  .left p { color: var(--muted); font-size: 15px; margin-top: 4px }

  .specs { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 15px }
  .specs th { text-align: left; font-weight: 600; padding: 14px 16px 14px 0; width: 34%; vertical-align: top }
  .specs td { padding: 14px 0; color: var(--muted) }
  .specs tr { border-top: 1px solid var(--line) }
  .tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px }

  .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px }
  .plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-width: 0 }
  .plan.pro { border-color: var(--accent) }
  .plan h3 { font-size: 24px }
  .plan .price { color: var(--muted); font-size: 15px; margin-top: 6px }
  .plan .ticks { margin-top: 20px }
  #pricing .ctas { justify-content: flex-start }

  & details { border-top: 1px solid var(--line); padding-block: 18px }
  & details:last-child { border-bottom: 1px solid var(--line) }
  & summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px }
  & summary::-webkit-details-marker { display: none }
  & summary::after { content: "+"; color: var(--muted); font-weight: 400 }
  & details[open] summary::after { content: "−" }
  & details p { color: var(--muted); margin-top: 10px; max-width: 65ch }

  .legal { background: var(--surface); border-top: 1px solid var(--line) }
  .legal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px }
  .legal h3 { font-size: 21px; margin-bottom: 12px }
  .legal p, .legal li { color: var(--muted); font-size: 15px; max-width: 60ch }
  .legal ul { padding-left: 18px; margin: 8px 0; display: grid; gap: 6px }
  .legal p + p { margin-top: 10px }
  .copy { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-family: var(--mono); font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--fg); cursor: pointer }
  & footer { font-size: 12px; color: var(--muted); padding-block: 28px; border-top: 1px solid var(--line) }
  & footer .wrap { display: flex; gap: 20px; flex-wrap: wrap }
  & footer a { color: var(--muted) }

  /* privacy.html and support.html */
  .doc { padding-block: 64px 96px; max-width: 720px }
  .doc h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; font-weight: 700; margin-top: 10px }
  .doc .updated { color: var(--muted); margin-top: 12px }
  .doc h2 { font-size: 24px; margin-top: 44px }
  .doc p, .doc li { color: var(--muted); margin-top: 12px }
  .doc ul { padding-left: 20px }
  .doc b { color: var(--fg); font-weight: 600 }

  @media (max-width: 820px) {
    .gestures { grid-template-columns: 1fr 1fr }
    .split, .legal .cols { grid-template-columns: 1fr }
    .left { grid-template-columns: 1fr }
    .plans { grid-template-columns: 1fr }
    .links { display: none }
    & section { padding-block: 64px }
  }
  @media (max-width: 420px) {
    .gestures { grid-template-columns: 1fr }
  }
}
