/* ==========================================================================
   Miru landing — design tokens
   ========================================================================== */

:root {
    /* Brand — matches the in-app theme (MiruAmber family) */
    --amber-500: #D97706;
    --amber-400: #F59E0B;
    --amber-300: #FBBF24;
    --amber-700: #92400E;
    --amber-glow: rgba(217, 119, 6, 0.18);

    /* Surfaces */
    --bg-base: #0D0D10;
    --bg-elevated: #161618;
    --bg-card: #1E1E1E;
    --border-subtle: #2A2A2E;
    --border-card: #2E2E35;

    /* Text */
    --text-primary: #F5F5F5;
    --text-secondary: #B8B8BE;
    --text-muted: #7A7A82;
    --text-on-amber: #1A1A1A;

    /* Type scale */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Layout */
    --max-width: 1180px;
    --gutter: clamp(1.5rem, 4vw, 3rem);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Shared by doc pages — kept for backwards compatibility */
    --bg-dark: var(--bg-base);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-color: var(--amber-500);
    --secondary-color: var(--amber-300);
    --text-main: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Background atmosphere — grain + slow amber glows
   ========================================================================== */

.bg-grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.9 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-glow {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}
.bg-glow-1 {
    width: 520px; height: 520px;
    background: var(--amber-500);
    top: -180px; left: -160px;
    animation: float 18s ease-in-out infinite alternate;
}
.bg-glow-2 {
    width: 620px; height: 620px;
    background: var(--amber-700);
    bottom: -240px; right: -200px;
    animation: float 22s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.08); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 10;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2rem) var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    /* Soft amber halo behind the cat — ties the logo to the brand colour
       without an explicit ring around the artwork. */
    filter: drop-shadow(0 0 12px var(--amber-glow));
    transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.site-nav {
    display: flex;
    gap: 2rem;
}
.site-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}
.site-nav a:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .site-nav { gap: 1.25rem; }
    .site-nav a { font-size: 0.875rem; }
}

/* ==========================================================================
   Main + section spacing
   ========================================================================== */

main {
    position: relative;
    z-index: 5;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    padding: clamp(4rem, 10vw, 9rem) 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.hero-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    /* Card stack appears below the download buttons on mobile so the CTAs
       are above the fold. Natural document order — no order override needed. */
    .hero-mock { margin-top: 1rem; }
}

/* ==========================================================================
   Store badges
   ========================================================================== */

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.25rem 0.7rem 1.1rem;
    background: var(--text-primary);
    color: var(--text-on-amber);
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    border: 1px solid transparent;
}
.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}
.store-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}
.store-badge-line {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.75;
}
.store-badge-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Hero card mockup — mimics the in-app Discover card
   ========================================================================== */

.hero-mock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card-stack {
    position: relative;
    width: min(360px, 90%);
    aspect-ratio: 3 / 4;
    perspective: 1200px;
}

.card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-card);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--ease-out);
}

.card-back-2 {
    transform: translateY(-22px) scale(0.92) rotate(-3deg);
    opacity: 0.4;
}
.card-back-1 {
    transform: translateY(-12px) scale(0.96) rotate(2deg);
    opacity: 0.65;
}
.card-front {
    /* Generous padding mirrors the breathing room of the actual in-app card,
       where the headline sits in the visual centre with whitespace above
       and below, and the footer is pinned at the bottom. */
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    animation: card-breathe 6s ease-in-out infinite;
}

@keyframes card-breathe {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-6px) rotate(-0.5deg); }
}

.card-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
}
.card-progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
}
.card-progress-bar.active {
    background: var(--amber-500);
}

.card-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}
.card-chip {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.card-body-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    /* The big top padding pushes the headline into the visual centre of the
       card, leaving the chips space to breathe at the top. */
    padding: 3rem 0 2.5rem;
}

.card-headline {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    /* Subtle backlit glow behind the headline — mirrors the in-app card */
    text-shadow: 0 0 40px rgba(217, 119, 6, 0.5);
}

.card-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 400;
}

.card-footer {
    color: var(--amber-300);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   Feature sections (Discover + Match)
   ========================================================================== */

.feature {
    border-top: 1px solid var(--border-subtle);
}

.feature-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.feature-title .muted {
    color: var(--text-muted);
    font-weight: 700;
}

.feature-sub {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 3.5rem;
}

/* ==========================================================================
   Discover — reveal demo
   ========================================================================== */

.reveal-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.reveal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.75rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.reveal-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.reveal-card-before .reveal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}
.reveal-card-before h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(217, 119, 6, 0.4);
}
.reveal-card-before p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}
.reveal-cliff {
    color: var(--amber-300);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.reveal-card-after .reveal-poster {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(160deg, var(--amber-700), #1f1f24 70%);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
}
.reveal-poster-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.reveal-poster-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}
.reveal-poster-scores {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.reveal-poster-scores strong {
    color: var(--amber-300);
    font-weight: 700;
    margin-right: 0.25rem;
}

.reveal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-300);
    /* Subtle pulse so the arrow reads as the moment of motion between
       the two cards rather than a static decoration. */
    animation: arrow-pulse 2.4s ease-in-out infinite;
}
.reveal-arrow svg {
    color: var(--amber-300);
}

