/* ============================================================
   Vye site stylesheet — shared across landing page and guides.
   Design language mirrors the app: dark canvas, spinning
   spectrum gradient, serif small-caps display type, rounded body.
   ============================================================ */

:root {
    /* Canvas color — propagates to iOS Safari's status bar / URL bar
       zones. Approximates the gradient's tinted-black average instead
       of #000 so system UI blends with the page. */
    --bg: #15091E;
    --text-primary: rgba(242, 255, 247, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-purple: #7B61FF;
    --glow-blue:   #3B82F6;
    --glow-orange: #F97316;
    --glow-pink:   #EC4899;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-accent: rgba(123, 97, 255, 0.18);
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }
body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--rounded);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img { max-width: 100%; }
::selection { background: rgba(123, 97, 255, 0.45); }

/* --- Animated angular gradient background, mirrors VyeGradientSpectrumBackground --- */

.bg-spectrum {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-spectrum::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 220vmax; height: 220vmax;
    transform: translate(-50%, -50%);
    border-radius: 50%; /* circle, so rotation never exposes a corner gap */
    background: conic-gradient(
        from 0deg,
        var(--glow-purple),
        var(--glow-blue),
        var(--glow-orange),
        var(--glow-pink),
        var(--glow-purple)
    );
    filter: blur(80px) saturate(1.08);
    opacity: 0.85;
    animation: spectrumSpin 22s linear infinite;
}
.bg-spectrum::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}
/* Quieter variant for reading-heavy pages (guides) */
.bg-spectrum.calm::before { opacity: 0.55; animation-duration: 40s; }
.bg-spectrum.calm::after  { background: rgba(0, 0, 0, 0.74); }
@keyframes spectrumSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bg-spectrum::before { animation: none; }
}

/* --- Layout --- */

section { padding: 80px 24px; }
.container { max-width: 980px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }

/* --- Header --- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.site-header .brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.site-header .brand img { width: 30px; height: 30px; display: block; }
.site-header nav {
    display: flex; align-items: center; gap: 22px;
}
.site-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.site-header nav a:hover { color: var(--text-primary); }
.site-header nav a.nav-cta {
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.site-header nav a.nav-cta:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
@media (max-width: 560px) {
    .site-header nav a:not(.nav-cta) { display: none; }
}

.wordmark {
    font-family: var(--serif);
    font-variant: small-caps;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: lowercase;
}

/* --- Display type (serif small-caps, lowercase by brand rule) --- */

.section-eyebrow {
    font-family: var(--serif);
    font-variant: small-caps;
    text-transform: lowercase;
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}
h2 {
    font-family: var(--serif);
    font-variant: small-caps;
    font-weight: 600;
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin-bottom: 48px;
    text-align: center;
}
.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 56ch;
    margin: -32px auto 44px;
    font-size: 16px;
}

/* --- App Store badge + CTA bits --- */

.app-store-badge {
    display: inline-block;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.app-store-badge img {
    display: block;
    height: 52px;
    width: auto;
    transition: transform 0.25s ease;
}
.app-store-badge:hover img  { transform: translateY(-2px); }
.app-store-badge:active img { transform: scale(0.98); }
.app-store-badge:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}
.cta-fineprint {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Hero --- */

.hero {
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding-top: 16px; padding-bottom: 48px;
}
.hero h1 {
    font-family: var(--serif);
    font-variant: small-caps;
    font-weight: 600;
    font-size: clamp(32px, 6.4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin-top: 36px;
    margin-bottom: 16px;
    max-width: 18ch;
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.9s ease-out 0.4s forwards;
}
.hero .tagline {
    font-size: clamp(15px, 2.5vw, 18px);
    color: var(--text-secondary);
    max-width: 52ch;
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.9s ease-out 0.6s forwards;
}
.hero .app-store-badge {
    margin-top: 26px;
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.9s ease-out 0.8s forwards;
}
.hero .hero-chips {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px;
    margin-top: 22px;
    opacity: 0;
    animation: rise 0.9s ease-out 1s forwards;
}
.hero .hero-chips span {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    white-space: nowrap;
}
@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Card stack hero visual --- */

.card-stack {
    position: relative;
    width: min(260px, 52vw);
    max-height: 36vh;
    aspect-ratio: 5 / 7;
    margin: 8px auto 0;
}
@media (max-height: 760px) {
    .card-stack { width: min(200px, 46vw); }
    .hero h1 { margin-top: 26px; font-size: clamp(28px, 6vw, 42px); }
    .hero .app-store-badge { margin-top: 20px; }
}
.card {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6),
                0 8px 24px -8px rgba(0, 0, 0, 0.5);
    transition: transform 0.55s cubic-bezier(0.34, 1.1, 0.64, 1),
                opacity 0.55s ease-out;
    transform: scale(0.84) translateY(24px);
    opacity: 0;
    pointer-events: none;
}
.card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.card.top {
    transform: scale(1) translateY(0);
    opacity: 1;
    z-index: 3;
}
.card.behind {
    transform: scale(0.93) translateY(10px);
    opacity: 1;
    z-index: 2;
}
.card.swipe-left,
.card.swipe-right {
    opacity: 0;
    z-index: 4; /* leaving card slides over the upcoming one */
    transition: transform 0.55s cubic-bezier(0.32, 0, 0.6, 0.4),
                opacity 0.55s ease-out;
}
.card.swipe-left  { transform: translateX(-150%) rotate(-14deg) scale(0.95); }
.card.swipe-right { transform: translateX(150%) rotate(14deg) scale(0.95); }

/* --- Review quotes --- */

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.quote-card {
    padding: 26px 22px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-align: center;
    display: flex; flex-direction: column; justify-content: center;
}
.quote-card blockquote {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.45;
    color: var(--text-primary);
}
.quote-card blockquote::before { content: "\201C"; }
.quote-card blockquote::after  { content: "\201D"; }
.quote-card .laurel {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-top: 12px;
}
.quotes-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
}

