:root {
    color-scheme: dark;
    --bg: #050711;
    --bg-soft: #0a0d1a;
    --surface: rgba(13, 18, 35, 0.72);
    --surface-strong: rgba(17, 23, 45, 0.9);
    --line: rgba(168, 204, 255, 0.16);
    --line-strong: rgba(78, 221, 255, 0.42);
    --text: #f5f8ff;
    --muted: #a9b4ca;
    --cyan: #46e0ff;
    --blue: #4388ff;
    --violet: #a460ff;
    --success: #70efbc;
    --error: #ff9aaa;
    --max-width: 1240px;
    --radius: 12px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --surface-page: var(--bg);
    --surface-primary: var(--surface);
    --surface-secondary: var(--bg-soft);
    --surface-elevated: var(--surface-strong);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --text-muted: #8995ad;
    --border-default: var(--line);
    --border-strong: var(--line-strong);
    --brand-primary: var(--cyan);
    --brand-secondary: var(--violet);
    --brand-accent: var(--blue);
    --focus: var(--cyan);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f7fc;
    --bg-soft: #e8eef8;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(33, 76, 125, 0.18);
    --line-strong: rgba(22, 115, 145, 0.48);
    --text: #152238;
    --muted: #52647f;
    --cyan: #06748e;
    --blue: #2d66ca;
    --violet: #7545c9;
    --success: #187353;
    --error: #b4233b;
    --shadow: 0 24px 70px rgba(30, 56, 92, 0.16);
    --text-muted: #66758d;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 51% 12%, rgba(35, 97, 178, 0.11), transparent 34rem),
        linear-gradient(145deg, #03050c 0%, var(--bg) 48%, #080714 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(115, 162, 225, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(115, 162, 225, 0.026) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    content: "";
    pointer-events: none;
}

a {
    color: var(--cyan);
    text-underline-offset: 0.25em;
}

a:hover {
    color: #a8efff;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    transform: translateY(-180%);
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-glow {
    position: fixed;
    z-index: -1;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.page-glow--cyan {
    top: 4rem;
    right: -14rem;
    background: var(--cyan);
}

.page-glow--violet {
    bottom: -10rem;
    left: -16rem;
    background: var(--violet);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    border-bottom: 1px solid rgba(168, 204, 255, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
}

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

.brand__logo {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(84, 225, 255, 0.55);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(70, 224, 255, 0.18);
}

.brand__lockup {
    display: grid;
    gap: 0.1rem;
}

.brand__by {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.theme-switcher select {
    min-height: 40px;
    padding: 0 2rem 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.launch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(112, 239, 188, 0.22);
    border-radius: 999px;
    background: rgba(112, 239, 188, 0.055);
    color: #c0ffe5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.launch-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(112, 239, 188, 0.75);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(510px, 1.1fr);
    grid-template-areas:
        "copy visual"
        "benefits visual";
    align-items: center;
    min-height: 780px;
    padding-block: 5rem 3.5rem;
}

.hero__copy {
    z-index: 2;
    grid-area: copy;
    max-width: 640px;
    padding-right: 2rem;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.8rem, 7.2vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.84;
}

.hero h1 span,
.hero h1 strong {
    display: block;
}

.hero h1 span {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.hero h1 strong {
    margin-top: 0.2em;
    background: linear-gradient(92deg, var(--cyan) 0%, #629aff 50%, #b267ff 100%);
    background-clip: text;
    color: transparent;
    font-size: 0.58em;
    letter-spacing: -0.035em;
    line-height: 1;
    text-shadow: 0 0 54px rgba(78, 175, 255, 0.16);
}

.hero__lead {
    margin: 1.3rem 0 0;
    color: #e4eafe;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero__pain {
    margin: 1.55rem 0 0;
    color: #f7f9ff;
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero__pain span,
.hero__pain strong {
    display: block;
}

.hero__pain strong {
    margin-top: 0.16em;
    background: linear-gradient(92deg, var(--cyan), #65a7ff 58%, #9f6bff);
    background-clip: text;
    color: transparent;
    font-weight: 820;
}

.hero__intro {
    max-width: 510px;
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero__visual {
    position: relative;
    grid-area: visual;
    width: 100%;
    min-width: 0;
}

.visual-stage {
    position: relative;
    width: min(100%, 700px);
    aspect-ratio: 1.03;
    margin-left: auto;
    isolation: isolate;
}

.pain-signal {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    display: flex;
    width: min(88%, 520px);
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 184, 124, 0.16);
    border-radius: 11px;
    background: rgba(13, 16, 29, 0.76);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.pain-signal__label {
    flex: 0 0 auto;
    padding: 0.26rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 184, 124, 0.1);
    color: #ffd1ab;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pain-signal div {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.1rem 0.55rem;
    align-items: baseline;
    color: #aeb9cf;
    font-size: 0.7rem;
    line-height: 1.35;
}

.pain-signal strong {
    color: #edf2ff;
}

.visual-stage::before {
    position: absolute;
    z-index: -1;
    inset: 10% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 154, 255, 0.18), rgba(126, 77, 255, 0.055) 44%, transparent 70%);
    filter: blur(10px);
    content: "";
}

.signal-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.signal-lines path {
    fill: none;
    stroke: rgba(75, 189, 255, 0.3);
    stroke-dasharray: 5 10;
    stroke-linecap: round;
    stroke-width: 1.3;
    animation: signal-flow 14s linear infinite;
}

.signal-lines__out {
    stroke: rgba(112, 239, 188, 0.52) !important;
    stroke-width: 1.7 !important;
}

.robot-orbit {
    position: absolute;
    inset: 20% 21% 25%;
    display: grid;
    place-items: center;
}

.robot-orbit__ring {
    position: absolute;
    border: 1px solid rgba(90, 210, 255, 0.2);
    border-radius: 50%;
}

.robot-orbit__ring--one {
    inset: 0;
    animation: orbit-spin 32s linear infinite;
}

.robot-orbit__ring--one::before,
.robot-orbit__ring--two::before {
    position: absolute;
    top: -4px;
    left: 48%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    content: "";
}

.robot-orbit__ring--two {
    inset: 9%;
    border-color: rgba(164, 96, 255, 0.18);
    animation: orbit-spin 25s linear infinite reverse;
}

.robot-orbit__ring--two::before {
    background: var(--violet);
    box-shadow: 0 0 15px var(--violet);
}

.robot-core {
    position: relative;
    display: grid;
    width: 80%;
    aspect-ratio: 1;
    place-items: center;
    animation: robot-float 6s ease-in-out infinite;
}

.robot-core__halo {
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 224, 255, 0.28), rgba(69, 104, 255, 0.12) 42%, transparent 70%);
    filter: blur(18px);
    animation: glow-breathe 5s ease-in-out infinite;
}

.robot-core img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.48));
}

.channel-list {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.channel-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.58rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(9, 14, 28, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    color: #eaf1ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 34px rgba(29, 129, 214, 0.18), 0 0 20px rgba(70, 224, 255, 0.08);
}

.channel-card span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: rgba(70, 224, 255, 0.1);
    color: var(--cyan);
    font-size: 0.83rem;
}

.channel-card--whatsapp { top: 22%; left: 0; }
.channel-card--email { top: 22%; right: 0; }
.channel-card--phone { top: 45%; left: -1%; }
.channel-card--calendar { top: 45%; right: -1%; }

.relief-card {
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 50%;
    width: min(84%, 470px);
    padding: 0.85rem 1rem 0.8rem;
    transform: translateX(-50%);
    border: 1px solid rgba(112, 239, 188, 0.24);
    border-radius: 11px;
    background: linear-gradient(120deg, rgba(14, 33, 40, 0.88), rgba(12, 17, 33, 0.88));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 30px rgba(70, 224, 255, 0.06);
    backdrop-filter: blur(14px);
}

.relief-card__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #d8ffef;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.relief-card__heading span {
    color: var(--success);
}

.relief-card ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.relief-card li {
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(112, 239, 188, 0.12);
    border-radius: 7px;
    background: rgba(112, 239, 188, 0.055);
    color: #dce9e8;
    font-size: 0.65rem;
    font-weight: 650;
}

.relief-card p {
    margin: 0.55rem 0 0;
    color: #8fa9aa;
    font-size: 0.63rem;
    text-align: center;
}

.benefit-list {
    grid-area: benefits;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-self: start;
    max-width: 590px;
    margin: 2.6rem 2rem 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(168, 204, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 21, 39, 0.42);
    color: #d4dcf0;
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.35;
}

.benefit-list span {
    flex: 0 0 auto;
    margin-right: 0.7rem;
    color: var(--cyan);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.notify-section {
    padding-block: 2.5rem 7rem;
}

.notify-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    border: 1px solid rgba(166, 211, 255, 0.2);
    border-radius: var(--radius);
    background:
        linear-gradient(115deg, rgba(20, 30, 53, 0.84), rgba(12, 14, 30, 0.74)),
        radial-gradient(circle at 15% 10%, rgba(70, 224, 255, 0.12), transparent 42%);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
}

.notify-card::after {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(125, 86, 255, 0.12);
    filter: blur(70px);
    content: "";
    pointer-events: none;
}

.notify-card__copy {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.bell {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(70, 224, 255, 0.3);
    border-radius: 11px;
    background: rgba(70, 224, 255, 0.09);
    box-shadow: 0 0 28px rgba(70, 224, 255, 0.09);
}

.bell svg {
    width: 22px;
    fill: none;
    stroke: var(--cyan);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.notify-card h2 {
    margin: 0;
    color: #f7f9ff;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.notify-card__copy p:last-child {
    margin: 0.7rem 0 0;
    color: var(--muted);
}

.subscribe-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.form-row input {
    width: 100%;
    min-height: 54px;
    padding: 0 1rem;
    border: 1px solid rgba(168, 204, 255, 0.2);
    border-radius: 9px;
    outline: 0;
    background: rgba(4, 7, 16, 0.76);
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-row input::placeholder {
    color: #7f8ba4;
}

.form-row input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(70, 224, 255, 0.11);
}

.form-row input[aria-invalid="true"] {
    border-color: var(--error);
}

.form-row button {
    min-height: 54px;
    padding: 0 1.3rem;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(100deg, var(--cyan), #5e91ff 64%, #8668ff);
    box-shadow: 0 12px 28px rgba(55, 157, 235, 0.21);
    color: #04101b;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.form-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(55, 157, 235, 0.31);
}

.form-row button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 1.5em;
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 650;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

.privacy-hint {
    margin: 0.4rem 0 0;
    color: #808da6;
    font-size: 0.7rem;
    line-height: 1.5;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    border-top: 1px solid rgba(168, 204, 255, 0.1);
    color: #8995ad;
    font-size: 0.82rem;
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
}

.web-chat {
    position: fixed;
    z-index: 20;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: grid;
    justify-items: end;
    gap: 0.75rem;
}

.web-chat__launcher,
.web-chat__form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--cyan), #5e91ff 64%, #8668ff);
    box-shadow: 0 14px 34px rgba(55, 157, 235, 0.28);
    color: #04101b;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.web-chat__launcher {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0 1.15rem;
}

.web-chat__panel {
    width: min(390px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(166, 211, 255, 0.24);
    border-radius: 18px;
    background: rgba(8, 12, 24, 0.97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.web-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
}

.web-chat__header div {
    display: grid;
}

.web-chat__header span {
    color: var(--muted);
    font-size: 0.72rem;
}

.web-chat__header button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 1.6rem;
}

.web-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: min(48vh, 390px);
    min-height: 180px;
    overflow-y: auto;
    padding: 1rem;
}

.web-chat__message {
    max-width: 88%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.web-chat__message--bot {
    align-self: flex-start;
    border: 1px solid var(--line);
    background: rgba(20, 30, 53, 0.84);
    color: var(--text);
}

.web-chat__message--user {
    align-self: flex-end;
    background: #247da0;
    color: #fff;
}

.web-chat__handover {
    margin: 0 1rem 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(70, 224, 255, 0.22);
    border-radius: 10px;
    background: rgba(70, 224, 255, 0.08);
}

.web-chat__handover p {
    margin: 0 0 0.25rem;
}

.web-chat__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--line);
}

.web-chat__form textarea {
    min-height: 52px;
    max-height: 120px;
    resize: vertical;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(168, 204, 255, 0.24);
    border-radius: 10px;
    background: rgba(4, 7, 16, 0.82);
    color: var(--text);
    font: inherit;
}

.web-chat__form button {
    align-self: end;
    padding: 0 0.95rem;
    border-radius: 10px;
}

.web-chat__form button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.web-chat__status,
.web-chat__privacy {
    margin: 0;
    padding: 0 1rem 0.75rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.web-chat__status:not(:empty) {
    color: var(--error);
}

[data-theme="light"] .web-chat__panel {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(30, 56, 92, 0.22);
}

[data-theme="light"] .web-chat__message--bot,
[data-theme="light"] .web-chat__form textarea {
    border-color: var(--line);
    background: #f2f6fc;
    color: var(--text);
}

/* Public legal pages */
.legal-page {
    min-width: 320px;
}

.legal-page .site-header {
    position: relative;
}

.legal-main {
    padding: 4.8rem 0 6.5rem;
}

.legal-hero {
    width: min(calc(100% - 48px), 880px);
    margin: 0 auto;
    padding-bottom: 2.7rem;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.legal-hero .eyebrow {
    margin-bottom: 1rem;
}

.legal-document {
    width: min(calc(100% - 48px), 880px);
    margin: 0 auto;
    padding-top: 3.6rem;
}

.legal-document > p:first-child {
    margin-top: 0;
    color: #d4dced;
    font-size: 1.12rem;
}

.legal-document h2 {
    margin: 3.2rem 0 0.8rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.legal-document p,
.legal-document li,
.legal-document address {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
}

.legal-document p {
    margin: 0 0 1.1rem;
}

.legal-document ul,
.legal-document ol {
    margin: 0.75rem 0 1.5rem;
    padding-left: 1.45rem;
}

.legal-document li + li {
    margin-top: 0.45rem;
}

.legal-document a {
    color: var(--cyan);
    text-decoration-color: rgba(70, 224, 255, 0.5);
}

.legal-document a:hover {
    text-decoration-color: currentColor;
}

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

.legal-document address {
    margin-bottom: 1.3rem;
    font-style: normal;
}

.legal-document .legal-meta {
    margin-top: 3.4rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
    color: #7f8ba3;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-page .site-footer {
    min-height: 96px;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    max-width: 720px;
}

.error-page .brand {
    margin-bottom: 5rem;
}

.error-theme {
    position: absolute;
    top: 2rem;
    right: 0;
}

.error-page h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(3rem, 9vw, 6.5rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.error-page p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
}

.error-page__link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 1rem;
    font-weight: 750;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* A genuine light interpretation of the MECHBOT automotive visual language. */
[data-theme="light"] body {
    background:
        radial-gradient(circle at 51% 12%, rgba(40, 145, 204, 0.16), transparent 34rem),
        linear-gradient(145deg, #f9fbff 0%, var(--bg) 48%, #f0edfb 100%);
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(43, 91, 145, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 91, 145, 0.055) 1px, transparent 1px);
}

[data-theme="light"] a:hover { color: #075e80; }
[data-theme="light"] .page-glow { opacity: 0.08; }
[data-theme="light"] .site-header { border-color: var(--line); }
[data-theme="light"] .brand__logo { border-color: rgba(8,125,153,.42); box-shadow: 0 10px 28px rgba(43,102,202,.13); }
[data-theme="light"] .launch-pill { border-color: rgba(24,115,83,.24); background: rgba(24,115,83,.07); color: #176345; }
[data-theme="light"] .hero h1 span { text-shadow: none; }
[data-theme="light"] .hero__lead,
[data-theme="light"] .hero__pain { color: #20314c; }
[data-theme="light"] .pain-signal { border-color: rgba(160,89,34,.2); background: rgba(255,255,255,.86); box-shadow: 0 14px 36px rgba(30,56,92,.12); }
[data-theme="light"] .pain-signal__label { background: rgba(160,89,34,.08); color: #8d4c1e; }
[data-theme="light"] .pain-signal div { color: #596b84; }
[data-theme="light"] .pain-signal strong { color: #20314c; }
[data-theme="light"] .channel-card { border-color: var(--line); background: rgba(255,255,255,.9); color: #233653; box-shadow: 0 12px 28px rgba(30,56,92,.12); }
[data-theme="light"] .relief-card { border-color: rgba(24,115,83,.22); background: linear-gradient(120deg,rgba(242,252,248,.95),rgba(245,248,255,.95)); box-shadow: 0 18px 44px rgba(30,56,92,.12); }
[data-theme="light"] .relief-card__heading { color: #1d5d48; }
[data-theme="light"] .relief-card li { border-color: rgba(24,115,83,.16); background: rgba(24,115,83,.055); color: #315c50; }
[data-theme="light"] .relief-card p { color: #5b706d; }
[data-theme="light"] .benefit-list li { border-color: var(--line); background: rgba(255,255,255,.68); color: #31445f; }
[data-theme="light"] .notify-card { border-color: rgba(45,102,202,.2); background: linear-gradient(115deg,rgba(255,255,255,.94),rgba(240,244,253,.9)),radial-gradient(circle at 15% 10%,rgba(8,125,153,.12),transparent 42%); box-shadow: var(--shadow); }
[data-theme="light"] .notify-card h2 { color: #1b2b45; }
[data-theme="light"] .form-row input { border-color: var(--line); background: rgba(255,255,255,.92); color: var(--text); }
[data-theme="light"] .form-row input::placeholder { color: #71809a; }
[data-theme="light"] .form-row button { color: #fff; }
[data-theme="light"] .privacy-hint,
[data-theme="light"] .site-footer { color: var(--text-muted); }
[data-theme="light"] .legal-document > p:first-child { color: #31445f; }
[data-theme="light"] .legal-document .legal-meta { color: var(--text-muted); }

@keyframes robot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.72; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes signal-flow {
    to { stroke-dashoffset: -150; }
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr);
    }

    .hero h1 {
        font-size: clamp(3.6rem, 8vw, 5.9rem);
    }

    .hero__pain {
        font-size: clamp(2rem, 3.7vw, 2.65rem);
    }

    .visual-stage {
        width: 108%;
        margin-left: -4%;
    }

    .channel-card {
        font-size: 0.7rem;
    }

    .notify-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .site-header {
        min-height: 82px;
    }

    .theme-switcher > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "visual"
            "benefits";
        min-height: auto;
        padding-block: 4.25rem 2.5rem;
        text-align: center;
    }

    .hero__copy {
        max-width: 650px;
        margin-inline: auto;
        padding-right: 0;
    }

    .hero__intro {
        margin-inline: auto;
    }

    .hero__pain {
        font-size: clamp(2.25rem, 7vw, 3.25rem);
    }

    .hero__visual {
        margin-top: 1.5rem;
    }

    .visual-stage {
        width: min(100%, 630px);
        margin-inline: auto;
    }

    .benefit-list {
        width: min(100%, 600px);
        margin: 1.5rem auto 0;
        text-align: left;
    }

    .notify-section {
        padding-block: 2rem 5rem;
    }

    .legal-hero,
    .legal-document {
        width: min(calc(100% - 32px), 880px);
    }

}

@media (max-width: 560px) {
    .brand__name {
        font-size: 0.9rem;
    }

    .launch-pill {
        padding-inline: 0.6rem;
        font-size: 0.65rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .theme-switcher select {
        max-width: 106px;
        min-height: 38px;
        padding-left: 0.55rem;
        font-size: 0.64rem;
    }

    .hero {
        padding-top: 3.3rem;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 18vw, 5rem);
    }

    .hero__lead {
        margin-top: 1.5rem;
        font-size: 1.15rem;
    }

    .hero__pain {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .visual-stage {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        min-height: 0;
        padding-top: 1rem;
    }

    .signal-lines {
        display: none;
    }

    .robot-orbit {
        position: relative;
        order: 3;
        inset: auto;
        width: min(88vw, 370px);
        height: min(88vw, 370px);
        margin-inline: auto;
    }

    .channel-list {
        position: relative;
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.7rem;
    }

    .channel-card {
        position: static;
        justify-content: center;
        min-width: 0;
        padding: 0.5rem 0.35rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .channel-card span {
        display: none;
    }

    .pain-signal {
        position: relative;
        top: auto;
        left: auto;
        order: 1;
        width: 100%;
        transform: none;
        text-align: left;
    }

    .pain-signal div {
        justify-content: flex-start;
    }

    .relief-card {
        position: relative;
        bottom: auto;
        left: auto;
        order: 4;
        width: 100%;
        margin-top: -0.4rem;
        transform: none;
    }

    .benefit-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .benefit-list li {
        min-height: 50px;
        font-size: 0.8rem;
    }

    .notify-card {
        gap: 1.6rem;
        padding: 1.25rem;
    }

    .notify-card__copy {
        gap: 0.8rem;
    }

    .bell {
        width: 40px;
        height: 40px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row input,
    .form-row button {
        min-height: 52px;
    }

    .privacy-hint {
        font-size: 0.68rem;
    }

    .site-footer {
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        padding-block: 1.5rem;
        text-align: center;
    }

    .error-theme {
        position: static;
        margin: -3.8rem 0 3rem auto;
    }

    .legal-main {
        padding: 3.7rem 0 4.7rem;
    }

    .legal-hero {
        padding-bottom: 2rem;
    }

    .legal-hero h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
        overflow-wrap: anywhere;
    }

    .legal-document {
        padding-top: 2.6rem;
    }

    .legal-document > p:first-child {
        font-size: 1.04rem;
    }

    .legal-document h2 {
        margin-top: 2.5rem;
    }

    .legal-document p,
    .legal-document li,
    .legal-document address {
        font-size: 0.95rem;
        line-height: 1.72;
    }

    .web-chat {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .web-chat__panel {
        width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 6rem);
    }

    .web-chat__messages {
        max-height: calc(100vh - 23rem);
        min-height: 150px;
    }
}

@media (max-width: 359px) {
    .container {
        width: calc(100% - 24px);
    }

    .brand__logo {
        width: 32px;
        height: 32px;
    }

    .launch-pill {
        letter-spacing: 0.04em;
    }

    .header-actions .launch-pill {
        display: none;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

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

    .robot-orbit {
        width: 300px;
        height: 300px;
        max-width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
