/* Hoststand product page.
   Paper-and-ink look taken from the reservation book it replaces:
   warm paper, black ink, one brick-red accent, ruled lines, no gradients. */

:root {
    --paper: #f5f0e6;
    --paper-2: #ece4d3;
    --card: #fffdf8;
    --ink: #1f1c17;
    --ink-2: #463f35;
    --muted: #756c5f;
    --rule: #d6ccb8;
    --accent: #9b3a1e;
    --accent-dark: #7c2d16;
    --ok: #2f6b3a;

    --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --header-h: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

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

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

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

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

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.2vw, 4.6rem);
    line-height: 1.04;
    max-width: 15ch;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

p {
    margin: 0 0 16px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 800px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 14px 22px;
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn:disabled {
    opacity: .6;
    cursor: progress;
}

.btn-small {
    padding: 9px 16px;
    font-size: .94rem;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.header.scrolled {
    border-bottom-color: var(--rule);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.wordmark:hover {
    color: var(--ink);
}

.wordmark-small {
    font-size: 1.05rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a:not(.btn) {
    color: var(--ink-2);
    text-decoration: none;
    font-size: .96rem;
}

.nav a:not(.btn):hover {
    color: var(--ink);
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    padding: 0 11px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease;
}

.nav-toggle.open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 96px;
}

.kicker {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1.08rem;
    margin-bottom: 20px;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-top: 32px;
}

.lead {
    font-size: 1.22rem;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: 38em;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.hero-call {
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
}

.hero-call a {
    color: var(--ink);
    font-weight: 500;
}

/* ---------- Screenshots ---------- */

.shot {
    margin: 0;
}

.shot a {
    display: block;
    cursor: zoom-in;
}

.shot img {
    border: 1px solid var(--ink);
    border-radius: 6px;
    box-shadow: 0 30px 50px -30px rgba(31, 28, 23, .55);
    background: #11141a;
}

.shot figcaption {
    font-family: var(--serif);
    font-style: italic;
    font-size: .98rem;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 14px;
    max-width: 72ch;
}

.shot-wide {
    margin: 64px auto 0;
}

.phone {
    margin: 0;
    justify-self: center;
}

.phone img {
    width: 300px;
    border: 10px solid var(--ink);
    border-radius: 38px;
    box-shadow: 0 30px 50px -28px rgba(31, 28, 23, .6);
    background: #fff;
}

/* ---------- Sections ---------- */

.section {
    padding: 96px 0;
    border-top: 1px solid var(--rule);
}

.section-intro {
    font-size: 1.12rem;
    color: var(--ink-2);
    max-width: 40em;
    margin-bottom: 40px;
}

.note {
    color: var(--muted);
    font-size: .98rem;
    border-left: 2px solid var(--accent);
    padding-left: 14px;
    margin-top: 24px;
}

.split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 64px;
    align-items: center;
}

.split-inner.reverse {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.split-text p {
    color: var(--ink-2);
}

/* A Friday night: ruled like a page from the book, with a red margin line. */

.friday {
    background: var(--card);
}

.log {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.log li {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    border-bottom: 1px solid var(--rule);
}

.log time {
    font-family: var(--mono);
    font-size: .92rem;
    font-weight: 500;
    color: var(--accent);
    padding: 22px 16px 22px 0;
    border-right: 2px solid rgba(155, 58, 30, .45);
}

.log li>div {
    padding: 20px 0 16px 24px;
}

.log p {
    color: var(--ink-2);
    margin-bottom: 4px;
}

/* AI booking: a phone call beside what Hoststand does for each line. */

.ai-head {
    margin: 0;
    padding: 0;
}

.ai-sub {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.45rem;
    margin: 8px 0 18px;
}

.convo {
    background: var(--card);
    border: 1px solid var(--ink);
    border-radius: 6px;
    overflow: hidden;
}

.convo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    border-bottom: 1px solid var(--rule);
}

.convo-row:last-child {
    border-bottom: 0;
}

.convo-row>* {
    padding: 20px 24px;
}

.convo-labels {
    background: var(--paper-2);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.convo-labels>span {
    padding-top: 12px;
    padding-bottom: 12px;
}

.said {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.5;
}

.said p {
    margin: 0 0 8px;
}

.said b {
    display: block;
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.did {
    border-left: 1px solid var(--rule);
}

.did p {
    color: var(--ink-2);
    margin: 6px 0 0;
}

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

.did code {
    color: var(--accent);
    font-weight: 500;
}

.can-cant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
}

.ai-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    margin-top: 48px;
    align-items: start;
}

.ai-foot .note {
    margin-top: 0;
}

.dev-box {
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    padding: 24px 26px;
}

.dev-box h3 {
    color: var(--paper);
    margin-bottom: 12px;
}

.dev-box ul {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #d9d0bf;
    font-size: .95rem;
}

.dev-box li {
    margin-bottom: 6px;
}

.dev-box code {
    color: #f2b8a2;
}

.dev-box a {
    color: #fff;
    font-weight: 500;
}

/* House rules, set like a menu with dotted leaders. */

.menu {
    margin: 0;
}

.menu>div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
}

.menu dt {
    order: 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    white-space: nowrap;
}

.menu>div::after {
    content: "";
    order: 1;
    flex: 1 1 auto;
    min-width: 24px;
    border-bottom: 2px dotted var(--rule);
    transform: translateY(-5px);
}

.menu dd {
    order: 2;
    flex: 0 1 25rem;
    margin: 0;
    color: var(--ink-2);
}

/* Fee calculator, styled as the receipt it describes. */

.fees {
    background: var(--paper-2);
}

.receipt {
    background: var(--card);
    font-family: var(--mono);
    font-size: .95rem;
    padding: 32px 28px 28px;
    max-width: 420px;
    width: 100%;
    justify-self: center;
    border: 1px solid var(--rule);
    /* Torn bottom edge. The mask also clips any box-shadow, so there is none. */
    --notch: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px);
    -webkit-mask: var(--notch) 0 100% / 16px 100% repeat-x;
    mask: var(--notch) 0 100% / 16px 100% repeat-x;
}

.receipt-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--ink-2);
    margin-bottom: 20px;
}

