/* The pages beyond the home page that share its look: the Health Check, the
   newsletter and the page for an address that does not exist. Loaded after
   css/home.css, whose tokens, type and buttons they use. Without home.js the
   page keeps one colour, so a dark section sets its own. */

.page-hero {
    padding-block: clamp(40px, 8vh, 110px) clamp(40px, 7vh, 96px);
}

.page-hero h1 {
    font-size: clamp(2.75rem, 7.6vw, 7rem);
    max-width: 14ch;
}

.page-hero .lede {
    max-width: 62ch;
}

.page-hero .actions {
    margin-top: 30px;
}

/* --muted and --line are worked out once, on the root, so a section that
   changes its own colours has to work them out again. */
.dark {
    --bg: #14130f;
    --fg: #f3ede2;
    --muted: color-mix(in oklab, #f3ede2 76%, #14130f);
    --line: color-mix(in oklab, #f3ede2 20%, transparent);
    background: var(--bg);
    color: var(--fg);
}

.contact.page-contact {
    --bg: #ff6b2c;
    --fg: #14130f;
    --muted: color-mix(in oklab, #14130f 80%, #ff6b2c);
    --line: color-mix(in oklab, #14130f 20%, transparent);
    background: var(--bg);
    color: var(--fg);
}

.dark .btn-solid {
    color: #14130f;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.split > div {
    display: grid;
    gap: 22px;
}

.plain-list {
    display: grid;
    border-top: 2px solid var(--fg);
}

.plain-list li {
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.plain-list strong {
    display: block;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-stretch: 90%;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 6px;
}

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 36px);
    border-top: 2px solid var(--fg);
}

.steps li {
    counter-increment: step;
    padding-top: 22px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.steps li::before {
    content: "0" counter(step);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
}

.steps h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.steps p {
    color: var(--muted);
}

.sample {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.sample-copy {
    display: grid;
    gap: 22px;
}

.sample-card {
    display: grid;
    gap: 14px;
    padding: clamp(22px, 3vw, 38px);
    background: #fbf8f1;
    color: #14130f;
    border-radius: 10px;
    rotate: 1.4deg;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.18);
}

.sample-card .sample-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.sample-card dl {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 8px 16px;
    border-top: 1px dashed rgb(20 19 15 / 0.35);
    padding-top: 14px;
}

.sample-card dd {
    font-weight: 600;
    text-align: right;
}

.faq {
    max-width: 920px;
    border-top: 2px solid var(--fg);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding-block: 22px;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    font-stretch: 92%;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--accent);
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    color: var(--muted);
    padding-bottom: 24px;
    max-width: 70ch;
}

/* The newsletter form. */

.signup {
    display: grid;
    gap: 18px;
    max-width: 560px;
}

.signup label.field {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

.signup input[type="email"] {
    font: inherit;
    padding: 14px 16px;
    border: 2px solid var(--fg);
    border-radius: 10px;
    background: transparent;
    color: var(--fg);
}

.signup .choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
}

.signup .choice input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.signup .choice small {
    display: block;
    color: var(--muted);
}

.signup .fine {
    color: var(--muted);
    font-size: 0.9375rem;
}

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

.notice {
    display: none;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: color-mix(in oklab, var(--accent) 12%, transparent);
    border-radius: 6px;
}

.notice.is-shown {
    display: block;
}

/* An address that does not exist. */

.lost-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
    border-top: 2px solid var(--fg);
}

.lost-links a {
    display: grid;
    gap: 4px;
    padding: 22px 22px 22px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.lost-links a strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-stretch: 90%;
    letter-spacing: -0.02em;
}

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

.lost-links a:hover strong,
.lost-links a:focus-visible strong {
    color: var(--accent);
}

@media (max-width: 860px) {
    .split,
    .sample {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .sample-card {
        rotate: 0deg;
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The sign-up inside a card on an app page. */
.pricing-note .signup {
    margin-top: 20px;
}
