:root {
    --midnight: #0f2537;
    --steel: #326b8f;
    --ice: #f8f9fa;
    --deep-cyan: #1a4d66;
    --midnight-80: rgba(15, 37, 55, 0.8);
    --midnight-10: rgba(15, 37, 55, 0.08);
    --steel-20: rgba(50, 107, 143, 0.18);
    --text-body: #1b2a3a;
    --text-muted: #506577;
    --border: rgba(15, 37, 55, 0.12);
    --shadow-soft: 0 20px 60px rgba(15, 37, 55, 0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--ice);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: "Inter", "Montserrat", sans-serif;
    color: var(--midnight);
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}
h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}
h3 {
    font-weight: 700;
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
    color: var(--text-body);
}

a {
    color: var(--deep-cyan);
    text-decoration: none;
}
a:hover,
a:focus {
    color: var(--midnight);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 249, 250, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--midnight);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.brand img {
    height: 36px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav a {
    color: var(--midnight-80);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav a:hover {
    color: var(--midnight);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--midnight);
    color: var(--ice);
}
.btn-primary:hover {
    background: var(--deep-cyan);
    color: var(--ice);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--midnight);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--midnight);
    text-decoration: none;
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(50, 107, 143, 0.22),
            transparent 55%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(26, 77, 102, 0.25),
            transparent 60%
        ),
        linear-gradient(160deg, #0f2537 0%, #1a4d66 100%);
    color: var(--ice);
    padding: 96px 0 120px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero::before {
    background-image: linear-gradient(
        115deg,
        transparent 38%,
        rgba(248, 249, 250, 0.07) 38%,
        rgba(248, 249, 250, 0.07) 39%,
        transparent 39%,
        transparent 62%,
        rgba(248, 249, 250, 0.05) 62%,
        rgba(248, 249, 250, 0.05) 63%,
        transparent 63%
    );
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.78);
    padding: 6px 14px;
    border: 1px solid rgba(248, 249, 250, 0.25);
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--ice);
    margin-bottom: 20px;
}
.hero h1 .accent {
    color: #8fb9d1;
}

.hero .lead {
    font-size: 1.15rem;
    color: rgba(248, 249, 250, 0.85);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: var(--ice);
    color: var(--midnight);
}
.hero-cta .btn-primary:hover {
    background: #e6e9ec;
    color: var(--midnight);
}
.hero-cta .btn-ghost {
    color: var(--ice);
    border-color: rgba(248, 249, 250, 0.4);
}
.hero-cta .btn-ghost:hover {
    border-color: var(--ice);
    background: rgba(248, 249, 250, 0.08);
}

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

.hero-phone {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 18.5;
    border-radius: 44px;
    background: linear-gradient(
        160deg,
        rgba(248, 249, 250, 0.18),
        rgba(248, 249, 250, 0.04)
    );
    border: 1px solid rgba(248, 249, 250, 0.24);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 0 6px rgba(15, 37, 55, 0.6);
    padding: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #0a1622;
    border-radius: 14px;
    z-index: 2;
}

.hero-phone-home {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    background: rgba(248, 249, 250, 0.55);
    border-radius: 999px;
}

.hero-phone-screen {
    position: absolute;
    inset: 14px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #102b40 0%, #0a1c2c 100%);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-clip-path: inset(0 round 32px);
    clip-path: inset(0 round 32px);
    contain: paint;
}

.hero-phone-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

img.hero-phone-slide {
    object-fit: cover;
    object-position: center top;
}

/* ----- print3 reproduzido em CSS: tela de chamada "Possivel golpe" ----- */
.hp-call {
    background:
        linear-gradient(180deg, #2a3d4f 0%, #1c2733 35%, #15171c 100%);
    color: #f5f6f7;
    font-family: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
    overflow: hidden;
}

.hp-call-statusbar {
    position: absolute;
    top: 14px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f5f6f7;
}

.hp-call-statusbar-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hp-call-stat-icon {
    width: 14px;
    height: 10px;
    fill: currentColor;
    color: #f5f6f7;
}

.hp-call-battery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 12px;
    padding: 0 4px;
    border-radius: 3px;
    background: #31a06a;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    position: relative;
}

.hp-call-battery::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #31a06a;
    border-radius: 0 1px 1px 0;
}

