* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: absolute; top: 12px; left: 12px; transform: translateY(-150%); z-index: 1; padding: 10px; background: #fff; }
.skip-link:focus { transform: none; }

.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header, .site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    min-height: 76px;
}
.brand img { object-fit: contain; object-position: left center; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.site-header a, .site-footer a { text-decoration: none; }
.nav-story:hover, .site-footer a:hover { color: var(--blue); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.button span { font-size: 17px; line-height: 1; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #2049d9; }
.secondary { background: #fff; border-color: var(--line); }
.secondary:hover { background: var(--blue-tint); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: center;
    gap: 32px 64px;
    padding-block: clamp(44px, 7vw, 96px);
}
.eyebrow, .kicker { font-size: 14px; font-weight: 750; letter-spacing: .01em; color: var(--blue); }
.eyebrow { margin-bottom: 18px; }
.hero h1 {
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.02;
    text-wrap: balance;
}
.hero h1 span { display: block; color: var(--blue); }
.lead { margin: 22px 0 28px; max-width: 46ch; color: #44444e; font-size: 19px; line-height: 1.55; }

.hero-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 35px -28px #181a33a0;
}
.say { padding: 14px 16px; border-radius: 12px; }
.say small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 750; color: #565662; }
.say p { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.say.agent { margin-right: 36px; background: #f4f2ee; }
.say.docsurf { margin-left: 36px; background: #fff5db; border: 1px solid #f0d48a; }
.say.docsurf small { color: #784900; }
.say ul { display: grid; gap: 4px; margin-top: 10px; padding: 0; list-style: none; font-size: 14px; color: #5c4310; }
.say li { display: flex; justify-content: space-between; gap: 12px; }

.story {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 28px 72px;
    padding-block: clamp(36px, 5.5vw, 68px);
    border-top: 1px solid var(--line);
}
.story.flip .story-copy { order: 2; }
.kicker { margin-bottom: 12px; }
.story h2, .trust h2, .closing h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 820;
    text-wrap: balance;
}
.story-copy > p:last-child, .trust p, .closing p {
    margin-top: 16px;
    max-width: 44ch;
    color: #51515c;
    font-size: 17px;
    line-height: 1.6;
}

.frame {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 35px -30px #181a3380;
}
.frame-title { margin-bottom: 14px; font-size: 12px; font-weight: 750; color: #565662; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fdfcf9;
}
.tile b { font-size: 14px; font-weight: 750; }
.tile span { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.tile em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #5b5b66; }
.tile.ok { background: #f1f9f4; border-color: #cfe8d9; }
.tile.ok em { color: #196340; }
.tile.bad { background: #fff5db; border-color: #f0d48a; }
.tile.bad em { color: #784900; }

.scan { display: grid; gap: 8px; padding: 0; list-style: none; }
.scan li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fdfcf9;
    font-size: 14px;
}
.scan b { font-weight: 750; }
.scan .clear { color: #196340; font-weight: 700; }
.scan .flag { background: #fff5db; border-color: #f0d48a; }
.scan .flag span { color: #784900; font-weight: 700; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; }
.sheet { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcf9; font-size: 14px; line-height: 1.5; }
.sheet small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; color: #565662; }
.sheet p + p { margin-top: 6px; }
.src { padding: 1px 4px; border-radius: 4px; background: var(--blue-tint); color: #234acb; font-weight: 700; }
.link { height: 2px; background: var(--blue); }
.cells { display: grid; border: 1px solid #c9c9d1; font-size: 13px; }
.cells span + span { border-top: 1px solid #c9c9d1; }
.cells span { padding: 7px 8px; }
.cells .hit { background: #fff1d4; outline: 2px solid #e09b1a; outline-offset: -2px; font-weight: 750; white-space: nowrap; }
.note { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #784900; }

.change {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
}
.change b { font-weight: 750; }
.change del { color: #a3352b; text-decoration-thickness: 2px; }
.change ins { color: #196340; font-weight: 750; text-decoration: none; background: #e2f4e9; padding: 1px 5px; border-radius: 4px; }
.decide { display: flex; align-items: center; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fake-button { padding: 9px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 750; }
.fake-link { font-size: 14px; font-weight: 700; color: #51515c; }

.kinds { padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--line); }
.kinds-heading { max-width: 46em; margin-bottom: 28px; }
.kinds h2 {
    font-size: clamp(26px, 3.1vw, 40px);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 820;
    text-wrap: balance;
}
.kinds ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.kinds li {
    position: relative;
    padding: 20px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #51515c;
}
.kinds li b { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.kinds .tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--blue-tint);
    color: #234acb;
    font-size: 12px;
    font-weight: 750;
}

.trust {
    padding-block: clamp(40px, 6vw, 76px);
    border-top: 1px solid var(--line);
    text-align: center;
}
.trust h2 { max-width: 18em; margin-inline: auto; }
.trust p { max-width: 56ch; margin-inline: auto; }
.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
    text-align: left;
}
.facts li { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.5; color: #51515c; }
.facts b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }

.closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 44px;
    background: var(--blue-tint);
    border: 1px solid #d9e1fd;
    border-radius: 16px;
}
.closing h2 { font-size: clamp(26px, 3.2vw, 38px); }
.closing p { margin-top: 8px; max-width: none; font-size: 15px; }
.closing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; font-size: 13px; color: #51515c; }
.site-footer a:last-child { font-weight: 750; }

@media (max-width: 900px) {
    .wrap { width: calc(100% - 48px); }
    .hero, .story { grid-template-columns: minmax(0, 1fr); }
    .story.flip .story-copy { order: 0; }
    .hero-card { max-width: 460px; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .kinds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 32px); }
    .site-header { min-height: 64px; }
    .site-header .brand img { width: 98px; }
    .nav-story { display: none; }
    .lead { font-size: 17px; }
    .frame, .hero-card { padding: 14px; }
    .say.agent { margin-right: 16px; }
    .say.docsurf { margin-left: 16px; }
    .pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .link { width: 2px; height: 18px; margin-left: 24px; }
    .kinds ul { grid-template-columns: minmax(0, 1fr); }
    .closing { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
    .site-footer { flex-wrap: wrap; gap: 10px; padding-block: 16px; }
    .site-footer > span { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
}
.kinds li { display: flex; flex-direction: column; align-items: flex-start; }
.kinds .tag { order: 2; margin: 12px 0 0; }

/* Change-order story */
.say li b { font-weight: 700; }
.request { padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.5; color: #2b2b33; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fdfcf9; font-size: 13px; font-weight: 700; color: #5b5b66; }
.chip.ok { background: #f1f9f4; border-color: #cfe8d9; color: #196340; }
.frame-note { margin-top: 14px; font-size: 13.5px; color: #51515c; }
.frame-note b { color: var(--ink); }
.decide + .frame-note { padding-top: 14px; border-top: 1px solid var(--line); }

.story.stack { grid-template-columns: minmax(0, 1fr); }
.story.stack .story-copy { max-width: 46em; }
.map-frame { padding: 22px 22px 18px; }
.map-summary { margin-bottom: 16px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 820; letter-spacing: -.035em; color: #784900; }
.map-scroll { overflow-x: auto; }
.map { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
.map thead th { padding: 0 2px 6px; font-size: 12px; font-weight: 750; line-height: 1.25; color: #565662; vertical-align: bottom; }
.map thead th:first-child, .map tbody th { width: 236px; text-align: left; }
.map tbody th { padding: 6px 10px 6px 0; font-size: 14px; font-weight: 750; line-height: 1.3; }
.map tbody th small { display: block; font-size: 12px; font-weight: 700; color: #75757f; }
.map td { height: 40px; border-radius: 8px; background: #f6f4ef; text-align: center; font-size: 15px; font-weight: 800; }
.map td.src, .legend .src { background: #e2f4e9; color: #196340; }
.map td.stale, .legend .stale { background: #ffe9b8; color: #784900; }
.map td.calc, .legend .calc { background: #dfe6fd; color: #234acb; }
.map td.ask, .legend .ask { background: #fff; color: #784900; box-shadow: inset 0 0 0 1.5px #e09b1a; }
.map td.ask { box-shadow: none; outline: 1.5px dashed #e09b1a; outline-offset: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; padding: 0; list-style: none; font-size: 13px; color: #51515c; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.sheet .hit { padding: 1px 4px; border-radius: 4px; background: #ffe9b8; color: #784900; font-weight: 750; }
@media (max-width: 600px) {
    .map-frame { padding: 14px; }
}

.say-more { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0d48a; font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: 0 !important; color: #5c4310; }
.map-summary small { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0; color: #4b3aa8; }
.map td.read, .legend .read { background: #efeaff; color: #4b3aa8; }
.map td { white-space: nowrap; }

/* Early access */
.closing { margin-bottom: 20px; }
.access {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 24px 56px;
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    scroll-margin-top: 24px;
}
.access h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; letter-spacing: -.045em; font-weight: 820; }
.access > div > p { margin-top: 8px; color: #51515c; font-size: 15px; line-height: 1.6; }
.access label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; color: #44444e; }
.access-control { display: flex; gap: 8px; }
.access input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #c9c9d1;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.access input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.access input[aria-invalid="true"] { border-color: #c0392b; }
.access button { cursor: pointer; }
.access button:disabled { opacity: .6; cursor: default; }
.access [data-waitlist-message] { margin-top: 10px; min-height: 1.5em; font-size: 13.5px; color: #75757f; }
.access form[data-state="error"] [data-waitlist-message] { color: #a3352b; }
.access form[data-state="success"] [data-waitlist-message] { color: #196340; font-weight: 700; }
@media (max-width: 900px) { .access { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .access-control { flex-direction: column; } .access { margin-bottom: 28px; } }
