/* =====================================================================
   Rivvet marketing site — shared stylesheet
   ---------------------------------------------------------------------
   Every page under html/ (except /mobile/ and /admin/, which are the app)
   links this one file. There is no build step: edit, scp, done.

   Layout structure is modelled on protradepay.com — a dark utility bar,
   a solid-colour nav bar with uppercase links and a contrasting pill CTA,
   then alternating light/dark full-bleed sections, and a heavy uppercase
   type voice with the key phrase in the accent colour. The palette stays
   Rivvet's (deep teal + green), not PTP's orange.

   Theming: components read CSS variables. `.theme-dark` re-declares them,
   so the same card/timeline/FAQ markup works on cream or on teal.
   ===================================================================== */

:root {
    /* brand */
    --rivvet-teal: #063847;
    --rivvet-ink: #07222b;
    --rivvet-ink-deep: #04171d;
    --rivvet-green: #24b68b;
    --rivvet-green-ink: #04241d;
    --rivvet-green-active: #1e9c77;
    --rivvet-green-text: #0a7d5c;
    --rivvet-cream: #f2f1ed;
    --rivvet-cream-alt: #e8e6e0;
    --warn: #b5701d;

    /* light theme (default) */
    --bg: var(--rivvet-cream);
    --heading: var(--rivvet-ink);
    --text: #2c4f59;
    --muted: #5c757e;
    --surface: #ffffff;
    --surface-border: rgba(7, 34, 43, 0.12);
    --divider: rgba(7, 34, 43, 0.1);
    --accent: var(--rivvet-green-text);
    --accent-soft: rgba(36, 182, 139, 0.12);
    --accent-line: rgba(36, 182, 139, 0.45);
    --input-bg: #ffffff;
    --input-border: rgba(7, 34, 43, 0.2);
    --input-text: var(--rivvet-ink);
    --input-placeholder: #8c9ea4;
    --num-bg: rgba(36, 182, 139, 0.16);
    --num-text: var(--rivvet-green-text);
    --shadow-card: 0 1px 2px rgba(7, 34, 43, 0.05);

    /* metrics */
    --nav-h: 66px;
}

.theme-dark {
    --bg: var(--rivvet-ink);
    --heading: #ffffff;
    --text: #dbeaed;
    --muted: #9fbcc4;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.14);
    --divider: rgba(255, 255, 255, 0.1);
    --accent: #4fd0a9;
    --accent-soft: rgba(36, 182, 139, 0.14);
    --accent-line: rgba(36, 182, 139, 0.4);
    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.18);
    --input-text: #ffffff;
    --input-placeholder: #7e9ba3;
    --num-bg: rgba(255, 255, 255, 0.1);
    --num-text: #4fd0a9;
    --shadow-card: none;

    background: var(--bg);
    color: var(--text);
}

/* ===================== base ===================== */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--rivvet-cream);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 860px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ===================== type ===================== */

h1,
h2,
h3,
h4 {
    color: var(--heading);
    margin: 0;
}

h1,
h2 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(2.3rem, 5.6vw, 3.7rem);
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}

/* the PTP move: one phrase of the headline carries the accent colour */
.accent {
    color: var(--accent);
}

.theme-dark h1,
.theme-dark h2 {
    color: #ffffff;
}

.kicker {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lede {
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.62;
    max-width: 42rem;
}

.section-sub {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 44rem;
}

/* ===================== utility bar ===================== */

.utility-bar {
    background: var(--rivvet-ink-deep);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.utility-tag strong {
    color: #ffffff;
    font-weight: 700;
}

/* audience switch — the site has two halves (trade and homeowner) and this
   is the only control that crosses between them, so it sits above the nav
   on every page rather than inside it */
.audience-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.audience-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.75rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.audience-switch a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.audience-switch a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.audience-switch a.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--rivvet-green);
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.utility-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    text-decoration: none;
}

.utility-links a:hover {
    color: #ffffff;
}

/* ===================== nav bar ===================== */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--rivvet-teal);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--nav-h);
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 124px;
    height: 44px;
}