.hp-call-info-btn {
    position: absolute;
    top: 56px;
    right: 22px;
    width: 22px;
    height: 22px;
    border: 1.4px solid rgba(245, 246, 247, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(245, 246, 247, 0.85);
}

.hp-call-info-block {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.hp-call-number {
    font-size: 0.92rem;
    color: rgba(245, 246, 247, 0.65);
    letter-spacing: 0.01em;
}

.hp-call-title {
    margin: 2px 0 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.005em;
    line-height: 1.15;
}

.hp-call-subtitle {
    font-size: 0.85rem;
    color: rgba(245, 246, 247, 0.55);
    margin-top: 2px;
}

.hp-call-actions {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 30px;
}

.hp-call-action-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hp-call-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 64px;
}

.hp-call-secondary-circle,
.hp-call-primary-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hp-call-secondary-circle {
    background: rgba(245, 246, 247, 0.18);
    color: #f5f6f7;
}

.hp-call-secondary-circle svg {
    width: 20px;
    height: 20px;
}

.hp-call-primary-circle {
    width: 50px;
    height: 50px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hp-call-primary-circle svg {
    width: 22px;
    height: 22px;
}

.hp-call-decline {
    background: #e74c3c;
    transform: rotate(135deg);
}

.hp-call-accept {
    background: #31a06a;
}

.hp-call-action-label {
    font-size: 0.7rem;
    color: rgba(245, 246, 247, 0.85);
    letter-spacing: 0.01em;
}

.trust-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ice);
    color: var(--midnight);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}
.trust-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #31a06a;
    box-shadow: 0 0 0 4px rgba(49, 160, 106, 0.2);
}
.trust-pill.top {
    top: 12px;
    right: -20px;
}
.trust-pill.bottom {
    bottom: 24px;
    left: -28px;
}

@media (max-width: 860px) {
    .hero {
        padding: 72px 0 88px;
    }
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual {
        order: -1;
    }
    .hero-phone {
        max-width: 220px;
        padding: 10px;
        border-radius: 34px;
    }
    .hero-phone-notch {
        top: 14px;
        width: 64px;
        height: 16px;
        border-radius: 10px;
    }
    .hero-phone-home {
        bottom: 16px;
        width: 70px;
        height: 3px;
    }
    .hero-phone-screen {
        inset: 10px;
        border-radius: 24px;
        -webkit-clip-path: inset(0 round 24px);
        clip-path: inset(0 round 24px);
    }
    .hp-call-statusbar {
        top: 10px;
        left: 16px;
        right: 16px;
        font-size: 0.6rem;
    }
    .hp-call-stat-icon {
        width: 11px;
        height: 8px;
    }
    .hp-call-battery {
        min-width: 20px;
        height: 9px;
        font-size: 0.45rem;
        padding: 0 3px;
    }
    .hp-call-battery::after {
        right: -2px;
        top: 2px;
        width: 1.5px;
        height: 5px;
    }
    .hp-call-info-btn {
        top: 40px;
        right: 16px;
        width: 17px;
        height: 17px;
        font-size: 0.6rem;
        border-width: 1px;
    }
    .hp-call-info-block {
        top: 44px;
    }
    .hp-call-number {
        font-size: 0.72rem;
    }
    .hp-call-title {
        font-size: 1.15rem;
    }
    .hp-call-subtitle {
        font-size: 0.66rem;
    }
    .hp-call-actions {
        bottom: 18px;
        gap: 12px;
        padding: 0 20px;
    }
    .hp-call-action {
        width: 50px;
        gap: 4px;
    }
    .hp-call-secondary-circle {
        width: 34px;
        height: 34px;
    }
    .hp-call-secondary-circle svg {
        width: 16px;
        height: 16px;
    }
    .hp-call-primary-circle {
        width: 38px;
        height: 38px;
    }
    .hp-call-primary-circle svg {
        width: 17px;
        height: 17px;
    }
    .hp-call-action-label {
        font-size: 0.55rem;
    }
    .trust-pill.top {
        right: 8px;
    }
    .trust-pill.bottom {
        left: 8px;
    }
}

/* ============ SECTIONS ============ */
section {
    padding: 96px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-heading .eyebrow {
    color: var(--steel);
    border-color: var(--steel-20);
}
.section-heading p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============ PROBLEM / SOLUTION ============ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}
.split .card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.split .card h3 {
    color: var(--midnight);
}
.split .card.problem {
    background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
}
.split .card.solution {
    background: linear-gradient(
        160deg,
        var(--midnight) 0%,
        var(--deep-cyan) 100%
    );
    color: var(--ice);
    border-color: transparent;
}
.split .card.solution h3,
.split .card.solution p,
.split .card.solution li {
    color: var(--ice);
}

.split ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.split li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.98rem;
}
.split li::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--steel);
}
.split .solution li::before {
    background: #8fb9d1;
}

