/* snubber.app — the public site. Brand rules and the palette's roles: brand.html. */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    /* Brand palette (fixed, both themes) */
    --deep-sea: #0B3D3B;
    --teal: #0F6E6B;
    --sea: #14837E;
    --lagoon: #3DB6AF;
    --sun: #F2AD5C;
    --sand: #E0973C;
    --sand-deep: #A8641C;
    --signal: #C1443C;
    --foam: #F6F8F7;
    --night: #0B1615;

    /* Theme tokens: light */
    --bg: var(--foam);
    --surface: #FFFFFF;
    --surface-2: #EEF3F2;
    --text: #13201F;
    --muted: #4C5E5C;
    --line: #DCE5E3;
    --accent: var(--teal);
    --accent-text: #FFFFFF;
    --warm: var(--sand-deep);
    --hero-from: #0F5C59;
    --hero-to: var(--deep-sea);
    --shadow: 0 1px 2px rgb(11 61 59 / 6%), 0 12px 32px rgb(11 61 59 / 10%);

    --radius: 20px;
    --max: 1120px;
    --gutter: 16px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: var(--night);
        --surface: #11201F;
        --surface-2: #162A28;
        --text: #E8F0EE;
        --muted: #9DB2AF;
        --line: #213634;
        --accent: var(--lagoon);
        --accent-text: #062120;
        --warm: var(--sun);
        --hero-from: #0E3E3B;
        --hero-to: #071A19;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    }
}

