/* Steady Wellness — site styles. Tokens shared with the Steady Meditation app. */

:root {
  --paper:        oklch(0.91 0.018 70);
  --paper-deep:   oklch(0.87 0.022 70);
  --ink:          oklch(0.22 0.012 60);
  --ink-soft:     oklch(0.36 0.012 60);
  --ink-quiet:    oklch(0.52 0.014 65);
  --forest:       oklch(0.30 0.022 135);
  --forest-deep:  oklch(0.24 0.022 135);
  --forest-bright:oklch(0.40 0.028 138);
  --moss:         oklch(0.45 0.035 130);
  --stone:        oklch(0.78 0.014 70);
  --stone-deep:   oklch(0.66 0.016 68);
  --cream:        oklch(0.94 0.018 75);
  --accent:       oklch(0.42 0.04 130);

  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body:    'Source Serif 4', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
  --sans-label:    'Inter', -apple-system, system-ui, sans-serif;

  --edge: clamp(22px, 6vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "onum" 1, "liga" 1;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }

/* ─── type primitives ─── */
.eyebrow {
  font-family: var(--sans-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0;
}
.eyebrow--light { color: color-mix(in oklab, var(--cream) 68%, transparent); }

em { font-style: italic; }

/* ─── header / nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--edge);
  gap: 24px;
}
.nav--on-forest { color: var(--cream); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav__link {
  font-family: var(--sans-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav__link:hover { opacity: 1; }

/* ─── buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--cream:hover { background: transparent; color: var(--cream); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ─── hero ─── */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: contrast(0.95) saturate(0.9) brightness(0.78);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.24 0.022 135 / 0.62) 0%, oklch(0.24 0.022 135 / 0.30) 34%, oklch(0.24 0.022 135 / 0.52) 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0 0.86  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.hero__inner { position: relative; z-index: 2; }

.hero__body {
  padding: clamp(60px, 13vh, 150px) var(--edge) clamp(70px, 14vh, 160px);
  max-width: 1320px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__lede {
  margin: 30px 0 40px;
  max-width: 46ch;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 88%, transparent);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── generic section ─── */
.section { padding: clamp(64px, 11vh, 130px) var(--edge); max-width: 1320px; margin: 0 auto; }
.section__head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section__head p {
  margin: 20px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ─── offerings ─── */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.offering {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  border: 1px solid var(--stone-deep);
}
.offering__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--forest);
}
.offering__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(0.96) saturate(0.92);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.offering:hover .offering__media img { transform: scale(1.04); }
.offering__index {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--sans-label);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.offering__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.offering h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.offering h3 em { display: block; }
.offering__text {
  margin: 12px 0 22px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.offering__link {
  margin-top: auto;
  font-family: var(--sans-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.offering__pill {
  align-self: flex-start;
  font-family: var(--sans-label);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-quiet);
  border: 1px solid var(--stone-deep);
  border-radius: 999px;
  padding: 5px 12px;
  margin-top: auto;
}

/* ─── ethos band ─── */
.band {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.band__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0 0.86  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.4;
}
.band__inner {
  position: relative; z-index: 1;
  padding: clamp(80px, 15vh, 170px) var(--edge);
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.band blockquote {
  margin: 24px 0 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.band__rule { width: 1px; height: 56px; background: color-mix(in oklab, var(--cream) 40%, transparent); margin: 0 auto; }

/* ─── content pages ─── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--edge) clamp(80px, 12vh, 140px);
}
.doc__eyebrow { margin-bottom: 18px; }
.doc h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.doc h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.doc h3 {
  font-family: var(--sans-label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 34px 0 10px;
}
.doc p, .doc li { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }
.doc p { margin: 0 0 18px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }

/* tables in legal docs */
.doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15.5px;
}
.doc__table th,
.doc__table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--stone-deep);
  line-height: 1.5;
  color: var(--ink-soft);
}
.doc__table th {
  font-family: var(--sans-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-deep);
}

.doc__lede {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px) !important;
  line-height: 1.34 !important;
  color: var(--ink) !important;
  margin-bottom: 36px !important;
}

/* callout link to the health-data policy */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 22px 24px;
  margin: 0 0 44px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.callout:hover { background: var(--paper-deep); }
.callout__label { font-family: var(--sans-label); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.callout__title { font-family: var(--serif-display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.18; margin: 0; color: var(--ink); }
.callout__arrow { font-family: var(--sans-label); font-size: 22px; color: var(--ink); flex-shrink: 0; }

/* support page hero email */
.support {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(70px, 14vh, 150px) var(--edge);
  text-align: center;
}
.support h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.support p { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); max-width: 44ch; margin: 0 auto 38px; line-height: 1.55; }
.support__email {
  display: inline-block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stone-deep);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.support__email:hover { border-color: var(--ink); }

/* ─── footer ─── */
.footer {
  background: var(--forest-deep);
  color: color-mix(in oklab, var(--cream) 80%, transparent);
  position: relative;
  overflow: hidden;
}
.footer__inner {
  position: relative; z-index: 1;
  padding: clamp(54px, 8vh, 90px) var(--edge) 44px;
  max-width: 1320px; margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 32ch; }
.footer__brand .brand__name { color: var(--cream); }
.footer__tagline { font-size: 15px; line-height: 1.5; color: color-mix(in oklab, var(--cream) 62%, transparent); }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--sans-label); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 55%, transparent); margin: 0 0 16px; }
.footer__col a { display: block; text-decoration: none; color: color-mix(in oklab, var(--cream) 82%, transparent); font-size: 15px; margin-bottom: 10px; transition: color 0.2s; }
.footer__col a:hover { color: var(--cream); }
.footer__legal {
  position: relative; z-index: 1;
  border-top: 1px solid color-mix(in oklab, var(--cream) 16%, transparent);
  padding: 24px var(--edge);
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-family: var(--sans-label); font-size: 11px; letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--cream) 50%, transparent);
}

/* ─── responsive ─── */
@media (max-width: 880px) {
  .offerings { grid-template-columns: 1fr; max-width: 460px; }
  .nav__links { gap: 16px; }
  .nav__link.is-cta { display: none; }
}
@media (max-width: 560px) {
  .brand__name { font-size: 21px; }
  .nav { padding: 20px var(--edge); }
}
