/* =========================================================================
   Pod landing — an appointment book on paper.
   Brand: Night #15131F · Paper #F5F5F7 · Teal #2FB6A8, Inter throughout,
   the ō mark (ring + teal bar) woven into the type. Editorial rules and a
   quarter-hour grid rather than the usual gradient hero.
   ========================================================================= */

:root {
    --paper:     #F5F5F7;
    --paper-hi:  #FFFFFF;
    --night:     #15131F;
    --night-hi:  #221F30;
    --ink:       #0B0B12;
    --muted:     #5D5B6A;
    --teal:      #2FB6A8;
    --teal-deep: #1E7E74;   /* teal darkened for text on paper */
    --teal-soft: rgba(47, 182, 168, .12);

    --hairline:        rgba(21, 19, 31, .12);
    --hairline-strong: rgba(21, 19, 31, .28);
    --rule:            var(--ink);

    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;

    --maxw: 1140px;
    --gutter: clamp(16px, 4vw, 40px);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
            Roboto, Helvetica, Arial, sans-serif;
}

/* Self-hosted: no request to Google's servers from a page that sells GDPR care,
   and nothing render-blocking. One variable file covers 400–700. */
@font-face {
    font-family: "Inter";
    src: url("/fonts/inter-65850a373e258f1c897a2b3d75eb74de.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

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

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--teal); color: var(--night); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- The ō glyph: ring + teal bar, scales with font-size ---------- */

/* Proportions from the Figma wordmark at 160px: ring 88 wide with a 24 stroke (.55em / .15em),
   bar 68×14 sitting 4px above the ring (.425em × .0875em, gap .025em). */
.pod-o {
    position: relative;
    display: inline-block;
    width: .62em;
    height: .55em;           /* baseline of an inline-block = its bottom edge */
    margin: 0 .01em;
    overflow: visible;
}

.pod-o-ring {
    position: absolute;
    inset: auto 0 0 0;
    margin: 0 auto;
    width: .55em;
    height: .55em;
    border: .15em solid currentColor;
    border-radius: 50%;
}

.pod-o-bar {
    position: absolute;
    bottom: .575em;
    left: 50%;
    transform: translateX(-50%);
    width: .425em;
    height: .0875em;
    border-radius: .05em;
    background: var(--teal);
}

/* Inside the semibold headlines the full-weight ring reads too heavy; the logo keeps it. */
.pod-o-display .pod-o-ring { border-width: .115em; }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    /* full-bleed bar, content aligned to the page column */
    padding: 18px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
    background: var(--paper);   /* fallback where color-mix() is unsupported: solid, not transparent */
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 1px 2px rgba(21, 19, 31, .04), 0 8px 24px rgba(21, 19, 31, .07);
}

.brand { display: inline-flex; align-items: baseline; }

.brand-word {
    display: inline-flex;
    align-items: baseline;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.01em;   /* the Figma wordmark is set at default tracking */
    color: var(--ink);
    line-height: 1;
}

/* in the logo the ring sits like a full letter, with a letter's side bearings */
.brand-word .pod-o { width: .7em; }

/* Scrolling collapses "p" and "d" into the ō mark: the letters slide inward and fade
   while the ring gives a small nod. `.scrolled` is toggled by the script on the page. */
.bw-l {
    display: inline-block;
    max-width: .7em;
    overflow: hidden;
    transition: max-width .38s cubic-bezier(.4, 0, .2, 1),
                opacity .22s ease,
                transform .38s cubic-bezier(.4, 0, .2, 1);
}

.brand-word .pod-o {
    transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}

.nav.scrolled .bw-l { max-width: 0; opacity: 0; transform: translateX(.25em); }
.nav.scrolled .bw-r { transform: translateX(-.25em); }
.nav.scrolled .brand-word .pod-o { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
    .bw-l, .brand-word .pod-o { transition: none; }
}

.nav-actions { display: flex; gap: 10px; margin-left: auto; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active { transform: scale(.98); }

.btn:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--teal-deep);
    outline-offset: 3px;
}

.btn-night { background: var(--night); color: var(--paper); }
.btn-night:hover { background: var(--night-hi); }

.btn-ghost { border: 1px solid var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

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

.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter) 24px;
}

/* The punchline alone owns the first screen — centred in the viewport below the sticky
   bar, nothing else in view but a scroll cue; the week card starts on the next screen.
   `svh` is the small viewport unit — on phones it ignores the collapsing browser chrome,
   so the fold does not jump; `vh` is the fallback for browsers without it. */
