/* ============================================
   YellowVPN — yellow & white, left-to-right
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #F5C400;
    --yellow-deep: #D9AE00;
    --yellow-soft: #FFE566;
    --yellow-wash: #FFF6CC;
    --yellow-band: #FFF3B0;
    --cream: #FFF8DC;
    --paper: #FFFEF8;
    --white: #FFFFFF;
    --ink: #1A1608;
    --ink-soft: #4A4538;
    --muted: #7A7466;
    --line: #F0E6C8;
    --green: #22A06B;
    --error: #C0392B;

    --shadow-sm: 0 4px 14px rgba(26, 22, 8, 0.06);
    --shadow-md: 0 12px 32px rgba(26, 22, 8, 0.08);
    --shadow-lg: 0 24px 48px rgba(201, 160, 0, 0.16);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    --header-h: 72px;
    --container: 1160px;
    --ease: 180ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--ink);
    text-decoration: none;
}

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: 56px; font-weight: 800; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }

p { color: var(--ink-soft); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius-full);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(245, 196, 0, 0.28);
}

.btn-primary:hover {
    background: var(--yellow-deep);
    color: var(--ink);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--yellow);
    background: var(--yellow-wash);
    color: var(--ink);
}

.btn-ink {
    background: var(--ink);
    color: var(--yellow);
}

.btn-ink:hover { background: #2A2414; color: var(--yellow); }

.btn-large {
    min-height: 54px;
    padding: 14px 26px;
    font-size: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--yellow);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 254, 248, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: var(--cream);
}

.nav-link i { font-size: 10px; }

.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 160ms ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.dropdown-menu a:hover {
    background: var(--yellow-wash);
    color: var(--ink);
}

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

.header-actions .btn-primary {
    min-height: 42px;
    padding: 8px 18px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

/* Hero — left copy, right visual */
.hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(ellipse 70% 80% at 90% 20%, rgba(245, 196, 0, 0.22), transparent 55%),
        linear-gradient(90deg, var(--paper) 0%, var(--cream) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-overline { margin-bottom: 18px; }

.hero-overline .pill {
    background: var(--yellow-wash);
    border-color: var(--yellow);
    color: var(--ink);
}

.hero-title { margin-bottom: 18px; }

.hero-subtitle {
    font-size: 18px;
    max-width: 34em;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ratings {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.hero-visual { justify-self: end; }

.banner-container {
    width: min(100%, 560px);
}

/* Split section headers: title left, copy right */
.section-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.section-split .copy { max-width: 420px; }

.section-split h2 { margin-top: 10px; }

.band { padding: 72px 0; }

.band-cream { background: var(--cream); }
.band-white { background: var(--white); }
.band-yellow { background: var(--yellow); }
.band-paper { background: var(--paper); }

/* Horizontal rail of cards — icon left, text right */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
}

.tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tile-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--yellow-wash);
    color: var(--ink);
    font-size: 18px;
}

.tile h3 { margin-bottom: 6px; font-size: 18px; }
.tile p { font-size: 14.5px; margin: 0; }

/* Two-column story blocks */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.story.reverse { direction: rtl; }
.story.reverse > * { direction: ltr; }

.story-visual img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.story-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.story-item .tile-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 16px;
}

.story-item h3 { font-size: 16px; margin-bottom: 4px; }
.story-item p { font-size: 14px; margin: 0; }

/* How it works — numbered LTR steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.step-num {
    flex: 0 0 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    font-weight: 800;
    font-size: 18px;
}

.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; margin: 0; }

/* Privacy row */
.privacy-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.privacy-cell {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.privacy-cell .tile-icon { margin-bottom: 16px; }
.privacy-cell p { font-size: 14px; margin: 0; }

/* Plus / premium */
.plus-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.plus-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.plus-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.plus-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.plus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plus-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--ink-soft);
}

.plus-item i { color: var(--ink); }

