/* ============================================================
   PipWires Landing Page — Dark-Theme Stylesheet
   Pure CSS · No frameworks · Mobile-responsive
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --bg-primary: #0B1020;
    --bg-surface: #111827;
    --bg-elevated: #1F2937;
    --accent-primary: #38BDF8;
    --accent-hover: #0EA5E9;
    --accent-secondary: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --code-bg: #020617;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code',
        'SF Mono', 'Consolas', 'Liberation Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.08);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    --container-max: 1200px;
    --header-height: 64px;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle dot-grid background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

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

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1em;
    color: var(--text-muted);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Utility Classes ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

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

.text-muted {
    color: var(--text-muted) !important;
}

.section-padding {
    padding-block: 80px;
}

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

/* ── Animations / Transitions ──────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Header / Navigation ──────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links .btn {
    margin-left: 8px;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    color: var(--text-primary);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Export button (CSV) — admin tables */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    color: var(--accent-secondary);
    background-color: transparent;
    border: 1px solid var(--accent-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-export:hover,
.btn-export:focus-visible {
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
    outline: none;
}

/* Table heading row: heading + export action on the right */
.table-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 32px 0 12px;
    flex-wrap: wrap;
}

.table-heading-row .table-heading {
    margin: 0;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

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

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

/* Optional gradient overlay behind hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(56, 189, 248, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 16px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Small proof/context line between the CTA row and the code-preview card */
.hero-proof {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    letter-spacing: 0.01em;
}

.hero-proof .arrow {
    color: var(--accent-primary);
    font-weight: 600;
    margin-inline: 4px;
}

/* Hero visual — dark UI mockup placeholder */
.hero-visual {
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Editor top bar (titlebar) */
.editor-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.editor-traffic {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.editor-traffic .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.editor-traffic .dot-red {
    background-color: var(--color-danger);
}

.editor-traffic .dot-yellow {
    background-color: var(--color-warning);
}

.editor-traffic .dot-green {
    background-color: var(--accent-secondary);
}

.editor-title {
    flex: 1;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-lang-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Code body — left-aligned, line-numbered, monospace */
.mockup-code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: left;
    padding: 16px 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-line {
    display: flex;
    align-items: baseline;
}

.code-line .ln {
    flex-shrink: 0;
    width: 2.5em;
    margin-right: 14px;
    text-align: right;
    color: rgba(148, 163, 184, 0.35);
    user-select: none;
    -webkit-user-select: none;
}

.code-line .lc {
    white-space: pre;
    flex: 1;
    min-width: 0;
}

.mockup-code .kw {
    color: var(--accent-primary);
}

.mockup-code .str {
    color: var(--accent-secondary);
}

.mockup-code .cmt {
    color: var(--text-muted);
    font-style: italic;
}

.mockup-code .fn {
    color: #C084FC;
}

.mockup-code .num {
    color: var(--color-warning);
}

/* Small note under the code card */
.code-card-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 0.01em;
}

/* ── Section Shared ────────────────────────────────────────── */
.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 48px;
}

.section-accent-line {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Alternating section backgrounds */
.section-alt {
    background-color: var(--bg-surface);
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.9375rem;
}

/* ── Features Section ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
}

/* ── Screenshots Section ───────────────────────────────────── */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.screenshot-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-surface);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    outline: none;
}

.screenshot-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    background-color: var(--bg-elevated);
    pointer-events: none; /* click target is the card */
}

.screenshot-label {
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Screenshot Lightbox ───────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: min(1100px, 90vw);
    max-height: 86vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    background-color: var(--bg-surface);
}

.lightbox-caption {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(31, 41, 55, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 2rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    outline: none;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ── Video Container ───────────────────────────────────────── */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Auto-playing looping demo: hide any control bar and block fullscreen */
.video-wrapper video::-webkit-media-controls,
.video-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
}

.video-wrapper video {
    pointer-events: none; /* prevents double-click fullscreen and any user toggling */
}

/* ── Roadmap Section ───────────────────────────────────────── */
.roadmap-list {
    max-width: 600px;
    margin-inline: auto;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.roadmap-item:last-child {
    border-bottom: none;
}

.roadmap-status {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    text-align: left;
}

.roadmap-status .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.roadmap-status.current {
    border-color: var(--accent-primary);
    background-color: rgba(56, 189, 248, 0.05);
}

.roadmap-status.current .status-dot {
    background-color: var(--accent-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

.roadmap-status.planned .status-dot {
    background-color: var(--text-muted);
}

.roadmap-status strong {
    display: block;
    margin-bottom: 4px;
}

.roadmap-status p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ── Early Access / Waitlist Form ──────────────────────────── */
.early-access-form {
    max-width: 500px;
    margin-inline: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

/* Honeypot field — hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Form messages */
.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-top: 16px;
    text-align: center;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-secondary);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
}

/* Form success state — replaces the form after a successful submission */
.form-success-state {
    text-align: center;
    padding: 32px 24px;
}

.founding-tester-grid .form-success-state {
    /* Match the form's max-width inside the grid */
    max-width: 500px;
}

.form-success-state .form-message {
    margin-bottom: 16px;
}

.form-success-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 12px;
}

/* ── FAQ Section ───────────────────────────────────────────── */
.faq-list {
    max-width: 720px;
    margin-inline: auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Final CTA Section ─────────────────────────────────────── */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 16px;
}

.final-cta p {
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-legal-links a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.footer-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-link-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.55);
    font-size: 0.95em;
    line-height: 1;
    user-select: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--text-primary);
    background-color: rgba(148, 163, 184, 0.1);
}

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

