:root {
  --bg: #1c1c1c;
  --surface: #262626;
  --raised: #2f2f2f;
  --line: #3a3a3a;
  --text: #f2f2f2;
  --soft: #c8c8c8;
  --muted: #9a9a9a;
  --radius: 16px;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { position: relative; margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 14px clamp(20px, 5vw, 56px); background: rgba(28, 28, 28, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav nav a { color: var(--soft); text-decoration: none; transition: color .15s; }
.nav nav a:hover { color: #fff; }

.button { display: inline-block; padding: 14px 28px; border: 0; border-radius: 12px; background: #f2f2f2; color: #161616; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { background: #fff; transform: translateY(-1px); }
.button.small { padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #4a4a4a; }
.button.ghost:hover { background: rgba(255, 255, 255, .06); }

.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 11vw, 124px) 24px 0; }
#wave { position: absolute; left: 0; top: 0; width: 100%; height: 560px; pointer-events: none; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.hero > *:not(canvas) { position: relative; }
.kicker { margin: 0 0 18px; color: var(--muted); font-size: clamp(14px, 1.7vw, 17px); font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.display { margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; font-size: clamp(46px, 8.4vw, 96px); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; }
.lead { max-width: 640px; margin: 26px auto 0; color: var(--soft); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.meta { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

.window { margin: 0; background: #2b2b2b; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .5); }
.hero-shot { max-width: 980px; margin: clamp(48px, 7vw, 76px) auto 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: clamp(240px, 42vw, 500px); }

.section { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) 24px 0; }
.section.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 5vw, 52px); }

.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 76px); align-items: center; margin-top: clamp(48px, 7vw, 84px); }
.row.flip > div { order: 2; }
.row h3 { font-size: clamp(25px, 3vw, 32px); }
.row p { color: var(--soft); margin: 16px 0 0; }
.row .more a, .grid a { color: var(--text); text-underline-offset: 3px; }

.grid { list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid li { background: var(--bg); padding: 28px; }
.tile { font-size: 19px; letter-spacing: -.01em; }
.grid p, .steps p { color: var(--muted); margin: 10px 0 0; font-size: 16px; line-height: 1.5; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps span { display: block; margin-bottom: 18px; color: var(--muted); font-size: 40px; font-weight: 300; line-height: 1; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 34px; background: var(--surface); border-radius: var(--radius); }
.plan h3 { font-size: 21px; }
.amount { margin: 14px 0 0; font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.plan .amount + p { color: var(--soft); margin: 14px 0 26px; flex: 1; }
.plan.soon .amount { color: var(--muted); }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary { padding: 20px 34px 20px 0; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--muted); font-size: 24px; font-weight: 300; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--soft); }

.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-bottom: 96px; }
.cta img { border-radius: 18px; }
.cta .meta { margin: -8px 0 0; }
.hash { margin: 0; max-width: 100%; color: var(--muted); font-size: 13px; }
.hash span { display: block; margin-bottom: 4px; }
.hash code { font-family: Consolas, Menlo, monospace; word-break: break-all; }

.footer { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 30px clamp(20px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .07); color: var(--muted); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer span { margin-right: auto; }

.promo-video { margin-top: 40px; line-height: 0; aspect-ratio: 16 / 9; }
.promo-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #1c1c1c; }

/* Landing pages */
.crumbs { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.lead-left { color: var(--soft) !important; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; margin: 18px 0 26px !important; }
.landing-shot { margin: 34px 0 8px; }
.document a:not(.button) { color: var(--text); text-underline-offset: 3px; }
.document details:first-of-type { margin-top: 12px; }
.document .button { color: #161616; }
.document .meta { margin: 0 0 8px; }
.document .hash { word-break: break-all; }
.document code { font-family: Consolas, Menlo, monospace; font-size: .92em; }
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; }
.plain-list { color: var(--soft); padding-left: 22px; }
.plain-list li { margin-bottom: 8px; }

/* Documents and the cabinet */
.plain { min-height: 100vh; display: flex; flex-direction: column; }
.plain main { flex: 1; }
.document { max-width: 740px; margin: 0 auto; padding: 64px 24px 96px; }
.document h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; line-height: 1.15; }
.document h2 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -.01em; line-height: 1.25; }
.document p { color: var(--soft); margin: 0 0 12px; }
.document .revision { color: var(--muted); margin-bottom: 30px; }

.panel-page { display: grid; place-items: start center; padding: clamp(40px, 8vw, 88px) 20px 80px; }
.card { width: min(560px, 100%); padding: clamp(26px, 5vw, 40px); background: var(--surface); border-radius: var(--radius); }
.card[hidden] { display: none; }
.card h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 12px; line-height: 1.15; }
.card p { color: var(--soft); margin: 0 0 18px; }
.card .muted, .muted { color: var(--muted); }
form[hidden] { display: none; }
label { display: block; margin: 10px 0 6px; color: var(--soft); font-size: 15px; }
input { width: 100%; padding: 13px 14px; margin-bottom: 14px; background: var(--bg); color: var(--text); border: 1px solid #484848; border-radius: 10px; font: inherit; }
input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.inline { display: flex; gap: 10px; }
.inline input { margin: 0; }
.inline .button { white-space: nowrap; }
.form-error { color: #ff9c8f !important; margin: 12px 0 0 !important; min-height: 1px; }
.table-title { font-size: 19px; margin: 34px 0 12px; letter-spacing: -.01em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 500; }
.linkish { margin-top: 24px; padding: 0; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

.phone-menu { display: none; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 10px; padding: 10px 16px; }
  .nav nav { display: none; }
  .nav .button { margin-left: auto; padding: 9px 14px; }
  .phone-menu { display: block; position: static; }
  .phone-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 0 9px; border-radius: 10px; background: var(--surface); list-style: none; cursor: pointer; }
  .phone-menu summary::-webkit-details-marker { display: none; }
  .phone-menu summary::after { content: none; }
  .phone-menu summary span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
  .phone-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
  .phone-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .phone-menu { border: 0; margin: 0 !important; }
  .phone-menu > div { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 6px 16px 14px; background: rgba(28, 28, 28, .98); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .phone-menu > div a { padding: 13px 4px; color: var(--text); font-size: 17px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .phone-menu > div a:last-child { border-bottom: 0; }

  .hero { padding: 44px 18px 0; }
  #wave { height: 420px; }
  .kicker { margin-bottom: 12px; }
  .display { font-size: clamp(40px, 12.4vw, 76px); }
  .lead { margin-top: 18px; font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .actions .button { text-align: center; }
  .hero-shot { margin-top: 36px; height: auto; border-radius: 12px; }
  .section { padding: 64px 18px 0; }
  h2 { font-size: clamp(28px, 8vw, 42px); line-height: 1.15; }
  .promo-video { margin-top: 26px; border-radius: 12px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .row.flip > div { order: 0; }
  .row h3 { font-size: 24px; line-height: 1.2; }
  .window { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 40px rgba(0, 0, 0, .45); }
  .grid { grid-template-columns: 1fr; margin-top: 40px; }
  .grid li { padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .steps span { margin-bottom: 8px; font-size: 32px; }
  .plans { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .plan { padding: 24px; }
  .plan .button { align-self: stretch; text-align: center; }
  summary { padding: 16px 34px 16px 0; }
  .cta { padding-bottom: 64px; }
  .cta .button { align-self: stretch; text-align: center; }
  .footer { padding: 24px 18px; gap: 4px 18px; }
  .footer span { flex-basis: 100%; margin: 0 0 8px; }
  .footer a { padding: 7px 0; }
  .document { padding: 32px 18px 64px; }
  .document > p > .button { display: block; text-align: center; }
  .landing-shot { margin: 24px 0 4px; }
  .panel-page { padding: 24px 14px 56px; }
  .card { padding: 22px; }
  .inline { flex-direction: column; }
  .inline .button { text-align: center; }
  input { font-size: 16px; } /* smaller text makes iOS zoom the page on focus */
  table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, summary::after { transition: none; }
}
