:root {
    color-scheme: light;
    --ink: #15201c;
    --muted: #60716b;
    --line: #d9e4df;
    --surface: #f7faf8;
    --panel: #ffffff;
    --mint: #d7f2df;
    --leaf: #1f7a4d;
    --coral: #d95d4f;
    --amber: #f2a900;
    --cream: #fff7e8;
    --slate: #102431;
    --sky: #d8ecff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.86fr);
    align-items: center;
    gap: clamp(32px, 7vw, 96px);
    padding: clamp(42px, 7vw, 104px) clamp(18px, 6vw, 88px);
    background:
        radial-gradient(circle at 86% 18%, rgba(242, 169, 0, 0.24), transparent 28%),
        radial-gradient(circle at 12% 24%, rgba(215, 242, 223, 0.95), transparent 34%),
        linear-gradient(135deg, #fbf7ef 0%, #edf8f1 48%, #f7fbf9 100%);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -34% 46%;
    height: 360px;
    border-radius: 999px;
    background: rgba(16, 36, 49, 0.07);
    transform: rotate(-8deg);
}

.landing-hero .hero-copy,
.product-preview {
    position: relative;
    z-index: 1;
}

.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 16px 6px 8px;
    border: 1px solid rgba(16, 36, 49, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(16, 36, 49, 0.08);
    color: var(--leaf);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-lockup img,
.phone-topline img {
    width: 40px;
    height: 40px;
}

.landing-hero h1 {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--slate);
    font-size: clamp(3rem, 7.6vw, 6.7rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.hero-trust {
    max-width: 560px;
    color: var(--muted);
    font-weight: 700;
}

.pill-button {
    min-height: 52px;
    border-radius: 999px;
    padding: 0 22px;
}

.product-preview {
    display: grid;
    place-items: center;
}

.preview-phone {
    position: relative;
    width: min(100%, 380px);
    min-height: 610px;
    border: 12px solid var(--slate);
    border-radius: 42px;
    background: linear-gradient(180deg, #fbf7ef, #f2fbf5);
    padding: 24px;
    box-shadow: 0 34px 90px rgba(16, 36, 49, 0.24);
}

.phone-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--slate);
    font-weight: 900;
}

.stat-card,
.timeline-chip,
.mentor-bubble,
.calm-support-card {
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(16, 36, 49, 0.08);
}

.stat-card {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding: 22px;
}

.stat-card span,
.timeline-chip span,
.mentor-bubble span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--slate);
    font-size: 3.4rem;
    line-height: 1;
}

.savings-card {
    margin-left: 46px;
    background: linear-gradient(135deg, #fff7e8, #ffffff);
}

.savings-card strong {
    color: #8a5a00;
}

.timeline-chip {
    margin-top: 22px;
    padding: 18px;
}

.timeline-chip strong {
    display: block;
    margin-top: 6px;
    color: var(--leaf);
}

.mentor-bubble {
    margin: 22px 34px 0 0;
    padding: 18px;
    background: #eaf8ef;
}

.mentor-bubble p {
    margin: 8px 0 0;
    color: var(--slate);
    font-weight: 800;
}

.sos-fab {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d7354a, #ff7a5c);
    color: white;
    font-weight: 1000;
    box-shadow: 0 18px 36px rgba(215, 53, 74, 0.32);
}

.landing-section {
    padding: clamp(48px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.intro-section,
.apps-section {
    background: #f8fbf8;
}

.split-section,
.trust-section {
    background: #fffaf0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.sos-copy h2,
.landing-final h2 {
    margin: 0;
    color: var(--slate);
    font-size: clamp(2rem, 4.6vw, 4.1rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.sos-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.landing-grid {
    display: grid;
    gap: 18px;
}

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

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

.landing-card,
.step-card {
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    padding: 26px;
    box-shadow: 0 18px 44px rgba(16, 36, 49, 0.07);
}

.landing-card h3,
.step-card h3 {
    margin: 18px 0 8px;
    color: var(--slate);
    font-size: 1.35rem;
}

.landing-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--mint);
}

.card-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--leaf);
}

.card-icon.sos {
    background: #ffe2dd;
}

.card-icon.sos::before {
    background: var(--coral);
}

.card-icon.mentor,
.card-icon.ios {
    background: #e8f1ff;
}

.card-icon.mentor::before,
.card-icon.ios::before {
    background: #3a6478;
}

.card-icon.android {
    background: #fff0c2;
}

.card-icon.android::before {
    background: var(--amber);
}

.steps-list {
    display: grid;
    gap: 14px;
}

.step-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.step-card > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--slate);
    color: white;
    font-weight: 900;
}

.step-card h3 {
    margin-top: 0;
}

.sos-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 32px;
    align-items: center;
    background:
        radial-gradient(circle at 85% 22%, rgba(215, 242, 223, 0.9), transparent 30%),
        linear-gradient(135deg, #fff7e8, #f4fbf6);
}

.sos-copy small {
    display: block;
    max-width: 680px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.calm-support-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    background: #eaf8ef;
}

.calm-support-card span {
    color: var(--leaf);
    font-weight: 1000;
}

.calm-support-card button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--slate);
    color: white;
    font: inherit;
    font-weight: 900;
}

.calm-support-card .secondary-action {
    background: rgba(255, 255, 255, 0.74);
    color: var(--slate);
}

.compare-section {
    background: #f8fbf8;
}

.pro-value-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 24px;
    align-items: center;
    margin: 0 0 24px;
    border: 1px solid rgba(138, 90, 0, 0.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 16%, rgba(242, 169, 0, 0.34), transparent 34%),
        linear-gradient(135deg, #fff6dc, #ecf9f0);
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 22px 56px rgba(16, 36, 49, 0.09);
}

