: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 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand img {
    width: 42px;
    height: 42px;
}

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

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

.landing-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    gap: clamp(20px, 4vw, 52px);
    align-items: stretch;
    padding: clamp(22px, 4vw, 54px) clamp(18px, 5vw, 72px) 20px;
    background:
        radial-gradient(circle at 88% 10%, rgba(242, 169, 0, 0.2), transparent 22%),
        radial-gradient(circle at 10% 8%, rgba(215, 242, 223, 0.88), transparent 30%),
        linear-gradient(135deg, #fbf7ef 0%, #f2fbf5 46%, #f8fbf8 100%);
}

.dashboard-hero-card,
.dashboard-preview-card,
.compact-panel,
.sos-compact-card,
.pro-compact-card {
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 24px 70px rgba(16, 36, 49, 0.1);
}

.dashboard-hero-card {
    display: grid;
    align-content: center;
    padding: clamp(26px, 4vw, 50px);
}

.dashboard-hero-card h1 {
    max-width: 860px;
    margin: 10px 0 0;
    color: var(--slate);
    font-size: clamp(1.85rem, 3.3vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero-eyebrow {
    margin-bottom: 0;
}

.dashboard-hero-card .lede {
    max-width: 760px;
    margin-bottom: 18px;
}

.dashboard-preview-card {
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 28px);
    background:
        radial-gradient(circle at 72% 16%, rgba(242, 169, 0, 0.18), transparent 32%),
        rgba(255, 255, 255, 0.62);
}

.hero-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.hero-signal-grid span {
    min-height: 64px;
    border-radius: 22px;
    background: #f2fbf5;
    padding: 14px;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.25;
}

.compact-phone {
    width: min(100%, 350px);
    min-height: 520px;
    border-width: 10px;
    border-radius: 38px;
    padding: 20px;
}

.phone-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 5px;
}

.phone-tabs span,
.phone-tabs strong {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
}

.phone-tabs strong {
    background: var(--slate);
    color: white;
}

.phone-stat-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    margin-top: 16px;
}

.compact-phone .stat-card {
    margin: 0;
    padding: 16px;
    border-radius: 22px;
}

.compact-phone .stat-card strong {
    font-size: clamp(1.95rem, 5vw, 2.8rem);
}

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

.compact-phone .timeline-chip,
.compact-phone .mentor-bubble {
    margin-top: 14px;
    border-radius: 22px;
}

.compact-phone .mentor-bubble {
    margin-right: 42px;
}

.compact-phone .sos-fab {
    width: 66px;
    height: 66px;
    right: 18px;
    bottom: 18px;
}

.landing-compact-grid,
.landing-compact-split,
.landing-apps-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: #f8fbf8;
}

.landing-compact-split {
    background: #fffaf0;
}

.landing-apps-trust {
    padding-bottom: clamp(28px, 5vw, 64px);
}

.compact-panel,
.sos-compact-card,
.pro-compact-card {
    padding: clamp(22px, 3vw, 34px);
}

.compact-panel-heading h2,
.sos-compact-card h2,
.pro-compact-card h2 {
    margin: 0;
    color: var(--slate);
    font-size: clamp(1.85rem, 3.3vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.compact-panel-heading p:not(.eyebrow),
.sos-compact-card p,
.pro-compact-card p {
    color: var(--muted);
    line-height: 1.56;
}

.compact-card-list,
.compact-app-grid,
.compact-steps {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.compact-feature-card,
.compact-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(16, 36, 49, 0.07);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    padding: 16px;
}

.compact-feature-card h3,
.compact-step h3 {
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 1.08rem;
}

.compact-feature-card p,
.compact-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.46;
}

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

.sos-compact-card {
    background:
        radial-gradient(circle at 88% 18%, rgba(215, 242, 223, 0.95), transparent 34%),
        rgba(255, 255, 255, 0.78);
}

.sos-compact-card small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.5;
}

.current-strategy-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    border-radius: 26px;
    background: rgba(234, 248, 239, 0.9);
    padding: 14px;
}

.current-strategy-list > span {
    color: var(--leaf);
    font-weight: 1000;
}

.current-strategy-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(31, 122, 77, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
}

.current-strategy-item h3 {
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 1rem;
}

.current-strategy-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.42;
}

