/*
 * jobbook.online. Direction: calm and professional, so the business owner
 * trusts it with their money and their books. Clean light surfaces, fine
 * borders and soft shadows, ink type, JobBook orange kept for actions and
 * the odd key word. The cartoon illustrations are the only playful part.
 *
 * Brand rules carried from the app (public/css/jobbook-app.css):
 * - text on orange is ink, never white (white on #FF6A00 is 2.9:1);
 * - orange as text is #B34700 (5.5:1 on white);
 * - focus rings in #D95A00.
 *
 * Type: Inter throughout (the app's own font), served from public/site/fonts.
 * Scale, fluid from 375px to 1440px:
 *   display  clamp(2.5rem, 1.6rem + 3.9vw, 4.5rem) / 1.04, 800, -0.035em
 *   h1       clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem) / 1.08
 *   h2       clamp(1.7rem, 1.35rem + 1.5vw, 2.6rem) / 1.12
 *   h3       clamp(1.15rem, 1.05rem + .4vw, 1.35rem) / 1.3
 *   lead     clamp(1.08rem, 1rem + .35vw, 1.25rem) / 1.55
 *   body     1rem / 1.65,  small .9rem / 1.5,  label .78rem caps
 */

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --orange: #ff6a00;
    --orange-hover: #f05f00;
    --orange-dark: #d95a00;
    --orange-text: #b34700;
    --orange-tint: #fff3ea;
    --ink: #14110f;
    --ink-soft: #3d3732;
    --muted: #625a54;
    --line: #e7e2dd;
    --line-strong: #d6cfc8;
    --page: #ffffff;
    --soft: #f7f5f2;
    --warm: #faf6f1;
    --green: #17733f;
    --green-tint: #e7f4ec;
    --shadow-sm: 0 1px 2px rgba(20, 17, 15, .06);
    --shadow: 0 1px 2px rgba(20, 17, 15, .05), 0 8px 24px rgba(20, 17, 15, .06);
    --shadow-lg: 0 2px 4px rgba(20, 17, 15, .05), 0 24px 48px rgba(20, 17, 15, .10);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1rem/1.65 var(--font);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, h4, .display { font-family: var(--font); font-weight: 750; letter-spacing: -0.025em; margin: 0 0 .45em; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.6rem); line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.small { font-size: .9rem; line-height: 1.5; }
