* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #151515;
    --bg: #ececec;
    --card: #d9d9d9;
    --grey: #767676;
    --red: #ff3f3f;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
    background: var(--bg);
    color: var(--black);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        system-ui,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    padding: 0 24px;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 96px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

/* ---------- hero ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    animation: gz-rise 700ms var(--ease-soft) both;
}

.brand {
    font-style: italic;
    font-weight: 800;
    font-size: clamp(72px, 14vw, 128px);
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--black);
}

.tagline {
    font-weight: 600;
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--grey);
    text-wrap: balance;
}

.cta {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: 28px;
    background: var(--black);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow:
        0 1px 2px rgba(21, 21, 21, 0.06),
        0 4px 12px rgba(21, 21, 21, 0.08);
    transition:
        background 280ms var(--ease-out),
        box-shadow 280ms var(--ease-out),
        transform 200ms var(--ease-out);
}
.cta:hover {
    background: var(--red);
    transform: translateY(-1px);
    box-shadow:
        0 2px 6px rgba(255, 63, 63, 0.2),
        0 10px 24px rgba(255, 63, 63, 0.26);
}
.cta:active {
    transform: scale(0.97);
    transition-duration: 80ms;
}
.cta:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

/* ---------- preview ring ---------- */
.preview {
    display: flex;
    justify-content: center;
    animation: gz-rise 700ms var(--ease-soft) 160ms both;
}

.ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring .track,
.ring .progress {
    fill: none;
    stroke-width: 14;
}
.ring .track {
    stroke: var(--card);
}
.ring .progress {
    stroke: var(--black);
    stroke-linecap: round;
    stroke-dasharray: 540.35;
    stroke-dashoffset: 135;
}

.ring-time {
    position: absolute;
    font-style: italic;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
}

/* ---------- shared blocks ---------- */
.block {
    animation: gz-rise 700ms var(--ease-soft) both;
    animation-delay: 120ms;
}
.block:nth-of-type(2) {
    animation-delay: 200ms;
}

.heading {
    font-style: italic;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--grey);
    margin-bottom: 18px;
}

.body {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--black);
    text-wrap: pretty;
    max-width: 56ch;
}

/* ---------- steps ---------- */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.steps li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--card);
    border-radius: 18px;
    padding: 18px 22px;
}
.step-num {
    font-style: italic;
    font-weight: 800;
    font-size: 18px;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}
.step-text {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--black);
}

/* ---------- footer ---------- */
.footer {
    padding-top: 24px;
    font-style: italic;
    font-weight: 500;
    font-size: 13px;
    color: var(--grey);
    letter-spacing: -0.01em;
    animation: gz-fade 600ms var(--ease-soft) 320ms both;
}

.x {
    font-weight: 900;
    font-size: 16px;
    color: var(--grey);
    text-decoration: none;
    transition: color 200ms var(--ease-out);
}

.x:hover {
    color: var(--red);
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-sep {
    color: var(--grey);
    opacity: 0.6;
    font-weight: 700;
}

/* ---------- keyframes ---------- */
@keyframes gz-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes gz-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- legal pages (privacy, terms, etc.) ---------- */
main.legal {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    animation: gz-rise 700ms var(--ease-soft) both;
}

.back {
    align-self: flex-start;
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    color: var(--grey);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.back:hover { color: var(--black); }

.legal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-title {
    font-style: italic;
    font-weight: 800;
    font-size: clamp(56px, 11vw, 96px);
    letter-spacing: -0.04em;
    line-height: 0.92;
    color: var(--black);
}

.legal-meta {
    font-style: italic;
    font-weight: 500;
    font-size: 14px;
    color: var(--grey);
    letter-spacing: -0.01em;
}

.legal-lede {
    font-weight: 600;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--black);
    text-wrap: pretty;
    max-width: 56ch;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-heading {
    font-style: italic;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--grey);
}

.legal-section p {
    font-weight: 500;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--black);
    text-wrap: pretty;
    max-width: 60ch;
}

.legal-section code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    padding: 1px 6px;
    background: var(--card);
    border-radius: 6px;
}

.legal-list {
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 60ch;
}

.legal-list li {
    font-weight: 500;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--black);
}

.legal-table {
    border-collapse: collapse;
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
}

.legal-table th,
.legal-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--black);
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-table th {
    font-style: italic;
    font-weight: 700;
    font-size: 13px;
    color: var(--grey);
    background: rgba(0, 0, 0, 0.03);
}

.legal-table td:first-child {
    font-weight: 700;
    color: var(--black);
    width: 32%;
    white-space: nowrap;
}

.legal-footer {
    padding-top: 16px;
}

@media (max-width: 480px) {
    main.legal {
        padding: 48px 0 40px;
        gap: 28px;
    }
    .legal-table th,
    .legal-table td {
        padding: 12px 14px;
        font-size: 14px;
    }
    .legal-table td:first-child {
        white-space: normal;
        width: 35%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .preview,
    .block,
    .footer,
    main.legal {
        animation: none !important;
    }
    .cta {
        transition: none !important;
    }
}

@media (max-width: 480px) {
    main {
        padding: 64px 0 48px;
        gap: 72px;
    }
    .steps li {
        padding: 16px 18px;
        gap: 14px;
    }
}
