/* ==========================================================================
   SolFocus — solfocus.io
   Brand: Gold #C6A667 · Bronze #B78E47 · Charcoal #2D2D2D · Cream #FBF5EC · Sand #EAE3D6
   ========================================================================== */

:root {
  --gold: #C6A667;
  --bronze: #B78E47;
  --charcoal: #2D2D2D;
  --cream: #FBF5EC;
  --sand: #EAE3D6;

  --bg: #262321;                 /* deepened charcoal base */
  --panel: #2D2D2D;
  --panel-raised: #34302c;
  --ink: var(--cream);
  --ink-soft: rgba(251, 245, 236, 0.78);
  --ink-dim: rgba(251, 245, 236, 0.52);
  --hairline: rgba(198, 166, 103, 0.16);
  --hairline-strong: rgba(198, 166, 103, 0.32);

  /* wavelength accents (decorative only) */
  --w-red: #d96c4f;              /* 660 nm */
  --w-nir: #8e4a3a;              /* 850 nm */
  --w-ir: #c98f4e;               /* infrared heat */

  --font-display: "Tenor Sans", Georgia, serif;
  --font-body: "Pontano Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --radius: 14px;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.8vw, 3.7rem);
}

/* ---------- Reset & base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='140'%20height='140'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--cream);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.3; }

p { margin: 0 0 1em; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(198, 166, 103, 0.35); color: var(--cream); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.narrow { max-width: 46rem; }
.center { text-align: center; }

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  scroll-margin-top: 5.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section-lede {
  color: var(--ink-soft);
  font-size: var(--step-1);
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ext { font-size: 0.8em; margin-left: 0.35em; }

.inline-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1001;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  transition: top 160ms ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(38, 35, 33, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(38, 35, 33, 0.88);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  flex: none;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--cream); text-decoration: none; }

.nav > .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav > .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(160deg, #d4b678, var(--gold) 55%, var(--bronze));
  color: var(--charcoal);
  box-shadow: 0 6px 24px rgba(198, 166, 103, 0.22);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(198, 166, 103, 0.32); }

.btn-ghost {
  color: var(--cream);
  border: 1px solid var(--hairline-strong);
  background: rgba(251, 245, 236, 0.03);
}
.btn-ghost:hover { border-color: var(--gold); }

.btn-small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.cta-row.center { justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(7.5rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -22rem;
  left: 50%;
  width: 72rem;
  height: 46rem;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(198, 166, 103, 0.16), transparent 70%),
    radial-gradient(40rem 20rem at 30% 70%, rgba(183, 142, 71, 0.10), transparent 70%);
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translateX(-54%) scale(1); opacity: 0.9; }
  to   { transform: translateX(-46%) scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy .lede {
  color: var(--ink-soft);
  font-size: var(--step-1);
  max-width: 34rem;
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup { max-width: 34rem; }
}

/* ---------- Calendar mockup ---------- */

.mockup { margin: 0; }

.mockup-chrome {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(198, 166, 103, 0.07);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
}

.mockup-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--sand);
}

.mockup-pills { display: flex; gap: 0.4rem; }

.chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.chip-on {
  color: var(--charcoal);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.cal { padding: 0.9rem 1rem 1.1rem; }

.cal-head {
  display: grid;
  grid-template-columns: 2.6rem repeat(3, 1fr);
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 0.55rem;
}
.cal-head span { text-align: center; }
.cal-head .cal-gutter { text-align: left; }

.cal-body {
  display: grid;
  grid-template-columns: 2.6rem repeat(3, 1fr);
  gap: 0.5rem;
  height: 21rem;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(251, 245, 236, 0.05) 0,
    rgba(251, 245, 236, 0.05) 1px,
    transparent 1px,
    transparent 21%
  );
  border-top: 1px solid rgba(251, 245, 236, 0.08);
}

.cal-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0.15rem 2.5rem;
  font-size: 0.68rem;
  color: var(--ink-dim);
}

.cal-col { position: relative; }

.appt {
  position: absolute;
  left: 4%;
  right: 4%;
  top: var(--top);
  height: var(--h);
  border-radius: 9px;
  padding: 0.42rem 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.28rem;
  overflow: hidden;
  border: 1px solid rgba(198, 166, 103, 0.35);
}

.appt b {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appt .dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.28rem;
  border-radius: 50%;
}
.d-red { background: var(--w-red); box-shadow: 0 0 6px rgba(217, 108, 79, 0.7); }
.d-nir { background: var(--w-nir); box-shadow: 0 0 6px rgba(142, 74, 58, 0.7); }
.d-ir  { background: var(--w-ir);  box-shadow: 0 0 6px rgba(201, 143, 78, 0.6); }

/* wrap-up sliver at the base of each block */
.appt s {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  text-decoration: none;
  background: rgba(45, 45, 45, 0.55);
  border-top: 1px dashed rgba(251, 245, 236, 0.18);
}

