:root {
    color-scheme: light;
    --char-950: #1b1d1f;
    --char-900: #232629;
    --char-800: #2f3337;
    --ink: #26292c;
    --body: #43484c;
    --muted: #666d73;
    --line: #e3e1dd;
    --paperwhite: #ffffff;
    --warm-gray: #f6f5f2;
    --accent: #fc6b3b;
    --accent-deep: #c2410c;
    --accent-soft: #fda172;
    --on-dark: #f4f2ef;
    --on-dark-muted: #c6cacd;

    --step: 1.3;
    --space-section: clamp(64px, 10vw, 120px);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--paperwhite);
}

h1, h2, h3 {
    font-family: 'Bitter', Georgia, serif;
    color: var(--ink);
    line-height: 1.2;
    text-wrap: balance;
}

p { text-wrap: pretty; }

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

a { color: var(--accent-deep); }

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

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

header {
    background: var(--paperwhite);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.header-logo { width: 148px; height: auto; }

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
}

.header-contact {
    font-size: 15px;
    font-weight: 600;
    color: var(--body);
    text-decoration: none;
}

.header-contact:hover { color: var(--accent-deep); }

/* Overlay header (homepage): sits on top of the full-bleed hero photo */

.header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    border-bottom: 0;
}

.header--overlay .header-logo { filter: brightness(0) invert(1); }

.header--overlay .header-contact { color: #ffffff; }

.header--overlay .header-contact:hover { color: var(--accent-soft); }

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: var(--char-900);
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    animation: hero-zoom 2.6s var(--ease-out) both;
}

@keyframes hero-zoom {
    from { transform: scale(1.06); }
    to   { transform: none; }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(18, 19, 21, 0.82) 0%,
            rgba(18, 19, 21, 0.52) 32%,
            rgba(18, 19, 21, 0.14) 58%,
            rgba(18, 19, 21, 0) 74%),
        linear-gradient(to bottom,
            rgba(18, 19, 21, 0.38) 0%,
            rgba(18, 19, 21, 0) 20%);
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding-block: clamp(120px, 18vh, 180px) clamp(56px, 9vh, 96px);
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 28px rgba(18, 19, 21, 0.45);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero .subtitle {
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    color: var(--on-dark);
    max-width: 56ch;
    margin-bottom: 32px;
    text-shadow: 0 1px 18px rgba(18, 19, 21, 0.5);
}

.hero .subtitle strong { color: #ffffff; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    padding: 15px 32px;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.btn-primary {
    background: var(--accent);
    color: var(--char-950);
}

.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost {
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* The global orange outline is invisible on the orange button, and weak on photo */
.btn-primary:focus-visible { outline-color: var(--char-950); }
.btn-ghost:focus-visible { outline-color: #ffffff; }

.beta-note {
    display: block;
    margin-top: 28px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--on-dark-muted);
    text-shadow: 0 1px 12px rgba(18, 19, 21, 0.6);
}

.hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 {
    animation: rise 0.9s var(--ease-out) both;
}
.hero-anim-2 { animation-delay: 0.12s; }
.hero-anim-3 { animation-delay: 0.22s; }
.hero-anim-4 { animation-delay: 0.34s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

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

section { padding-block: var(--space-section); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 58ch;
}

/* ---------- How it works: timeline ---------- */

.steps { max-width: 720px; }

.step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: clamp(18px, 3vw, 32px);
    padding-bottom: clamp(36px, 5vw, 52px);
}

.step:last-child { padding-bottom: 0; }

.step::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}

.step:last-child::before { display: none; }

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--paperwhite);
    border: 2px solid var(--accent);
    color: var(--accent-deep);
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 12px 0 8px;
}

.step p { max-width: 52ch; }

.step-hint {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-deep);
}

/* ---------- Why Assumbl: split ---------- */

.why { background: var(--warm-gray); }

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.why-figure { position: relative; }

.why-figure img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    border-radius: 10px;
}

.why-figure figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--on-dark);
    background: rgba(27, 29, 31, 0.72);
    border-radius: 8px;
    padding: 10px 14px;
    backdrop-filter: blur(2px);
}

.why-list { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }

.why-item { display: flex; gap: 16px; align-items: flex-start; }

.why-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    color: var(--accent-deep);
}

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

.why-item h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }

.why-item p { max-width: 52ch; }

/* ---------- Roadmap: dark band ---------- */

.roadmap {
    background: var(--char-900);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.roadmap h2 { color: #ffffff; }

.roadmap .section-lead { color: var(--on-dark-muted); }

.roadmap .section-head { margin-bottom: 32px; }

.coming {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.coming span,
.coming a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--on-dark-muted);
    border: 1px solid var(--char-800);
    background: var(--char-800);
    border-radius: 999px;
    padding: 8px 18px;
    text-decoration: none;
}

.coming .current {
    color: var(--char-950);
    background: var(--accent);
    border-color: var(--accent);
}

.coming a.current:hover { background: var(--accent-soft); }

.roadmap-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
}