/* Compact footer disclaimer (short version of the full disclaimer block) */
.footer-disclaimer {
    max-width: 760px;
    margin: 0 auto 16px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

/* ── Legal / Contact Pages ─────────────────────────────────── */
/* Refined long-form typographic scale shared by privacy, terms,
   refund-policy and contact pages. Values in rem so the whole
   scale responds to the root font-size on small screens. */
.legal-page {
    padding-top: var(--header-height);
}

/* Slightly tighter measure for comfortable line length (~70–80ch) */
.legal-container {
    max-width: 800px;
}

.legal-hero {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(11, 16, 32, 0));
}

.legal-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.legal-kicker {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    margin-bottom: 14px;
}

/* Refined meta line for the effective date */
.legal-effective {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    margin-top: 18px;
}

/* Hero intro paragraph(s) — targeted without touching kicker/effective */
.legal-hero .legal-container > p:not(.legal-kicker):not(.legal-effective) {
    color: #CBD5E1;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-top: 1.25rem;
    text-wrap: pretty;
}

.legal-content-section {
    padding: 0 0 80px;
}

.legal-card {
    background-color: rgba(17, 24, 39, 0.88);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 5vw, 52px);
}

/* Body copy — comfortable, readable long-form text.
   Slate-300 (#CBD5E1) keeps the brand-muted feel while improving
   contrast over the default slate-400 for extended reading. */
.legal-card p {
    color: #CBD5E1;
    font-size: 1.0625rem;
    line-height: 1.75;
    letter-spacing: 0.005em;
    margin-bottom: 1.15em;
    text-wrap: pretty;
}

/* Numbered section headings — scaled down from the global h2 so the
   many sections read as an elegant hierarchy instead of shouting. */
.legal-card h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.55);
    text-wrap: balance;
}

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

.legal-card h3 {
    font-size: 1.1875rem;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.legal-card ul,
.legal-card ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1.3rem;
    color: #CBD5E1;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Brand-accented list markers for a refined detail */
.legal-card li::marker {
    color: var(--accent-primary);
}

.legal-card li {
    margin-bottom: 0.6rem;
    padding-left: 0.35rem;
}

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

/* Subtle, elegant underlines for inline links in legal copy */
.legal-card a {
    text-decoration: underline;
    text-decoration-color: rgba(56, 189, 248, 0.4);
    text-underline-offset: 3px;
}

.legal-card a:hover {
    text-decoration-color: var(--accent-primary);
}

.legal-note {
    margin-top: 2rem;
    padding: 1.15rem 1.4rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    background-color: rgba(56, 189, 248, 0.08);
    color: #CBD5E1;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Scoped to .legal-card so it wins over the .legal-card p rule above */
.legal-card .contact-email {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.15em;
}

.obfuscated-email {
    overflow-wrap: anywhere;
}

/* ── Code Preview / Syntax Highlighting ────────────────────── */
.code-block {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
    color: var(--text-muted);
}

.code-block .kw {
    color: var(--accent-primary);
}

.code-block .str {
    color: var(--accent-secondary);
}

.code-block .cmt {
    color: var(--text-muted);
    font-style: italic;
}

.code-block .fn {
    color: #C084FC;
}

.code-block .num {
    color: var(--color-warning);
}

.code-block .op {
    color: var(--text-primary);
}

/* ── Admin Page Styles ─────────────────────────────────────── */
.admin-container {
    max-width: 960px;
    margin-inline: auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.5rem;
}

/* Admin login form */
.admin-login {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.admin-login h1 {
    text-align: center;
    margin-bottom: 8px;
}

.admin-login p {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* Admin stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Admin table */
.admin-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    /* Cap height so long tables scroll internally instead of stretching the page.
       65vh keeps the table compact on typical screens while still showing ~10-15
       rows at once. Aggregate tables (by day / by country) rarely exceed this. */
    max-height: 65vh;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Sticky header row stays visible while scrolling inside the wrapper.
   The wrapper must have overflow:auto (above) for position:sticky to work. */
.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--bg-elevated);
}

.admin-table td {
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: rgba(56, 189, 248, 0.03);
}

/* Admin error message */
.error-message {
    padding: 12px 16px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-danger);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    text-align: center;
}

/* Admin back link */
.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

/* Admin header actions */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.admin-tab {
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Admin toolbar (heading + action button row) */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-toolbar h2 {
    font-size: 1.25rem;
    margin: 0;
}

/* Action button group within the admin toolbar (e.g. Export CSV + Reset) */
.admin-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Danger button for destructive actions */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background-color: var(--color-danger);
    color: var(--text-primary);
}

/* Table section heading */
.table-heading {
    margin: 32px 0 12px;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

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

/* Admin stat number */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-top: 8px;
}

/* Admin no-data message */
.no-data {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

/* Admin pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}

.pagination a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Admin login card */
.login-card {
    text-align: center;
}

.login-card .form-group {
    text-align: left;
}

.login-card button {
    width: 100%;
    margin-top: 16px;
}

/* ── Founding Tester / Pricing Section ─────────────────────── */
.early-access-intro {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--text-muted);
}

#early-access .section-accent-line {
    margin: 8px auto 20px;
}

