/* ============================================================
   Anchor — marketing site
   Editorial night journal. One stylesheet, no build step.
   ============================================================ */

:root {
  /* Palette */
  --scaffold: #FAF9F7;
  --teal: #1A3836;
  --dark: #1C1B18;
  --moss: #1A2E24;
  --stone: #272420;
  --gold: #C2956B;
  --green: #6DBFA0;
  --cta: #1B6B3A;

  /* Ink */
  --ink: #1C1B18;
  --ink-soft: rgba(28, 27, 24, 0.72);
  --paper: rgba(250, 249, 247, 0.94);
  --paper-soft: rgba(250, 249, 247, 0.68);
  --hairline-dark: rgba(250, 249, 247, 0.14);
  --hairline-light: rgba(28, 27, 24, 0.12);

  /* Type */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--scaffold);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.wrap--narrow { max-width: 760px; }

/* ------------------------------------------------------------
   Film grain — SVG turbulence tile on dark bands
   ------------------------------------------------------------ */
.grain { position: relative; isolation: isolate; }

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  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='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.grain > * { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   Anchor-point mark — gold dot + three broken ripple arcs
   ------------------------------------------------------------ */
.mark { display: block; }

.mark .ring {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  transform-origin: 50% 50%;
  transform-box: view-box;
}

.mark--live .ring { animation: ripple 6s ease-in-out infinite; }
.mark--live .ring-1 { animation-delay: 0s; }
.mark--live .ring-2 { animation-delay: 0.9s; }
.mark--live .ring-3 { animation-delay: 1.8s; }

@keyframes ripple {
  0%   { transform: scale(1);    opacity: 1; }
  50%  { transform: scale(1.05); opacity: 0.55; }
  100% { transform: scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mark--live .ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  padding: 1.4rem 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.92rem;
}

.nav__links a { text-decoration: none; opacity: 0.75; }
.nav__links a:hover { opacity: 1; }

.nav--dark { color: var(--paper); border-bottom: 1px solid var(--hairline-dark); }
.nav--light { color: var(--ink); border-bottom: 1px solid var(--hairline-light); }

/* Hero nav sits inside the dark hero, no border */
.hero .nav { border-bottom: none; position: relative; z-index: 3; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--cta {
  background: var(--cta);
  color: var(--scaffold);
}

.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27, 107, 58, 0.35);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--ghost:hover { transform: translateY(-2px); }

/* Store badges (placeholder style, real links) */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  text-decoration: none;
  color: var(--paper);
  background: rgba(250, 249, 247, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.badge:hover { border-color: var(--gold); background: rgba(250, 249, 247, 0.08); }

.badge svg { width: 22px; height: 22px; flex: none; }

.badge__text { text-align: left; line-height: 1.2; }
.badge__text small { display: block; font-size: 0.66rem; opacity: 0.65; letter-spacing: 0.04em; text-transform: uppercase; }
.badge__text strong { font-size: 0.98rem; font-weight: 600; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(1100px 620px at 50% 118%, rgba(26, 56, 54, 0.75), transparent 65%),
    radial-gradient(760px 420px at 82% -10%, rgba(26, 46, 36, 0.5), transparent 70%),
    var(--dark);
  color: var(--paper);
  text-align: center;
}

.hero__inner {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(4.5rem, 11vh, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .mark { width: clamp(84px, 12vw, 112px); height: auto; margin-bottom: 2.2rem; }

.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 4.25rem);
  max-width: 14ch;
  margin-bottom: 1.4rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--paper-soft);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}

.hero__fineprint {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--paper-soft);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Bands (color-blocked sections)
   ------------------------------------------------------------ */
.band { padding: clamp(4rem, 10vh, 6.5rem) 0; }

.band--moss  { background: var(--moss);  color: var(--paper); }
.band--teal  { background: var(--teal);  color: var(--paper); }
.band--stone { background: var(--stone); color: var(--paper); }
.band--dark  { background: var(--dark);  color: var(--paper); }
.band--scaffold { background: var(--scaffold); color: var(--ink); }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.band h2 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: 1.3rem;
}

.band .lede {
  max-width: 62ch;
  font-size: 1.08rem;
}

.band--moss .lede, .band--teal .lede, .band--stone .lede, .band--dark .lede {
  color: var(--paper-soft);
}

