/* ==========================================================================
   Curo — landing styles
   Brand system is FIXED. Do not introduce new accent colors.
   - Mint  #2DD4A7  = brand / health / positive CTAs
   - Coral #FF5C72  = NOT used here (reserved for destructive actions in-app)
   - Spotify green  = never used freely
   - Base bg #0E0E12
   ========================================================================== */

:root {
  /* surfaces */
  --bg:            #0E0E12;
  --surface:       #15151B;
  --raised:        #1E1E26;
  --hairline:      #2A2A34;

  /* brand */
  --mint:          #2DD4A7;
  --mint-deep:     #1E9E7C;
  --mint-glow:     rgba(45, 212, 167, 0.18);

  /* text */
  --text:          #F2F3F6;
  --muted:         #9396A1;
  --faint:         #5E616C;

  /* type */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale */
  --maxw: 1100px;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---- layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding-block: 72px; }

@media (min-width: 800px) {
  .section { padding-block: 110px; }
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-glow);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.lead { color: var(--text); font-size: 1.06rem; }

/* ==========================================================================
   Pulse signature — a vitals line that reads as "library health"
   ========================================================================== */
.pulse {
  width: 100%;
  height: 26px;
  color: var(--mint);
  opacity: 0.55;
}
.pulse path {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace 3.4s ease-in-out forwards;
}
.pulse-divider { padding-block: 8px; }

@keyframes trace { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

/* Logo: mint "C" mark + wordmark. Replace mark by swapping the .brand-mark SVG. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 30px; height: 30px;
  flex: none;
}
.header-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--hairline);
  padding: 9px 16px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.header-cta:hover { border-color: var(--mint); color: var(--mint); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 56px; padding-bottom: 24px; }
.hero-grid { display: grid; gap: 44px; }
/* prevent grid items from forcing tracks wider than the viewport */
.hero-grid > * { min-width: 0; }

@media (min-width: 900px) {
  .hero { padding-top: 84px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.1rem);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--mint); }

.hero .lead { max-width: 33ch; margin-bottom: 30px; }

/* email capture */
.capture { max-width: 440px; width: 100%; }
.capture-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px;
  transition: border-color 0.2s;
}
.capture-row:focus-within { border-color: var(--mint); }
.capture-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 16px;
  outline: none;
  touch-action: manipulation;
}
.capture-row input::placeholder { color: var(--faint); }

.btn-mint {
  flex: none;
  background: var(--mint);
  color: #06231B;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn-mint:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-mint:hover { background: #36e6b6; box-shadow: 0 8px 26px var(--mint-glow); }
.btn-mint:active { transform: translateY(1px); }

.capture-note {
  font-size: 0.8rem;
  color: var(--faint);
  margin: 12px 4px 0;
}
.capture-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 4px 0;
}
.capture.is-done .capture-row,
.capture.is-done .capture-note { display: none; }
.capture.is-done .capture-success { display: flex; }
.capture-error {
  color: #FF5C72; /* coral allowed ONLY as a validation error signal, not as brand */
  font-size: 0.8rem;
  margin: 10px 4px 0;
  min-height: 1em;
}

/* ==========================================================================
   Phone mockup (placeholder — see screenshots/README for real-screenshot swap)
   ========================================================================== */
.phone {
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}
.phone--sm { max-width: 168px; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.5)); }

.placeholder-tag {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 16px;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust {
  display: grid;
  gap: 14px;
  border-block: 1px solid var(--hairline);
  padding-block: 22px;
}
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-item b { color: var(--text); font-weight: 600; }
.trust-ico {
  flex: none; width: 22px; height: 22px; color: var(--mint);
}

/* ==========================================================================
   Problem section
   ========================================================================== */
.section-head { max-width: 36ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); margin-bottom: 16px; }

.cause-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .cause-grid { grid-template-columns: repeat(3, 1fr); } }
.cause {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.cause h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text); }
.cause p { font-size: 0.93rem; margin: 0; }
.cause .n {
  font-family: var(--display);
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 14px;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */
.features { display: grid; gap: 20px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }

.feature {
  position: relative;
  background: linear-gradient(180deg, var(--surface), #121218);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px 8px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: rgba(45,212,167,0.4); transform: translateY(-3px); }

.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.feature h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--text); }
.feature p { font-size: 0.95rem; max-width: 34ch; }

.badge {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--mint);
  color: var(--mint);
  background: var(--mint-glow);
  white-space: nowrap;
}
.badge--core {
  border-color: var(--hairline);
  color: var(--muted);
  background: transparent;
}

.feature-art {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* ==========================================================================
   Free vs Premium
   ========================================================================== */
.tiers { display: grid; gap: 20px; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.tier--premium {
  border-color: rgba(45,212,167,0.45);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(45,212,167,0.08), transparent 60%),
    var(--surface);
}
.tier-name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 6px;
}
.tier-tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.tier--premium .tier-tag { color: var(--mint); }

.tier-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.tier-list li { display: flex; gap: 13px; align-items: flex-start; }
.tier-list .check { flex: none; width: 20px; height: 20px; color: var(--mint); margin-top: 3px; }
.tier-list strong { display: block; color: var(--text); font-weight: 600; font-size: 0.97rem; }
.tier-list span { font-size: 0.88rem; color: var(--muted); }

.tier-foot { margin-top: auto; }
.tier-price {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); margin-bottom: 14px;
}
.tier-price small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.8rem; color: var(--faint); margin-top: 4px; }

.btn-outline {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--mint); color: #06231B; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(45,212,167,0.10), transparent 55%);
  border-top: 1px solid var(--hairline);
}
.final h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 18px; }
.final p { max-width: 42ch; margin-inline: auto; margin-bottom: 30px; }
.final .capture { margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 44px;
  background: #0B0B0F;
}
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--mint); }
.footer-legal { font-size: 0.78rem; color: var(--faint); margin-top: 24px; line-height: 1.7; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */
.legal { padding-block: 56px 90px; }
.legal-wrap { max-width: 760px; }
.legal .back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 30px;
}
.legal .back:hover { color: var(--mint); }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 0.85rem; margin-bottom: 8px; }
.legal h2 {
  font-size: 1.3rem; margin: 44px 0 14px;
  padding-top: 8px;
}
.legal h3 { font-size: 1.05rem; color: var(--text); margin: 26px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal ul { padding-left: 20px; display: grid; gap: 9px; margin: 0 0 1em; }
.legal li::marker { color: var(--mint); }
.legal strong { color: var(--text); }
.legal a.inline { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.legal .note {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--mint);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  margin: 28px 0;
}

/* ==========================================================================
   Accessibility / motion
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse path { animation: none; stroke-dashoffset: 0; }
  .feature, .btn-mint, .header-cta { transition: none; }
}
