:root {
  --forest-950: #0f2218;
  --forest-900: #14301f;
  --forest-800: #1a3d29;
  --forest: #1f4a33;
  --forest-600: #2f6347;
  --moss: #5b7f62;
  --sage: #dce5d8;
  --sage-50: #eef2ea;
  --paper: #f6f3ec;
  --stone: #e8e2d6;
  --line: #ddd6c8;
  --clay: #b8875a;
  --clay-soft: #f1e5d6;
  --ink: #18201b;
  --muted: #586159;
  --white: #fff;

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgb(20 32 24 / .06), 0 2px 8px rgb(20 32 24 / .05);
  --shadow-lg: 0 2px 4px rgb(15 34 24 / .08), 0 24px 48px -12px rgb(15 34 24 / .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: var(--forest); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-950); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
b { font-weight: 650; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem; background: var(--forest); color: var(--white); border-radius: 8px; }
.skip:focus { top: 1rem; }
.eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); }
.eyebrow.company-name { text-transform: none; letter-spacing: .04em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(246 243 236 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgb(221 214 200 / .7); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark rect { fill: var(--forest); }
.brand-initial { fill: var(--paper); }
.brand-rule { stroke: var(--clay); stroke-width: 4; stroke-linecap: round; }
.brand-name { font: 600 1.12rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name span { display: block; margin-top: .25rem; font: 400 .8rem/1.2 var(--sans); color: var(--muted); }
.nav { display: flex; gap: .25rem; }
.nav a { padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav a:hover { background: var(--stone); }
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .nav a { padding: .5rem .6rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s, border-color .15s; }
.download .btn { transition: transform .15s; }
.btn-primary { background: var(--forest); color: var(--white); box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 6px 16px -6px rgb(31 74 51 / .55); }
.btn-primary:hover { background: var(--forest-800); color: var(--white); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-ghost { background: var(--white); color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--moss); color: var(--forest-950); }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--stone); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.btn[data-ready] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(31 74 51 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(31 74 51 / .055) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-top: 1rem; font: 500 clamp(2.6rem, 6.4vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.025em; color: var(--forest-950); }
.hero h1 em { font-style: italic; color: var(--forest-600); }
.lede { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }

.hero-visual { margin: 0; }
.hero-visual figcaption { margin-top: 1.25rem; text-align: center; font-size: .8rem; color: var(--muted); }
.phones { position: relative; width: 500px; height: 540px; margin-inline: auto; }

/* Conceptual phone screens */
.phone { position: absolute; top: 6px; width: 240px; height: 488px; padding: 9px; background: #1b221d; border-radius: 38px; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .06) inset; }
.phone-quote { left: 0; transform: rotate(-3.5deg); }
.phone-crew { right: 0; top: 44px; transform: rotate(3deg); }
.screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 30px; background: #fbfaf7; font-size: 10.5px; line-height: 1.35; color: var(--ink); }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 4px; font-weight: 600; font-size: 10px; }
.sbar-icons { display: flex; gap: 3px; }
.sbar-icons i { width: 9px; height: 7px; border-radius: 2px; background: var(--ink); opacity: .75; }
.sbar-icons i:last-child { width: 14px; }
.abar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; }
.abar b { font: 600 15px/1.2 var(--sans); flex: 1; }
.abar-back { width: 8px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: 2px; }
.pill { padding: 3px 8px; border-radius: 999px; background: var(--forest); color: var(--white); font-size: 9px; font-weight: 600; }
.pill-soft { background: var(--sage); color: var(--forest-800); }
.ui-body { flex: 1; padding: 0 12px; display: grid; align-content: start; gap: 7px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 6px 14px; border-top: 1px solid #ece7dd; background: var(--white); }
.tabs span { display: grid; justify-items: center; gap: 4px; font-size: 8.5px; font-weight: 600; color: var(--muted); }
.tabs span::before { content: ""; width: 34px; height: 16px; border-radius: 999px; background: linear-gradient(var(--muted), var(--muted)) center / 10px 10px no-repeat; opacity: .5; }
.tabs .on { color: var(--forest-800); }
.tabs .on::before { background-color: var(--sage); background-image: linear-gradient(var(--forest), var(--forest)); opacity: 1; }
.ui-label { margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.field { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; background: var(--white); border: 1px solid #e6e1d6; border-radius: 9px; }
.field span { color: var(--muted); }
.field b, .foam-total b { font-size: 12px; font-variant-numeric: tabular-nums; }
.field small { font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 9.5px; font-weight: 600; }
.chip.on { background: var(--sage-50); border-color: var(--moss); color: var(--forest-800); }
.foam { padding: 8px 10px; border-radius: 9px; background: var(--clay-soft); }
.foam-row { display: flex; justify-content: space-between; color: #6b5640; }
.foam-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.price { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; padding: 11px 10px; border-radius: 10px; background: var(--forest); color: var(--white); }
.price span:first-child { font-weight: 600; }
.price-mask { display: flex; gap: 3px; }
.price-mask i { width: 14px; height: 9px; border-radius: 3px; background: rgb(255 255 255 / .35); }
.price-mask i:first-child { width: 8px; }
.ui-btn { margin-top: 2px; padding: 9px; border-radius: 999px; border: 1px solid var(--forest); color: var(--forest); text-align: center; font-weight: 600; }

.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 12px 9px; }
.days span { padding: 6px 0; border-radius: 8px; text-align: center; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid #ece7dd; }
.days .on { background: var(--forest); color: var(--white); border-color: var(--forest); }
.job { padding: 10px; border-radius: 11px; background: var(--white); border: 1px solid #e6e1d6; box-shadow: var(--shadow-sm); }
.job b { font-size: 12.5px; }
.job-sub { display: block; color: var(--muted); font-size: 9.5px; }
.mats { list-style: none; margin: 7px 0 0; padding: 7px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 3px; }
.mats li { display: flex; justify-content: space-between; }
.mats li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.checks li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--white); border: 1px solid #ece7dd; font-weight: 500; }
.checks i { flex: none; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--moss); }
.checks .done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(88 97 89 / .5); }
.checks .done i { background: var(--forest-600); border-color: var(--forest-600); box-shadow: inset 0 0 0 2.5px var(--forest-600), inset 0 0 0 4px var(--white); }
.ask { display: grid; gap: 4px; }
.ask-q { justify-self: end; max-width: 85%; padding: 7px 10px; border-radius: 12px 12px 3px 12px; background: var(--sage); color: var(--forest-900); }
.ask-a { justify-self: start; padding: 4px 9px; border-radius: 999px; background: var(--clay-soft); color: #6b5640; font-size: 9px; font-weight: 600; }

/* Sections */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: .6rem; font: 500 clamp(2rem, 4vw, 2.85rem)/1.08 var(--serif); letter-spacing: -.02em; color: var(--forest-950); }
.section-head > p:not(.eyebrow) { margin-top: .9rem; font-size: 1.08rem; color: var(--muted); }

.apps { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--white); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.card-top { display: flex; align-items: center; gap: 1rem; }
.app-icon { flex: none; width: 56px; height: 56px; }
.app-icon rect { fill: var(--forest); }
.ic-line { fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic-accent { stroke: var(--clay); }
.card-tag { font-size: .76rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.card h3 { font: 500 clamp(1.7rem, 3vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.015em; color: var(--forest-950); }
.card-lede { margin-top: 1.1rem; font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.features { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.features li { position: relative; padding-left: 1.75rem; color: #3c463f; }
.features li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%231f4a33' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.card-for { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.card-for b { color: var(--ink); margin-right: .25rem; }

.download { margin-top: auto; padding-top: 1.6rem; }
.download-note { margin-top: .7rem; font-size: .9rem; color: var(--muted); }
.download-note:empty { display: none; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.specs > div { padding: .7rem .9rem; }
.specs > div + div { border-left: 1px solid var(--line); }
.specs dt { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: .15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.download[data-state="preparing"] [data-spec], .download:not([data-state="ready"]) .verify { display: none; }
.download[data-state="preparing"] .specs { grid-template-columns: 1fr; }
.download[data-state="preparing"] .btn { border: 1px dashed #c9c0ae; background: transparent; }

.verify { margin-top: .9rem; border-radius: 14px; }
.verify summary { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; font-size: .92rem; font-weight: 600; color: var(--forest); cursor: pointer; list-style: none; }
.verify summary::-webkit-details-marker, .tip-verify summary::-webkit-details-marker { display: none; }
.verify summary::before, .tip-verify summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.verify[open] summary::before, .tip-verify[open] summary::before { transform: rotate(45deg); }
.hash { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: start; margin-top: .6rem; padding: .85rem .95rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.hash-label { grid-column: 1 / -1; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hash code { font: 500 .8rem/1.55 var(--mono); color: var(--ink); word-break: break-all; }
.copy { align-self: center; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--forest); font: 600 .8rem/1 var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--moss); }
.copy[data-copied] { background: var(--sage); border-color: var(--sage); }

.noscript { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--clay-soft); }
.play-note { display: flex; gap: .9rem; align-items: flex-start; margin-top: clamp(1.5rem, 3vw, 2rem); padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--sage-50); border: 1px solid var(--sage); color: #34403a; }
.play-note svg { flex: none; width: 22px; height: 22px; margin-top: .1rem; fill: none; stroke: var(--forest-600); stroke-width: 1.8; stroke-linecap: round; }
.play-note b { color: var(--forest-900); }

/* Install */
.install { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.desktop-hint { margin-top: 1.1rem !important; padding: .8rem 1rem; border-radius: 12px; background: var(--clay-soft); color: #5b4733 !important; font-size: .98rem !important; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.4rem 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: 1rem; border-radius: 50%; background: var(--forest); color: var(--white); font: 600 1rem/1 var(--serif); }
.steps h3 { font: 600 1.05rem/1.3 var(--sans); color: var(--forest-950); }
.steps p { margin-top: .5rem; font-size: .93rem; color: var(--muted); }
.steps b { color: var(--ink); }

.tips { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1rem; margin-top: 1rem; align-items: start; }
.tip { padding: 1.3rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; }
.tip h3 { font: 600 1rem/1.3 var(--sans); color: var(--forest-950); }
.tip p { margin-top: .45rem; font-size: .93rem; color: var(--muted); }
.tip b { color: var(--ink); }
.tip-verify summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none; color: var(--forest); }
.tip-verify summary h3 { display: inline; }
.tip-verify pre { margin: .6rem 0 0; padding: .75rem .9rem; overflow-x: auto; border-radius: 10px; background: var(--forest-950); color: #e4ece2; font: .8rem/1.5 var(--mono); }
.tip-verify p + p { margin-top: .9rem; }

/* Footer */
.site-footer { padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); background: var(--forest-950); color: #c5d1c6; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-row p { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.footer-row p b { color: var(--white); font-family: var(--serif); font-weight: 600; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: #e4ece2; }
.site-footer a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tips { grid-template-columns: 1fr 1fr; }
  .tip-verify { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 2rem, 1160px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .hero-meta .dot { display: none; }
  .steps { grid-template-columns: 1fr; gap: .75rem; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.15rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps p { margin-top: .3rem; }
  .tips { grid-template-columns: 1fr; }
  .specs dt { font-size: .68rem; }
  .specs > div { padding: .65rem .7rem; }
}
/* The phone stage keeps its proportions and scales as a whole. */
@media (min-width: 1041px) and (max-width: 1180px) { .phones { zoom: .86; } }
@media (min-width: 901px) and (max-width: 1040px) { .phones { zoom: .72; } }
@media (max-width: 560px) { .phones { zoom: .68; } }
@media (max-width: 374px) { .phones { zoom: .6; } }

/* Privacy page */
.doc { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.doc-inner { max-width: 46rem; }
.doc h1 { margin-top: .8rem; font: 500 clamp(2.4rem, 5.5vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.025em; color: var(--forest-950); }
.doc .lede { max-width: none; }
.doc-updated { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.summary { margin-top: 2.25rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.summary h2 { font: 600 1rem/1.3 var(--sans); color: var(--forest-950); }
.summary ul { margin: .7rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: #3c463f; }
.doc section { margin-top: 2.75rem; }
.doc section h2 { font: 500 1.65rem/1.2 var(--serif); letter-spacing: -.01em; color: var(--forest-950); }
.doc section p, .doc section ul { margin-top: .8rem; color: #3c463f; }
.doc section ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.doc section h3 { margin-top: 1.4rem; font: 600 1.02rem/1.35 var(--sans); color: var(--ink); }
.doc-back { display: inline-flex; margin-top: 3rem; }
