:root {
    --ink: #1c1915;
    --muted: #5c564c;
    --paper: #f6f3ec;
    --card: #fffdf8;
    --line: #e2dcd0;
    --accent: #1f4d3a;
    --accent-ink: #f4f7f4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
}

a {
    color: inherit;
}

.top,
.hero,
.return,
.diagram,
.split,
.agency,
.close,
.foot {
    width: min(1040px, calc(100% - 2.5rem));
    margin-left: auto;
    margin-right: auto;
}

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

.brand {
    font-weight: 650;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-nav a {
    text-decoration: none;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    border-radius: 999px;
}

.button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero {
    padding: 3.5rem 0 2rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.lede {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.actions {
    margin: 1.75rem 0 0;
}

.return,
.diagram,
.split,
.agency,
.close {
    padding: 2.5rem 0;
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.points article,
.split article,
.agency,
.close {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem 1.35rem 1.4rem;
}

.points h3 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}

.points p,
.split p,
.agency p,
.flow-text {
    margin: 0;
    color: var(--muted);
}

.flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow li {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 220px;
    padding: 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.flow li.flow-mid {
    background: var(--accent);
    color: var(--accent-ink);
}

.flow-mid .flow-text {
    color: #d5e4db;
}

.flow-label {
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tangle,
.clear-row {
    position: relative;
    display: block;
    height: 92px;
}

.tangle i,
.clear-row i,
.lane {
    display: block;
    height: 14px;
    border-radius: 7px;
    background: #c8b79a;
}

.tangle i:nth-child(1) { width: 78%; transform: rotate(-8deg); margin-top: 8px; }
.tangle i:nth-child(2) { width: 54%; transform: rotate(7deg); margin-left: 28%; }
.tangle i:nth-child(3) { width: 66%; transform: rotate(-3deg); }
.tangle i:nth-child(4) { width: 40%; transform: rotate(11deg); margin-left: 18%; }

.lane {
    width: 100%;
    margin-top: 34px;
    background: #d7efe3;
}

.clear-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.clear-row i {
    width: 100%;
    transform: none;
    margin: 0;
    background: var(--accent);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.agency,
.close {
    text-align: left;
}

.close {
    text-align: center;
}

.close h2 {
    margin-bottom: 1.25rem;
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    color: var(--muted);
}

.foot nav {
    display: flex;
    gap: 1rem;
}

.signup {
    width: min(440px, calc(100% - 2.5rem));
    margin: 1rem auto 4rem;
}

.signup h1 {
    max-width: none;
}

.field {
    margin: 0 0 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 650;
}

.field input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
}

.address-line {
    margin: 0;
    color: var(--muted);
}

.domain-hint,
.field-hint,
.reassure {
    color: var(--muted);
    font-size: 0.95rem;
}

.domain-hint {
    margin: 0.35rem 0 1rem;
}

.field-hint {
    margin: 0.35rem 0 0;
}

.reassure {
    margin: 0.85rem 0 0;
    text-align: center;
}

.signup .actions .button {
    display: block;
    width: 100%;
    text-align: center;
}

.field input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-error {
    margin: 0 0 1rem;
    color: #8a2e24;
}

button.button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
}

.hp {
    position: absolute;
    left: -9999px;
}

@media (max-width: 800px) {
    .points,
    .flow,
    .split {
        grid-template-columns: 1fr;
    }

    .top {
        align-items: flex-start;
    }

    h1 {
        max-width: none;
    }
}
