/* ==========================================================================
   Circalo — design system (light brand)
   Navy #002858 · Green #20A880 / #3EC49E · Shell #F5F7F9
   ========================================================================== */

:root {
    --navy:       #002858;
    --navy-deep:  #00193A;
    --green:      #20A880;
    --green-2:    #3EC49E;
    --green-ink:  #147C60;
    --shell:      #F5F7F9;
    --shell-2:    #FAFCFD;
    --paper:      #FFFFFF;
    --ink:        #002858;
    --muted:      #5B6B7C;
    --muted-2:    #8A9AAA;
    --line:       #E2E8EF;
    --line-2:     #D5DEE7;
    --line-3:     #EDF1F5;
    --grid:       #E6EBF1;
    --warn:       #C1674B;
    --warn-soft:  #D9A441;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --maxw: 1240px;
    --gut: clamp(20px, 3vw, 32px);
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--shell);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-ink); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

::selection {
    background: var(--green-2);
    color: var(--navy);
}

@keyframes blip {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-24px, -12px, 0); }
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.mono {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: var(--green);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gut);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green);
    color: #fff;
}

.btn-accent {
    background: var(--green);
    color: #fff;
}

.btn-accent:hover {
    background: var(--navy);
    color: #fff;
}

.btn-ghost {
    background: var(--paper);
    color: var(--navy);
    border-color: var(--line-2);
}

.btn-ghost:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 0.95rem;
}

.btn .arrow {
    font-family: var(--mono);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Brand mark
   -------------------------------------------------------------------------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
    text-decoration: none;
}

.brand:hover { color: var(--navy); }

.brand-mark {
    width: 32px;
    height: 34px;
    display: block;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-tag {
    font-family: var(--mono);
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    color: var(--green);
    margin-top: 0.28rem;
    text-transform: uppercase;
}

.brand-on-dark { color: #fff; }
.brand-on-dark .brand-tag { color: var(--green-2); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 247, 249, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px var(--gut);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--navy); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--navy);
    padding: 0.4rem;
    cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; display: block; }

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

.section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-ink);
    margin-bottom: 1.1rem;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: pretty;
    max-width: 22ch;
}

.section-intro {
    margin-top: 1.35rem;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 58ch;
    line-height: 1.65;
}

.section-punch {
    margin-top: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    max-width: 58ch;
    line-height: 1.5;
}

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

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.55;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    right: -6%;
    top: 38%;
    width: 78%;
    opacity: 0.5;
    pointer-events: none;
    animation: drift 26s ease-in-out infinite;
}

.hero-inner {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6.5rem) var(--gut) 0;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.hero-brand-mark {
    width: 56px;
    height: 59px;
    display: block;
    flex: none;
}

.hero-brand-text { line-height: 1; }

.hero-brand-name {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.hero-brand-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 0.55rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-ink);
    margin-bottom: 1.75rem;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blip 2.4s ease-in-out infinite;
    flex: none;
}

.hero h1 {
    font-size: clamp(2.75rem, 6.2vw, 5.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 16ch;
    text-wrap: pretty;
}

.hero h1 .accent { color: var(--green); }

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 42ch;
    margin-top: 1.75rem;
    text-wrap: pretty;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-sub p { margin: 0; }

.hero-sub p:first-child {
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2.35rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-bottom: none;
    margin-top: 5.25rem;
}

.stat {
    background: var(--shell);
    padding: 1.5rem 1.6rem;
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
    line-height: 1.1;
}

.stat-value span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */

.problem-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.problem-sticky {
    position: sticky;
    top: 6.5rem;
}

.problem-sticky .section-title { max-width: 18ch; }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.problem-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 2px solid var(--navy);
    padding: 1.75rem;
    transition: border-color 0.15s;
}