@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============ FEATURES GRID ============ */
.features {
    background: #fff;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.feature {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--ice);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.feature.feature-wide {
    grid-column: span 3;
    background: linear-gradient(
        135deg,
        var(--midnight) 0%,
        var(--deep-cyan) 100%
    );
    color: var(--ice);
    border-color: transparent;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
}
.feature.feature-wide h3,
.feature.feature-wide p {
    color: var(--ice);
    margin: 0;
}
.feature.feature-wide p {
    color: rgba(248, 249, 250, 0.82);
}
.feature.feature-wide .icon {
    margin: 0;
    width: 56px;
    height: 56px;
    background: rgba(248, 249, 250, 0.14);
    border: 1px solid rgba(248, 249, 250, 0.22);
}
.feature.feature-wide .icon svg {
    width: 28px;
    height: 28px;
}
.feature-wide-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}
.feature-wide-stats .stat {
    text-align: center;
    min-width: 92px;
}
.feature-wide-stats .stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ice);
    line-height: 1;
    margin-bottom: 4px;
}
.feature-wide-stats .stat span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(248, 249, 250, 0.7);
}
@media (max-width: 860px) {
    .feature.feature-wide {
        grid-column: span 2;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .feature.feature-wide .icon {
        margin: 0 auto;
    }
    .feature-wide-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}
@media (max-width: 560px) {
    .feature.feature-wide {
        grid-column: span 1;
    }
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--steel-20);
}
.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        var(--midnight),
        var(--deep-cyan)
    );
    color: var(--ice);
    margin-bottom: 16px;
}
.feature .icon svg {
    width: 22px;
    height: 22px;
}
.feature h3 {
    margin-bottom: 6px;
}
.feature p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ============ STEPS ============ */
.steps {
    background: var(--ice);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -16px;
    left: 20px;
    background: var(--midnight);
    color: var(--ice);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.08em;
}
.step h3 {
    font-size: 1.05rem;
    margin-top: 12px;
}
.step p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 860px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ PRINCIPLES ============ */
.principles {
    background: linear-gradient(
        180deg,
        var(--ice) 0%,
        #eef1f4 100%
    );
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.principle {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--steel);
    box-shadow: var(--shadow-soft);
}
.principle h3 {
    color: var(--midnight);
    margin-bottom: 8px;
}
.principle p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}
@media (max-width: 820px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ FAQ ============ */
.faq {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6f8 100%);
}

.faq .section-heading {
    margin-bottom: 40px;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--midnight);
    line-height: 1.4;
    position: relative;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(50, 107, 143, 0.12);
    color: var(--deep-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
    background: rgba(50, 107, 143, 0.04);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 18px 24px 20px;
}

.faq-item p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item ul {
    margin: 6px 0 14px;
    padding-left: 20px;
    color: var(--text-muted);
}

.faq-item li {
    margin: 0 0 6px;
}

.faq-item strong {
    color: var(--midnight);
}

/* ============ LEGAL PAGES ============ */
.legal-page section {
    padding: 0;
}

.legal-hero {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(50, 107, 143, 0.14),
            transparent 55%
        ),
        linear-gradient(180deg, #f8f9fa 0%, #eef2f5 100%);
    color: var(--text-body);
    padding: 72px 0 28px;
}

.legal-hero h1 {
    color: var(--midnight);
    margin-bottom: 12px;
}

.legal-hero .eyebrow {
    margin-bottom: 16px;
    color: var(--steel);
    border-color: var(--steel-20);
}

.legal-hero p {
    color: var(--text-muted);
    max-width: 860px;
}

.legal-updated {
    font-weight: 600;
    color: var(--midnight);
}

.legal-content {
    background: var(--ice);
    padding: 16px 0 96px;
}

.legal-text {
    max-width: 860px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: 34px 34px 38px;
}

.legal-text h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legal-text h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-text h3 {
    font-size: 1rem;
    margin-top: 12px;
    margin-bottom: 8px;
}

.legal-text p {
    color: var(--text-body);
}

.legal-text ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.legal-text li {
    margin-bottom: 6px;
    color: var(--text-body);
}

@media (max-width: 680px) {
    .legal-hero {
        padding: 56px 0 18px;
    }

    .legal-content {
        padding: 10px 0 72px;
    }

    .legal-text {
        padding: 24px 20px 28px;
    }
}

/* ============ CTA ============ */
.cta {
    background: var(--midnight);
    color: var(--ice);
    text-align: center;
    padding: 96px 24px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(50, 107, 143, 0.4),
            transparent 50%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(26, 77, 102, 0.4),
            transparent 50%
        );
    pointer-events: none;
}
.cta .container {
    position: relative;
}
.cta h2 {
    color: var(--ice);
    margin-bottom: 16px;
}
.cta p {
    color: rgba(248, 249, 250, 0.85);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 32px;
}
.cta .btn-primary {
    background: var(--ice);
    color: var(--midnight);
}
.cta .btn-primary:hover {
    background: #e6e9ec;
}