.plus-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-xl);
}

.plus-cta p { color: rgba(255, 254, 248, 0.7); margin: 8px 0 0; }
.plus-cta h3 { color: var(--paper); margin: 0; }

/* Get the app */
.app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}

.app-card .platform-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    font-size: 28px;
    color: var(--ink);
}

.app-card h3 { margin-bottom: 6px; }
.app-card p { font-size: 14px; margin-bottom: 14px; }

.app-body { flex: 1; }

/* Footer */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 48px 0 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 360px;
}

.footer-brand p {
    color: rgba(255, 254, 248, 0.65);
    font-size: 14px;
    margin-top: 6px;
}

.footer-brand .logo-text { color: var(--paper); }

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-section h4 {
    color: var(--yellow);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-section ul { list-style: none; }

.footer-section li { margin-bottom: 10px; }

.footer-section a {
    color: rgba(255, 254, 248, 0.78);
    font-size: 14px;
}

.footer-section a:hover { color: var(--yellow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 243, 176, 0.12);
    font-size: 13px;
    color: rgba(255, 254, 248, 0.5);
}

.footer-bottom p { color: inherit; margin: 0; }

/* Company / legal pages */
.page-hero {
    padding: 56px 0 40px;
    background: linear-gradient(90deg, var(--yellow-band), var(--paper));
}

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.page-hero h1 { margin: 12px 0 8px; font-size: 44px; }

.page-hero p { max-width: 420px; margin: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.back-link:hover { color: var(--ink); }

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.policy-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.policy-card .tile-icon { margin-bottom: 16px; }
.policy-card p { flex: 1; margin-bottom: 18px; font-size: 14.5px; }

.about-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 40px;
}

.about-copy,
.about-meta {
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
}

.about-copy { background: var(--white); }
.about-meta { background: var(--ink); color: var(--paper); }

.about-meta h3 { color: var(--yellow); margin-bottom: 12px; }
.about-meta p { color: rgba(255, 254, 248, 0.75); margin-bottom: 10px; }
.about-meta a { color: var(--yellow); }

.policy-text {
    max-width: 820px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.policy-text h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    padding-top: 8px;
}

.policy-text h2:first-child { margin-top: 0; }

.policy-text p,
.policy-text li {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.policy-text ol { padding-left: 20px; }
.policy-text ul { padding-left: 18px; margin: 8px 0 16px; }

/* Modal */
.premium-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 8, 0.45);
    display: grid;
    place-items: center;
    z-index: 2000;
    padding: 24px;
}

.modal-content {
    width: min(100%, 420px);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    background: var(--yellow);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: var(--yellow);
    cursor: pointer;
    font-size: 20px;
}

.modal-body { padding: 22px; }

.premium-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--cream);
    border-radius: 12px;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn { flex: 1; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Responsive: stack only when a row would get cramped */
@media (max-width: 980px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }

    .hero-content,
    .story,
    .story.reverse,
    .about-panel,
    .page-hero-row,
    .plus-cta,
    .app-row,
    .privacy-row,
    .plus-row,
    .policy-grid,
    .steps,
    .section-split,
    .footer-content,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .story.reverse { direction: ltr; }
    .hero-visual { justify-self: stretch; }
    .rail {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .plus-cta { align-items: flex-start; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .container { width: min(100% - 32px, var(--container)); }
    h1 { font-size: 32px; }
    .page-hero h1 { font-size: 32px; }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 20px;
        box-shadow: var(--shadow-md);
    }

    .nav.active .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 4px 0 8px 12px;
    }

    .mobile-menu-toggle { display: grid; place-items: center; }
    .header-actions .btn-primary { display: none; }

    .hero { padding: 32px 0; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .band { padding: 48px 0; }
    .policy-text { padding: 24px; }
    .footer-links { flex-direction: column; gap: 24px; }
    .app-card { flex-direction: column; align-items: flex-start; }
}