.receipt label {
    display: block;
    margin-bottom: 18px;
}

.receipt label span {
    display: block;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.receipt input {
    width: 100%;
    font: 500 1.15rem var(--mono);
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    padding: 6px 0;
    border-radius: 0;
}

.receipt input:focus {
    outline: none;
    border-bottom: 2px solid var(--accent);
}

.receipt-lines {
    border-top: 1px dashed var(--ink-2);
    padding-top: 14px;
}

.receipt-lines p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 6px;
}

.receipt-total {
    font-size: 1.2rem;
    border-top: 1px solid var(--ink);
    padding-top: 10px;
    margin-top: 10px !important;
}

.receipt-total strong {
    color: var(--accent);
}

.receipt-foot {
    text-align: center;
    margin: 20px 0 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--ink-2);
    color: var(--ok);
    font-weight: 500;
}

/* Status */

.status-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.checks,
.crosses,
.dashes,
.plain,
.offer {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checks li,
.crosses li,
.dashes li {
    position: relative;
    padding: 8px 0 8px 28px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
}

.checks li::before,
.crosses li::before,
.dashes li::before {
    position: absolute;
    left: 2px;
    top: 8px;
    font-weight: 600;
}

.checks li::before {
    content: "\2713";
    color: var(--ok);
}

.crosses li::before {
    content: "\2715";
    color: var(--accent);
}

.dashes li::before {
    content: "\2192";
    color: var(--muted);
}

.plain li {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
}

.plain li:first-child {
    border-top: 1px solid var(--rule);
}

.plain strong {
    color: var(--ink);
    font-weight: 600;
}

/* Founding offer */

.pricing {
    background: var(--card);
}

.offer {
    margin-bottom: 36px;
}

.offer li {
    font-size: 1.1rem;
    padding: 16px 0 16px 22px;
    border-left: 2px solid var(--accent);
    margin-bottom: 14px;
    color: var(--ink-2);
}

.offer strong {
    color: var(--ink);
}

/* FAQ */

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

.faq details:first-of-type {
    border-top: 1px solid var(--rule);
}

.faq summary {
    font-family: var(--serif);
    font-size: 1.22rem;
    padding: 18px 40px 18px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 14px;
    font-family: var(--sans);
    font-size: 1.5rem;
    color: var(--accent);
}

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

.faq details p {
    color: var(--ink-2);
    padding-bottom: 8px;
    max-width: 44em;
}

/* Contact */

.contact {
    background: var(--ink);
    color: var(--paper);
    border-top: 0;
}

.contact h2 {
    color: var(--paper);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
}

.contact-text p {
    color: #d9d0bf;
}

.contact-alt {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-top: 32px;
}

.contact-alt a {
    color: #fff;
}

.contact-card {
    background: var(--card);
    color: var(--ink);
    border-radius: 6px;
    padding: 32px;
}

.lead-form label {
    display: block;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 16px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    font: 400 1rem var(--sans);
    color: var(--ink);
    background: #fff;
    border: 1px solid #bdb3a0;
    border-radius: 4px;
    padding: 11px 12px;
}

.lead-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.honeypot {
    display: none !important;
}

.form-fine {
    font-size: .86rem;
    color: var(--muted);
    margin: 12px 0 0;
    text-align: center;
}

.form-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: .98rem;
}