/* ============ FOOTER ============ */
footer {
    background: #0a1a27;
    color: rgba(248, 249, 250, 0.72);
    padding: 40px 0;
    font-size: 0.9rem;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
footer .brand {
    color: var(--ice);
}
footer a {
    color: #d9e1e8;
}
footer a:hover {
    color: #f4f7fa;
    text-decoration: none;
}
footer nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
footer p {
    color: #c8d2dc;
}

/* ============ DOWNLOAD ============ */
.download {
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(50, 107, 143, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(26, 77, 102, 0.2),
            transparent 55%
        ),
        #fff;
    overflow: hidden;
    position: relative;
}

.download .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.download .section-heading {
    text-align: left;
    margin: 0;
}

.store-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: var(--midnight);
    color: var(--ice);
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(248, 249, 250, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease;
    min-width: 200px;
}
.store-badge:hover,
.store-badge:focus {
    background: var(--deep-cyan);
    color: var(--ice);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.store-badge svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}
.store-badge .store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.store-badge .store-text small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.05em;
}
.store-badge .store-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 9 / 18;
    background: linear-gradient(
        160deg,
        #0a1a27 0%,
        var(--midnight) 100%
    );
    border-radius: 42px;
    padding: 14px;
    box-shadow:
        0 40px 80px rgba(15, 37, 55, 0.35),
        inset 0 0 0 2px rgba(248, 249, 250, 0.08);
}
.phone-mockup::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #050d14;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #12304a 0%,
        var(--midnight) 100%
    );
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 32px;
    color: var(--ice);
    text-align: center;
}
.phone-screen .phone-logo {
    width: 68px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    margin-bottom: 18px;
}
.phone-screen h4 {
    font-size: 0.95rem;
    margin: 0 0 6px;
    color: var(--ice);
}
.phone-screen p {
    font-size: 0.78rem;
    color: rgba(248, 249, 250, 0.72);
    margin: 0 0 20px;
}
.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(143, 185, 209, 0.18);
    border: 1px solid rgba(143, 185, 209, 0.3);
    border-radius: 999px;
    color: #c9dde9;
    margin-bottom: 8px;
}
.phone-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #31a06a;
    box-shadow: 0 0 0 3px rgba(49, 160, 106, 0.25);
}

.phone-ring {
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(50, 107, 143, 0.35);
    border-radius: 56px;
    pointer-events: none;
}
.phone-ring.outer {
    inset: -60px;
    border-color: rgba(50, 107, 143, 0.2);
    border-radius: 72px;
}

@media (max-width: 820px) {
    .download .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .download .section-heading {
        text-align: center;
    }
    .store-badges {
        justify-content: center;
    }
    .phone-mockup {
        max-width: 260px;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(49, 160, 106, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(49, 160, 106, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes diagonal-shift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 120px -120px;
    }
}

/* Hero animations */
.hero::before {
    animation: diagonal-shift 24s linear infinite;
    background-size: 120px 120px;
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero-cta {
    animation: fade-up 0.8s ease both;
}
.hero h1 {
    animation-delay: 0.1s;
}
.hero .lead {
    animation-delay: 0.25s;
}
.hero-cta {
    animation-delay: 0.4s;
}

.hero-phone {
    animation: float 6s ease-in-out infinite;
}

.hero-phone-slide {
    animation: phone-slide-fade 12s ease-in-out infinite;
}

.hero-phone-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-phone-slide:nth-child(2) {
    animation-delay: -8s;
}
.hero-phone-slide:nth-child(3) {
    animation-delay: -4s;
}

@keyframes phone-slide-fade {
    0%,
    28% {
        opacity: 1;
    }
    33%,
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-phone {
        animation: none;
    }
    .hero-phone-slide {
        animation: none;
        opacity: 0;
    }
    .hero-phone-slide:nth-child(1) {
        opacity: 1;
    }
}
.trust-pill {
    animation: fade-up 0.8s ease both;
}
.trust-pill.top {
    animation-delay: 0.6s;
}
.trust-pill.bottom {
    animation-delay: 0.8s;
}
.trust-pill::before {
    animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 {
    transition-delay: 0.1s;
}
.reveal.delay-2 {
    transition-delay: 0.2s;
}
.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* Phone mockup animations */
.phone-mockup {
    animation: float 7s ease-in-out infinite;
}
.phone-ring {
    animation: pulse-ring 2.8s ease-out infinite;
}
.phone-ring.outer {
    animation-delay: 1.4s;
}

/* Hover polish */
.feature {
    position: relative;
    overflow: hidden;
}
.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(50, 107, 143, 0.08) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.feature:hover::after {
    opacity: 1;
    animation: shimmer 1.6s ease-out;
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
    outline: 3px solid #8fb9d1;
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