.problem-card:hover { border-color: #C9D4DF; }

.problem-tag {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.problem-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.9rem 0 0.5rem;
    letter-spacing: -0.01em;
}

.problem-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   How it works (navy band)
   -------------------------------------------------------------------------- */

.how {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.how-wave {
    position: absolute;
    left: -10%;
    bottom: -8%;
    width: 70%;
    opacity: 0.22;
    pointer-events: none;
    animation: drift 32s ease-in-out infinite;
}

.how .wrap { position: relative; }

.how .section-num { color: var(--green-2); }

.how .section-title {
    color: #fff;
    max-width: 18ch;
}

.how .section-intro {
    color: #A9BDCE;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 3.5rem;
}

.tier {
    background: var(--navy);
    padding: 1.9rem 1.6rem;
}

.tier-confidential {
    background: var(--navy-deep);
    border-left: 2px solid var(--green);
}

.tier-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.tier-n {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-2);
}

.tier-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #6E8AA3;
}

.tier h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.tier p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #A9BDCE;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.step-n {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--green-2);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #A9BDCE;
}

/* --------------------------------------------------------------------------
   Product viewer
   -------------------------------------------------------------------------- */

.product-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.product-head .section-intro {
    margin: 0;
    max-width: 28ch;
}

.viewer-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.viewer-tab {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--sans);
    border: 1px solid var(--line-2);
    background: var(--paper);
    color: var(--muted);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.viewer-tab:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.viewer-tab[aria-selected="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.viewer-tab .t-num {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    opacity: 0.65;
}

.viewer-tab .t-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.viewer-frame {
    background: var(--paper);
    border: 1px solid var(--line);
}

.viewer-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--shell-2);
}

.viewer-path,
.viewer-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
}

.viewer-path {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.viewer-path::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}

.viewer-meta { color: var(--muted-2); }

.viewer-stage {
    padding: 2rem;
    background: var(--shell);
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Product screens — rendered as live HTML so the copy stays editable and the
   "illustrative data" label cannot be separated from the screen.
   -------------------------------------------------------------------------- */

.screen-frame {
    position: relative;
    width: 100%;
    max-width: 1000px;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
    container-type: inline-size;
}

.screen-frame::after {
    content: 'ILLUSTRATIVE DATA';
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 0.28rem 0.55rem;
    pointer-events: none;
}

.viewer-stage.is-phone .screen-frame {
    max-width: 22rem;
    border-radius: 22px;
    border-width: 8px;
    border-color: var(--navy);
}

/* Everything inside .scr sizes from one container-relative font-size, so each
   screen scales with the frame instead of at fixed pixels. */
.scr {
    font-size: clamp(8px, 1.5cqw, 11.5px);
    line-height: 1.45;
    color: var(--ink);
    background: var(--shell);
    display: grid;
    grid-template-columns: 15em 1fr;
    min-height: 34em;
}

.viewer-stage.is-phone .scr {
    font-size: clamp(9px, 3.7cqw, 13px);
    grid-template-columns: 1fr;
    min-height: 33em;
}

.scr-mono {
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72em;
}

/* Sidebar */
.scr-side {
    background: var(--navy);
    color: #fff;
    padding: 1.2em 1em;
    display: flex;
    flex-direction: column;
    gap: 1.4em;
}

.scr-brand {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 650;
    font-size: 1.1em;
    letter-spacing: -0.01em;
}

.scr-brand svg { width: 1.5em; height: 1.5em; flex: none; }

.scr-navlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.scr-navlist li {
    padding: 0.5em 0.65em;
    border-radius: 0.3em;
    color: #A9BDCE;
    font-size: 0.95em;
}

.scr-navlist li.on {
    background: rgba(62, 196, 158, 0.14);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--green-2);
}

.scr-side-foot {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.9em;
    color: #6E8AA3;
}

.scr-side-foot strong {
    display: block;
    color: var(--green-2);
    font-weight: 500;
    margin-top: 0.3em;
}

/* Main column — extra bottom room so the corner label never sits on content. */
.scr-main {
    padding: 1.2em 1.4em 2.6em;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    min-width: 0;
}

.scr-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--line);
}

.scr-top h4 {
    font-size: 1.35em;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.scr-top .sub {
    color: var(--muted);
    font-size: 0.92em;
    margin-top: 0.25em;
}

.scr-user {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2em;
    padding: 0.35em 0.75em 0.35em 0.4em;
    color: var(--muted);
    font-size: 0.88em;
    white-space: nowrap;
    flex: none;
}

.scr-avatar {
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8em;
    font-weight: 700;
    flex: none;
}

/* Chips */
.scr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
}