.muted { color: var(--muted); }
.label { display: block; font: 700 .78rem/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.underline, .orange { color: var(--orange-text); }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section--white { background: var(--soft); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #f5f1ec; }
.section--ink .lead, .section--ink .muted { color: #cfc6bd; }
.section--ink .label { color: #ffb07a; }
.section--orange { background: var(--ink); color: #f5f1ec; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 7fr 5fr; }
    .split--flip { grid-template-columns: 5fr 7fr; }
    .split--flip > :first-child { order: 2; }
}
.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.head--centre { margin-inline: auto; text-align: center; }
.head--centre .lead { margin-inline: auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font: 600 1rem/1.1 var(--font);
    color: var(--ink); text-decoration: none;
    background: var(--page);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { border-color: var(--ink-soft); }
.btn--primary { background: var(--orange); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); box-shadow: 0 6px 16px rgba(255, 106, 0, .25); }
.btn--ink { background: var(--orange); border-color: var(--orange); }
.btn--ink:hover { background: var(--orange-hover); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .94rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.reassure li { display: inline-flex; align-items: center; gap: 7px; }
.reassure li::before { content: ''; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2317733F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.section--ink .reassure, .section--orange .reassure { color: #cfc6bd; }
.section--ink .reassure li::before, .section--orange .reassure li::before { filter: brightness(2.2); }
.link { color: var(--orange-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Inside a sentence colour alone doesn't mark a link (WCAG 1.4.1), so underline it. */
p .link, li .link, td .link, .consent .link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section--ink .link { color: #ffb07a; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 16px; }
.nav a, .nav summary { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--ink-soft); text-decoration: none; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { color: var(--ink); background: var(--soft); }
.nav [aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav details { position: relative; }
.nav summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: translateY(-3px) rotate(45deg); }
.nav .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; display: grid; padding: 6px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin { display: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.signin:hover { color: var(--ink); background: var(--soft); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--page); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ''; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--page); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 24px; display: grid; }
.mobile-nav a { display: block; padding: 14px 2px; font-weight: 600; font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { display: flex; margin-top: 16px; width: 100%; border-bottom: 1px solid var(--orange); }
@media (max-width: 899px) { .hide-sm { display: none !important; } }
@media (min-width: 1000px) {
    .nav { display: flex; }
    .signin { display: inline-flex; }
    .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}
@media (max-width: 420px) { .header-actions .btn--small { padding-inline: 12px; font-size: .88rem; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); overflow: hidden; background: linear-gradient(180deg, var(--warm), var(--page)); border-bottom: 1px solid var(--line); }
.hero .lead { margin-bottom: 30px; }
.hero .display { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); }
.hero-art { position: relative; min-height: 440px; }
.hero-art .person { position: absolute; width: 46%; left: -2%; bottom: 0; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 24px; background: var(--page); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .88rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.hero-badge b { background: var(--orange-tint); color: var(--orange-text); border-radius: 999px; padding: 3px 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* The phone in the hero: a quote the customer accepts (the signature moment). */
.phone { position: relative; z-index: 2; width: min(310px, 78%); margin-left: auto; margin-right: 6%; background: #1b1714; border-radius: 42px; padding: 11px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #f7f5f3; border-radius: 32px; overflow: hidden; min-height: 540px; display: flex; flex-direction: column; }
.phone-bar { display: flex; justify-content: space-between; padding: 12px 22px 6px; font: 600 .76rem/1 var(--font); }
.phone-notch { width: 92px; height: 22px; background: #1b1714; border-radius: 0 0 14px 14px; margin: -11px auto 0; }
.q { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.q-firm { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .93rem; }
.q-logo { width: 32px; height: 32px; border-radius: 8px; background: #1f5fa8; color: #fff; display: grid; place-items: center; font: 800 .82rem/1 var(--font); }
.q-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 0 rgba(20, 17, 15, .06), 0 6px 18px rgba(20, 17, 15, .05); }
.q-card h4 { font: 700 .95rem/1.3 var(--font); letter-spacing: 0; margin: 0 0 2px; }
.q-row { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; padding: 6px 0; border-bottom: 1px solid #efebe7; }
.q-row:last-child { border: 0; }
.q-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.q-sign { border: 1.5px dashed #d3cbc3; border-radius: 12px; padding: 10px 12px; font-size: .78rem; color: var(--muted); }
.q-sign span { display: block; font: italic 600 1.3rem/1.2 'Brush Script MT', 'Segoe Script', cursive; color: var(--ink); min-height: 1.6rem; }
.q-accept { margin-top: auto; border-radius: 12px; padding: 14px; font: 700 .98rem/1 var(--font); background: var(--orange); color: var(--ink); text-align: center; }
.q-done { opacity: 0; max-height: 0; overflow: hidden; text-align: center; }
.q-body { max-height: 420px; }
.q-done .tick { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.q-done strong { display: block; font-size: 1.02rem; }
.q-done small { color: var(--muted); }
.toast { position: absolute; z-index: 3; left: 0; top: -2%; display: flex; align-items: center; gap: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 14px; font-weight: 600; font-size: .88rem; }
.toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; }
.toast--paid { top: auto; bottom: 18%; left: auto; right: 0; }
.toast--paid i { background: var(--orange-tint); color: var(--orange-text); }

@media (prefers-reduced-motion: no-preference) {
    .js .phone .q-sign span { width: 0; overflow: hidden; white-space: nowrap; animation: sign 1.1s steps(18) 1.2s forwards; }
    .js .phone .q-accept--first { max-height: 60px; animation: press .5s ease 2.4s forwards, hide .3s ease 2.9s forwards; }
    .js .phone .q-done { animation: show .5s ease 3.1s forwards; }
    .js .phone .q-body { animation: hide .4s ease 2.9s forwards; }
    .js .toast { opacity: 0; animation: rise .45s ease forwards; }
    .js .toast--accepted { animation-delay: 3.3s; }
    .js .toast--paid { animation-delay: 4.2s; }
    .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
    .reveal.in { opacity: 1; transform: none; }
    @keyframes sign { to { width: 100%; } }
    @keyframes press { 40% { transform: scale(.97); } 100% { transform: scale(1); background: var(--green); color: #fff; } }
    @keyframes show { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 240px; padding: 40px 0 8px; } }
    @keyframes hide { from { opacity: 1; max-height: 420px; } to { opacity: 0; max-height: 0; overflow: hidden; } }
    @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    .phone .q-body, .phone .q-accept--first { display: none; }
    .phone .q-done { opacity: 1; max-height: none; padding: 40px 0 8px; }
}

/* Feature strip (static, under the hero) */
.strip { background: var(--page); border-bottom: 1px solid var(--line); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; list-style: none; margin: 0 auto; padding: 22px var(--gutter); max-width: var(--max); font: 500 .92rem/1.3 var(--font); color: var(--muted); }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Cards and grids */
.card { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 2.4vw, 30px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card .art { height: 150px; margin: -6px 0 18px; }
.art-panel { background: var(--warm); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); }
.tag-soon { display: inline-block; margin-left: 6px; padding: 2px 8px; vertical-align: 1px; font: 600 .68rem/1.5 var(--font); text-transform: uppercase; letter-spacing: .05em; background: var(--soft); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; font: 700 1rem/1 var(--font); background: var(--orange-tint); color: var(--orange-text); border-radius: 50%; }
.steps h3 { font-size: 1.12rem; }

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317733F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.ticks li.soon::before { background: var(--soft); border: 1px solid var(--line-strong); }
.section--ink .ticks li::before { background-color: rgba(255, 255, 255, .1); filter: brightness(1.6); }

/* Screens */
.screen { border: 1px solid #2b2622; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: var(--page); }
.screen .chrome { display: flex; gap: 6px; padding: 10px 12px; background: #2b2622; }
.screen .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #5a514a; }
.screen img { width: 100%; }

/* Trades */
.trade-card { display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.trade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.trade-card img { width: 96px; height: 96px; margin-bottom: 18px; }
.trade-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--orange-text); }

/* Pricing */
.billing-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--page); padding: 4px; margin-bottom: 40px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: 600 .92rem/1 var(--font); cursor: pointer; color: var(--ink-soft); }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-toggle .save { background: var(--orange-tint); color: var(--orange-text); border-radius: 999px; padding: 2px 8px; font-size: .72rem; margin-left: 6px; }
.billing-toggle button[aria-pressed="true"] .save { background: var(--orange); color: var(--ink); }
.plans { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--popular { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); }
.plan .flag { position: absolute; top: -13px; left: 24px; background: var(--orange); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 700 .72rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 2px; }
.price strong { font: 800 2.8rem/1 var(--font); letter-spacing: -0.04em; }
.price span { font-weight: 500; color: var(--muted); }
.plan .btn { margin: 22px 0 24px; width: 100%; }
.plan .ticks { font-size: .95rem; }
[data-billing="annual"] .monthly, [data-billing="monthly"] .annual { display: none; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font: 600 1.05rem/1.4 var(--font); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--page); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--soft); font: 700 .95rem/1.2 var(--font); color: var(--ink); }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--orange-tint); }
.compare thead th:nth-child(2) { color: var(--orange-text); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; width: 34%; }
.compare .yes { color: var(--green); font-weight: 700; }
.table-scroll { overflow-x: auto; padding-bottom: 8px; }

/* Closing call to action */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { margin-inline: auto; color: #cfc6bd; }
.cta-band .cta-row, .cta-band .reassure { justify-content: center; }
.cta-band img { width: min(300px, 70%); margin: 0 auto 20px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.input, .select { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.3 var(--font); color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 10px; }
.input:focus, .select:focus { outline: none; border-color: var(--orange-dark); box-shadow: 0 0 0 3px rgba(255, 106, 0, .2); }
.field--error .input, .field--error .select { border-color: #b3261e; }
.error { color: #b3261e; font-weight: 500; font-size: .88rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--page); font-weight: 500; font-size: .95rem; cursor: pointer; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--orange-dark); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange-dark); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1px solid #e3b2ad; background: #fdf0ee; color: #7a1d16; border-radius: 10px; padding: 12px 16px; font-weight: 500; }

/* Blog */
.posts { display: grid; gap: 28px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--warm); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cover--blank { display: grid; place-items: center; }
.post-card .cover--blank img { width: 42%; height: auto; object-fit: contain; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: 0; }
.meta { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--page); font-weight: 500; font-size: .9rem; text-decoration: none; color: var(--ink-soft); }
.chip[aria-current="true"], .chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.article { max-width: 720px; margin-inline: auto; }
.article .cover { margin: 32px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.4rem, 1.25rem + .8vw, 1.85rem); margin-top: 1.6em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose a { color: var(--orange-text); font-weight: 600; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
/* A wide table scrolls inside itself on a phone instead of pushing the page sideways. */
@media (max-width: 719px) {
    .prose table { display: block; overflow-x: auto; font-size: .9rem; }
    .prose th, .prose td { padding: 6px 8px; min-width: 6em; }
}
.prose pre { overflow-x: auto; }
.prose { overflow-wrap: break-word; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }

/* Footer */
.site-footer { background: #0f0d0b; color: #bdb3a9; padding-block: 72px 32px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.foot-grid h2 { font: 600 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 34ch; }
.social, .foot-grid .social { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #1f1b18; color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--orange, #FF6A00); color: #14110F; }
.social a:focus-visible { outline: 2px solid #FF6A00; outline-offset: 2px; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a2521; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }

/* 404 and thanks */
.lost { text-align: center; padding-block: 80px 120px; }
.lost img { width: min(320px, 70%); margin: 0 auto 28px; }

@media (max-width: 899px) {
    .hero-art { min-height: 0; margin-top: 8px; }
    .hero-art .person { width: 38%; left: 0; }
    .phone { margin-right: 0; }
    .toast { left: 0; }
}
@media print { .site-header, .site-footer, .cta-band { display: none; } }

/* Phone app store links (site/partials/app-links). Ink buttons, so they read on light and dark sections. */
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-link { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; min-width: 150px; padding: 8px 18px; border-radius: 12px; background: var(--ink); color: #fff; border: 1px solid #4a423b; text-decoration: none; line-height: 1.2; }
.app-link small { font-size: .78rem; color: #d9d1c9; }
.app-link strong { font-size: 1.05rem; font-weight: 700; color: #fff; }
a.app-link:hover { border-color: var(--orange); }
a.app-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.app-link--soon { background: transparent; color: inherit; border-style: dashed; }
.app-link--soon small, .app-link--soon strong { color: inherit; }

/* Video banners (components/site/video-hero). The media box has a fixed size, so the video arriving never moves anything. */
.vhero { position: relative; display: flex; align-items: center; height: 80vh; min-height: 540px; max-height: 820px; overflow: hidden; background: var(--ink); color: #fff; }
.vhero__media { position: absolute; inset: 0; }
.vhero__media picture { display: contents; }
.vhero__poster, .vhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.vhero__video { opacity: 0; transition: opacity .5s ease; }
.vhero__video.is-playing { opacity: 1; }
.vhero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 17, 15, .8) 0%, rgba(20, 17, 15, .62) 36%, rgba(20, 17, 15, .28) 52%, rgba(20, 17, 15, 0) 65%); pointer-events: none; }
.vhero__content { position: relative; z-index: 1; }
.vhero__text { max-width: 40rem; }
.vhero__eyebrow { margin: 0 0 14px; color: var(--orange); font-size: .9rem; font-weight: 700; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.vhero__title { margin: 0 0 18px; color: #fff; font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.vhero__title span { display: block; }
.vhero__title .vhero__accent { color: var(--orange); }
.vhero__sub { margin: 0 0 30px; max-width: 42ch; color: #f4efea; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.45; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.vhero__btn { min-height: 56px; padding-inline: 30px; border-radius: 999px; font-size: 1.08rem; }
.vhero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
    .vhero { display: block; height: auto; min-height: 0; max-height: none; }
    .vhero__media { position: relative; aspect-ratio: 4 / 3; }
    .vhero__shade { display: none; }
    .vhero__content { padding-block: 26px 40px; }
    .vhero__eyebrow, .vhero__title, .vhero__sub { text-shadow: none; }
    .vhero__sub { margin-bottom: 24px; }
    .vhero__btn { width: 100%; justify-content: center; }
}
@media (max-width: 767px) and (max-aspect-ratio: 1/1) {
    .vhero--portrait .vhero__media { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
    .vhero__video { display: none; }
}
