/* Stagetake site. Plain CSS, no build step. Weights stay at 400 and 500. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --ink: #17191c;
  --ink-2: #4c5157;
  --ink-3: #686d73;
  --line: #e3e2dc;
  --accent: #1b5e57;
  --accent-wash: #e9f0ec;
  --warn-wash: #fbf3dc;
  --warn-line: #e6d59c;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-quick: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--duration-quick) ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 24px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; padding-block: 80px 88px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; hyphens: manual; }
.lede { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: 1.16rem; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.btn { transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease, transform 160ms var(--ease-out); }
.btn:hover { background: var(--accent); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn-soon, .btn-soon:hover { background: var(--ink); cursor: default; }
.btn-soon:active { transform: none; }
.cta small { color: var(--ink-3); font-size: 14px; }

/* App icon */
.mark-icon { width: 28px; height: 28px; border-radius: 7px; }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; }

/* Example takes: a segmented control like the one in the app */
.takes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; padding: 3px; border-radius: 11px; background: #efeee8; --i: 0; }
.takes[hidden] { display: none; }
.takes::before { content: ""; position: absolute; inset: 3px auto 3px 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgb(23 25 28 / 0.08), 0 0 0 0.5px rgb(23 25 28 / 0.06); transform: translateX(calc(var(--i) * 100%)); transition: transform var(--duration-base) var(--ease-out); }
.takes button { position: relative; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; transition: color var(--duration-quick) ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.takes button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.takes button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .takes button:hover { color: var(--ink); } }

/* Score card */
.card-fig { margin: 0; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head > span { color: var(--ink-3); font-size: 14px; }
.score { color: var(--accent); font-size: 3.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card dl { margin: 18px 0 0; }
.card dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-top: 1px solid var(--line); font-size: 15px; }
.card dt { color: var(--ink-2); }
.card dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.fix { margin-top: 14px; padding: 13px 15px; border-radius: 10px; background: var(--accent-wash); font-size: 15px; line-height: 1.45; }
.fix b { display: block; margin-bottom: 2px; color: var(--accent); font-weight: 500; }
.card { overflow: hidden; }
.digit { display: inline-block; }
.digit.pop { animation: digit-in 300ms var(--ease-out) calc(var(--i) * 40ms) both; }
.swap { animation: text-in var(--duration-base) var(--ease-out) both; }
.card dl .enter { animation: row-in 300ms var(--ease-out) calc(var(--i) * 30ms) both; }
/* First view only: the card builds once, top to bottom. */
.card-fig .card > * { animation: row-in var(--duration-slow) var(--ease-out) both; }
.card-fig .card > dl { animation-delay: 80ms; }
.card-fig .card > .fix { animation-delay: 160ms; }
@keyframes digit-in { from { opacity: 0; transform: translateY(0.3em); filter: blur(4px); } }
@keyframes text-in { from { opacity: 0; filter: blur(2px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.card-fig figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }

/* Sections */
.sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 40px; padding-block: 56px; border-top: 1px solid var(--line); }
.sec > h2 { font-size: 1.28rem; line-height: 1.3; letter-spacing: -0.01em; }
.sec-body { max-width: 720px; }
.sec-body > p { color: var(--ink-2); }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td { color: var(--ink-2); }
th { color: var(--ink); font-weight: 500; }
thead th { color: var(--ink-3); font-size: 14px; font-weight: 400; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { white-space: normal; width: 34%; }
.table-scroll { overflow-x: auto; }
.table-gap { margin-top: 20px; }
.compare { min-width: 480px; }

.list li { padding-block: 9px; border-top: 1px solid var(--line); color: var(--ink-2); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list b { color: var(--ink); font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan { padding: 18px 20px; border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; }
.plan h3 { color: var(--ink-2); font-size: 15px; font-weight: 400; }
.plan .price { display: block; margin-top: 4px; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 14px; line-height: 1.4; }

.faq h3 { margin-top: 26px; font-size: 1.05rem; line-height: 1.4; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3, .faq summary h3:first-child { margin: 0; transition: color var(--duration-quick) ease; }
.faq summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform var(--duration-base) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover h3 { color: var(--accent); } }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out), content-visibility var(--duration-base) allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq details p { margin: 0; padding-bottom: 16px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin-top: 6px; margin-bottom: 0; color: var(--ink-2); }

/* Document pages */
.doc { width: min(720px, 100%); margin-inline: auto; padding: 64px 24px 72px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.025em; }
.doc .lede { font-size: 1.12rem; }
.doc h2 { margin: 44px 0 10px; font-size: 1.28rem; line-height: 1.3; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { margin-bottom: 1em; padding-left: 1.2em; list-style: disc; }
.doc li { margin-bottom: 0.4em; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc .faq { margin-top: 4px; }
.doc .cta { margin-top: 28px; }
.note { margin-top: 12px; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.draft { margin-bottom: 32px; padding: 13px 16px; border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-wash); color: var(--ink); font-size: 15px; line-height: 1.5; }
.todo { padding: 0 3px; border-radius: 3px; background: var(--warn-wash); color: var(--ink); }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }
.foot-in { display: grid; gap: 10px; padding-block: 32px 40px; }
.foot p { margin: 0; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot [aria-current] { color: var(--ink); }
.foot .row a, .foot .row span { margin-right: 16px; display: inline-block; }

/* Reduced motion: keep the fades, drop movement and blur. */
@media (prefers-reduced-motion: reduce) {
  .digit.pop, .swap, .card dl .enter, .card-fig .card > * { animation-name: fade-in; animation-delay: 0ms; }
  .takes::before, .faq summary::after, .btn, .takes button { transition-property: opacity, color, background-color; }
  .btn:active, .takes button:active { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 52px 60px; }
  .sec { grid-template-columns: minmax(0, 1fr); padding-block: 44px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .doc { padding: 44px 16px 56px; }
  .top nav { gap: 2px 16px; font-size: 14.5px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  tbody th { width: 40%; }
}
