/* SmashClub standalone pages: newsletter, product tour, book a demo, 404, privacy and terms.
   Loads after home.css and uses its variables, nav, buttons and footer.
   Plain layout: one typeface, one accent colour, flat surfaces, thin lines. */

/* Shared */

/* A button that points at the page you are on: outlined, not filled */
.nav .btn[aria-current="page"] { background: #fff; color: var(--ink); border-color: var(--line); }
.nav .btn[aria-current="page"]:hover { background: #fff; border-color: var(--ink); }

.pg-eyebrow, .nl-eyebrow, .legal-eyebrow, .tour-eyebrow, .bd-eyebrow, .error__eyebrow {
    display: block;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--muted);
}


/* ---------- Newsletter: archive and issue pages ---------- */

.nl-narrow { max-width: 808px; margin: 0 auto; padding: 0 24px; }

.nl-hero { background: var(--tint); padding: 56px 0 64px; text-align: center; }
.nl-hero h1 {
    font-size: clamp(34px, 4.8vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.nl-eyebrow a { text-decoration: none; }
.nl-eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nl-lead { max-width: 640px; margin: 20px auto 0; font-size: 20px; line-height: 1.55; }
.nl-meta { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Subscribe box */

.nl-sub { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nl-sub .nl-eyebrow { margin-bottom: 10px; font-size: 15px; }
.nl-sub h2 { font-size: 26px; line-height: 1.2; }
.nl-sub h2 + p { max-width: 580px; margin-top: 10px; font-size: 17px; }
.nl-sub .nl-form { max-width: 520px; margin-top: 22px; }
.nl-form button {
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
}
.nl-form button:hover { background: #000; }
.nl-fine { margin-top: 6px; font-size: 14px; color: var(--muted); }
.nl-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nl-fine a:hover { color: var(--ink); }

/* Past issues: plain rows */

.nl-archive { padding: 64px 0 88px; }
.nl-archive__title { font-size: 28px; line-height: 1.2; }
.nl-list { margin-top: 24px; border-top: 1px solid var(--ink); }
.nl-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}
.nl-item__date { padding-top: 2px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nl-item__tag { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.nl-item__title { font-size: 21px; line-height: 1.25; }
.nl-item:hover .nl-item__title {
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.nl-item__summary { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.nl-item__arrow { padding-top: 2px; font-size: 18px; line-height: 1.4; color: var(--muted); }
.nl-item:hover .nl-item__arrow { color: var(--ink); }

/* Issue page: the frame around the email. The email markup itself keeps its own inline styles;
   the rules scoped to .nl-email only restore the browser-reset it was built against. */

.nl-email-wrap { margin-top: 48px; }
.nl-email {
    padding: 6px 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: #111;
    font-size: 17px;
    line-height: 1.75;
}
.nl-email :where(*) { margin: 0; padding: 0; }
.nl-email :where(a) { text-decoration: none; }
.nl-email table, .nl-email td { border-collapse: collapse; }
.nl-email img { max-width: 100%; height: auto; border: 0; line-height: 100%; outline: none; text-decoration: none; }
.nl-email p { display: block; margin: 13px 0; }
.nl-caption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }

.nl-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.nl-pager a { max-width: 48%; font-weight: 600; color: var(--ink); text-decoration: none; }
.nl-pager__next { margin-left: auto; text-align: right; }
.nl-pager a:hover { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nl-pager small { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.nl-section { padding: 0 0 88px; }


/* ---------- Product tour ---------- */

.tour-intro { background: var(--tint); padding: 56px 0 64px; text-align: center; }
.tour-intro h1 {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(36px, 5.2vw, 54px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}
.tour-intro h1 em { font-style: normal; color: var(--accent); }
.tour-lede { max-width: 640px; margin: 24px auto 0; font-size: 20px; line-height: 1.55; text-wrap: pretty; }

.tour-stage { padding-top: 40px; padding-bottom: 88px; }

/* video/tour.css still carries the old tour header's spacing for the language switcher */
@media (min-width: 901px) {
    .tour-page .nav .lang-switch { margin: 0; }
}
.tour-page .nav .lang-switch summary { padding: 7px 11px; }

/* Chapters: a ruled list */
.tour-jump { margin: 56px 0 16px; font-size: 24px; line-height: 1.2; }
.tour-page .tour-chapters {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0 32px;
    border-bottom: 1px solid var(--line);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}
.tour-page .tour-chapters a {
    padding: 14px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    color: var(--ink);
}
.tour-page .tour-chapters a:hover,
.tour-page .tour-chapters a:focus-visible {
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.tour-page .tour-chapters a.is-active { background: none; border-top-color: var(--ink); }
.tour-page .tour-chapters time { font-family: inherit; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-page .tour-chapters a.is-active time { color: var(--accent); }

/* Closing call to action */
.tour-cta__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 48px; }
.tour-cta h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.tour-cta p { max-width: 520px; margin-top: 10px; font-size: 18px; }
.tour-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-cta .btn { gap: 8px; }
.tour-cta .btn-plain { padding: 15px 22px; font-size: 17px; }


/* ---------- Book a demo ---------- */

.bd-main { padding: 48px 0 96px; background: var(--tint); }
.bd-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: start; }

.bd-title { font-size: clamp(36px, 4.8vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.bd-lead { max-width: 520px; margin-top: 22px; font-size: 20px; line-height: 1.55; }

/* Steps: a ruled list with plain numerals */
.bd-steps { max-width: 560px; margin-top: 40px; border-top: 1px solid rgba(22, 25, 29, 0.14); }
.bd-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(22, 25, 29, 0.14); }
.bd-step__num { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--accent); font-variant-numeric: tabular-nums; }
.bd-step__title { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.bd-step__desc { margin-top: 6px; font-size: 16px; line-height: 1.55; }

.bd-contact { margin-top: 36px; }
.bd-contact__label { font-size: 17px; font-weight: 600; color: var(--ink); }
.bd-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bd-meta { margin-top: 28px; font-size: 15px; color: var(--muted); }
.bd-meta strong { font-weight: 600; color: var(--ink); }

/* Form card */
.bd-card {
    position: sticky;
    top: 92px;
    padding: 32px;
    border: 1px solid #DAD6D0;
    border-radius: 10px;
    background: #fff;
}
.bd-card__title { font-size: 26px; line-height: 1.2; }
.bd-card__sub { margin: 8px 0 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.bd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bd-field label { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.bd-field label .opt { margin-left: 2px; font-weight: 400; color: var(--muted); }
.bd-input, .bd-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #CFCBC5;
    border-radius: 6px;
    background-color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
}
.bd-select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%236E747B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: var(--muted);
}
.bd-select:has(option:checked:not([value=""])), .bd-select.has-value { color: var(--ink); }
.bd-input::placeholder { color: #A3A7AC; }
.bd-input:focus, .bd-select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.bd-field.is-invalid .bd-input, .bd-field.is-invalid .bd-select { border-color: #B91C1C; }
.bd-field.is-invalid label { color: #B91C1C; }
.bd-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.bd-submit:hover { background: #000; }
.bd-submit[disabled] { opacity: 0.6; cursor: wait; }
.bd-privacy { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.bd-privacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bd-privacy a:hover { color: var(--ink); }

/* After sending: pick a time */
.bd-success { display: none; text-align: center; }
.bd-success .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #15803D;
}
.bd-success h3 { font-size: 22px; line-height: 1.25; }
.bd-success h3 + p { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.bd-card.is-sent { position: static; }
.bd-card.is-sent .bd-form { display: none; }
.bd-card.is-sent .bd-success { display: block; }
.bd-calendly { width: 100%; height: 720px; margin: 20px 0 8px; border-radius: 8px; overflow: hidden; }
.bd-calendly iframe { border-radius: 8px; }
.bd-success .bd-lang-note { margin: 8px 0 0; }
html[lang="en"] .bd-lang-note { display: none; } /* shown on /es/ and /de/ only */


/* ---------- 404 ---------- */

.error-page { display: flex; flex-direction: column; min-height: 100vh; }
main.error { flex: 1; display: flex; align-items: center; justify-content: center; padding: 72px 24px 96px; background: var(--tint); }
.error__inner { max-width: 560px; text-align: center; }
.error__code { font-size: clamp(88px, 14vw, 136px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.error__code span { color: var(--accent); }
.error__title { margin-top: 16px; font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.error__lede { max-width: 440px; margin: 14px auto 0; font-size: 18px; }
.error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.error__actions .btn-plain { padding: 15px 22px; font-size: 17px; }


/* ---------- Privacy and terms ---------- */

.legal-header { background: var(--tint); padding: 48px 0 52px; }
.legal-header h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.legal-header .last-updated { margin-top: 18px; font-size: 15px; color: var(--muted); }

.legal-content { max-width: 728px; padding: 48px 0 88px; font-size: 17px; line-height: 1.65; }
.legal-content > * + * { margin-top: 18px; }
.legal-content > h2 { margin-top: 44px; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.legal-content > h2 + * { margin-top: 12px; }
.legal-content p { text-wrap: pretty; }
.legal-content ul { padding-left: 1.25em; }
.legal-content li + li { margin-top: 8px; }
.legal-content li::marker { color: var(--muted); }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.legal-content a:hover { text-decoration-color: var(--ink); }


/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
    .nl-hero, .tour-intro { padding: 40px 0 48px; }
    .nl-lead, .tour-lede, .bd-lead { font-size: 18px; }
    .nl-sub { margin-top: 40px; }
    .nl-archive { padding: 48px 0 56px; }
    .nl-email-wrap { margin-top: 32px; }
    .nl-section { padding-bottom: 56px; }

    .tour-stage { padding-top: 28px; padding-bottom: 56px; }
    .tour-jump { margin-top: 40px; }

    .bd-main { padding: 32px 0 64px; }
    .bd-grid { grid-template-columns: 1fr; gap: 40px; }
    .bd-card { position: static; }
    .bd-steps { margin-top: 32px; }

    main.error { padding: 48px 24px 64px; }

    .legal-header { padding: 36px 0 40px; }
    .legal-content { padding: 36px 0 56px; }
}

@media (max-width: 700px) {
    .nl-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
    .nl-item__arrow { display: none; }
}

@media (max-width: 560px) {
    .nl-narrow { padding: 0 20px; }
    .nl-hero h1 { font-size: 32px; }
    .nl-sub { padding: 24px 20px; }
    .nl-sub h2 { font-size: 23px; }
    .nl-pager { flex-direction: column; gap: 18px; }
    .nl-pager a { max-width: none; }
    .nl-pager__next { margin-left: 0; text-align: left; }

    .tour-intro h1 { font-size: 34px; }
    .tour-cta__actions, .tour-cta__actions .btn { width: 100%; }

    .bd-title { font-size: 34px; }
    .bd-card { padding: 24px 20px; }

    main.error { padding-left: 20px; padding-right: 20px; }
}
