@font-face {
    font-family: "Schibsted Grotesk";
    src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono.woff2") format("woff2");
    font-weight: 400 600;
    font-display: swap;
}

:root {
    --paper: #eef1f4;
    --ink: #14202b;
    --card: #ffffff;
    --pen: #1f4fd1;
    --pen-dark: #173da6;
    --severity: #b42318;
    --muted: #5b6b7a;
    --line: #d5dce3;
    --code: #f4f6f8;
    --sans: "Schibsted Grotesk", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
pre,
blockquote {
    margin: 0;
}

a {
    color: var(--pen);
}

:focus-visible {
    outline: 3px solid var(--pen);
    outline-offset: 2px;
    border-radius: 4px;
}

code {
    font-family: var(--mono);
    font-size: 0.86em;
}

.wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
}

.wordmark {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.top-link {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}

.top-link:hover {
    color: var(--pen);
}

/* ── hero: headline left, the sample ticket is the centrepiece ─────────── */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
    padding-block: 3.5rem 6rem;
}

.hero-copy {
    position: sticky;
    top: 3rem;
}

h1 {
    font-size: clamp(2.75rem, 6.2vw, 5.25rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.lede {
    margin-top: 1.75rem;
    max-width: 34rem;
    font-size: 1.1875rem;
    color: #2a3a48;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 2.25rem;
}

.hero-note {
    color: var(--muted);
    font-size: 0.9375rem;
}

.button {
    display: inline-block;
    padding: 0.875rem 1.375rem;
    border: 0;
    border-radius: 8px;
    background: var(--pen);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--pen-dark);
}

/* The ticket: a stub header torn off along a perforated line. */
.ticket {
    --notch: 11px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(20, 32, 43, 0.4);
    font-size: 0.96875rem;
}

.ticket-head {
    position: relative;
    padding: 1.5rem 1.75rem 1.375rem;
    border-bottom: 2px dashed var(--line);
}

.ticket-head::before,
.ticket-head::after {
    content: "";
    position: absolute;
    bottom: calc(var(--notch) * -1 - 1px);
    width: calc(var(--notch) * 2);
    height: calc(var(--notch) * 2);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
}

.ticket-head::before {
    left: calc(var(--notch) * -1);
    clip-path: inset(0 0 0 50%);
}

.ticket-head::after {
    right: calc(var(--notch) * -1);
    clip-path: inset(0 50% 0 0);
}

.ticket-ref {
    font-weight: 700;
    color: var(--muted);
    font-size: 0.875rem;
}

.ticket-ref span {
    font-weight: 400;
    margin-left: 0.375rem;
}

.ticket h2 {
    margin-top: 0.375rem;
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.severity,
.tag {
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.severity {
    background: var(--severity);
    color: #fff;
}

.tag {
    box-shadow: inset 0 0 0 1px var(--line);
    color: #2a3a48;
}

.ticket-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.ticket-body h3 {
    margin-top: 1.375rem;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.ticket-body h3:first-child {
    margin-top: 0;
}

.ticket-body ol {
    padding-left: 1.25rem;
}

.ticket pre {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: var(--code);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.ticket pre code {
    font-size: inherit;
}

.prompt {
    color: var(--muted);
    user-select: none;
}

.ai-prompt {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--pen);
    background: #f1f4fd;
    border-radius: 0 8px 8px 0;
    color: #22324a;
}

.ticket-foot {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

/* ── how it works: a real sequence, so numbered ─────────────────────────── */

.steps,
.safety {
    padding-block: 4.5rem;
    border-top: 1px solid var(--line);
}

.steps > h2,
.safety > h2,
.pricing h2 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
}

.step-list li::before {
    content: counter(step);
    display: block;
    margin-bottom: 0.75rem;
    color: var(--pen);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
}

.step-list h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.375rem;
}

.step-list p,
.safety dd {
    color: #2a3a48;
    max-width: 36ch;
}

/* ── safety ─────────────────────────────────────────────────────────────── */

.safety {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
}

.safety dt:not(:first-child) {
    margin-top: 1.75rem;
}

.safety dt {
    font-weight: 700;
    font-size: 1.1875rem;
}

.safety dd {
    margin-top: 0.25rem;
    max-width: 52ch;
}

/* ── pricing ────────────────────────────────────────────────────────────── */

.pricing {
    background: var(--card);
    border-block: 1px solid var(--line);
}

.pricing-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    padding-block: 4.5rem;
}

.price {
    margin-top: 1.75rem;
    font-size: 1.25rem;
    color: var(--muted);
}

.price strong {
    color: var(--ink);
    font-size: 4.5rem;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-right: 0.25rem;
}

.includes {
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.includes li {
    position: relative;
    padding: 0.625rem 0 0.625rem 1.75rem;
    border-bottom: 1px solid var(--line);
}

.includes li::before {
    content: "";
    position: absolute;
    left: 0.125rem;
    top: 1.1rem;
    width: 0.75rem;
    height: 0.4rem;
    border-left: 2px solid var(--pen);
    border-bottom: 2px solid var(--pen);
    transform: rotate(-45deg);
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.bottom {
    padding-block: 2.5rem 3rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ── fake-door dialog (CSS :target, no JavaScript) ─────────────────────── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    place-items: center;
    padding: 1rem;
}

.modal:target {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 43, 0.55);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 30rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem;
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 30px 80px -20px rgba(20, 32, 43, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
    .modal:target .modal-panel {
        animation: rise 180ms ease-out;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
    }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
}

.modal h2 {
    padding-right: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.modal-panel > p {
    margin-top: 0.75rem;
    color: #2a3a48;
}

.modal-panel > .button {
    margin-top: 1.5rem;
}

.modal form {
    margin-top: 1.5rem;
}

.modal label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.modal input[type="email"] {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #b9c4cf;
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
}

.modal input[aria-invalid="true"] {
    border-color: var(--severity);
}

.modal form .button {
    width: 100%;
    margin-top: 1rem;
}

.field-error {
    margin-top: 0.375rem;
    color: var(--severity);
    font-size: 0.9375rem;
}

.fineprint {
    margin-top: 0.875rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── small screens ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .wrap {
        padding-inline: 1rem;
    }

    .hero,
    .safety,
    .pricing-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .hero {
        padding-block: 1.5rem 4rem;
    }

    .hero-copy {
        position: static;
    }

    .step-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .ticket-head,
    .ticket-body,
    .ticket-foot {
        padding-inline: 1.25rem;
    }
}

/* ── standalone notice pages (waitlist confirm / unsubscribe) ───────────── */

.notice {
    padding-block: 4rem 6rem;
}

.notice > * {
    max-width: 40rem;
}

.notice h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.notice p {
    margin-top: 1.25rem;
    font-size: 1.1875rem;
    color: #2a3a48;
}

.notice form {
    margin-top: 2rem;
}

.bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.75rem;
}

.bottom-links a {
    color: var(--muted);
}

/* ── long-form text (privacy) ───────────────────────────────────────────── */

.prose {
    padding-block: 3rem 5rem;
}

.prose > * {
    max-width: 44rem;
}

.prose h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.prose-lede {
    margin-top: 1.25rem;
    font-size: 1.1875rem;
}

.prose h2 {
    margin-top: 2.75rem;
    font-size: 1.375rem;
    letter-spacing: -0.015em;
}

.prose p {
    margin-top: 0.875rem;
    color: #2a3a48;
}

/* ── advisories ─────────────────────────────────────────────────────────── */

.advisory-list {
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
}

.advisory-list li {
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
}

.advisory-list a {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.advisory-list time,
.advisory-date {
    color: var(--muted);
    font-size: 0.9375rem;
}

.advisory-list p {
    margin-top: 0.375rem;
}

.prose .advisory-date {
    margin-top: 0.75rem;
}

.prose > pre,
.ticket-block pre {
    margin-top: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line);
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.prose pre code {
    font-size: inherit;
}

.ticket-block {
    position: relative;
}

.ticket-block pre {
    padding-top: 2.75rem;
}

.ticket-copy {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    padding: 0.375rem 0.875rem;
    border: 0;
    border-radius: 6px;
    background: var(--pen);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.ticket-copy:hover {
    background: var(--pen-dark);
}