.pro-compact-card {
    background:
        radial-gradient(circle at 86% 18%, rgba(242, 169, 0, 0.28), transparent 32%),
        linear-gradient(135deg, #fff6dc, #ecf9f0);
}

.compact-equation {
    margin-top: 18px;
}

.compact-equation span {
    min-height: 78px;
}

.compact-comparison {
    padding-top: 24px;
    padding-bottom: 24px;
}

.compact-comparison .section-heading {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
    column-gap: 22px;
    align-items: end;
}

.compact-comparison .section-heading .eyebrow {
    grid-column: 1 / -1;
}

.compact-comparison .section-heading h2 {
    font-size: clamp(1.75rem, 3.5vw, 3.1rem);
}

.compact-comparison .section-heading p:not(.eyebrow) {
    margin: 0;
}

.compact-trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.compact-trust-list div {
    min-height: auto;
    padding: 18px;
}

.compact-final {
    padding: clamp(38px, 6vw, 74px) clamp(18px, 6vw, 88px);
}

.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;
}

.logo-lockup.compact {
    margin-bottom: 22px;
}

.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);
}

.auth-link-shell {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    padding: clamp(32px, 7vw, 88px) 18px;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 169, 0, 0.18), transparent 26%),
        radial-gradient(circle at 12% 18%, rgba(215, 242, 223, 0.92), transparent 32%),
        linear-gradient(135deg, #fbf7ef 0%, #edf8f1 52%, #f7fbf9 100%);
}

.auth-link-card {
    width: min(100%, 560px);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 80px rgba(16, 36, 49, 0.16);
}

.auth-link-card h1 {
    margin: 12px 0;
    color: var(--slate);
    font-size: clamp(2.1rem, 7vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.auth-link-card p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.auth-status-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--leaf);
    font-size: 2rem;
    font-weight: 1000;
}

.auth-link-card.error .auth-status-icon {
    background: #ffe9df;
    color: var(--coral);
}

.auth-status-icon.form {
    background: var(--sky);
    color: var(--slate);
}

.auth-link-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-link-form label {
    display: grid;
    gap: 8px;
    color: var(--slate);
    font-weight: 900;
}

.auth-link-form input {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 16px;
    color: var(--slate);
    background: #ffffff;
    font: inherit;
}

.auth-link-form input:focus {
    outline: 3px solid rgba(31, 122, 77, 0.18);
    border-color: var(--leaf);
}

.auth-link-error {
    margin: 0;
    color: var(--coral) !important;
    font-weight: 800;
}

.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-capability {
    color: var(--slate);
    font-weight: 800;
}

.comparison-value {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(16, 36, 49, 0.06);
    border-radius: 18px;
    padding: 12px 14px;
}

.comparison-free {
    background: rgba(255, 255, 255, 0.82);
}

.comparison-pro {
    background: rgba(234, 248, 239, 0.92);
}

