/* =============================================================================
 * brink.so marketing — styles.css
 *
 * Mobile-first. Reuses the brink design system (Instrument Serif + DM Sans +
 * JetBrains Mono on --cream). Tokens are a direct lift from the PWA's
 * theme-light.css so brand consistency holds across surfaces.
 *
 * Spec: docs/superpowers/specs/2026-05-05-marketing-website-design.md
 * ========================================================================== */

/* ---- Tokens ---- */
:root {
  /* Color (lifted from apps/pwa/src/index.css light theme) */
  --cream:        #F4EFE6;
  --paper:        #FFFDF8;
  --ink:          #16170F;
  /* --soft darkened from PWA's #7A7868 (3.88:1 on cream — fails WCAG AA
     for small body text) to #5E5C50 (~5.6:1 on cream — passes AA). The
     PWA keeps the lighter shade because most surfaces there sit on
     --paper (#FFFDF8) with slightly more contrast headroom. */
  --soft:         #5E5C50;
  --line:         #E5DECF;
  --forest:       #1F4D3C;
  --forest-soft:  #E6EDE8;

  /* Typography */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --gutter:    24px;
  --section-y: 96px;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
hr { border: 0; margin: 0; }

/* ---- Base ---- */
html {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-size: 17px;
  line-height: 1.55;
}

/* ---- Typography classes ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--ink);
}
.tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}
.muted, .reassurance, .caption {
  color: var(--soft);
}
.reassurance, .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* =============================================================================
 * Layout — single column, mobile-first
 * ========================================================================== */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px var(--gutter) 48px;
}

/* Section spacing */
.hero,
.steps,
.moment,
.trust,
.final-cta {
  padding: var(--section-y) 0;
}
.hero { padding-top: 0; }       /* Hero gets the page's top padding */

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* =============================================================================
 * Brand (wordmark) — top of hero + footer
 * ========================================================================== */
.brand {
  margin: 0 0 32px;
  line-height: 0;
}
.brand img {
  height: 32px;
  width: auto;
}
.brand-small {
  margin: 0 0 12px;
}
.brand-small img {
  height: 18px;
}

/* =============================================================================
 * Section 1 — Hero
 * ========================================================================== */
.hero .display {
  margin: 0 0 16px;
}
.hero .tagline {
  margin: 0 0 32px;
}
.hero .cta {
  margin: 0 0 16px;
}
.hero .reassurance {
  margin: 0;
}

/* CTA pill button */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #FFFDF8;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: background 200ms ease-out, transform 200ms ease-out;
  width: 100%;
  text-align: center;
}
.pill:hover {
  background: #163a2d;     /* forest, slightly darker */
  transform: translateY(-1px);
}
.pill:active {
  transform: translateY(0);
}

/* =============================================================================
 * Section 2 — How it works
 * ========================================================================== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.step-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-body {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}

/* =============================================================================
 * Section 3 — One tangible moment (calendar slice)
 * ========================================================================== */
.moment {
  text-align: center;
}
.cal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  margin: 0 auto 16px;
  max-width: 480px;
}
.cal-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cal-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--soft);
  margin: 4px 0 0;
  width: 60px;
  flex-shrink: 0;
}
.cal-block {
  flex: 1;
  border-left: 4px solid var(--soft);
  padding-left: 12px;
}
.cal-meeting .cal-block {
  border-left-color: var(--ink);
  border-left-width: 6px;
}
.cal-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.cal-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--soft);
  margin: 0;
}
.cal-rule {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.caption {
  margin: 0;
  text-align: center;
}

/* =============================================================================
 * Section 4 — Trust
 * ========================================================================== */
.trust .eyebrow {
  margin-bottom: 16px;
}
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
}
.trust-list li {
  font-size: 17px;
  color: var(--ink);
  position: relative;
  padding-left: 20px;
}
.trust-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink);
}
.trust-positive {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}
.trust-positive .muted {
  color: var(--soft);
}

/* =============================================================================
 * Section 5 — Final CTA
 * ========================================================================== */
.final-cta {
  text-align: center;
}
.final-cta .cta {
  margin: 0 0 12px;
}
.final-cta .reassurance {
  margin: 0;
}

/* =============================================================================
 * Section 6 — Footer
 * ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 48px 0 24px;
  text-align: center;
}
.footer-tag {
  font-size: 14px;
  color: var(--soft);
  margin: 0 0 4px;
}
.footer-copy {
  font-size: 12px;
  color: var(--soft);
  margin: 0 0 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
}
.footer-links a {
  font-size: 14px;
  color: var(--soft);
  transition: color 200ms ease-out;
}
.footer-links a:hover {
  color: var(--ink);
}

/* =============================================================================
 * Motion — scroll-triggered fade-ins (set up here, activated by scripts.js)
 * ========================================================================== */
[data-fade] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion — disable all transitions/transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-fade] {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================================
 * Responsive — tablet + desktop
 * ========================================================================== */
@media (min-width: 640px) {
  .display { font-size: 36px; }
  .pill { width: auto; padding: 14px 28px; }
}

@media (min-width: 960px) {
  .page { padding: 96px var(--gutter) 64px; }
  .hero,
  .steps,
  .moment,
  .trust,
  .final-cta {
    padding: 128px 0;
  }
  .hero { padding-top: 0; }
  .display { font-size: 44px; }
}