:root[data-theme="dark"] {
    --bg: var(--night);
    --surface: #11201F;
    --surface-2: #162A28;
    --text: #E8F0EE;
    --muted: #9DB2AF;
    --line: #213634;
    --accent: var(--lagoon);
    --accent-text: #062120;
    --warm: var(--sun);
    --hero-from: #0E3E3B;
    --hero-to: #071A19;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
    border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { border-color: currentColor; color: var(--accent); background: transparent; }
.btn-sun { background: var(--sun); color: #2B1A05; }
.btn-light { border-color: rgb(255 255 255 / 70%); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) {
    .btn-primary:hover { filter: brightness(1.08); }
    .btn-ghost:hover, .btn-light:hover { background: rgb(127 127 127 / 10%); }
    .btn-sun:hover { filter: brightness(1.05); }
}

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand-link { display: flex; align-items: center; margin-right: auto; }
.brand-link img { height: 34px; width: auto; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
@media (min-width: 720px) { .nav-links { display: flex; } }

.logo-light { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* --- Hero --- */
.hero {
    background: radial-gradient(120% 90% at 85% 0%, var(--sea) 0%, transparent 55%),
                linear-gradient(160deg, var(--hero-from), var(--hero-to));
    color: #fff;
    overflow: hidden;
}
.hero .wrap {
    display: grid; gap: 40px; align-items: center;
    padding-top: 56px; padding-bottom: 0;
}
.hero-copy { padding-bottom: 8px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sun);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.hero h1 { font-size: clamp(38px, 7.4vw, 64px); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: rgb(255 255 255 / 84%); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgb(255 255 255 / 68%); }
.hero .btn-primary { background: #fff; color: var(--deep-sea); }

.hero-visual { display: flex; justify-content: center; align-items: flex-end; align-self: end; }
.phone {
    width: min(300px, 78vw);
    border-radius: 44px 44px 0 0; padding: 12px 12px 0;
    background: #0A1312; box-shadow: 0 30px 80px rgb(0 0 0 / 45%), inset 0 0 0 2px rgb(255 255 255 / 10%);
}
.phone img { border-radius: 33px 33px 0 0; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }

@media (min-width: 900px) {
    .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 80px; }
    .hero-copy { padding-bottom: 80px; }
    .phone { width: 320px; }
}

/* --- Sections --- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
section.hero { padding: 0; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warm); margin-bottom: 10px; }

/* How it works: three questions → one answer */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    counter-increment: step;
}
.step::before {
    content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
    border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 800;
}
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--muted); }
.answer {
    margin-top: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    padding: 20px 24px; border-radius: var(--radius); background: var(--surface-2);
}
.answer strong { font-size: 18px; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.seal-holds { background: rgb(46 139 87 / 14%); color: #2E8B57; }
.seal-no { background: rgb(193 68 60 / 12%); color: var(--signal); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .seal-holds { color: #4CAF7D; }
    :root:not([data-theme="light"]) .seal-no { color: #E0695F; }
}

/* Feature rows: text + real screenshot */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature h3 { font-size: clamp(26px, 3.6vw, 34px); }
.feature p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--sand); }
.shot {
    border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    max-width: 390px; justify-self: center; width: 100%;
}
.shot-tall img { aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
@media (min-width: 900px) {
    .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
    .feature.flip .shot { order: -1; }
}
.badge-premium {
    display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
    background: var(--sun); color: #2B1A05; font-size: 13px; font-weight: 800; letter-spacing: .02em;
}

/* --- Pricing --- */
.pricing { background: var(--surface); border-block: 1px solid var(--line); }
.plans { display: grid; gap: 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan {
    display: flex; flex-direction: column; padding: 28px; border-radius: 24px;
    background: var(--bg); border: 1px solid var(--line);
}
.plan-premium {
    background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #fff; border: 0; position: relative;
    box-shadow: var(--shadow);
}
.plan-premium::after {
    content: ""; position: absolute; top: 28px; right: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun);
}
.plan h3 { font-size: 26px; }
.price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.plan-premium .price span { color: rgb(255 255 255 / 72%); }
.plan .who { margin-top: 6px; color: var(--muted); }
.plan-premium .who { color: rgb(255 255 255 / 78%); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.plan li::before {
    content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--accent) 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='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan-premium li::before {
    background-color: var(--sun);
    background-image: 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='%232B1A05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan li small { display: block; color: var(--muted); font-size: 14px; }
.plan-premium li small { color: rgb(255 255 255 / 70%); }
.plan .includes { font-weight: 800; }
.plan .btn { align-self: flex-start; }
.plan-foot { margin-top: 12px; font-size: 14px; color: var(--muted); }
.plan-premium .plan-foot { color: rgb(255 255 255 / 70%); }

/* --- Honesty band --- */
.honest { display: grid; gap: 24px; }
@media (min-width: 820px) { .honest { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.honest .card {
    padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    border-left: 6px solid var(--signal);
}
.honest .card h3 { color: var(--signal); font-size: 20px; }
.honest .card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .honest .card h3 { color: #E0695F; } }

/* --- Final call --- */
.cta {
    text-align: center; color: #fff;
    background: radial-gradient(80% 120% at 50% 0%, var(--sea), transparent 70%), linear-gradient(var(--hero-from), var(--hero-to));
}
.cta h2 { font-size: clamp(30px, 5vw, 48px); }
.cta p { margin: 14px auto 0; max-width: 32em; color: rgb(255 255 255 / 80%); }
.cta .hero-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--deep-sea); }

/* --- Footer --- */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer img { height: 28px; width: auto; }
.disclaimer { max-width: 60em; }

/* --- Brand guide --- */
.brand-hero { padding-block: 64px 40px; }
.brand-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.brand-hero p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 40em; }
.brand-section { padding: 48px 0; border-top: 1px solid var(--line); }
.brand-section > .wrap > h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.brand-section .intro { color: var(--muted); max-width: 44em; margin-bottom: 28px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.tile .art { display: grid; place-items: center; min-height: 180px; padding: 28px; }
.tile .art img { max-height: 120px; width: auto; }
.tile .art.on-light { background: #fff; }
.tile .art.on-foam { background: var(--foam); }
.tile .art.on-dark { background: var(--night); }
.tile .art.on-sea { background: linear-gradient(160deg, var(--sea), var(--deep-sea)); }
.tile .meta { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.tile .meta strong { display: block; font-size: 15px; }
.tile .meta a { font-weight: 700; }
.swatches { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch .chip { height: 96px; }
.swatch .meta { padding: 12px 14px; font-size: 14px; }
.swatch .meta strong { display: block; font-size: 16px; }
.swatch code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rule { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rule h3 { font-size: 18px; margin-bottom: 8px; }
.rule p, .rule li { color: var(--muted); }
.rule ul { margin: 0; padding-left: 18px; }
.rule.do { border-top: 5px solid #2E8B57; }
.rule.dont { border-top: 5px solid var(--signal); }
.type-sample { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.type-sample + .type-sample { margin-top: 16px; }
.type-sample .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.clearspace { display: grid; place-items: center; background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.clearspace div { outline: 2px dashed var(--sand); outline-offset: 0; padding: 24px; background: repeating-linear-gradient(45deg, rgb(224 151 60 / 10%) 0 8px, transparent 8px 16px); }
.clearspace img { height: 72px; width: auto; background: #fff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
