/* ============================================================
   PARATISSIMUS — Roman Theme Stylesheet
   "The Most Prepared"
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
    /* Background palette — app dark mode */
    --bg-primary: #1F2123;
    --bg-elevated: #2A2D2F;
    --bg-card: #2E3133;
    --bg-card-hover: #363A3D;

    /* Gold accents — app palette */
    --gold: #DAA520;
    --gold-warm: #D4AF37;
    --gold-light: #E8C547;
    --gold-muted: rgba(218, 165, 32, 0.15);
    --gold-gradient: linear-gradient(135deg, #D4AF37, #DAA520, #E8C547);

    /* Roman Red — app primary */
    --red-primary: #8B1A1A;
    --red-hover: #A02020;
    --red-bright: #C0392B;

    /* Text */
    --text-primary: #F5F0E8;
    --text-secondary: #A0A0A0;
    --text-muted: #707070;

    /* Category accent colors */
    --cat-life-skills: #8B1A1A;
    --cat-cert-prep: #9B59B6;
    --cat-servsafe: #27AE60;
    --cat-realestate: #3498DB;
    --cat-comptia: #E74C3C;
    --cat-cooking: #E74C3C;
    --cat-finance: #27AE60;
    --cat-carcare: #3498DB;
    --cat-firstaid: #E74C3C;
    --cat-gardening: #2ECC71;
    --cat-osha: #F39C12;
    --cat-electrician: #1ABC9C;
    --cat-faa107: #8E44AD;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(218, 165, 32, 0.15);

    /* Typography */
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 5rem 1.5rem;
    --card-padding: 2rem;
    --card-radius: 20px;

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(218, 165, 32, 0.08);
    --shadow-gold-glow: 0 0 20px rgba(218, 165, 32, 0.2), 0 0 40px rgba(218, 165, 32, 0.08);
}

/* ----------------------------------------------------------
   2. Reset & Base Styles
   ---------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(218, 165, 32, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 26, 26, 0.04) 0%, transparent 50%);
}

/* Ensure content sits above the texture */
body > * {
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gold-light);
}

a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ----------------------------------------------------------
   3. Container
   ---------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----------------------------------------------------------
   4. Section Titles & Gold Divider
   ---------------------------------------------------------- */
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.gold-divider {
    border: none;
    width: 80px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0 auto 2.5rem;
    border-radius: 1px;
}

/* ----------------------------------------------------------
   5. Hero Section
   ---------------------------------------------------------- */
/* Hero Section */
.hero {
    padding: 5rem 1.5rem 3.5rem;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(218, 165, 32, 0.06) 0%, transparent 60%),
        var(--bg-primary);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 30px rgba(218, 165, 32, 0.25));
    transition: filter var(--transition-slow);
}

.hero-logo:hover {
    filter: drop-shadow(0 0 40px rgba(218, 165, 32, 0.4));
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 2rem;
}

/* Phone Mockup */
.hero-mockup {
    flex-shrink: 0;
}

.phone-frame {
    position: relative;
    width: 300px;
    height: 620px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 3px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Subtle side shine */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 60px;
    right: -1px;
    width: 3px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    z-index: 5;
}

/* Dynamic Island */
.phone-notch {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0 6px;
    background: #000;
    border-radius: 32px 32px 0 0;
    flex-shrink: 0;
}

.phone-notch::before {
    content: '';
    width: 90px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 20px;
}

/* Screen area */
.phone-screen {
    position: relative;
    width: 100%;
    flex: 1;
    background: #000;
    overflow: hidden;
    min-height: 0;
}

/* Home indicator */
.phone-home-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0 6px;
    background: #000;
    border-radius: 0 0 32px 32px;
    flex-shrink: 0;
}

.phone-home-bar::before {
    content: '';
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

/* Screenshot slideshow */
.phone-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.phone-slideshow .phone-screen-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    animation: slideshow 20s infinite;
}

.phone-slideshow .phone-screen-img:first-child { opacity: 1; }
.phone-slideshow .phone-screen-img:nth-child(1) { animation-delay: 0s; }
.phone-slideshow .phone-screen-img:nth-child(2) { animation-delay: 4s; }
.phone-slideshow .phone-screen-img:nth-child(3) { animation-delay: 8s; }
.phone-slideshow .phone-screen-img:nth-child(4) { animation-delay: 12s; }
.phone-slideshow .phone-screen-img:nth-child(5) { animation-delay: 16s; }

@keyframes slideshow {
    0%    { opacity: 0; }
    2%    { opacity: 1; }
    20%   { opacity: 1; }
    22%   { opacity: 0; }
    100%  { opacity: 0; }
}

/* ----------------------------------------------------------
   6. Store Badges
   ---------------------------------------------------------- */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 180px;
}

.store-badge:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.store-badge:active {
    transform: translateY(0);
}

.store-badge-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.store-badge-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.store-badge-text strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.store-badge-soon {
    opacity: 0.5;
    cursor: default;
}

.store-badge-soon:hover {
    border-color: var(--border-subtle);
    box-shadow: none;
    transform: none;
}

/* ----------------------------------------------------------
   7. Features Grid
   ---------------------------------------------------------- */
.features {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(218, 165, 32, 0.3);
}