.pro-value-hero h3 {
    max-width: 720px;
    margin: 0;
    color: var(--slate);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.pro-value-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 14px 0 0;
    color: #4f625a;
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 750;
}

.value-equation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.value-equation span {
    display: grid;
    place-items: center;
    min-height: 108px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--slate);
    padding: 16px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 1000;
    box-shadow: inset 0 0 0 1px rgba(16, 36, 49, 0.06);
}

.value-equation span:first-child {
    color: #8a5a00;
}

.value-equation span:last-child {
    background: var(--slate);
    color: white;
}

.value-equation strong {
    color: var(--leaf);
    font-size: 2.4rem;
}

.comparison-table {
    overflow: hidden;
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 28px;
    background: white;
    box-shadow: 0 18px 44px rgba(16, 36, 49, 0.07);
}

.comparison-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.5fr) minmax(130px, 0.55fr);
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.comparison-row:first-child {
    border-top: 0;
}

.comparison-header {
    background: var(--slate);
    color: white;
}

.comparison-row span:first-child {
    color: var(--slate);
    font-weight: 800;
}

.value-note {
    margin: 18px 0 0;
    border-radius: 22px;
    background: var(--cream);
    padding: 18px 22px;
    color: #7a5200;
    font-weight: 900;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.trust-list div {
    min-height: 116px;
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    padding: 22px;
    color: var(--slate);
    font-weight: 900;
    line-height: 1.45;
}

.landing-final {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: clamp(56px, 9vw, 112px) clamp(18px, 6vw, 88px);
    background: linear-gradient(135deg, var(--slate), #18384a);
    text-align: center;
}

.landing-final h2 {
    max-width: 980px;
    color: white;
}

.hero {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: clamp(28px, 7vw, 96px);
    padding: clamp(32px, 7vw, 96px);
    background: linear-gradient(135deg, #f7faf8 0%, #d7f2df 52%, #d8ecff 100%);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.eyebrow {
    color: var(--leaf);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.lede {
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.actions,
.links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    background: var(--leaf);
    color: white;
    border-color: var(--leaf);
}

.ghost {
    background: white;
    color: var(--ink);
}

.phone-panel {
    justify-self: center;
    width: min(100%, 340px);
    min-height: 520px;
    border: 12px solid #1c2521;
    border-radius: 32px;
    background: white;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(21, 32, 28, 0.22);
}

.phone-status {
    color: var(--muted);
    font-weight: 800;
}

.progress-ring {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    margin: 56px auto 28px;
    border: 18px solid var(--mint);
    border-top-color: var(--leaf);
    border-radius: 50%;
    font-size: 4rem;
    font-weight: 900;
}

.benefits,
.metric-grid,
.status-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 28px clamp(18px, 5vw, 72px);
}

.benefits article,
.metric-grid article,
.status-strip article,
.admin-login form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.benefits h2 {
    margin: 10px 0 0;
    font-size: 1.15rem;
}

.benefits span {
    display: block;
    width: 28px;
    height: 6px;
    background: var(--coral);
    border-radius: 4px;
}

.download,
.error-page {
    padding: 36px clamp(18px, 5vw, 72px) 72px;
}

.dashboard,
.admin-login {
    padding: 32px clamp(18px, 5vw, 72px);
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.dashboard h1,
.admin-login h1 {
    margin: 0;
    font-size: 2.2rem;
}

.metric-grid strong,
.status-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
}

.metric-grid span,
.status-strip span,
.muted-copy {
    color: var(--muted);
}

.ready {
    color: var(--leaf);
}

.attention {
    color: #a15c00;
}

.not-ready,
.alert,
.validation {
    color: var(--coral);
}

.alert {
    background: #fff1ef;
    border: 1px solid #f2b3aa;
    border-radius: 8px;
    margin-top: 20px;
    padding: 14px;
}

.dashboard-section-heading,
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-section-heading {
    padding: 8px clamp(18px, 5vw, 72px) 0;
}

.dashboard-section-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-section-heading span,
.panel-heading span,
.detail-list dt,
.notes-list,
.runbook-links {
    color: var(--muted);
}

.operator-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    padding: 16px clamp(18px, 5vw, 72px) 28px;
}

.operator-panel,
.empty-state,
.runbook-links {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.empty-state {
    margin: 0 clamp(18px, 5vw, 72px) 24px;
}

.empty-state p,
.check-row p {
    color: var(--muted);
    margin: 6px 0 0;
}

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill.unknown,
.status-pill.neutral,
.unknown {
    color: var(--muted);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.detail-list div {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.detail-list dt {
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-list dd {
    margin: 4px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.resource-list dd {
    font-size: 1rem;
}

.notes-list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.notes-list li + li {
    margin-top: 8px;
}

.runbook-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 clamp(18px, 5vw, 72px) 40px;
    font-size: 0.9rem;
}

.admin-login {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 70px);
}

.admin-login form {
    width: min(100%, 420px);
}

label {
    display: block;
    margin: 18px 0 6px;
    color: var(--muted);
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
}

form .button {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .landing-hero,
    .sos-section {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
    }

    .landing-hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.6rem);
    }

    .preview-phone {
        min-height: 560px;
    }

    .landing-grid.three,
    .landing-grid.two,
    .trust-list {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        border-radius: 22px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .pro-value-hero,
    .value-equation {
        grid-template-columns: 1fr;
    }

    .value-equation strong {
        transform: rotate(90deg);
        justify-self: center;
    }

    .comparison-header {
        display: none;
    }

    .savings-card {
        margin-left: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .phone-panel {
        min-height: 420px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-section-heading,
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .operator-panels {
        grid-template-columns: 1fr;
    }
}