@keyframes arrow-pulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50%      { transform: translateX(6px); opacity: 1; }
}

@media (max-width: 800px) {
    .reveal-demo {
        grid-template-columns: 1fr;
    }
    .reveal-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
        animation: arrow-pulse-vertical 2.4s ease-in-out infinite;
    }
    @keyframes arrow-pulse-vertical {
        0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.7; }
        50%      { transform: rotate(90deg) translateX(6px); opacity: 1; }
    }
}

/* ==========================================================================
   Match — numbered steps
   ========================================================================== */

.match-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: match;
}

.match-steps li {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.match-steps li:hover {
    border-color: var(--amber-500);
    transform: translateY(-3px);
}

.match-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.18);
    color: var(--amber-300);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.match-steps h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.match-steps p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 400;
}

/* ==========================================================================
   Manifesto
   ========================================================================== */

.manifesto {
    border-top: 1px solid var(--border-subtle);
    padding: clamp(5rem, 12vw, 10rem) 0;
    text-align: center;
}

.manifesto-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 2rem;
}

.manifesto-body {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

.manifesto-emphasis {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.bottom-cta {
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.bottom-cta-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.05;
}

.bottom-cta-sub {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    margin-bottom: 2.5rem;
}

.bottom-cta .hero-ctas {
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--border-subtle);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 3rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}
.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-fineprint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Landing pages — shared blocks (couples, date-night, friends, swipe,
   long-distance, mindful). Built on top of the existing tokens; nothing
   here overrides the home page.
   ========================================================================== */

/* Eyebrow tag above an H1 — "For couples." / "For long distance." */
.lp-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.22);
}

/* Phone-frame screenshot. The PNGs are full app screens so we just need
   a soft frame and shadow to make them feel like devices. */
.screens-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: end;
    margin-top: 2rem;
}

.phone {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 9 / 19.5;
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}
.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phone-caption {
    margin-top: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Single big phone screenshot, used in the hero of some pages */
.phone-hero {
    max-width: 320px;
    margin: 0 auto;
}

/* FAQ — looks like a quiet list of objections, not a marketing FAQ block */
.faq {
    display: grid;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}
.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    transition: border-color 0.3s var(--ease-out);
}
.faq details[open] {
    border-color: rgba(217, 119, 6, 0.45);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--amber-300);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* A short quote / observation block, used mid-page on /mindful and /swipe */
.lp-quote {
    border-left: 3px solid var(--amber-500);
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 720px;
    margin: 2.5rem auto;
    font-style: italic;
}
.lp-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Compact "back to home" link in subpage headers */
.lp-back {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}
.lp-back:hover { color: var(--text-primary); }

/* Container the landing pages use for sections beneath the hero. */
.lp-section {
    padding: clamp(4rem, 9vw, 7rem) 0;
    border-top: 1px solid var(--border-subtle);
}
.lp-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.lp-section .lp-lede {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Document pages — privacy / terms / data-deletion
   These styles are scoped to .doc and unchanged from the previous version.
   Legacy class names (.blob, .gradient-text, .logo) are preserved for the
   existing doc HTML, which still references them.
   ========================================================================== */

/* Doc-page background blobs (older naming preserved) */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: doc-float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    pointer-events: none;
}
.blob-1 {
    width: 300px; height: 300px;
    background: var(--amber-500);
    top: -100px; right: -100px;
}
.blob-2 {
    width: 400px; height: 400px;
    background: var(--amber-700);
    bottom: -150px; left: -100px;
    animation-delay: -5s;
}
@keyframes doc-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Doc-page header logo (legacy; uses 👁️ emoji as a placeholder) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon { font-size: 2rem; }

/* Gradient-text effect for doc-page titles like "Privacy <span>Policy</span>" */
.gradient-text {
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.doc-page {
    overflow-y: auto;
    align-items: flex-start;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-container.doc {
    padding: 3rem 4rem;
    max-width: 860px;
}
.doc header {
    margin-bottom: 2.5rem;
}
.doc h2.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.doc .effective-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    display: block;
}
.doc h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.doc h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.doc p,
.doc li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}
.doc p {
    margin-bottom: 1rem;
}
.doc ul, .doc ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.doc li {
    margin-bottom: 0.5rem;
}
.doc strong {
    color: var(--text-primary);
    font-weight: 600;
}
.doc a {
    color: var(--amber-500);
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    transition: border-color 0.2s ease;
}
.doc a:hover {
    border-bottom-color: var(--amber-500);
}
.doc .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    margin-bottom: 2rem;
}
.doc .back-link:hover {
    color: var(--text-primary);
}
.doc .callout {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--amber-500);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.doc .callout p:last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .glass-container.doc {
        padding: 2rem 1.5rem;
    }
    .doc h2.hero-title {
        font-size: 2.2rem;
    }
}