.feature-icon {
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.feature-icon svg {
    display: inline-block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------------------------
   8. Content Categories
   ---------------------------------------------------------- */
.categories {
    padding: var(--section-padding);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    display: flex;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.category-accent {
    width: 6px;
    flex-shrink: 0;
    background: var(--accent);
}

.category-body {
    padding: 1.75rem 2rem;
}

.category-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.category-body p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Individual Cert Cards */
.cert-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cert-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Coming Soon */
.coming-soon-heading {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 1rem;
}

.coming-soon-grid {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.coming-soon-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.coming-soon-card .cert-dot {
    width: 8px;
    height: 8px;
}

/* ----------------------------------------------------------
   9. How It Works — Steps
   ---------------------------------------------------------- */
.how-it-works {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

/* Gold dotted connector line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 20%;
    right: 20%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--gold) 0px,
        var(--gold) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.3;
}

.step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   10. Pricing
   ---------------------------------------------------------- */
.pricing {
    padding: var(--section-padding);
}

.pricing .container {
    text-align: center;
}

.pricing-toggle {
    display: inline-flex;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
}

.toggle-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn.active {
    background: var(--red-primary);
    color: var(--text-primary);
}

.toggle-save {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: left;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-featured {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #1F2123;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
}

.pricing-featured .pricing-cta {
    background: var(--gold-gradient);
    color: #1F2123;
}

/* ----------------------------------------------------------
   11. Download CTA
   ---------------------------------------------------------- */
.download-cta {
    padding: var(--section-padding);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(218, 165, 32, 0.05) 0%, transparent 60%),
        var(--bg-elevated);
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.store-badge-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.store-badge-lg .store-badge-icon {
    width: 32px;
    height: 32px;
}

.developer-credit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.developer-credit a {
    color: var(--gold);
    font-weight: 500;
}

.developer-credit a:hover {
    color: var(--gold-light);
}

/* ----------------------------------------------------------
   12. Buttons
   ---------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--gold-gradient);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.25);
}

.btn-primary:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(218, 165, 32, 0.25), 0 0 30px rgba(218, 165, 32, 0.12);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.2);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* ----------------------------------------------------------
   13. Footer
   ---------------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: #191B1D;
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    width: 100px;
    margin: 0 auto 1.25rem;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-developer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-developer a {
    color: var(--gold);
    font-weight: 500;
}

.footer-contact {
    margin-bottom: 1.25rem;
}

.footer-contact a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.footer-legal-links {
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.footer-legal-links a {
    color: var(--gold);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   Site Nav (used across all pages)
   ---------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(22, 24, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-nav .nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--gold-light);
}

.nav-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.3));
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 0.75rem 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
    pointer-events: auto;
}

.nav-menu a {
    display: block;
    padding: 0.7rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background var(--transition-base), color var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    background: var(--gold-muted);
    color: var(--gold-light);
}

/* ----------------------------------------------------------
   Legal pages (privacy, terms)
   Mirrors the home page section pattern: section-title + card
   ---------------------------------------------------------- */
.legal-section {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.legal-section .container {
    max-width: 820px;
}

.legal-section .section-subtitle {
    margin-bottom: 1.5rem;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    padding: 2.5rem 2.75rem;
    box-shadow: var(--shadow-card);
}

.legal-card .scope-note {
    font-size: 0.9rem;
    background: var(--gold-muted);
    border-left: 3px solid var(--gold);
    padding: 0.9rem 1.15rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-card .banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-card .banner.info {
    background: rgba(218, 165, 32, 0.1);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
}

.legal-card .banner.warning {
    background: rgba(192, 57, 43, 0.12);
    color: #E8A040;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.03em;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.legal-card h2:first-child,
.legal-card .scope-note + h2,
.legal-card .banner + h2 {
    margin-top: 0;
}

.legal-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

.legal-card a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Support page */
.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.support-path {
    display: inline-block;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--gold-light);
    background: var(--gold-muted);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.support-contact {
    text-align: center;
    max-width: 480px;
    margin: 2rem auto 0;
}

.support-contact .feature-icon {
    margin-bottom: 1.25rem;
}

.support-contact p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.support-email-link {
    font-size: 1.15rem !important;
    margin-bottom: 0.75rem !important;
}

.support-email-link a {
    font-weight: 600;
    color: var(--gold);
}

.support-email-link a:hover {
    color: var(--gold-light);
}

@media (max-width: 600px) {
    .legal-card {
        padding: 1.75rem 1.5rem;
    }
    .support-actions {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------
   14. Fade-in Animation
   ---------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet — large */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-mockup {
        margin-top: 2rem;
    }

    .phone-frame {
        width: 260px;
        height: 540px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet — small */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .steps-grid::before {
        display: none;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    .hero h1 {
        letter-spacing: 0.1em;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges,
    .cta-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .hero {
        padding: 3.5rem 1rem 2.5rem;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .btn-primary {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }

    .cert-cards,
    .coming-soon-grid {
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    body::before {
        display: none;
    }

    .hero,
    .download-cta {
        background: none;
    }

    .hero h1,
    .step-number {
        background: none;
        -webkit-text-fill-color: #333;
        color: #333;
    }

    .section-title {
        color: #333;
    }

    .feature-card,
    .category-card,
    .pricing-card,
    .cert-card,
    .coming-soon-card {
        border: 1px solid #ccc;
        box-shadow: none;
        background: #fff;
    }

    .store-badge {
        border: 1px solid #ccc;
        background: #fff;
    }

    .btn-primary {
        background: #eee;
        color: #000;
        box-shadow: none;
    }

    .site-footer {
        background: #fff;
        border-top: 1px solid #ccc;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .phone-frame {
        border: 2px solid #ccc;
    }

    .pricing-featured {
        border-color: #999;
    }
}
