/*
 * SMARTSRVCS public website.
 *
 * Brand colours are the apps' own (src/theme/colors.ts): the header gradient
 * runs #C62828 to #E65100 to #F57C00, with #E65100 as the primary. Neutrals
 * lean warm to sit with that orange rather than against it.
 *
 * No build step on purpose: this file is served as-is, so the server needs
 * nothing but PHP to publish a change.
 */

:root {
    color-scheme: light;

    --ink: #1f1712;
    --text: #463a32;
    --muted: #7a6d63;
    --paper: #fffbf7;
    --surface: #ffffff;
    --tint: #fff3ea;
    --line: #efe0d3;

    --brand: #e65100;
    --brand-deep: #c62828;
    --brand-light: #f57c00;
    --gradient: linear-gradient(120deg, #c62828 0%, #e65100 55%, #f57c00 100%);

    --dark: #211712;
    --dark-2: #2c1f18;

    --success: #1e7a46;
    --success-bg: #eaf6ef;
    --error: #b3261e;
    --error-bg: #fdecea;

    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -18px rgba(90, 30, 0, 0.35);
}

/* ─── Base ─── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }

/* Anchored sections land below the sticky header, not under it. */
section[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--brand); margin-bottom: 12px;
}
.eyebrow-light { color: #ffe0c8; }

.lede { font-size: 1.1rem; color: var(--text); max-width: 60ch; }

/* ─── Buttons ─── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--body); font-weight: 700; font-size: 0.98rem;
    padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
    text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -12px rgba(198, 40, 40, 0.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ─── Header ─── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 251, 247, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { height: 38px; width: auto; border-radius: 8px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.site-nav a:hover { color: var(--brand); }

/* ─── Hero ─── */

.hero { background: var(--gradient); color: #fff; overflow: hidden; position: relative; }
.hero::after {
    content: ""; position: absolute; inset: auto -10% -45% 35%; height: 520px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
    padding-top: 72px; padding-bottom: 80px; position: relative; z-index: 1;
}
.hero h1 { color: #fff; }
.hero-lede { font-size: 1.15rem; color: #fff1e6; margin-top: 18px; max-width: 54ch; }

.hero-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.app-group-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; color: #fff; }

/* ─── Store badges ─── */

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: #111; color: #fff; text-decoration: none;
    padding: 8px 16px 8px 12px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.22); min-width: 150px;
    transition: transform 0.15s ease;
}
a.store-badge:hover { color: #fff; transform: translateY(-1px); }
.store-icon { flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-top { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.store-name { font-size: 1.02rem; font-weight: 700; }

/* Not a link: says the app is not in that store yet. */
.store-badge.is-soon { background: rgba(0, 0, 0, 0.18); border: 1.5px dashed rgba(255, 255, 255, 0.6); cursor: default; }
.badge-row-dark .store-badge.is-soon { background: transparent; color: var(--muted); border-color: #d8c6b8; }
.badge-row-dark .store-badge.is-soon .store-icon { opacity: 0.55; }

/* ─── Hero phone (illustration) ─── */

.hero-visual { display: flex; justify-content: center; }
.phone {
    width: 300px; background: #1a1411; border-radius: 38px; padding: 11px;
    box-shadow: 0 40px 70px -30px rgba(40, 8, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(2deg);
}
.phone-screen { background: var(--paper); border-radius: 28px; overflow: hidden; color: var(--text); }
.mock-bar { background: var(--gradient); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 18px 18px 14px; }
.mock-job { padding: 16px 18px 12px; }
.mock-job-title { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.mock-job-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.mock-pill {
    display: inline-block; margin-top: 10px; font-size: 0.72rem; font-weight: 700;
    color: var(--brand); background: var(--tint); padding: 4px 10px; border-radius: 999px;
}
.mock-quotes { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; }
.mock-quotes li {
    display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.mock-quotes li.is-top { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12); }
.mock-avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tint); color: var(--brand); font-weight: 700; font-size: 0.72rem;
}
.mock-who { display: flex; flex-direction: column; line-height: 1.25; }
.mock-who strong { color: var(--ink); font-size: 0.84rem; }
.mock-who em { font-style: normal; font-size: 0.7rem; color: var(--muted); }
.mock-rate { font-weight: 800; color: var(--ink); font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.mock-rate small { font-weight: 500; color: var(--muted); font-size: 0.7rem; }
.mock-cta {
    margin: 14px 12px 16px; text-align: center; background: var(--gradient); color: #fff;
    font-weight: 700; font-size: 0.86rem; padding: 11px; border-radius: 999px;
}

/* ─── Sections ─── */

.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #e9ddd4; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head h2 + .lede { margin-top: 14px; }
.section-head-light h2 { color: #fff; }

/* Steps: a real sequence, so the numbers carry meaning. */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.step { border-top: 2px solid var(--line); padding-top: 22px; }
.step-num {
    display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem;
    line-height: 1; color: var(--brand); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface); color: var(--brand); margin-bottom: 16px;
    box-shadow: 0 6px 16px -10px rgba(120, 40, 0, 0.35);
}
.feature h3 { margin-bottom: 6px; }

/* ─── Split (for pros) ─── */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy .lede { margin-bottom: 22px; }
.split-copy .badge-row { margin-top: 28px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e65100' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.split-visual { display: grid; gap: 18px; justify-items: center; }
.alert-card {
    width: min(100%, 360px); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.alert-app { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.alert-title { font-weight: 700; color: var(--ink); margin-top: 4px; }
.alert-body { font-size: 0.9rem; }
.earn-card {
    width: min(100%, 360px); background: var(--gradient); color: #fff;
    border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); transform: rotate(1deg);
}
.earn-label { font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.earn-total { font-family: var(--display); font-weight: 800; font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.earn-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.earn-row em { display: block; font-style: normal; font-weight: 500; font-size: 0.7rem; opacity: 0.85; }

/* ─── Duo (employers / job seekers) ─── */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.duo-card h3 { font-size: 1.35rem; }
.duo-where { color: var(--muted); font-size: 0.9rem; margin: 4px 0 18px; }

/* ─── Services ─── */

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 18px; font-weight: 600; color: var(--ink); font-size: 0.95rem;
}

/* ─── Apps (dark band) ─── */

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-card {
    background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px; padding: 30px;
}
.app-card img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; }
.app-card h3 { color: #fff; font-size: 1.35rem; }
.app-card p { margin: 6px 0 22px; color: #d7c9be; }

/* ─── FAQ ─── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
    font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 22px 0; }

/* ─── Contact ─── */

.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-intro h2 { margin-bottom: 16px; }
.contact-alt { margin-top: 20px; }
.contact-panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 30px; box-shadow: 0 20px 45px -35px rgba(90, 30, 0, 0.5);
}

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.14);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.notice strong { display: block; }
.notice-success { background: var(--success-bg); color: var(--success); }
.notice-error { background: var(--error-bg); color: var(--error); }

/* Honeypot. Off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ─── Legal pages ─── */

.page-hero { background: var(--tint); padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.88rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-updated { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

.prose { padding-top: 48px; padding-bottom: 88px; font-size: 1.05rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ─── Footer ─── */

.site-footer { background: #1a120e; color: #cfc2b8; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { height: 36px; width: auto; border-radius: 8px; margin-bottom: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 {
    font-family: var(--body); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #8f8177; margin-bottom: 12px;
}
.footer-nav a { display: block; color: #f1e7df; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--brand-light); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; padding-bottom: 28px; font-size: 0.85rem; color: #8f8177; }

/* ─── Responsive ─── */

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

@media (max-width: 900px) {
    .site-nav { display: none; }
    .header-inner .btn { margin-left: auto; }
    .hero-inner, .split, .contact { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 52px; padding-bottom: 60px; gap: 44px; }
    .phone { transform: none; }
    .section { padding: 68px 0; }
}

@media (max-width: 640px) {
    .hero-apps, .steps, .features, .duo, .apps, .field-row, .footer-inner { grid-template-columns: 1fr; }
    .contact-panel, .duo-card, .app-card { padding: 22px; }
    .store-badge { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