.scr-chip {
    border: 1px solid var(--line-2);
    border-radius: 2em;
    padding: 0.3em 0.8em;
    font-size: 0.88em;
    color: var(--muted);
    background: var(--paper);
}

.scr-chip.on {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

/* Stat cards */
.scr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7em;
}

.scr-stat {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 0.8em 0.85em;
}

.scr-stat .k {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.68em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

.scr-stat .v {
    font-size: 1.55em;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-top: 0.25em;
}

.scr-stat .n {
    color: var(--muted);
    font-size: 0.82em;
    margin-top: 0.1em;
}

.scr-stat .n.pos { color: var(--green-ink); }

/* Panels */
.scr-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}

.scr-panel.sealed {
    background: var(--shell-2);
    border-style: dashed;
    border-color: var(--line-2);
}

.scr-panel-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    padding: 0.7em 0.9em;
    border-bottom: 1px solid var(--line);
    background: var(--shell-2);
    font-family: var(--mono);
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.scr-panel-h .act { color: var(--green-ink); }

.scr-rows { display: flex; flex-direction: column; }

.scr-row {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.6em 0.9em;
    border-bottom: 1px solid var(--line-3);
    font-size: 0.92em;
}

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

.scr-row .grow { flex: 1; min-width: 0; }

.scr .who { font-weight: 600; }

.scr .meta {
    color: var(--muted);
    font-size: 0.88em;
    margin-top: 0.1em;
}

.scr-row .time {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.78em;
    white-space: nowrap;
    flex: none;
}

.scr-dot {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}

.scr-dot.wait { background: var(--muted-2); }

.scr-badge {
    border-radius: 0.25em;
    padding: 0.2em 0.55em;
    font-family: var(--mono);
    font-size: 0.7em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: none;
    border: 1px solid;
}

.scr-badge.ok {
    color: var(--green-ink);
    border-color: rgba(32, 168, 128, 0.4);
    background: rgba(32, 168, 128, 0.08);
}

.scr-badge.wait {
    color: var(--muted);
    border-color: var(--line-2);
    background: transparent;
}

.scr-hazard {
    color: #9A6B1E;
    border-color: rgba(217, 164, 65, 0.5);
    background: rgba(217, 164, 65, 0.12);
}

/* Two-column body inside a screen */
.scr-cols {
    display: grid;
    grid-template-columns: 1fr 15.5em;
    gap: 0.9em;
    align-items: start;
}

.scr-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    min-width: 0;
}

/* Tier rows inside a screen */
.scr-tier {
    display: flex;
    gap: 0.7em;
    padding: 0.7em 0.9em;
    border-bottom: 1px solid var(--line-3);
}

.scr-tier:last-child { border-bottom: 0; }

.scr-tier.sealed { background: var(--shell-2); }

.scr-tier .bar {
    width: 2px;
    background: var(--tc, var(--muted-2));
    flex: none;
}

.scr-tier .tt {
    font-family: var(--mono);
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tc, var(--muted-2));
}

.scr-tier .tb {
    color: var(--muted);
    font-size: 0.88em;
    margin-top: 0.2em;
}

/* Lifecycle timeline */
.scr-life {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    padding: 0.85em 0.9em;
}

.scr-life-item {
    display: flex;
    gap: 0.7em;
    align-items: flex-start;
    font-size: 0.9em;
}

.scr-life-item .pip {
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    margin-top: 0.35em;
    flex: none;
}

.scr-life-item.now .pip { background: var(--green); }
.scr-life-item.future .pip { border-color: var(--muted-2); }
.scr-life-item .lt { font-weight: 600; }
.scr-life-item .lm { color: var(--muted); font-size: 0.88em; }

/* QR panel */
.scr-carrier {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.85em 0.9em;
}

.scr-carrier .glyph {
    width: 3.4em;
    height: 3.4em;
    background: #fff;
    border: 1px solid var(--line);
    flex: none;
    padding: 0.3em;
}

.scr-carrier .glyph svg { width: 100%; height: 100%; display: block; }