.form-message--success,
.form-message.success {
    background: #e6f0e4;
    color: #1f4a27;
    border: 1px solid #b9d3b5;
}

.form-message--error,
.form-message.error {
    background: #f7e3dc;
    color: #7c2d16;
    border: 1px solid #e3b9aa;
}

/* Footer */

.footer {
    padding: 32px 0 40px;
    font-size: .92rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--ink-2);
}

/* Mobile call/CTA bar */

.mobile-bar {
    display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

    .hero-row,
    .split-inner,
    .split-inner.reverse,
    .contact-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .split-inner.reverse .phone {
        order: 2;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        padding: 8px 24px 20px;
    }

    .nav.open {
        display: flex;
    }

    .nav a:not(.btn) {
        padding: 12px 0;
        border-bottom: 1px solid var(--rule);
        font-size: 1.05rem;
    }

    .nav .btn {
        margin-top: 16px;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
        padding-bottom: 72px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 44px 0 64px;
    }

    .shot-wide {
        margin: 40px auto 0;
    }

    .section {
        padding: 64px 0;
    }

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

    .log time {
        border-right: 0;
        padding: 18px 0 0;
    }

    .log li>div {
        padding: 6px 0 14px;
    }

    .menu>div {
        display: block;
        border-bottom: 1px dotted var(--rule);
    }

    .menu>div::after {
        display: none;
    }

    .status-cols,
    .can-cant,
    .ai-foot,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .can-cant>div+div,
    .ai-foot>*+* {
        margin-top: 32px;
    }

    .convo-labels {
        display: none;
    }

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

    .convo-row>* {
        padding: 16px 18px;
    }

    .said {
        padding-bottom: 4px !important;
    }

    .did {
        margin: 0 18px 16px;
        padding: 2px 0 2px 14px !important;
        border-left: 2px solid var(--accent);
    }

    .status-cols>div+div {
        margin-top: 32px;
    }

    .phone img {
        width: 260px;
    }

    .contact-card {
        padding: 22px 18px;
    }

    .mobile-bar {
        display: flex;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--paper);
        border-top: 1px solid var(--rule);
        transition: opacity .2s ease;
    }

    .mobile-bar .btn {
        flex: 1;
        padding: 12px;
    }

    .mobile-bar .btn-ghost {
        flex: 0 0 96px;
    }

    .mobile-bar.hidden {
        opacity: 0;
        pointer-events: none;
    }
}
