/*
 * Cura. Marketing site stylesheet.
 *
 * Anchored to the locked tokens in /design-tokens.md v1. Visual rhythm
 * is closer to Aesop / Augustinus Bader than to a SaaS landing page:
 * spare, type-led, hairline-disciplined, restrained colour.
 *
 * Refresh, 2026-05-16: tighter section spacing, premium card treatment
 * for the four-card "What Cura does" block, soft visual atmosphere in
 * the hero, no em dashes anywhere in the rendered copy.
 */

:root {
  /* Surface */
  --linen: #F7F4EF;
  --linen-elevated: #FBF8F3;
  --linen-pressed: #EFEAE0;
  --linen-warm: #F1EBE0;        /* soft tint behind hero blob */

  /* Ink */
  --ink: #222222;
  --ink-muted: #5A5750;
  --ink-subtle: #8A867E;
  --divider: #E2DDD3;
  --divider-soft: #ECE6DA;       /* very faint card border */

  /* Accent */
  --sage: #A8B5A0;
  --sage-deep: #7A8B72;
  --sage-soft: #C8D1C0;
  --sand: #C9B8A0;
  --sand-deep: #A89878;

  /* Type */
  --font-serif: 'Cormorant Garamond', 'Tiempos Headline', Ogg, 'New York', ui-serif, Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;

  /* Spacing (8px ramp) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 112px;

  /* Section padding tokens (tighter than the earlier pass) */
  --sp-section: 64px;
  --sp-section-tight: 48px;
  --sp-section-hero: 96px;

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 18px;
  --r-pill: 999px;

  /* Shadow (very restrained; never Material) */
  --shadow-card: 0 1px 2px rgba(60, 50, 42, 0.04), 0 8px 24px rgba(60, 50, 42, 0.04);
}

/* ──────────────────────────────────────────────────────────────── */
/* Reset                                                            */
/* ──────────────────────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-subtle);
  transition: border-color 200ms ease, color 200ms ease;
}

a:hover {
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

p {
  margin: 0 0 var(--sp-4) 0;
}

/* ──────────────────────────────────────────────────────────────── */
/* Layout primitives                                                */
/* ──────────────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container.narrow {
  max-width: 620px;
}

.container.wide {
  max-width: 1080px;
}

.section {
  padding: var(--sp-section) 0;
  position: relative;
}

.section.tight {
  padding: var(--sp-section-tight) 0;
}

.section.hero {
  padding: var(--sp-section-hero) 0 var(--sp-section);
}

.section.nopad-top {
  padding-top: 0;
}

@media (max-width: 640px) {
  .section { padding: var(--sp-7) 0; }
  .section.tight { padding: var(--sp-6) 0; }
  .section.hero { padding: var(--sp-8) 0 var(--sp-7); }
}

.divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0 auto;
  max-width: 64px;
}

.center-text {
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────── */
/* Type roles                                                       */
/* ──────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .display { font-size: 38px; line-height: 1.12; }
}

.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--sp-5) 0;
}

@media (max-width: 640px) {
  .title { font-size: 30px; }
}

.heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 var(--sp-3) 0;
}

.subheading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--sp-3) 0;
}

.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.body-lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.body-muted { color: var(--ink-muted); }

.body-small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Small editorial accent: thin sage hairline used above titles. */
.accent-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage-deep);
  margin: 0 auto var(--sp-4);
  opacity: 0.7;
}

/* ──────────────────────────────────────────────────────────────── */
/* Header / footer                                                  */
/* ──────────────────────────────────────────────────────────────── */

.site-header {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--divider);
  background: var(--linen);
  position: relative;
  z-index: 2;
}

.site-header .wordmark {
  display: block;
  margin: 0 auto;
  width: 88px;
}

.site-footer {
  padding: var(--sp-7) 0 var(--sp-6);
  border-top: 1px solid var(--divider);
  margin-top: auto;
  background: var(--linen);
}

.site-footer .footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.site-footer .footer-links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-links a {
  border-bottom: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.site-footer .footer-links a:hover {
  color: var(--ink);
}

.site-footer .copy {
  font-size: 12px;
  color: var(--ink-subtle);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────── */
/* Hero                                                             */
/* ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

/* Soft, large radial gradient sitting behind the hero text. Quiet,
   never bright. Sized to feel atmospheric rather than decorative. */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% 50% auto 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 35%,
      rgba(168, 181, 160, 0.22) 0%,
      rgba(201, 184, 160, 0.10) 35%,
      transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* Secondary subtle warmth in the bottom corner. */
.hero::after {
  content: '';
  position: absolute;
  bottom: -160px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 184, 160, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-stack {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.hero-mark {
  width: 56px;
  opacity: 0.9;
  margin-bottom: var(--sp-3);
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 720px;
  margin: 0;
}

@media (max-width: 640px) {
  .hero-headline { font-size: 36px; line-height: 1.12; }
}

@media (max-width: 420px) {
  .hero-headline { font-size: 32px; line-height: 1.14; }
}

.hero-lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0;
}

@media (max-width: 640px) {
  .hero-lede { font-size: 16px; }
}

.hero-tagline { margin-top: var(--sp-2); }

/* ──────────────────────────────────────────────────────────────── */
/* Waitlist (positioned directly below the hero)                    */
/* ──────────────────────────────────────────────────────────────── */

.waitlist-block {
  padding: var(--sp-7) 0 var(--sp-section);
  background: linear-gradient(180deg, transparent 0%, var(--linen-elevated) 60%);
}

.waitlist-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5);
  background: var(--linen-elevated);
  border: 1px solid var(--divider-soft);
  border-radius: var(--r-4);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.waitlist-label {
  margin-bottom: var(--sp-3);
}

.waitlist-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0 0 var(--sp-2) 0;
}

.waitlist-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-5) 0;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 460px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .waitlist-form { flex-direction: row; }
}

