/* vlad — premium, understated landing
   Aesthetic: refined minimalism, warm near-black, single champagne accent,
   editorial serif display over a clean grotesque. Generous whitespace. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..500;1,9..144,300..400&family=Hanken+Grotesk:wght@400;500;600&family=Syncopate:wght@700&display=swap');

:root {
  --bg:        #292929;
  --bg-raise:  #353535;
  --ink:       #F4F1E9;
  --ink-dim:   #A9A59C;
  --ink-faint: #787264;
  --accent:    #C9A253;
  --accent-soft: rgba(201, 162, 83, 0.14);
  --line:      rgba(244, 241, 233, 0.10);
  --line-soft: rgba(244, 241, 233, 0.06);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(1.5rem, 6vw, 8rem);
  --maxw: 1180px;

  /* Primary button, mirrored from brand.css (theme.ts `radius`, ink #191919). This surface is dark,
     so the fill is the cream and the text is the ink: the inverse of the client pages, same tokens. */
  --btn-fill: #F4F1E9;
  --btn-fill-hover: #FFFFFF;
  --btn-ink: #191919;
  --r-button: 16px;
  --r-button-lg: 22px;
  --shadow-button: 0 8px 18px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-button-hover: 0 12px 24px rgba(0, 0, 0, 0.34), 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: one soft accent glow + a fixed grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120vw 80vh at 78% -10%, rgba(201, 162, 83,0.10), transparent 55%),
    radial-gradient(90vw 60vh at 5% 8%, rgba(244, 241, 233,0.025), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---- Layout primitives ---- */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Primary button: the one action on the landing page (header, hero, closing) ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: var(--r-button-lg);
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.14s ease;
}
.btn-primary:hover { background: var(--btn-fill-hover); color: var(--btn-ink); box-shadow: var(--shadow-button-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); box-shadow: var(--shadow-button); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary[hidden] { display: none; }
.btn-primary-sm { min-height: 40px; padding: 0.5rem 1.15rem; font-size: 0.92rem; border-radius: var(--r-button); }

/* ---- Sticky site header: wordmark left, the primary button right (homepage) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(41, 41, 41, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.7rem, 1.6vw, 1rem);
}

/* ---- Top bar (legal pages) ---- */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.brand-wordmark { display: block; width: 92px; height: auto; padding: 7px 10px; border-radius: 8px; background: #292929; }
.topbar .contact-link {
  font-size: 0.86rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.topbar .contact-link:hover { color: var(--ink); }

/* ---- Hero ---- */
.hero {
  padding-top: clamp(4rem, 14vh, 11rem);
  padding-bottom: clamp(5rem, 14vh, 10rem);
}
.hero .eyebrow { display: block; margin-bottom: 1.8rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 1.5rem + 6vw, 6.2rem);
  line-height: 0.99;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.hero .subline {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-dim);
}
.hero .subline strong { color: var(--ink); font-weight: 500; }
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.hero-meta .k {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
  margin-right: 0.5rem;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}
.hero-cta .btn-primary { min-height: 56px; padding-inline: 2rem; font-size: 1.06rem; }
#get-app-hint { font-size: 0.95rem; color: var(--ink-dim); }

/* ---- Section scaffolding ---- */
section { position: relative; z-index: 2; }
.rule { height: 1px; background: var(--line); }
.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: 0.5rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-label .bar { flex: 1; height: 1px; background: var(--line-soft); }

/* ---- Features: numbered editorial rows ---- */
.features { padding-bottom: clamp(3rem, 8vh, 6rem); }
.feature {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding-block: clamp(2.6rem, 6vh, 4.4rem);
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.feature:last-child { border-bottom: 0; }
.feature .num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  padding-top: 0.4rem;
  font-feature-settings: "tnum";
}
.feature .body { max-width: 56ch; }
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.feature p {
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  max-width: 50ch;
}

/* ---- Model statement ---- */
.model {
  padding-block: clamp(5rem, 14vh, 9rem);
}
.model .stmt {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 20ch;
}
.model .stmt .keep { color: var(--accent); font-style: italic; }
.model .fine {
  margin-top: 2rem;
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: 1.02rem;
}

/* ---- Closing: one line and the same primary button ---- */
.closing {
  padding-block: clamp(4rem, 12vh, 8rem);
  text-align: center;
}
.closing-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 22ch;
  margin-inline: auto;
}
.closing-cta { margin-top: 2.2rem; }
.closing-cta .btn-primary { min-height: 56px; padding-inline: 2rem; font-size: 1.06rem; }

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 8vh, 5rem) 3rem;
  margin-top: clamp(2rem, 6vh, 4rem);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
}
.foot-brand .tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  max-width: 34ch;
  line-height: 1.5;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  font-size: 0.92rem;
}
.foot-links a, .foot-links span { color: var(--ink-dim); transition: color 0.25s ease; }
.foot-links a:hover { color: var(--accent); }
.foot-links .email { color: var(--ink); }
.foot-meta a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; transition: color 0.25s ease; }
.foot-meta a:hover { color: var(--accent); }
.foot-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ---- Legal pages ---- */
.legal { padding-block: clamp(3rem, 9vh, 6rem) clamp(3rem, 8vh, 5rem); }
.legal .back {
  display: inline-block;
  margin-bottom: 2.4rem;
  font-size: 0.86rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}
.legal .back:hover { color: var(--accent); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.legal .updated { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.9rem; }
.legal .doc { max-width: 70ch; margin-top: 3rem; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.legal p { color: var(--ink-dim); margin-bottom: 1rem; }
.legal ul { color: var(--ink-dim); margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a.inline { color: var(--accent); }
.legal a.inline:hover { text-decoration: underline; }

/* ---- Reveal on load / scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 0.4rem; }
  .feature .num { padding-top: 0; }
  .topbar .contact-link { display: none; }
  .hero { padding-top: clamp(3rem, 9vh, 5rem); }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn-primary, .closing-cta .btn-primary { width: 100%; }
}

/* ---- vlad wordmark (brand kit) — Syncopate 700, 0.18em tracking, gold I.
   The only sanctioned styled form of the name on this surface; trailing track
   killed per the handoff. -------------------------------------------------- */
.dw { font-family: 'Syncopate', var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1; white-space: nowrap; margin-right: -.18em; }
.dw .i { position: relative; color: var(--accent); }
.dw .i::after { content: ''; position: absolute; left: 50%; bottom: -0.22em; width: 0.55em; height: 0.09em; background: var(--accent); transform: translateX(-50%); }