.founding-tester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1000px;
    margin-inline: auto;
    text-align: left;
}

.early-access-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition-fast);
}

.pricing-card:hover {
    border-color: var(--accent-primary);
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-note {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.pricing-subnote {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.includes-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.includes-block strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.includes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.includes-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.includes-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

/* Early access form override within grid */
.founding-tester-grid .early-access-form {
    max-width: none;
}

.early-access-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 420px);
    gap: 28px;
    max-width: 1080px;
    margin: 36px auto 0;
    text-align: left;
    align-items: start;
    justify-content: center;
}

.early-access-info-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(31, 41, 55, 0.82), rgba(17, 24, 39, 0.86)),
        var(--bg-surface);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.early-access-info-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
    pointer-events: none;
}

.early-access-info-card h3 {
    font-size: 1.18rem;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    text-align: left;
}

.license-access-card {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    text-align: left;
}

.license-access-list {
    /* Two-column responsive grid of feature/benefit items.
       Falls back to a single column on mobile (see media queries). */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    max-width: none;
}

.license-access-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background-color: rgba(56, 189, 248, 0.04);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: var(--radius-md);
    color: #CBD5E1;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: left;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.license-access-list li:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background-color: rgba(56, 189, 248, 0.08);
}

.license-access-list li::before {
    content: none;
}

.license-access-list .checkmark {
    position: static;
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 999px;
    background-color: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1;
}

.early-access-notice {
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 420px;
    text-align: left;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-left: 4px solid var(--color-warning);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(17, 24, 39, 0.92));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
}

.early-access-notice::before {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), rgba(56, 189, 248, 0.28), transparent);
}

.early-access-notice-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.early-access-notice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.early-access-notice h3 {
    color: var(--color-warning);
    margin-bottom: 0;
    font-size: 1.2rem;
}

.early-access-notice-copy {
    max-width: 34rem;
}

.early-access-notice-copy p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #CBD5E1;
    margin-bottom: 14px;
    text-align: left;
}

/* Lead statement: emphasize the "still under active development" line */
.early-access-notice-copy p:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Final caveat: separate the profitability disclaimer as a distinct note */
.early-access-notice-copy p:last-child {
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

/* Required field indicator */
.required {
    color: var(--color-danger);
}

/* Textarea field */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Disclaimer section */
.disclaimer-section {
    padding: 32px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.disclaimer-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.disclaimer-text strong {
    color: var(--text-primary);
}

/* ── Responsive: Tablet (768px – 1024px) ───────────────────── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ── Responsive: Mobile (< 768px) ──────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 48px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Stack the pricing card + form vertically on mobile */
    .founding-tester-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .early-access-info-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 24px;
    }

    .early-access-info-card {
        padding: 24px;
    }

    /* License/access feature list: collapse the two-column grid to one
       readable column on mobile, consistent with other site grids. */
    .license-access-list {
        grid-template-columns: 1fr;
    }

    .pricing-price {
        font-size: 2rem;
    }

     .section-padding {
         padding-block: 56px;
     }
 
     .hero.section-padding {
         padding-top: calc(var(--header-height) + 64px + env(safe-area-inset-top));
         padding-bottom: 48px;
     }
 
     .final-cta-buttons {
         flex-direction: column;
         align-items: stretch;
    }

    .final-cta-buttons .btn {
        width: 100%;
    }

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

    /* Disclaimer readability on mobile */
    .disclaimer-section {
        padding: 24px 0;
    }

    .disclaimer-text {
        font-size: 0.75rem;
    }
}

/* ── Responsive: Small Mobile (< 480px) ────────────────────── */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding-inline: 16px;
    }

    .mockup-code {
        font-size: 0.75rem;
        padding: 12px 14px;
    }

    /* Tighter top bar on small screens */
    .editor-titlebar {
        padding: 8px 10px;
        gap: 8px;
    }

    .editor-title {
        font-size: 0.75rem;
    }

    /* Hide line numbers on very tight screens to save horizontal space */
    .code-line .ln {
        display: none;
    }

    .step-card,
    .feature-card {
        padding: 24px;
    }

    /* Tighten footer legal-link spacing on very small screens so the row
       stays tidy instead of wrapping awkwardly. */
    .footer-legal-links a {
        padding: 0.25rem 0.55rem;
    }

    .footer-link-item {
        gap: 6px;
    }

     .section-padding {
         padding-block: 40px;
     }
 
     .hero.section-padding {
         padding-top: calc(var(--header-height) + 56px + env(safe-area-inset-top));
         padding-bottom: 40px;
     }
 
     .btn-large {
         padding: 14px 24px;
        font-size: 1rem;
    }
}
