/*
  Phi Golf (phi.golf) — Marketing & Legal Pages
  ─────────────────────────────────────────────
  Shared stylesheet for the public-facing pages
  (index, pricing, terms, privacy, refunds, contact).
  Brass-on-dusk brand: golden-ratio proportions, refined gold
  accent used with restraint, deep links-dusk surfaces.
*/

@import "theme.css";

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

:root {
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-mono:    'Space Mono', ui-monospace, monospace;

    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 26px -10px rgba(201,162,75,.45), 0 8px 24px rgba(0,0,0,0.35);

    --content-max: 760px;
    --gutter: 20px;
}

@media (min-width: 961px) { :root { --gutter: 32px; } }

/* ── Light theme overrides ────────────────────── */
[data-theme="light"] .nav { background: rgba(241,235,220,.82); }
[data-theme="light"] .nav-cta,
[data-theme="light"] .hero-cta { background: #14241E; color: #F4EFE2; }
[data-theme="light"] .nav-cta:hover,
[data-theme="light"] .hero-cta:hover { background: #0E1A16; color: #F4EFE2; }

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

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--parchment);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
::selection { background: var(--brass); color: var(--ink-3); }

a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brass-bright); }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--brass-bright);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Top nav ───────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 16px;
    height: 60px;
    padding: 0 var(--gutter);
    background: rgba(14,26,22,0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
    display: flex; align-items: center; gap: 11px;
    text-decoration: none; color: var(--parchment);
}
.phi-glyph {
    font-family: var(--font-display);
    font-size: 26px; color: var(--brass);
    line-height: 1;
    transform: translateY(1px);
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    letter-spacing: 0.01em;
}
.nav-spacer { flex: 1; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--r-pill);
    background: var(--brass); color: var(--ink-3);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover {
    background: var(--brass-bright); color: var(--ink-3);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px -10px rgba(201,162,75,.7);
}

/* ── Layout ───────────────────────────────────── */
main {
    flex: 1;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 48px var(--gutter) 64px;
}
.wide { max-width: 1000px; }

/* ── Typography ───────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; color: var(--parchment); }
h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 16px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 16px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p  { margin-bottom: 14px; color: var(--parchment); }
.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--brass); margin-bottom: 12px;
}
.lead { font-size: 18px; color: var(--sage); margin-bottom: 32px; }
.meta { font-family: var(--font-mono); font-size: 13px; color: var(--sage); margin-bottom: 32px; }
ul, ol { margin: 12px 0 16px 24px; }
li { margin-bottom: 6px; color: var(--parchment); }
strong { color: var(--parchment); }

/* ── Hero ─────────────────────────────────────── */
.hero { padding: 24px 0 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}

/* ── Golden-spiral signature mark ─────────────── */
.signature { position: relative; width: 100%; aspect-ratio: 1.618/1; margin: 0 auto; }
.signature svg { width: 100%; height: 100%; overflow: visible; }
.sig-line { fill: none; stroke: var(--line); stroke-width: 1; }
.sig-spiral { fill: none; stroke: var(--brass); stroke-width: 2; }
.sig-phi { font-family: var(--font-display); font-weight: 500; fill: var(--parchment); }
.pin-flag { fill: var(--brass); }
.pin-pole { stroke: var(--parchment); stroke-width: 1.4; }
.pin-dot { fill: var(--parchment); }
.sig-caption { fill: var(--sage); }
.sig-fade { opacity: 0; }
.draw .sig-spiral { animation: sig-draw 4.5s 1.1s ease-out forwards; }
.draw .sig-fade { animation: sig-fadein 0.9s 4.8s ease forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
@keyframes sig-fadein { to { opacity: 1; } }

.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--r-pill);
    background: var(--brass); color: var(--ink-3);
    font-size: 16px; font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s, background 0.18s;
}
.hero-cta:hover { background: var(--brass-bright); color: var(--ink-3); transform: translateY(-1px); }

/* ── Feature grid ─────────────────────────────── */
.features {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
    margin: 40px 0;
}
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
    background: var(--ink-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line); }
.feature h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.feature p  { font-size: 14px; color: var(--sage); margin: 0; }

/* ── Pricing tiers ────────────────────────────── */
.tiers {
    display: grid; gap: 20px;
    grid-template-columns: 1fr;
    margin: 32px 0 24px;
}
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
    background: var(--ink-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.tier-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.tier-price { font-family: var(--font-display); font-size: 36px; color: var(--brass); margin-bottom: 4px; }
.tier-price small { font-family: var(--font-mono); font-size: 13px; color: var(--sage); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }
.tier-list { list-style: none; margin: 20px 0 0; padding: 0; flex: 1; }
.tier-list li { padding: 8px 0; font-size: 14px; color: var(--parchment); border-bottom: 1px solid var(--line-soft); }
.tier-list li:last-child { border-bottom: none; }
.tier-note { font-size: 13px; color: var(--sage); margin-top: 32px; }

/* ── Footer ───────────────────────────────────── */
footer {
    border-top: 1px solid var(--line-soft);
    padding: 32px var(--gutter);
    margin-top: auto;
    font-size: 14px;
    color: var(--sage);
}
.foot {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; flex-wrap: wrap;
}
.foot .brand {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
    color: var(--parchment); text-decoration: none;
}
.foot .brand .phi { font-size: 1.5rem; color: var(--brass); line-height: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--sage); text-decoration: none; }
.footer-links a:hover { color: var(--brass); }
.foot-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-meta { font-family: var(--font-mono); color: #6f7a70; font-size: 12px; letter-spacing: 0.04em; }
.footer-version { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); color: #6f7a70; font-size: 12px; letter-spacing: 0.04em; }
.footer-version-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .sig-spiral { stroke-dashoffset: 0; }
    .sig-fade { opacity: 1; }
}
