:root {
  --red: #EC3013; --red-600: #DD2B0F; --red-800: #AE1800; --red-900: #7C1405;
  --ink: #201E1D; --ink-2: #3A3634; --muted: #6B625E; --on-dark-muted: #BAB2AE;
  --ground: #FFFAF7; --blush: #FFF2EF; --sand: #F5EDE6; --white: #FFFFFF;
  --line: rgba(124, 20, 5, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-800); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; font-weight: 700; color: var(--red-600); }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.band { padding: 96px 0; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { min-width: 0; }

.wordmark { display: inline-flex; font-weight: 800; font-size: 27px; letter-spacing: -0.045em; line-height: 1; color: inherit; }
.wordmark span:last-child { border-bottom: 3px solid var(--red); padding-bottom: 3px; }
.wordmark:hover { color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); font-size: 15px; font-weight: 750; color: var(--ink); background: transparent; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.btn.primary:hover { background: var(--red-800); border-color: var(--red-800); color: var(--white); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.btn.on-dark { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn.on-dark:hover { background: var(--white); color: var(--ink); }
.btn.on-red { background: var(--white); border-color: var(--white); color: var(--red-800); }
.btn.on-red:hover { background: var(--blush); color: var(--red-900); }
.btn.on-red-ghost { border-color: var(--white); color: var(--white); }
.btn.on-red-ghost:hover { background: var(--white); color: var(--red-800); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-800); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
h2 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; font-stretch: 105%; line-height: 1.04; letter-spacing: -0.028em; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; padding-top: 12px; padding-bottom: 12px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; font-size: 15px; font-weight: 600; }
.site-header nav a { padding: 12px 14px; border-radius: 999px; }
.site-header nav a:hover { background: var(--blush); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions .signin { padding: 12px 14px; font-size: 15px; font-weight: 600; }

/* Hero */
.hero { background: var(--ground); }
.hero .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; font-stretch: 108%; line-height: 0.98; letter-spacing: -0.035em; }
.hero p { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--muted); }
.sample { flex: 1 1 440px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 1px 2px rgba(124, 20, 5, 0.06), 0 18px 40px -18px rgba(124, 20, 5, 0.28); display: flex; flex-direction: column; gap: 20px; }
.sample-top, .sample-foot, .device { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample-top strong { display: block; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.sub { font-size: 14px; color: var(--muted); }
.pill { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blush); color: var(--red-900); }
.pill.ok { background: #E3F4EA; color: #157A4A; }
.pill.wait { background: #FFF1CC; color: #6B4700; }
.chain { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 34px; }
.chain::before { content: ''; position: absolute; left: 10px; top: 30px; bottom: 30px; width: 2px; background: var(--red); border-radius: 2px; }
.device { position: relative; background: var(--ground); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.device::before { content: ''; position: absolute; left: -31px; top: 50%; margin-top: -8px; width: 12px; height: 12px; border-radius: 999px; background: var(--white); border: 2px solid var(--red); }
.device b { display: block; font-weight: 700; }
.sample-foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--muted); }
.sample-foot b { color: var(--red-800); }

/* Steps */
.white { background: var(--white); }
.step { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.step-no { display: flex; align-items: center; gap: 12px; }
.step-no span { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.step-no::after { content: ''; flex: 1; height: 2px; background: var(--red); border-radius: 2px; }
.step:last-child .step-no span { background: var(--red-600); }
.step:last-child .step-no::after { background: #FFE2D9; }
.step h3 { font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.step p, .card p { color: var(--ink-2); }
.manual { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; background: var(--blush); border-radius: 28px; padding: 28px 32px; }
.manual div { flex: 1 1 420px; min-width: 0; }
.manual h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.manual code { flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.01em; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 10px 22px; }

/* Features */
.ground { background: var(--ground); }
.card { flex: 1 1 340px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blush); color: var(--red-600); display: grid; place-items: center; }
.card h3 { font-size: 19px; font-weight: 750; line-height: 1.25; letter-spacing: -0.01em; }
.card p { font-size: 15.5px; }

/* Devices */
.sand { background: var(--sand); }
.family { flex: 1 1 250px; background: var(--white); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.family strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.family p { font-size: 15px; color: var(--ink-2); }

/* API */
.dark { background: var(--ink); color: var(--white); }
.dark .eyebrow { color: #FF9783; }
.dark .lede { color: var(--on-dark-muted); }
.api { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.api .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.code { flex: 1 1 480px; min-width: 0; background: #151312; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; overflow: hidden; }
.code-title { padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.code pre { margin: 0; padding: 22px 20px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; color: var(--sand); }

/* Pricing */
.plan { flex: 1 1 300px; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--ink); }
.plan.tint { background: var(--blush); border-color: transparent; }
.plan h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--muted); }
.plan p { color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.fine { font-size: 15px; color: var(--muted); max-width: 60em; }

/* Call to action and footer */
.cta { background: var(--red-600); color: var(--white); }
.cta .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { flex: 1 1 520px; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.site-footer { background: var(--ink); color: var(--white); }
.site-footer .cols { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px 72px; }
.site-footer .about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-footer .about p { font-size: 15px; color: var(--on-dark-muted); max-width: 26em; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer nav .label { color: var(--on-dark-muted); }
.site-footer a:hover { color: #FF9783; }
.legal { padding-top: 20px; padding-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .band { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .cta .wrap { padding-top: 64px; padding-bottom: 64px; }
  .sample, .plan { padding: 22px; border-radius: 22px; }
  .actions .signin { display: none; }
  .device { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