.hero-copy {
    --nav-h: 72px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    padding: 48px 0 72px;
}

.hero-copy .hero-title { max-width: 13em; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .hero-actions { justify-content: center; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    animation: cue 2.2s ease-in-out infinite;
}

.scroll-cue::before {
    content: "";
    width: 11px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

@keyframes cue {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 7px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; transform: translateX(-50%); }
}

.showcase { padding-top: 8px; scroll-margin-top: 84px; }

.hero-title {
    font-size: clamp(42px, 7.2vw, 88px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.04;
    max-width: 12em;
}

.lede {
    max-width: 620px;
    margin-top: 26px;
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--muted);
}

.lede em { font-style: normal; color: var(--ink); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-note {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--muted);
}

/* only meaningful where the week grid scrolls sideways */
.swipe-hint {
    display: none;
    margin-left: 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--teal-deep);
}

/* Quarter-hour ruler — the grid every Pod day is drawn on */
.ruler {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 18px;
    background-image: repeating-linear-gradient(
        to right,
        var(--hairline-strong) 0 1px,
        transparent 1px calc(100% / 48)
    );
    background-size: 100% 10px;
    background-repeat: no-repeat;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

/* ---------- The week vignette ---------- */

.card {
    background: var(--paper-hi);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: 0 1px 2px rgba(21, 19, 31, .04), 0 12px 32px rgba(21, 19, 31, .06);
}

.week {
    margin-top: 10px;
    padding: 22px 22px 26px;
}

.week-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 26px;
}

.week-title { font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

.week-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.week-legend span { white-space: nowrap; }

.week-legend i {
    width: 10px; height: 10px;
    border-radius: 3px;
    margin-left: 10px;
    display: inline-block;
}

.lg-appt  { background: var(--night); }
.lg-class { background: var(--teal); }
.lg-res   { border: 1px dashed var(--teal-deep); background: var(--teal-soft); }
.lg-block {
    background: repeating-linear-gradient(
        -45deg, var(--hairline) 0 3px, transparent 3px 7px);
    border: 1px solid var(--hairline);
}

.week-grid {
    display: grid;
    grid-template-columns: 34px repeat(5, 1fr);
    gap: 0 10px;
    height: 330px;
}

.wg-hours {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px 0 0;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    transform: translateY(-.6em);
}

.wg-day {
    position: relative;
    border-top: 1px solid var(--hairline);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0 calc(10% - 1px),
        var(--hairline) calc(10% - 1px) 10%
    );
}

.wg-today {
    background-color: rgba(47, 182, 168, .04);
    background-color: color-mix(in srgb, var(--teal) 4%, transparent);
    outline: 1px solid var(--hairline);
    border-radius: 2px;
}

.wg-label {
    position: absolute;
    top: -24px;
    left: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

.wg-today .wg-label { color: var(--teal-deep); }

.chip {
    position: absolute;
    left: 3px;
    right: 3px;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    background: var(--night);
    color: var(--paper);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chip-class {
    background: var(--teal);
    color: var(--night);
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-weight: 600;
}

.chip-class b { font-variant-numeric: tabular-nums; }

.chip-res {
    background:
        repeating-linear-gradient(-45deg, var(--teal-soft) 0 4px, transparent 4px 9px);
    border: 1px dashed var(--teal-deep);
    color: var(--teal-deep);
    font-weight: 600;
}

.chip-block {
    background:
        repeating-linear-gradient(-45deg, var(--hairline) 0 4px, transparent 4px 9px);
    border: 1px solid var(--hairline);
    color: var(--muted);
    font-weight: 600;
}

.now {
    position: absolute;
    left: -2px;
    right: -2px;
    height: 2px;
    background: var(--teal-deep);
    z-index: 2;
}

.now i {
    position: absolute;
    left: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-deep);
}

/* ---------- Numbered feature sections ---------- */

/* Full-bleed alternating bands, content aligned to the page column;
   text and vignette swap sides each section. */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 0 clamp(40px, 6vw, 110px);
    align-items: center;
    padding: clamp(72px, 11vh, 130px)
             max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
}

main .feature:nth-of-type(even) { background: var(--paper-hi); }

main .feature:nth-of-type(odd) .feature-head { grid-column: 2; grid-row: 1; }
main .feature:nth-of-type(odd) .vignette { grid-column: 1; grid-row: 1; }