/* --- Screenshot gallery --- */

.gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 24px 26px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.gallery::after { content: ""; flex: 0 0 4px; } /* right-edge breathing room */
.shot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: min(300px, 74vw);
}
.shot.pair { width: min(600px, 88vw); }
.shot figure { margin: 0; }
.shot .shot-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
    background: #000;
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 0 8px;
}
.gallery-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Steps (how it works) --- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 14px; } }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 26px 20px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--serif);
    font-variant: small-caps;
    font-size: 13px;
    letter-spacing: 0.16em;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 14px;
}
.steps li h3 {
    font-family: var(--rounded);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}
.steps li p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Feature cards (why it's different) --- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.feature-card {
    padding: 26px 22px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.feature-card h3 {
    font-family: var(--serif);
    font-variant: small-caps;
    text-transform: lowercase;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* --- Privacy manifesto --- */

.manifesto {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.manifesto li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 22px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border-accent);
}
.manifesto .icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
}
.manifesto .icon svg {
    width: 22px; height: 22px;
    stroke: url(#glowGradient);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.manifesto .text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.manifesto .text span {
    font-size: 14px;
    color: var(--text-secondary);
}
.privacy-label-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.privacy-label-note a { color: var(--text-primary); }

/* --- Pricing --- */

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}
.price-card {
    padding: 30px 26px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex; flex-direction: column;
}
.price-card.highlight {
    border: 1px solid rgba(123, 97, 255, 0.45);
    background: linear-gradient(160deg, rgba(123, 97, 255, 0.14), rgba(236, 72, 153, 0.07));
}
.price-card .plan {
    font-family: var(--serif);
    font-variant: small-caps;
    text-transform: lowercase;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.price-card .price {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 2px;
}
.price-card .price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.price-card ul {
    list-style: none;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.price-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}
.price-card ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-pink));
}

/* --- Guide cards --- */

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}
.guide-card {
    display: block;
    padding: 24px 22px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 97, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}
.guide-card h3 {
    font-family: var(--rounded);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.guide-card p {
    font-size: 14px;
    color: var(--text-secondary);
}
.guide-card .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- FAQ --- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq details[open] { border-color: rgba(123, 97, 255, 0.35); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-answer {
    padding: 0 22px 20px;
    font-size: 15px;
    color: var(--text-secondary);
}
.faq .faq-answer a {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Reveal-on-scroll --- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* --- Final CTA --- */

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 18px; }
.cta-final .tagline {
    color: var(--text-secondary);
    max-width: 46ch;
    margin: 0 auto 28px;
}

/* --- Footer --- */

footer {
    padding: 56px 24px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
    max-width: 980px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .brand-col img { width: 34px; height: 34px; margin-bottom: 10px; }
.footer-grid .brand-col p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 26ch;
    margin-top: 6px;
}
.footer-grid h4 {
    font-family: var(--serif);
    font-variant: small-caps;
    text-transform: lowercase;
    font-size: 14px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-grid a:hover { color: var(--text-primary); }
.copyright {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   Guide article pages
   ============================================================ */

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

.article {
    padding: 48px 24px 80px;
}
.article-inner { max-width: 720px; margin: 0 auto; }
.article h1 {
    font-family: var(--serif);
    font-variant: small-caps;
    font-weight: 600;
    font-size: clamp(30px, 5.4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin-bottom: 18px;
}
.article .lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.article h2 {
    text-align: left;
    font-size: clamp(23px, 3.6vw, 30px);
    margin: 44px 0 16px;
}
.article h3 {
    font-family: var(--rounded);
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 10px;
}
.article p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.article strong { color: var(--text-primary); }
.article a { color: var(--text-primary); }
.article ul, .article ol {
    margin: 0 0 18px 22px;
    color: var(--text-secondary);
    display: grid;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
}
.article li::marker { color: var(--glow-purple); }
.article .checklist {
    list-style: none;
    margin-left: 0;
}
.article .checklist li {
    padding-left: 30px;
    position: relative;
}
.article .checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow-purple), var(--glow-pink));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}
.article .callout {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border-accent);
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 18px;
}
.article .callout strong { color: var(--text-primary); }

/* Inline CTA box inside articles */
.article-cta {
    margin: 36px 0;
    padding: 28px 24px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(160deg, rgba(123, 97, 255, 0.16), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(123, 97, 255, 0.4);
}
.article-cta .cta-title {
    font-family: var(--serif);
    font-variant: small-caps;
    text-transform: lowercase;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
.article-cta p {
    font-size: 14px;
    margin-bottom: 16px;
}
.article-cta .app-store-badge img { height: 46px; margin: 0 auto; }
.article-cta .cta-fineprint { margin-top: 10px; font-size: 12px; }

/* Article FAQ reuses .faq; related guides reuse .guide-cards */
.related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.related h2 { margin-top: 0; }