.band--scaffold .lede { color: var(--ink-soft); }

.band .rule {
  width: 52px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 0 1.6rem;
}

/* ------------------------------------------------------------
   How it works — numbered steps
   ------------------------------------------------------------ */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.6rem;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.steps h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.98rem; color: var(--ink-soft); }

/* Feature strip: Compass / SOS / Attune / Paths */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline-light);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  margin-top: 3.4rem;
}

.feature {
  background: var(--scaffold);
  padding: 1.8rem 1.4rem;
}

.feature h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }

.feature p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Science strip
   ------------------------------------------------------------ */
.science { text-align: center; }

.science .intro {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--paper);
  max-width: 52ch;
  margin: 0 auto 2.6rem;
}

.science__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.6rem;
}

.science__cols h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.science__cols p { font-size: 0.92rem; color: var(--paper-soft); }

.science .disclaimer {
  font-size: 0.85rem;
  color: var(--paper-soft);
  max-width: 58ch;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */
.pricing h2 { text-align: center; margin-left: auto; margin-right: auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.8rem;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--hairline-dark);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  background: rgba(250, 249, 247, 0.03);
}

.plan--pro { border-color: var(--gold); background: rgba(194, 149, 107, 0.08); }

.plan h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }

.plan .price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.plan ul {
  list-style: none;
  margin-bottom: 1.8rem;
  flex: 1;
}

.plan li {
  padding: 0.42rem 0 0.42rem 1.5rem;
  position: relative;
  font-size: 0.96rem;
  color: var(--paper-soft);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.plan .btn { align-self: flex-start; }

/* ------------------------------------------------------------
   FAQ accordions
   ------------------------------------------------------------ */
.faq h2 { text-align: center; margin: 0 auto 2.4rem; }

.faq details {
  border-bottom: 1px solid var(--hairline-light);
}

.faq details:first-of-type { border-top: 1px solid var(--hairline-light); }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 1.3rem 2.4rem 1.3rem 0;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  padding: 0 0 1.4rem;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* ------------------------------------------------------------
   Footer CTA + footer
   ------------------------------------------------------------ */
.footer-cta { text-align: center; }

.footer-cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  max-width: 20ch;
  margin: 0 auto 2rem;
}

.footer-cta .tagline {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}

.site-footer {
  background: var(--dark);
  color: var(--paper-soft);
  border-top: 1px solid var(--hairline-dark);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--paper); }

.site-footer .made-by { font-family: var(--serif); font-style: italic; }

/* ------------------------------------------------------------
   Legal / prose pages (privacy, terms, support)
   ------------------------------------------------------------ */
.prose { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(4rem, 10vh, 6rem); }

.prose h1 { font-size: clamp(2.3rem, 5vw, 3rem); margin-bottom: 0.6rem; }

.prose .updated { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 2.6rem; }

.prose h2 {
  font-size: 1.55rem;
  margin: 2.6rem 0 0.8rem;
  color: var(--teal);
}

.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }

.prose p, .prose li { color: var(--ink-soft); }

.prose ul { margin: 0 0 1rem 1.35rem; }

.prose li { margin-bottom: 0.45rem; }

.prose a { color: var(--cta); }

.callout {
  background: rgba(194, 149, 107, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.3rem 1.6rem;
  margin: 1.8rem 0;
}

.callout p, .callout strong { color: var(--ink); }

/* Support page bits */
.contact-card {
  text-align: center;
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 2.6rem 1.5rem;
  margin: 2.4rem 0 3rem;
  background: #fff;
}

.contact-card .btn { margin-top: 0.4rem; }

.contact-card .response-time { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-soft); }

.crisis {
  background: var(--teal);
  color: var(--paper);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  margin: 2.6rem 0;
}

.crisis h2 { color: var(--gold) !important; margin-top: 0 !important; }

.crisis p, .crisis li { color: var(--paper-soft); }

.crisis ul { list-style: none; margin-left: 0; }

.crisis li { padding-left: 0; margin-bottom: 0.9rem; }

.crisis strong { color: var(--paper); }

.crisis a { color: var(--green); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .science__cols { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .plans { grid-template-columns: 1fr; }
  .nav__links { font-size: 0.85rem; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .badges { flex-direction: column; align-items: center; }
  .badge { width: min(260px, 100%); justify-content: center; }
}