.brand-logo img {
    width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0 auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.is-active {
    color: #7fe8c6;
    box-shadow: inset 0 -3px 0 var(--rivvet-green);
    border-radius: 8px 8px 0 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-signin {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1.2rem;
    border-radius: 8px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-cta:hover,
.nav-cta:active {
    background: var(--rivvet-green-active);
}

/* "Sign in" only appears inside the collapsed mobile panel — on desktop
   it lives in .nav-actions instead */
.nav-only-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    position: absolute;
    top: -6px;
}

.nav-toggle span::after {
    position: absolute;
    top: 6px;
}

/* ===================== buttons ===================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.9rem;
    border: 0;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
}

.btn-primary:active {
    background: var(--rivvet-green-active);
    transform: scale(0.99);
}

.btn-primary[disabled] {
    opacity: 0.6;
    cursor: default;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--heading);
    color: var(--heading);
}

.btn-ghost:hover {
    background: var(--heading);
    color: var(--bg);
}

.theme-dark .btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.theme-dark .btn-ghost:hover {
    background: #ffffff;
    color: var(--rivvet-ink);
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn-note {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* inline links inside body copy — the browser default blue reads as
   broken against the teal/green palette */
.card a,
.section-sub a,
.faq-body a,
.breakdown-note a,
.footer-blurb a {
    color: var(--accent);
    font-weight: 700;
    text-underline-offset: 2px;
}

/* text link with an arrow, used to move between pages */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.15s ease;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* ===================== sections ===================== */

.section {
    padding: 5rem 0;
    background: var(--bg);
}

.section-tight {
    padding: 3.2rem 0;
}

.section-alt {
    background: var(--rivvet-cream-alt);
    --bg: var(--rivvet-cream-alt);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2.6rem;
}

.section-head.is-centred {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.is-centred .lede,
.section-head.is-centred .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.section-cta {
    margin-top: 2.4rem;
}

/* ===================== page hero (interior pages) ===================== */

.page-hero {
    position: relative;
    padding: 4rem 0 4.4rem;
    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(36, 182, 139, 0.22),
            transparent 42%
        ),
        var(--rivvet-ink);
    overflow: hidden;
}

.page-hero-inner {
    position: relative;
    max-width: 46rem;
}

/* the hero sits on the dark ink but is not inside a .theme-dark wrapper,
   so it has to name its own colours */
.page-hero h1 {
    color: #ffffff;
}

.page-hero h1 .accent {
    color: #4fd0a9;
}

.page-hero .kicker {
    color: #7fe8c6;
}

.page-hero .lede {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .lede a {
    color: #7fe8c6;
    font-weight: 800;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.8rem;
}

.page-hero-meta span {
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
    font-weight: 700;
}

/* ===================== home hero (photo) ===================== */

.hero-photo {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--rivvet-ink);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            rgba(5, 18, 22, 0.84) 0%,
            rgba(5, 18, 22, 0.48) 54%,
            rgba(5, 18, 22, 0.3) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 18, 22, 0.45) 0%,
            rgba(5, 18, 22, 0.1) 30%,
            rgba(5, 18, 22, 0.6) 100%
        );
}