.scr-carrier > div { min-width: 0; }

.scr-carrier .meta { overflow-wrap: anywhere; }

/* Recycler intake specifics */
.scr-sign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    padding: 0.8em 0.9em;
    border-top: 1px solid var(--line);
    font-size: 0.9em;
    color: var(--muted);
}

.scr-btn {
    background: var(--navy);
    color: #fff;
    border-radius: 0.25em;
    padding: 0.45em 0.9em;
    font-weight: 650;
    font-size: 0.9em;
    flex: none;
}

.scr-input {
    border: 1px solid var(--line-2);
    border-radius: 0.25em;
    background: var(--shell-2);
    padding: 0.5em 0.7em;
    color: var(--ink);
    font-size: 0.92em;
}

.scr-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.scr-field .k {
    font-family: var(--mono);
    font-size: 0.68em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.scr-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7em;
    padding: 0.85em 0.9em;
}

.scr-sealed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0.85em 0.9em;
}

.scr-sealed-list div {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--muted-2);
    font-size: 0.9em;
}

.scr-sealed-list svg {
    width: 0.9em;
    height: 0.9em;
    flex: none;
    stroke: var(--muted-2);
}

/* Public / phone screen */
.scr-public {
    display: flex;
    flex-direction: column;
    background: var(--shell);
}

.scr-banner {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1em;
    background: var(--navy);
    color: var(--green-2);
    font-family: var(--mono);
    font-size: 0.74em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scr-hero-p {
    padding: 1.1em 1em;
    background: var(--navy);
    color: #fff;
}

.scr-hero-p .brand {
    font-family: var(--mono);
    font-size: 0.74em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-2);
}

.scr-hero-p h5 {
    font-size: 1.25em;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-top: 0.3em;
}

.scr-hero-p .id {
    font-family: var(--mono);
    font-size: 0.8em;
    color: #A9BDCE;
    margin-top: 0.25em;
}

.scr-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.scr-metric {
    background: var(--paper);
    padding: 0.85em 1em;
}

