/* ===================================================================
   TutVPN landing — dark minimal utility
   =================================================================== */

:root {
    --bg: #0f0f14;
    --bg-elev: #1a1a24;
    --border: #2c2c3a;
    --border-hi: #3f3f52;
    --text: #e8e8f0;
    --text-dim: #a0a0b0;
    --text-mute: #7f7f8f;
    --accent: #e88770;
    --accent-hi: #f09a85;
    --accent-ink: #0f0f14;

    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", Menlo, monospace;

    --max-w: 1080px;
    --pad: clamp(20px, 5vw, 40px);
}

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

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

body { min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------ header ---------------------------- */

header.site {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
}

header.site .inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

header.site .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
header.site .brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

header.site nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
header.site nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 4px;
}
header.site nav a:hover { color: var(--text); background: var(--bg-elev); }

.header-cta {
    margin-left: 12px;
    padding: 8px 16px !important;
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    font-weight: 600 !important;
}
.header-cta:hover { background: var(--accent-hi) !important; }

@media (max-width: 640px) {
    header.site nav .header-hide-mobile { display: none; }
}

/* ------------------------------ main ------------------------------- */

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ------------------------------ hero ------------------------------- */

.hero {
    padding: clamp(60px, 12vw, 120px) 0 clamp(40px, 8vw, 80px);
    text-align: left;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    color: var(--accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding: 4px 10px;
    border: 1px solid var(--border-hi);
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }

.hero p.lede {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hi);
}
.btn-secondary:hover { border-color: var(--text-dim); background: var(--bg-elev); }

/* -------------------------- sections base -------------------------- */

section {
    padding: clamp(50px, 8vw, 80px) 0;
    border-top: 0.5px solid var(--border);
}

section .section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 24px;
}

section p.section-lede {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 48px;
}

/* ---------------------------- features ----------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.feature {
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
}
.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.feature h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.feature p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.55;
}

/* ----------------------------- pricing ----------------------------- */

.pricing-trial {
    padding: 32px 32px;
    background: var(--bg-elev);
    border: 0.5px solid var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.pricing-trial-text h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.pricing-trial-text p {
    color: var(--text-dim);
    font-size: 15px;
}

.pricing-table {
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.pricing-table th,
.pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 0.5px solid var(--border);
}
.pricing-table thead th {
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
}
.pricing-table tbody th {
    color: var(--text-dim);
    font-weight: 500;
}
.pricing-table tbody td {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
}
.pricing-table tbody td .month {
    display: block;
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
    font-family: var(--font-mono);
}
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
    border-bottom: none;
}
.pricing-note {
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 20px;
}

/* --------------------------- start steps --------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.step {
    position: relative;
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
}
.step-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
}
.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.step p a { color: var(--accent); }

/* --------------------------- footer CTA ---------------------------- */

.footer-cta {
    padding: clamp(60px, 10vw, 100px) 0;
    text-align: center;
    border-top: 0.5px solid var(--border);
}
.footer-cta h2 {
    max-width: 100%;
    margin-bottom: 12px;
}
.footer-cta p.section-lede {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 32px;
}
.footer-cta .cta-row { justify-content: center; }
.footer-cta .cta-row { display: flex; }

/* ------------------------------ footer ----------------------------- */

footer.site {
    border-top: 0.5px solid var(--border);
    padding: 40px var(--pad);
    text-align: center;
}
footer.site .inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
footer.site .brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
footer.site .brand-name {
    font-weight: 600;
    letter-spacing: -0.02em;
}
footer.site nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
footer.site nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}
footer.site nav a:hover { color: var(--text); }
footer.site .copyright {
    font-size: 13px;
    color: var(--text-mute);
    font-family: var(--font-mono);
}

/* ------------------------- legal / doc pages ------------------------ */

.doc {
    padding: clamp(50px, 8vw, 80px) 0;
    max-width: 720px;
}
.doc h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}
.doc .updated {
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 40px;
}
.doc .intro {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.55;
    padding: 24px;
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 40px;
}
.doc h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 40px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.doc h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}
.doc p {
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.65;
}
.doc ul {
    list-style: none;
    margin-bottom: 12px;
    padding-left: 0;
}
.doc ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--text);
    line-height: 1.55;
}
.doc ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-mute);
}
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* -------------------------- how-to-use page ------------------------ */

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 40px;
}
.app-card {
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
}
.app-platform {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.app-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.app-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.app-card .app-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hi);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.app-card .app-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
}
.instr-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
}
.instr-step .num {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--accent);
    font-weight: 500;
    padding-top: 4px;
}
.instr-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.instr-step p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}
.instr-step .screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 720px;
}
.instr-step .screens img,
.instr-step .screens .screen-placeholder {
    width: 100%;
    background: var(--bg-elev);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    display: block;
}
.instr-step .screen-placeholder {
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- store badges (how-to-use) ---------- */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border-hi);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.store-badge:hover {
    border-color: var(--accent);
    background: var(--bg-elev);
}
.sb-flag {
    font-size: 22px;
    line-height: 1;
}
.sb-text {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
}
.sb-text small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-dim);
}
.store-note {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.5;
}

.term-snippet {
    margin-top: 8px;
    padding: 10px 12px;
    background: #0a0a0e;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-dim);
    overflow-x: auto;
    white-space: pre;
}
.store-note a {
    color: var(--accent);
}

.instr-step .screens img {
    max-width: 280px;
    justify-self: start;
}

.instr-step .screens img.wide {
    max-width: 460px;
    grid-column: 1 / -1;
}