.hero-photo > .container {
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3.5rem;
    padding: 3.4rem 0 4.4rem;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-photo h1 {
    color: #ffffff;
    max-width: 15em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero-photo h1 .accent {
    color: #4fd0a9;
}

.hero-copy {
    margin: 1.4rem 0 1.8rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    line-height: 1.6;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

/* the checkbox bullets PTP leads with, in Rivvet green */
.hero-ticks {
    list-style: none;
    margin: 0 0 1.9rem;
    padding: 0;
}

.hero-ticks li {
    position: relative;
    padding: 0.3rem 0 0.3rem 2.1rem;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.42rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.72rem;
    font-weight: 900;
}

.hero-form-card {
    max-width: 34rem;
    padding: 1.5rem 1.5rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(5, 26, 33, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.hero-form-title {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-aside {
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-aside a {
    color: #7fe8c6;
    font-weight: 800;
    text-decoration: none;
}

.hero-aside a:hover {
    text-decoration: underline;
}

/* ===================== tick strip ===================== */

.tick-strip-wrap {
    background: var(--rivvet-ink);
    padding: 1.5rem 0;
}

/* grid, not flex — five items on one line wrap into a ragged second row
   under space-between, which reads as a mistake */
.tick-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem 1.4rem;
    margin: 0;
    padding: 0;
}

.tick-item {
    position: relative;
    padding-left: 1.9rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.tick-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 5px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.68rem;
    font-weight: 900;
}

/* checkbox bullets on a light background (the hero list's sibling) */

.check-list {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.9rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.64rem;
    font-weight: 900;
}

/* ===================== grids + cards ===================== */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.2rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    padding: 1.7rem;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.66;
}

.card p + p {
    margin-top: 0.8rem;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1.1rem;
    border-radius: 9px;
    background: var(--num-bg);
    color: var(--num-text);
    font-size: 1rem;
    font-weight: 900;
}

/* pillar cards — the home page's doorways into the sub-pages */
.pillar {
    display: flex;
    flex-direction: column;
    padding: 1.9rem;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pillar:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.pillar-num {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pillar h3 {
    margin: 0.9rem 0 0.6rem;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.pillar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.pillar-more {
    margin-top: 1.3rem;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pillar-more::after {
    content: " →";
}

/* ===================== stats ===================== */

.stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem;
    margin-top: 2.2rem;
}

.stat-card {
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--rivvet-green);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.stat-figure {
    color: var(--heading);
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-text {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.62;
}

.stat-text strong {
    color: var(--text);
}

/* ===================== timelines ===================== */

.tl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.tl-card {
    padding: 1.8rem;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.tl-card.with {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.tl-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    color: var(--heading);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tl-badge {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tl-badge.good {
    background: rgba(36, 182, 139, 0.2);
    color: var(--accent);
}

.tl-badge.bad {
    background: rgba(181, 112, 29, 0.14);
    color: var(--warn);
}

ol.tl {
    position: relative;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

ol.tl::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 12px;
    width: 2px;
    background: var(--divider);
}

.tl li {
    position: relative;
    padding: 0 0 1.2rem 2.1rem;
}

.tl li:last-child {
    padding-bottom: 0;
}

.tl li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--muted);
}

.tl-day {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tl-event {
    display: block;
    margin-top: 0.15rem;
    color: var(--heading);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
}

.tl li.tl-hero::before {
    border-color: var(--rivvet-green);
    background: var(--rivvet-green);
    box-shadow: 0 0 0 5px rgba(36, 182, 139, 0.2);
}

.tl li.tl-hero .tl-day,
.tl li.tl-hero .tl-event {
    color: var(--accent);
}

.tl li.tl-open::before {
    border-color: var(--warn);
    border-style: dashed;
    background: transparent;
}

.tl li.tl-open .tl-day {
    color: var(--warn);
}

.tl li.tl-open .tl-event {
    color: var(--muted);
    font-weight: 500;
}

/* ===================== stage list (inside step 1) ===================== */

.stage-list {
    margin: 1.1rem 0 0;
    padding: 0.9rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--accent-soft);
}

.stage-list-title {
    color: var(--heading);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.stage-list-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stage-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.32rem 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.stage-list li em {
    color: var(--muted);
    font-style: normal;
}

/* ===================== worked example ===================== */

.example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.ex-table {
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.ex-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--divider);
}

.ex-table-title {
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ex-table-total {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.ex-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.4rem;
    border-bottom: 1px solid var(--divider);
}

.ex-row:last-child {
    border-bottom: 0;
}

.ex-stage {
    flex: 1;
    min-width: 0;
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.ex-value {
    flex-shrink: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

.pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 138px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.pill-paid {
    background: rgba(36, 182, 139, 0.16);
    color: var(--accent);
}

.pill-available {
    background: rgba(36, 182, 139, 0.2);
    border: 1px solid var(--accent-line);
    color: var(--accent);
}

.pill-available::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rivvet-green);
    animation: pillPulse 1.6s ease-out infinite;
}

@keyframes pillPulse {
    0% { box-shadow: 0 0 0 0 rgba(36, 182, 139, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(36, 182, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 182, 139, 0); }
}

.pill-upcoming {
    background: rgba(92, 117, 126, 0.14);
    color: var(--muted);
}

.breakdown {
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    background: var(--accent-soft);
}

.breakdown-title {
    color: var(--heading);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.bd-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.bd-row b {
    color: var(--text);
    font-weight: 800;
}

.bd-row.total {
    margin-top: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--accent-line);
    color: var(--heading);
    font-weight: 800;
}

.bd-row.total b {
    color: var(--accent);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.breakdown-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* ===================== photo bands ===================== */

.photo-band {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.photo-band img.band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 18, 22, 0.86) 0%,
        rgba(5, 18, 22, 0.6) 62%,
        rgba(5, 18, 22, 0.45) 100%
    );
}

.band-content {
    position: relative;
    max-width: 38rem;
}

.band-content h2 {
    color: #ffffff;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
}

.band-content h2 .accent {
    color: #4fd0a9;
}

.band-content > p {
    margin: 1.3rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.64;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.band-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 4rem;
    align-items: center;
}

.band-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 2rem;
    margin-top: 1.9rem;
}

.band-col-title {
    color: #7fe8c6;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.band-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.band-points li {
    position: relative;
    padding: 0.28rem 0 0.28rem 1.9rem;
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.band-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.32rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.64rem;
    font-weight: 900;
}

.band-strap {
    margin-top: 1.9rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.band-strap span {
    color: #7fe8c6;
}

.band-cta {
    margin-top: 2rem;
}

/* ===================== store badges ===================== */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(6, 16, 20, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
}

.store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-badge-text small {
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.03em;
}

.store-badge-text strong {
    font-size: 0.98rem;
    font-weight: 800;
}

/* ===================== hero phone mockup ===================== */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}

.ip-frame {
    width: 268px;
    padding: 10px;
    border-radius: 34px;
    background: #0d1518;
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}

.ip-screen {
    position: relative;
    height: 420px;
    padding: 14px;
    border-radius: 26px;
    background: linear-gradient(180deg, #073040 0%, #042a35 100%);
    overflow: hidden;
}

.ip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.ip-stage {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ip-timer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--rivvet-green);
    font-size: 0.66rem;
    font-weight: 800;
}

.ip-timer::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rivvet-green);
}

.ip-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 46px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0s linear 0.28s;
    pointer-events: none;
}

.ip-panel.is-on.instant {
    transition-delay: 0s;
}

.ip-panel.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.32s ease 0.26s,
        transform 0.32s ease 0.26s,
        visibility 0s linear 0.26s;
}

.ip-head {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 0.45rem;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
}

.ip-tick {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(36, 182, 139, 0.24);
    color: #35c795;
    font-size: 0.6rem;
    font-weight: 800;
}

.ip-row small {
    display: block;
    color: #9fbcc4;
    font-size: 0.63rem;
    font-weight: 500;
    margin-top: 0.05rem;
}

.ip-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
}

.ip-mini em {
    color: #9fbcc4;
    font-style: normal;
    font-weight: 600;
}

.ip-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 0.7rem;
}

.ip-photos img {
    width: 100%;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.ip-approver {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(36, 182, 139, 0.16);
    border: 1px solid rgba(36, 182, 139, 0.32);
    color: #ffffff;
    font-size: 0.71rem;
    font-weight: 800;
}

.ip-approver small {
    display: block;
    color: #9fbcc4;
    font-size: 0.62rem;
    font-weight: 500;
    margin-top: 0.05rem;
}

.ip-hero-figure {
    margin: auto 0;
    text-align: center;
}

.ip-big {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.is-on .ip-big {
    animation: ipPop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.ip-big.money {
    background: linear-gradient(
        100deg,
        #ffffff 38%,
        #7fe8c6 50%,
        #ffffff 62%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: moneyShimmer 2.4s linear infinite;
}

@keyframes moneyShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@keyframes ipPop {
    0% { transform: scale(0.72); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ip-label {
    margin-top: 0.45rem;
    color: var(--rivvet-green);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ip-meta {
    margin-top: 0.7rem;
    color: #9fbcc4;
    font-size: 0.68rem;
    line-height: 1.5;
}

.ip-cta {
    margin-top: auto;
    padding: 0.7rem;
    border-radius: 10px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.confetti {
    position: absolute;
    inset: -46px 0 0;
    pointer-events: none;
    overflow: visible;
}

.confetti i {
    position: absolute;
    top: 0;
    width: 7px;
    height: 11px;
    border-radius: 2px;
    opacity: 0;
}

.is-on .confetti i {
    animation: confFall 2.3s ease-in forwards;
}

.confetti i:nth-child(1) { left: 8%;  background: #24b68b; animation-delay: 0.35s; }
.confetti i:nth-child(2) { left: 22%; background: #7fe8c6; animation-delay: 0.55s; }
.confetti i:nth-child(3) { left: 34%; background: #ffffff; animation-delay: 0.42s; }
.confetti i:nth-child(4) { left: 47%; background: #24b68b; animation-delay: 0.68s; }
.confetti i:nth-child(5) { left: 58%; background: #7fe8c6; animation-delay: 0.38s; }
.confetti i:nth-child(6) { left: 69%; background: #ffffff; animation-delay: 0.6s;  }
.confetti i:nth-child(7) { left: 80%; background: #24b68b; animation-delay: 0.48s; }
.confetti i:nth-child(8) { left: 90%; background: #7fe8c6; animation-delay: 0.72s; }
.confetti i:nth-child(9) { left: 15%; background: #ffffff; animation-delay: 0.85s; }
.confetti i:nth-child(10) { left: 74%; background: #24b68b; animation-delay: 0.9s; }

@keyframes confFall {
    0% { opacity: 0; transform: translateY(0) rotate(0deg); }
    8% { opacity: 1; }
    100% { opacity: 0; transform: translateY(380px) rotate(520deg); }
}

/* IntersectionObserver pauses everything when offscreen */
.ip-frame.is-paused * {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    .confetti i,
    .ip-big.money,
    .is-on .ip-big,
    .pill-available::before {
        animation: none !important;
    }

    .ip-big.money {
        background: none;
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
    }
}

/* ===================== device mockups (record band) ===================== */

.device-duo {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem 0 2.5rem 2.5rem;
}

.ipad {
    width: min(340px, 78%);
    aspect-ratio: 3 / 4;
    padding: 14px;
    border-radius: 30px;
    background: #10181c;
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
    transform: rotate(2.5deg);
}

.ipad-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #f8f4ec;
    overflow: hidden;
    padding: 12px 14px;
}

.app-statusbar {
    display: flex;
    justify-content: space-between;
    color: #8a8577;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.app-statusbar.dark {
    color: rgba(255, 255, 255, 0.55);
}

.app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.app-title {
    color: #22333a;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.app-sub {
    color: #8a9296;
    font-size: 0.66rem;
    margin-top: 0.1rem;
}

.app-chip {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(36, 182, 139, 0.16);
    color: #1c6654;
    font-size: 0.6rem;
    font-weight: 800;
}

.app-label {
    color: #55636a;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.app-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.app-photos img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 8px;
}

.app-approve {
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: 9px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.app-note {
    margin-top: 0.45rem;
    color: #8a9296;
    font-size: 0.62rem;
    text-align: center;
}

.iphone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(172px, 42%);
    aspect-ratio: 9 / 19;
    padding: 8px;
    border-radius: 28px;
    background: #10181c;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
    transform: rotate(-4deg);
    z-index: 2;
}

.iphone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 21px;
    background: linear-gradient(180deg, #073040 0%, #042a35 100%);
    overflow: hidden;
    padding: 10px 11px;
}

.phone-title {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.phone-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 0.55rem;
}

.phone-tick {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(36, 182, 139, 0.22);
    color: #35c795;
    font-size: 0.62rem;
    font-weight: 800;
}

.phone-card-title {
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
}

.phone-card-sub {
    color: #9fbcc4;
    font-size: 0.56rem;
    margin-top: 0.08rem;
}

.phone-pay {
    padding: 0.8rem 0.55rem;
    border-radius: 10px;
    background: rgba(36, 182, 139, 0.16);
    border: 1px solid rgba(36, 182, 139, 0.35);
    text-align: center;
    margin-bottom: 0.55rem;
}

.phone-pay-amount {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.phone-pay-label {
    color: #4fd0a9;
    font-size: 0.58rem;
    font-weight: 800;
    margin-top: 0.15rem;
}

.phone-next {
    margin-top: auto;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #9fbcc4;
    font-size: 0.58rem;
    font-weight: 600;
}

/* ===================== trade chips ===================== */

.chip-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    gap: 0.6rem 1.6rem;
}

.chip-cols span {
    display: block;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--heading);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===================== FAQs ===================== */

.faq-group {
    max-width: 52rem;
    margin-bottom: 2.8rem;
}

.faq-group-title {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.faq-list {
    max-width: 52rem;
}

.faq {
    margin-bottom: 0.7rem;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 1rem 1.25rem;
    color: var(--heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--num-bg);
    color: var(--num-text);
    font-size: 1rem;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.faq[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 1.25rem 1.1rem;
}

.faq-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.68;
}

.faq-body p + p {
    margin-top: 0.7rem;
}

/* ===================== forms ===================== */

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-form-card .form-label {
    color: rgba(255, 255, 255, 0.86);
}

.form-label .optional {
    color: var(--muted);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.hero-form-card .form-label .optional {
    color: rgba(255, 255, 255, 0.6);
}

.field {
    margin-bottom: 1rem;
}

.wl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.wl-grid .field {
    margin-bottom: 0;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    color: var(--input-text);
    font-size: 1rem;
    background: var(--input-bg);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-form-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.hero-form-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    border-color: var(--rivvet-green);
    box-shadow: 0 0 0 4px rgba(36, 182, 139, 0.2);
}

form .btn-primary {
    margin-top: 1rem;
}

.form-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.hero-form-card .form-note {
    color: rgba(255, 255, 255, 0.66);
}

.form-status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: none;
}

.form-status.error {
    display: block;
    color: #c2451f;
}

.hero-form-card .form-status.error {
    color: #ff9d7a;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* success + referral */

.wl-success[hidden] {
    display: none;
}

.wl-success {
    animation: successIn 0.4s ease;
}

@keyframes successIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-form-card .success-title {
    color: #ffffff;
}

.success-title::before {
    content: "✓";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.85rem;
    font-weight: 900;
}

.success-copy {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-form-card .success-copy {
    color: rgba(255, 255, 255, 0.8);
}

.referral-box {
    margin-top: 1.2rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    background: var(--accent-soft);
}

.referral-label {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.referral-row {
    display: flex;
    gap: 0.5rem;
}

.referral-link {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 0.88rem;
    outline: none;
}

.btn-copy {
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 9px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-copy:active {
    background: var(--rivvet-green-active);
}

.referral-note {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.hero-form-card .referral-note {
    color: rgba(255, 255, 255, 0.78);
}

/* ===================== join panel ===================== */

.register-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 2.8rem;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.register-referral-teaser {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

/* ===================== closing CTA strip ===================== */

.cta-strip {
    padding: 4rem 0;
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(36, 182, 139, 0.22),
            transparent 45%
        ),
        var(--rivvet-teal);
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.cta-strip h2 {
    color: #ffffff;
    max-width: 22em;
    margin: 0 auto;
}

.cta-strip h2 .accent {
    color: #7fe8c6;
}

.cta-strip p {
    margin: 1.2rem auto 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.62;
}

.cta-strip .btn-row {
    justify-content: center;
}

.cta-strip .btn-note {
    color: rgba(255, 255, 255, 0.72);
}

/* onward navigation at the foot of an interior page */
.next-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--divider);
}

.next-step {
    display: block;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.next-step:hover {
    border-color: var(--accent-line);
}

.next-step small {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.next-step strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 800;
}

/* ===================== legal / prose pages ===================== */

.prose {
    max-width: 46rem;
}

.prose h2 {
    margin: 2.6rem 0 0.9rem;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.72;
}

.prose ul {
    padding-left: 1.2rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--accent);
    font-weight: 700;
}

.prose .meta {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===================== footer ===================== */

.site-footer {
    background: var(--rivvet-ink);
    color: #9fbcc4;
    padding: 3.4rem 0 max(2rem, env(safe-area-inset-bottom));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 2.4rem 1.8rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-block .brand-logo {
    width: 128px;
    margin-bottom: 1rem;
}

.footer-blurb {
    margin: 0 0 1.4rem;
    max-width: 22rem;
    color: #9fbcc4;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-col-title {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.15rem;
}

.footer-col a {
    display: inline-block;
    padding: 0.35rem 0;
    color: #9fbcc4;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #9fbcc4;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
    color: #ffffff;
    border-color: var(--rivvet-green);
}

.footer-social svg {
    width: 17px;
    height: 17px;
}

.footer-legal {
    padding-top: 1.8rem;
    color: #6f8d95;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-legal p {
    margin: 0 0 0.6rem;
    max-width: 62rem;
}

/* Registered-company details. A UK limited company has to publish these, so
   they are quieter than the links above but deliberately still legible. */
.footer-entity {
    font-size: 0.76rem;
    opacity: 0.85;
}

.footer-legal a {
    color: #6f8d95;
    font-weight: 700;
}

/* ===================== sticky mobile CTA ===================== */

.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(6, 32, 40, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(120%);
    transition: transform 0.32s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.sticky-cta.is-on {
    transform: translateY(0);
}

.sticky-cta a {
    display: block;
    padding: 0.95rem;
    border-radius: 9px;
    background: var(--rivvet-green);
    color: var(--rivvet-green-ink);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

.sticky-cta a:active {
    background: var(--rivvet-green-active);
}

/* ===================== responsive ===================== */

@media (max-width: 1080px) {
    .nav-link {
        padding: 0 0.6rem;
        font-size: 0.76rem;
    }

    .nav-signin {
        display: none;
    }
}

@media (max-width: 900px) {
    .sticky-cta {
        display: block;
    }

    .site-footer {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }

    /* nav collapses to a toggle-driven panel:
       row 1 is logo | Join waitlist | toggle, row 2 is the panel.
       The logo takes the slack — putting margin-left:auto on the actions
       instead squeezes the toggle onto a row of its own. */
    .brand-logo {
        margin-right: auto;
    }

    .nav-actions {
        order: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .site-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.4rem 0 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-link {
        min-height: 50px;
        padding: 0 0.6rem;
        font-size: 0.88rem;
        border-radius: 8px;
    }

    .nav-link.is-active {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 8px;
    }

    .nav-only-mobile {
        display: inline-flex;
    }

    .utility-tag {
        display: none;
    }

    .utility-inner {
        gap: 0.5rem;
    }

    .audience-switch a {
        padding: 0 0.55rem;
        font-size: 0.72rem;
    }

    .utility-links {
        gap: 0.9rem;
        font-size: 0.75rem;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding: 2rem 0 2.8rem;
    }

    .hero-visual {
        min-height: 0;
    }

    .device-duo {
        flex-direction: column;
        align-items: center;
        gap: 1.4rem;
        padding-left: 0;
    }

    .ipad {
        position: relative;
        width: min(320px, 86%);
        transform: none;
    }

    .iphone {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(190px, 52%);
        transform: none;
    }

    .grid-3,
    .grid-4,
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-grid,
    .example-grid,
    .stats-grid,
    .next-steps {
        grid-template-columns: 1fr;
    }

    .register-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.8rem;
    }

    .section {
        padding: 3.2rem 0;
    }

    .photo-band {
        padding: 4rem 0;
    }

    .band-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .chip-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 640px) {
    /* Landscape hero photo shown whole as a band under the nav rather
       than cropped to a portrait sliver — the discipline the old page
       had, kept. */
    .hero-bg,
    .hero-scrim {
        top: 0;
        bottom: auto;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .hero-scrim {
        background: linear-gradient(
            180deg,
            rgba(7, 34, 43, 0.5) 0%,
            rgba(7, 34, 43, 0.1) 26%,
            rgba(7, 34, 43, 0.35) 60%,
            rgba(7, 34, 43, 0.9) 86%,
            var(--rivvet-ink) 100%
        );
    }

    .hero-inner {
        padding-top: calc(66.7vw - 40px);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .tick-strip {
        flex-direction: column;
        gap: 0.7rem;
    }

    .wl-grid {
        grid-template-columns: 1fr;
    }

    .hero-form-card {
        padding: 1.2rem 1.1rem 1.1rem;
    }

    /* no phone bezel on a phone — show the app UI as a flat card */
    .ip-frame {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .ip-screen {
        height: 340px;
        border-radius: 18px;
        box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
    }

    .band-cols,
    .chip-cols,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ex-row {
        flex-wrap: wrap;
        gap: 0.35rem 0.9rem;
    }

    .ex-stage {
        flex-basis: 100%;
    }

    .pill {
        min-width: 0;
    }

    .btn {
        width: 100%;
    }

    .btn-note {
        display: block;
        width: 100%;
    }

    /* the audience switch is the one thing that must survive the top strip
       at 375px — the email address is in the footer and on /about/ */
    .utility-links .utility-email {
        display: none;
    }

    /* logo + CTA + toggle have to share ~330px of usable width */
    .nav-inner {
        gap: 0.6rem;
    }

    .brand-logo {
        width: 104px;
    }

    .nav-cta {
        padding: 0 0.85rem;
        font-size: 0.72rem;
    }

    /* device mockup text bottoms out around 9px otherwise */
    .app-statusbar { font-size: 0.68rem; }
    .app-title { font-size: 1.05rem; }
    .app-sub,
    .app-note { font-size: 0.78rem; }
    .app-chip,
    .app-label { font-size: 0.75rem; }
    .app-approve { font-size: 0.88rem; }
    .phone-title { font-size: 0.86rem; }
    .phone-card-title,
    .phone-pay-label,
    .phone-next { font-size: 0.72rem; }
    .phone-card-sub { font-size: 0.68rem; }
    .phone-pay-amount { font-size: 1.35rem; }
    .store-badge-text small { font-size: 0.75rem; }
}