.comparison-inline-label {
    display: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.comparison-value-body {
    color: var(--slate);
    font-weight: 800;
}

.app-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.app-download-card {
    display: grid;
    gap: 14px;
    align-content: start;
    justify-items: center;
    padding: 0;
}

.app-qr-link,
.app-placeholder-tile {
    width: min(100%, 240px);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    border-radius: 30px;
    box-shadow: 0 18px 42px rgba(16, 36, 49, 0.08);
}

.app-qr-link {
    background: transparent;
    padding: 0;
    transition: transform 140ms ease;
}

.app-qr-link:hover {
    transform: translateY(-2px);
}

.app-qr-link img,
.store-badge-link img,
.store-badge-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.app-placeholder-tile {
    border: 1px dashed rgba(58, 100, 120, 0.24);
    background: linear-gradient(135deg, #eef3fb, #f8fbff);
    box-shadow: none;
}

.app-placeholder-tile span {
    color: #3a6478;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 1000;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.store-badge-link,
.store-badge-shell {
    width: min(100%, 240px);
    justify-self: center;
    border-radius: 18px;
}

.store-badge-shell {
    opacity: 0.54;
    filter: grayscale(0.2);
}

.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;
    font-size: clamp(1.25rem, 2.1vw, 2.05rem);
    line-height: 1.08;
}

.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,
.legal-hero,
.legal-content,
.error-page {
    padding: 36px clamp(18px, 5vw, 72px) 72px;
}

.legal-hero {
    background:
        radial-gradient(circle at 84% 14%, rgba(242, 169, 0, 0.18), transparent 26%),
        radial-gradient(circle at 12% 20%, rgba(215, 242, 223, 0.92), transparent 32%),
        linear-gradient(135deg, #fbf7ef 0%, #edf8f1 52%, #f7fbf9 100%);
}

.legal-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--slate);
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.legal-hero .actions {
    margin-top: 24px;
}

.legal-content {
    display: grid;
    gap: 18px;
    background: #f8fbf8;
}

.legal-card {
    max-width: 980px;
    border: 1px solid rgba(16, 36, 49, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 18px 44px rgba(16, 36, 49, 0.07);
}

.legal-card.highlight {
    background: linear-gradient(135deg, #eaf8ef, #fff7e8);
}

.legal-card h2 {
    margin: 0 0 12px;
    color: var(--slate);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-card p,
.legal-card li,
.legal-note {
    color: var(--muted);
    line-height: 1.62;
}

.legal-card ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 22px;
}

.contact-card {
    background: #fffaf0;
}

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

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

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

.support-search {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(16, 31, 43, 0.08);
}

.support-search label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
}

.support-search > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.support-search input {
    flex: 1;
    min-width: 16rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

.support-search .button {
    margin-top: 0;
}

.prompt-selector,
.prompt-editor {
    display: grid;
    gap: 14px;
}

.prompt-selector {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    align-items: end;
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 96% 6%, rgba(242, 169, 0, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.78);
    padding: 20px;
    box-shadow: 0 18px 40px rgba(16, 31, 43, 0.08);
}

.prompt-selector label,
.prompt-editor label {
    margin: 0;
}

.prompt-selector select,
.prompt-editor select,
.prompt-editor input,
.prompt-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--slate);
    font: inherit;
}

.prompt-selector select {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 12px;
}

.prompt-workbench {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    padding-top: 0;
}

.prompt-panel-wide {
    grid-column: span 1;
}

.prompt-hash-grid dd {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92rem;
}

.prompt-textarea {
    min-height: 190px;
    margin-top: 8px;
    padding: 14px;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
}

.prompt-composed {
    min-height: 280px;
}

.prompt-readonly {
    background: #f8fbf8;
    color: #3f504a;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.prompt-actions .button,
.prompt-editor.compact .button {
    margin-top: 0;
}

.prompt-validation,
.prompt-safety-note {
    margin-top: 18px;
    border-radius: 18px;
    padding: 14px 16px;
}

.prompt-validation {
    border: 1px solid currentColor;
    background: rgba(234, 248, 239, 0.72);
}

.prompt-validation.not-ready {
    background: #fff1ef;
}

.prompt-validation strong,
.prompt-validation span {
    display: block;
}

.prompt-validation span,
.prompt-validation li {
    color: var(--muted);
}

.prompt-safety-note {
    background: var(--cream);
    color: #7a5200;
    font-weight: 800;
    line-height: 1.5;
}

.prompt-success {
    background: #eaf8ef;
    border-color: rgba(31, 122, 77, 0.28);
    color: var(--leaf);
}

.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;
}

.support-triage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 12px clamp(18px, 5vw, 72px) 0;
}

.support-triage-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 30px rgba(16, 31, 43, 0.06);
}

.support-triage-card.ready {
    border-color: rgba(51, 130, 83, 0.35);
    background: rgba(232, 247, 235, 0.86);
}

.support-triage-card.attention {
    border-color: rgba(242, 154, 0, 0.36);
    background: rgba(255, 246, 226, 0.9);
}

.support-triage-card.not-ready {
    border-color: rgba(231, 73, 54, 0.36);
    background: rgba(255, 241, 239, 0.9);
}

.support-triage-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.05rem;
}

.support-triage-card p {
    color: var(--muted);
    margin: 6px 0 0;
}

.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: 1040px) {
    .landing-dashboard,
    .landing-compact-grid,
    .landing-compact-split,
    .landing-apps-trust {
        grid-template-columns: 1fr;
    }

    .dashboard-preview-card {
        align-items: start;
    }

    .compact-comparison .section-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .landing-dashboard {
        padding-top: 16px;
    }

    .dashboard-hero-card,
    .dashboard-preview-card,
    .compact-panel,
    .sos-compact-card,
    .pro-compact-card {
        border-radius: 28px;
    }

    .dashboard-hero-card h1 {
        font-size: clamp(1.85rem, 7vw, 2.4rem);
    }

    .hero-signal-grid,
    .phone-stat-row,
    .compact-trust-list {
        grid-template-columns: 1fr;
    }

    .compact-phone {
        min-height: 500px;
    }

    .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;
        align-items: stretch;
        gap: 10px;
    }

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

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

    .comparison-header {
        display: none;
    }

    .comparison-value {
        border-radius: 20px;
        padding: 14px 16px;
    }

    .comparison-inline-label {
        display: block;
    }

    .app-download-grid {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .support-search > div {
        align-items: stretch;
        flex-direction: column;
    }

    .support-search input {
        min-width: 0;
    }

    .prompt-selector {
        grid-template-columns: 1fr;
    }

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

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

    .support-triage-grid {
        grid-template-columns: 1fr;
    }
}