.feature-head { grid-column: 1; }

.feature h2 {
    font-size: clamp(29px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.feature-lede {
    margin-top: 16px;
    font-size: 17px;
    color: var(--muted);
    max-width: 46ch;
}

.feature-lede em { font-style: italic; color: var(--ink); }

/* The three lines that matter — not a spec sheet */
.points {
    grid-column: 1;
    list-style: none;
    margin-top: 26px;
    display: grid;
    gap: 12px;
    max-width: 52ch;
}

.points li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: -.01em;
}

.points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--teal);
}

/* ---------- Vignettes (small honest UI mocks) ---------- */

.vignette {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    padding: 26px;
    background: var(--paper-hi);
    border-radius: var(--r-lg);
    box-shadow: 0 2px 6px rgba(21, 19, 31, .06), 0 24px 60px rgba(21, 19, 31, .12);
    font-size: 14px;
}

/* warn-and-confirm */
.confirm-title { font-weight: 700; margin-bottom: 10px; }

.confirm ul {
    list-style: none;
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--muted);
}

.confirm li { padding-left: 18px; position: relative; }

.confirm li::before {
    content: "";
    position: absolute;
    left: 0; top: .48em;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--teal);
}

.confirm-actions { display: flex; gap: 8px; }

/* public booking page */
.bookmock-url {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 6px 14px;
    display: inline-block;
    margin-bottom: 14px;
}

.bookmock-url b { color: var(--teal-deep); }

.bookmock-svc {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--hairline);
    font-weight: 500;
}

.bookmock-svc b {
    font-weight: 600;
    color: var(--teal-deep);
    white-space: nowrap;
}

.bookmock-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    font-variant-numeric: tabular-nums;
}

.bookmock-slots span {
    padding: 6px 12px;
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    font-weight: 600;
    font-size: 12.5px;
}

.bookmock-slots .taken {
    border-style: dashed;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 400;
}

/* reminders */
.sms-bubble {
    background: var(--night);
    color: var(--paper);
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    max-width: 34ch;
    margin-bottom: 10px;
}

.sms-earlier { opacity: .55; }

.sms-meta {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* payments */
.payhold-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--hairline);
    font-weight: 500;
}

.payhold-row b { font-variant-numeric: tabular-nums; }

.payhold-hold {
    margin: 12px 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-deep);
    font-weight: 600;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* clinical note */
.nm-lock {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-deep);
    margin-bottom: 10px;
}

.nm-body { color: var(--ink); margin-bottom: 12px; }

.nm-addendum {
    border-top: 1px dashed var(--hairline-strong);
    padding-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

/* client merge */
.mm-dup,
.mm-one {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mm-dup { color: var(--muted); border-style: dashed; }

.mm-arrow {
    margin: 10px 0;
    font-size: 12.5px;
    color: var(--teal-deep);
    font-weight: 600;
}

.mm-one {
    background: var(--night);
    border-color: var(--night);
    color: var(--paper);
    margin-bottom: 0;
}

.mm-one b { color: var(--teal); font-weight: 600; }

/* ---------- CTA ---------- */

.cta {
    /* continues the stripe alternation after the last (paper) section */
    background: var(--paper-hi);
    padding: clamp(72px, 12vh, 140px) var(--gutter);
    text-align: center;
}

.cta h2 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.cta .lede { margin: 20px auto 0; }

.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--hairline);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px var(--gutter) 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer .brand-word { font-size: 24px; }

.footer-links {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

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

.footer-sep { color: var(--hairline-strong); }

.footer-copy { font-size: 12.5px; color: var(--muted); }

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

@media (max-width: 980px) {
    .feature { grid-template-columns: 1fr; }

    /* single column: text first everywhere, no mirroring */
    main .feature:nth-of-type(odd) .feature-head { grid-column: 1; grid-row: auto; }

    .vignette,
    main .feature:nth-of-type(odd) .vignette {
        grid-column: 1;
        grid-row: auto;
        margin-top: 30px;
        justify-self: start;
        min-width: min(100%, 380px);
    }
}

@media (max-width: 760px) {
    .week { overflow-x: auto; }
    .week-grid { min-width: 560px; }
    .swipe-hint { display: inline; }

    .ruler span:nth-child(even) { display: none; }
}

@media (max-width: 560px) {
    .btn-lg { width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .cta .hero-actions { align-items: center; }
}