.waitlist-input {
  flex: 1;
  height: 52px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--divider);
  background: var(--linen);
  border-radius: var(--r-3);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.waitlist-input::placeholder { color: var(--ink-subtle); }

.waitlist-input:focus {
  border-color: var(--sage-deep);
  background: var(--linen-elevated);
}

.waitlist-button {
  height: 52px;
  padding: 0 var(--sp-6);
  background: var(--ink);
  color: var(--linen);
  border: 0;
  border-radius: var(--r-3);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.waitlist-button:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

.waitlist-note {
  font-size: 12px;
  color: var(--ink-subtle);
  margin: var(--sp-4) 0 0 0;
}

/* ──────────────────────────────────────────────────────────────── */
/* "What Cura does" — section title + four cards                    */
/* ──────────────────────────────────────────────────────────────── */

.what-section {
  background: var(--linen);
}

.what-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.what-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .what-title { font-size: 32px; }
  .what-header { margin-bottom: var(--sp-6); }
}

.what-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 520px;
  margin: var(--sp-3) auto 0;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 760px) {
  .what-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}

.what-card {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  background: var(--linen-elevated);
  border: 1px solid var(--divider-soft);
  border-radius: var(--r-4);
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.what-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sp-5);
  right: var(--sp-5);
  height: 1px;
  background: var(--sage-deep);
  opacity: 0.35;
  transition: opacity 240ms ease;
}

.what-card:hover {
  border-color: var(--sage-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.what-card:hover::before { opacity: 0.7; }

.what-card-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sand-deep);
  letter-spacing: 0.02em;
  margin: 0 0 var(--sp-4) 0;
  display: block;
}

.what-card-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 var(--sp-3) 0;
  letter-spacing: -0.005em;
}

.what-card-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────── */
/* Editorial preview                                                */
/* ──────────────────────────────────────────────────────────────── */

.editorial-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.editorial-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .editorial-title { font-size: 28px; }
}

.editorial-lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 520px;
  margin: var(--sp-3) auto 0;
}

.editorial-list {
  display: flex;
  flex-direction: column;
}

.editorial-row {
  display: block;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--divider);
  border-bottom: 0;
  color: var(--ink);
  transition: color 200ms ease;
}

.editorial-row:last-child {
  border-bottom: 1px solid var(--divider);
}

.editorial-row:hover {
  color: var(--ink);
}

.editorial-row:hover .editorial-row-title {
  color: var(--sage-deep);
}

.editorial-row .editorial-label {
  color: var(--sand-deep);
}

.editorial-row-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.28;
  margin: var(--sp-3) 0 var(--sp-3) 0;
  letter-spacing: -0.005em;
  transition: color 200ms ease;
}

.editorial-row-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* "Read more articles" link below the home Reading section */
.editorial-more {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.editorial-more a {
  color: var(--ink);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 4px;
  transition: color 200ms ease, border-color 200ms ease;
}
.editorial-more a:hover {
  color: var(--sage-deep);
  border-bottom-color: var(--sage-deep);
}

/* ──────────────────────────────────────────────────────────────── */
/* Article page                                                     */
/* ──────────────────────────────────────────────────────────────── */

.article-page .container { max-width: 680px; }

.article-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.article-eyebrow .label { color: var(--sand-deep); }

.article-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--sp-4) 0;
}

@media (max-width: 640px) {
  .article-title { font-size: 30px; }
}

.article-meta {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  text-transform: uppercase;
  margin: 0 0 var(--sp-7) 0;
}

.article-body p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 var(--sp-5) 0;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  margin: var(--sp-6) 0 var(--sp-3) 0;
  color: var(--ink);
}

.article-body blockquote {
  margin: var(--sp-5) 0;
  padding: 0 0 0 var(--sp-4);
  border-left: 1px solid var(--sage);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.article-back {
  text-align: center;
  margin-top: var(--sp-7);
}

.article-back a {
  border-bottom: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.article-back a:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────── */
/* Legal pages                                                      */
/* ──────────────────────────────────────────────────────────────── */

.legal-page .container { max-width: 720px; }

.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 var(--sp-4) 0;
  letter-spacing: -0.008em;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin: var(--sp-6) 0 var(--sp-3) 0;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.legal-page ul { padding-left: var(--sp-5); }

.legal-page .legal-meta {
  font-size: 12px;
  color: var(--ink-subtle);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.06em;
}