.a1 { background: linear-gradient(180deg, rgba(198, 166, 103, 0.30), rgba(198, 166, 103, 0.16)); }
.a2 { background: linear-gradient(180deg, rgba(198, 166, 103, 0.20), rgba(198, 166, 103, 0.10)); }
.a3 {
  background: linear-gradient(180deg, rgba(183, 142, 71, 0.34), rgba(183, 142, 71, 0.16));
  border-color: rgba(212, 182, 120, 0.55);
}
.a4 { background: linear-gradient(180deg, rgba(201, 143, 78, 0.26), rgba(183, 142, 71, 0.12)); }

.mockup-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- Story ---------- */

.story { border-top: 1px solid var(--hairline); }

.story-text p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: 1.4em;
}
.story-text p:last-child {
  color: var(--sand);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}

/* ---------- Features ---------- */

.features { border-top: 1px solid var(--hairline); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(52, 48, 44, 0.55), rgba(45, 45, 45, 0.35));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.feature:nth-child(even) .feature-art { order: 2; }

.feature-art {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.feature-art svg {
  width: min(100%, 15rem);
  height: auto;
}

.feature-copy h3 { margin-bottom: 0.4em; }
.feature-copy p { color: var(--ink-soft); margin: 0; }

/* shared SVG strokes/fills for the little illustrations */
.ln { fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.ln.thin { stroke-width: 1.4; opacity: 0.45; }
.ln.gold { stroke: var(--gold); opacity: 0.95; }
.fill-gold { fill: rgba(198, 166, 103, 0.55); }
.fill-bronze { fill: rgba(183, 142, 71, 0.45); }
.fill-dim { fill: rgba(251, 245, 236, 0.16); }
.fill-red { fill: var(--w-red); }
.fill-nir { fill: var(--w-nir); }

@media (max-width: 700px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art svg { width: min(60%, 11rem); }
}

/* ---------- Difference ---------- */

.difference { border-top: 1px solid var(--hairline); }

.diff-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.diff-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color 220ms ease, transform 220ms ease;
}
.diff-card:hover { border-color: var(--hairline-strong); }

.diff-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.diff-card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

@media (max-width: 700px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ---------- Elara ---------- */

.elara { border-top: 1px solid var(--hairline); }

.elara-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.elara-copy p { color: var(--ink-soft); font-size: var(--step-1); }

.elara-art { margin: 0; }

.chat-panel {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3), 0 0 60px rgba(198, 166, 103, 0.06);
}

.chat-msg {
  max-width: 78%;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.chat-msg.them {
  align-self: flex-end;
  background: rgba(251, 245, 236, 0.07);
  border: 1px solid rgba(251, 245, 236, 0.1);
}
.chat-msg.elara {
  align-self: flex-start;
  background: rgba(198, 166, 103, 0.12);
  border: 1px solid rgba(198, 166, 103, 0.28);
}

.chat-badge {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.chat-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(251, 245, 236, 0.28);
}
.chat-line.gold { background: rgba(198, 166, 103, 0.75); }
.w80 { width: 80%; } .w70 { width: 70%; } .w65 { width: 65%; }
.w60 { width: 60%; } .w50 { width: 50%; } .w45 { width: 45%; }
.w40 { width: 40%; } .w35 { width: 35%; }

@media (max-width: 860px) {
  .elara-inner { grid-template-columns: 1fr; }
  .elara-art { max-width: 26rem; }
}

/* ---------- Early access ---------- */

.access {
  position: relative;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.access-glow {
  position: absolute;
  inset: auto 0 -18rem;
  height: 32rem;
  background: radial-gradient(closest-side at 50% 100%, rgba(198, 166, 103, 0.18), transparent 75%);
  pointer-events: none;
}

.access .container { position: relative; }

.access-lede {
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.access-note {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2.75rem;
  background: var(--charcoal);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand .brand-mark { width: 2.2rem; height: 2.2rem; }
.footer-tag { margin: 0.15rem 0 0; color: var(--ink-dim); font-size: 0.9rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-left: auto;
}
.footer-links a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

.footer-legal {
  flex-basis: 100%;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-links { margin-left: 0; }
}

/* ---------- Reveal on scroll ----------
   Hidden state only applies once main.js adds .js to <html>,
   so content is always visible without JavaScript. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .diff-card { transition: none; }
}


/* ----- brand logo images (2026-07-26) ----- */
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-footer { height: 24px; margin-bottom: 10px; }
.access-emblem { width: 132px; height: 132px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 0 34px rgba(198, 166, 103, 0.28)); }
@media (max-width: 760px) { .brand-logo { height: 24px; } .access-emblem { width: 104px; height: 104px; } }

/* ----- legal pages (2026-07-26) ----- */
.legal-page { padding-top: 7.5rem; }
.legal h1 { font-family: var(--font-display); font-size: var(--step-3); margin: 0 0 0.4rem; }
.legal .updated { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal h2 { font-family: var(--font-display); font-size: var(--step-2); margin: 2.4rem 0 0.7rem; color: var(--cream); }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.75; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; flex-basis: 100%; margin-top: 0.3rem; }
.footer-legal-links a { color: var(--ink-dim); font-size: 0.85rem; }
.footer-legal-links a:hover { color: var(--gold); }