.roadmap-figure figcaption {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--on-dark-muted);
}

/* ---------- Sub-page hero (home-security) ---------- */

.page-hero {
    background: var(--warm-gray);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(56px, 9vw, 96px);
}

.page-hero .crumb {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-deep);
    text-decoration: none;
    margin-bottom: 18px;
}

.page-hero .crumb:hover { text-decoration: underline; }

.page-hero h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.page-hero .subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    color: var(--body);
    max-width: 62ch;
}

/* ---------- Kit grid (home-security) ---------- */

.kit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.kit-card {
    background: var(--paperwhite);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 24px;
}

.kit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.kit-card p { font-size: 15.5px; }

/* ---------- Partners ---------- */

.partners { background: var(--warm-gray); }

.partners-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.partner-form {
    background: var(--paperwhite);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: clamp(24px, 4vw, 36px);
}

.partner-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.partner-form .form-note {
    font-size: 14.5px;
    color: var(--muted);
    margin-bottom: 22px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--paperwhite);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 14px;
}

.form-field input:hover { border-color: var(--muted); }

.partner-form button {
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent-deep);
    border: 0;
    border-radius: 6px;
    padding: 12px 28px;
    cursor: pointer;
}

.partner-form button:hover { background: #a33a08; }

.partner-form button:disabled { opacity: 0.6; cursor: default; }

.form-status {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
    min-height: 1.5em;
}

.form-status.ok { color: #166534; }

.form-status.err { color: #b91c1c; }

/* Honeypot: visually removed, still in the DOM for bots */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* ---------- Disclosure ---------- */

.disclosure { padding-block: clamp(48px, 7vw, 80px); }

.disclosure-inner {
    max-width: 720px;
    border-top: 3px solid var(--accent);
    padding-top: 28px;
}

.disclosure h2 { font-size: 1.25rem; margin-bottom: 10px; }

.disclosure p { font-size: 15px; color: var(--muted); max-width: 70ch; }

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

footer {
    background: var(--char-950);
    padding: 44px 0;
}

footer p { font-size: 14.5px; color: var(--on-dark-muted); }

footer p + p { margin-top: 6px; }

footer a {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover { text-decoration: underline; }

/* ---------- Scroll reveals (enhancement only) ---------- */

html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-photo { animation: none; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* Short viewports (mobile landscape, small laptops in split view):
   tighten the hero so text never spills past the scrim */
@media (max-height: 520px) {
    .hero-content { padding-block: 90px 32px; }
    .hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 14px; }
    .hero .subtitle { margin-bottom: 18px; }
    .beta-note { margin-top: 16px; }
}

@media (max-width: 860px) {
    /* Narrow screens: the photo shows less context, so the text zone
       needs a deeper gradient to stay readable */
    .hero-scrim {
        background:
            linear-gradient(to top,
                rgba(18, 19, 21, 0.88) 0%,
                rgba(18, 19, 21, 0.6) 40%,
                rgba(18, 19, 21, 0.16) 68%,
                rgba(18, 19, 21, 0) 82%),
            linear-gradient(to bottom,
                rgba(18, 19, 21, 0.42) 0%,
                rgba(18, 19, 21, 0) 22%);
    }
    .why-grid, .roadmap-grid, .partners-grid { grid-template-columns: 1fr; }
    .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-figure { max-width: 480px; }
    .why-figure img { aspect-ratio: 4 / 3; }
    .roadmap-grid { gap: 36px; }
}

@media (max-width: 560px) {
    .kit-grid { grid-template-columns: 1fr; }
    .hero-content { padding-block: 120px 56px; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .step { grid-template-columns: 44px 1fr; gap: 16px; }
    .step-number { width: 44px; height: 44px; font-size: 1.1rem; }
    .step::before { left: 21px; top: 46px; }
    .step h3 { margin-top: 6px; }
    .header-logo { width: 124px; }
    /* Email link lives in the footer too; keep the overlay header uncluttered */
    .header--overlay .header-nav a[href^="mailto"] { display: none; }
}

/* ---------- Legal / About pages ---------- */

.legal { padding-block: clamp(48px, 7vw, 80px); }

.legal .container { max-width: 760px; }

.legal .updated { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.legal section { padding-block: 0; margin-bottom: 36px; }

.legal h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.legal p { margin-bottom: 12px; max-width: 68ch; }

.legal ul {
    margin: 12px 0 12px 20px;
    max-width: 68ch;
}

.legal li { margin-bottom: 6px; }

.footer-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    font-size: 14px;
}

.footer-links a { color: var(--muted); text-decoration: none; }

.footer-links a:hover { color: var(--accent-deep); text-decoration: underline; }

.footer-links .sep { color: var(--line); }