.scr-metric .k {
    font-family: var(--mono);
    font-size: 0.68em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.scr-metric .v {
    font-size: 1.3em;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-top: 0.2em;
}

.scr-list {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.scr-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    padding: 0.7em 1em;
    border-bottom: 1px solid var(--line-3);
    font-size: 0.94em;
}

.scr-list-item:last-child { border-bottom: 0; }
.scr-list-item .k { color: var(--muted); }
.scr-list-item .v { font-weight: 600; text-align: right; }

.scr-foot-p {
    margin-top: auto;
    padding: 0.9em 1em 3.4em;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.viewer-copy {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.viewer-copy h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.viewer-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

.viewer-caption {
    margin-top: 1.1rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Coverage
   -------------------------------------------------------------------------- */

.coverage-band {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.table-wrap {
    margin-top: 3.25rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.coverage {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.coverage th {
    text-align: left;
    padding: 0.9rem 1.5rem;
    background: var(--shell-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
}

.coverage th:nth-child(3),
.coverage th:nth-child(4),
.coverage td:nth-child(3),
.coverage td:nth-child(4) {
    text-align: right;
}

.coverage td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line-3);
    font-size: 0.95rem;
    vertical-align: middle;
}

.coverage tr:last-child td { border-bottom: 0; }

.coverage tbody tr:hover { background: var(--shell-2); }

.coverage td:first-child {
    font-size: 1rem;
    font-weight: 600;
}

.coverage td:nth-child(2) { color: var(--muted); }

.coverage .num {
    font-family: var(--mono);
    font-size: 0.95rem;
}

.status {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.status.live { color: var(--green-ink); }
.status.dev { color: var(--warn-soft); }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.audience {
    border: 1px solid var(--line);
    border-left: 2px solid var(--green);
    padding: 1.6rem 1.5rem;
    background: var(--shell-2);
}

.audience h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.audience p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Standards
   -------------------------------------------------------------------------- */

.standards {
    border-top: 1px solid var(--line);
    padding: 2.75rem 0;
    background: var(--shell);
}

.standards-label {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 1rem;
}

.standards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    list-style: none;
    margin-bottom: 1rem;
}

.standards-list li {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
}

.standards p {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 70ch;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.35rem 2rem 1.35rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    color: var(--navy);
}

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

.faq summary:hover { color: var(--green-ink); }

.faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--muted-2);
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
    padding: 0 2rem 1.4rem 0;
    color: var(--muted);
    max-width: 68ch;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-band { border-top: 1px solid var(--line); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title { max-width: 16ch; }

.contact-info > p {
    margin: 1.35rem 0 2.25rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 36ch;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    max-width: 26rem;
}

.contact-details > div {
    background: var(--shell);
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-details .k {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
}

.contact-details a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    /* Grow the tap area to 44px without making the row taller. */
    margin-block: -10px;
    color: var(--navy);
    font-weight: 500;
}

.contact-details a:hover { color: var(--green-ink); }

.form {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.field .req { color: var(--green); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--shell-2);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 0.95rem;
    transition: border-color 0.15s, outline 0.15s;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted-2) 50%),
        linear-gradient(135deg, var(--muted-2) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
}

.field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 0.75rem;
    color: var(--muted-2);
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

.form-note a { color: var(--green-ink); }

.form-thanks { display: none; text-align: center; padding: 2.75rem 0.5rem; }
.form-thanks.on { display: block; }
.form-thanks .mono { color: var(--green); margin-bottom: 0.85rem; }
.form-thanks h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-thanks p { color: var(--muted); font-size: 0.95rem; }
.form-fields.off { display: none; }

.form-error {
    display: none;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--warn);
}

.form-error.on { display: block; }

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

.footer {
    background: var(--navy);
    color: #fff;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3.5rem var(--gut);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
    color: #A9BDCE;
    text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-legal {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #6E8AA3;
}

/* --------------------------------------------------------------------------
   Document pages
   -------------------------------------------------------------------------- */

.doc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem var(--gut);
    border-bottom: 1px solid var(--line);
    background: var(--shell);
}

.doc-back {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

.doc-back:hover { color: var(--navy); }

.doc {
    max-width: 46rem;
    margin: 0 auto;
    padding: 4.5rem var(--gut) 6rem;
    counter-reset: doc-section;
}

.doc h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.doc-meta {
    margin-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.doc h2 {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin: 2.75rem 0 0.9rem;
}

.doc h2::before {
    content: counter(doc-section, decimal-leading-zero);
    counter-increment: doc-section;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--green);
    font-weight: 500;
}

.doc p,
.doc li {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.doc ul { margin: 0 0 1rem 1.25rem; }
.doc li { margin-bottom: 0.45rem; }
.doc strong { color: var(--navy); font-weight: 600; }
.doc a { color: var(--green-ink); }

.doc address {
    font-style: normal;
    color: var(--muted);
    line-height: 1.75;
}

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

@media (max-width: 1060px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .audience-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .viewer-copy { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .problem-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .problem-sticky { position: static; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }

    .scr {
        grid-template-columns: 1fr;
        font-size: clamp(8px, 2.1cqw, 12px);
    }
    .scr-side { display: none; }
    .scr-stats { grid-template-columns: repeat(2, 1fr); }
    .scr-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-right { gap: 0.6rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--shell);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gut) 1rem;
    }

    .nav-links.open { display: flex; }

    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links li:last-child { border-bottom: 0; }
    .nav-links a { display: block; padding: 0.9rem 0; }

    /* 44px is the minimum comfortable touch target, and this is the only way
       to reach the menu on a phone. */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    /* At 8px the tagline wraps to two lines and reads as a mistake. The hero
       lockup directly below carries it at a legible size instead. */
    .nav .brand-tag { display: none; }

    .problem-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-wave { width: 120%; opacity: 0.35; }
    .viewer-stage { padding: 1.25rem; }
    .scr-form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* Below ~400px the brand, the CTA and the menu button stop fitting on one row
   and push the whole page into a horizontal scroll. */
@media (max-width: 400px) {
    .brand-name { font-size: 1.125rem; }
    .nav-inner .btn { padding: 0.65rem 0.8rem; font-size: 0.875rem; }
}

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