/* SpaceCut web: tokens from Design spec v1.4 */
:root {
  color-scheme: light dark;
  --paper: #F4F2EE;
  --surface: #FFFFFF;
  --ink: #16161A;
  --text-2: #57565C;
  --text-3: #6B6A70;
  --line: #E4E0D8;
  --track: #ECE9E3;
  --brick: #C93A1C;
  --brick-hover: #A92F16;
  --brick-tint: #FBE4DE;
  --on-brick: #FFFFFF;
  --green: #177245;
  --green-tint: #E1EFE6;
  --photos: #E7A08F;
  --shots: #7A5CC4;
  --live: #D9B44A;
  --other: #B9B6AF;
  --device: #16161A;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0E10;
    --surface: #1C1C20;
    --ink: #F2F1EE;
    --text-2: #A3A2A8;
    --text-3: #9A999F;
    --line: #333338;
    --track: #2A2A2F;
    --brick: #FF6A45;
    --brick-hover: #FF8566;
    --brick-tint: #3A1E17;
    --on-brick: #16161A;
    --green: #4CC38A;
    --green-tint: #15291F;
    --device: #000000;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--rounded); letter-spacing: -0.3px; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 36px; height: 36px; border-radius: 10px; background: #16161A; color: #FFFFFF; display: grid; place-items: center; flex-shrink: 0; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--text-2); text-decoration: none; border-radius: 22px; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; min-height: calc(100svh - 72px); padding-top: 24px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--text-2); }
h1, h2, h3 { font-family: var(--rounded); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.lede { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; text-wrap: pretty; }

.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 28px; background: var(--brick); color: var(--on-brick); font-size: 17px; font-weight: 600; text-decoration: none; transition: background-color .15s ease; }
.btn:hover { background: var(--brick-hover); color: var(--on-brick); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 0; padding: 0 24px; border-radius: 28px; background: var(--brick-tint); color: var(--brick); font-size: 17px; font-weight: 700; }
.soon small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.text-link { font-size: 16px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--green); flex-shrink: 0; }

/* Phone mockup (Home, v1.4) */
.device { justify-self: center; width: min(100%, 340px); aspect-ratio: 390 / 800; border-radius: 52px; background: var(--device); padding: 12px; box-shadow: 0 40px 80px -30px rgba(22, 22, 26, .45), 0 0 0 1px rgba(22, 22, 26, .08); }
.screen { height: 100%; border-radius: 41px; background: #F4F2EE; color: #16161A; overflow: hidden; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.35; }
.s-title { display: flex; align-items: center; justify-content: space-between; }
.s-title b { font: 800 26px/1 var(--rounded); letter-spacing: -0.4px; }
.s-pill { padding: 3px 9px; border-radius: 10px; background: #E1EFE6; color: #177245; font-size: 11px; font-weight: 600; }
.s-card { background: #FFFFFF; border-radius: 18px; padding: 13px 14px; box-shadow: 0 1px 0 #E4E0D8; display: flex; flex-direction: column; gap: 8px; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.s-row strong { font-size: 13px; }
.s-warn { color: #C93A1C; font-size: 11px; font-weight: 600; }
.s-bar { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; background: #ECE9E3; }
.s-bar span:nth-child(1) { width: 42%; background: #C93A1C; }
.s-bar span:nth-child(2) { width: 22%; background: #E7A08F; }
.s-bar span:nth-child(3) { width: 8%; background: #7A5CC4; }
.s-bar span:nth-child(4) { width: 22%; background: #B9B6AF; }
.s-legend { display: flex; gap: 10px; font-size: 10px; color: #57565C; }
.s-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 4px; }
.s-legend i.v { background: #C93A1C; } .s-legend i.p { background: #E7A08F; } .s-legend i.s { background: #7A5CC4; } .s-legend i.o { background: #B9B6AF; }
.s-action { flex-direction: row; align-items: center; gap: 12px; }
.s-icon { width: 40px; height: 40px; border-radius: 12px; background: #C93A1C; color: #FFFFFF; display: grid; place-items: center; flex-shrink: 0; }
.s-action div b { display: block; font-size: 15px; }
.s-action div span { color: #57565C; font-size: 12px; }
.s-h { font-weight: 700; font-size: 15px; margin-top: 4px; }
.s-wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-win { background: #FFFFFF; border-radius: 16px; padding: 10px; box-shadow: 0 1px 0 #E4E0D8; }
.s-win b { display: block; font: 800 17px/1.1 var(--rounded); margin: 6px 0 2px; }
.s-win span { font-size: 10px; color: #57565C; }
.s-cta { margin-top: auto; height: 44px; border-radius: 22px; background: #C93A1C; color: #FFFFFF; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.s-foot { text-align: center; font-size: 11px; color: #6B6A70; }

/* Sections */
section { scroll-margin-top: 16px; }
.section { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 4vw, 44px); }
.section-lede { margin: 12px 0 0; color: var(--text-2); max-width: 40em; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brick-tint); color: var(--brick); font: 800 17px/1 var(--rounded); margin-bottom: 16px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }

/* FAQ */
.faq { margin-top: 32px; max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 19px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--brick); }
.faq .a { padding: 0 0 22px; color: var(--text-2); max-width: 44em; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a strong { color: var(--ink); }

/* Legal pages */
.doc { padding: 24px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.meta { margin: 12px 0 0; color: var(--text-3); font-size: 15px; }
.summary { margin: 32px 0 8px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.doc .summary h2 { font-size: 20px; margin: 0 0 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 4px 0; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc p strong, .doc li strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.note { margin-top: 40px; font-size: 15px; color: var(--text-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; display: flex; align-items: center; min-height: 44px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; gap: 48px; }
  .device { width: min(100%, 300px); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-nav a.hide-sm { display: none; }
  .cta-row .btn, .cta-row .soon { width: 100%; justify-content: center; }
}
