/* ---------------------------------------------------------------------------
   Tideline — marketing site
   Every colour here is lifted from apps/lipedema/src/theme.ts ("Sage & Mist"),
   and the two typefaces are the two the app itself loads. Nothing is eyeballed:
   if the app's palette moves, this file is the other place to change.

   No JavaScript on any page of this site. No network requests either — the
   fonts are vendored beside this file.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond_300Light_Italic.ttf')
    format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond_500Medium_Italic.ttf')
    format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sage & Mist — theme.ts */
  --bg: #f1f6f2;
  --bg-deep: #e4ede6;
  --bg-frame: #d8e5db;
  --surface: #ffffff;
  --border: #d2e0d6;
  --ink: #1f2b26;
  --ink-soft: #54685d;
  --ink-faint: #8a9b90;

  /* The grade ramp. The only colour on this page that means anything. */
  --g-mild: #e3b15b;
  --g-mild-tint: #f4e3c0;
  --g-mild-ink: #6b4a08;
  --g-mod: #d07e40;
  --g-mod-tint: #efc9a7;
  --g-mod-ink: #6f3509;
  --g-sev: #bc4a34;
  --g-sev-tint: #e7b0a2;
  --g-sev-ink: #661c0d;

  /* The ramp's mild tone, spent a second way — hairlines and leaves only,
     never anything that has to be read as a severity. Same rule as the app. */
  --gilt: #e3b15b;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans:
    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 68rem;
  --gap: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--gilt);
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

a {
  color: inherit;
}

/* --- nav ----------------------------------------------------------------- */

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

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--gilt);
}

.nav__links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav__links a {
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 46rem) {
  .nav__links {
    display: none;
  }
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.62rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background-color 0.15s ease;
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid:hover {
  background: #16201c;
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--bg-deep);
}

/* --- type ---------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}
.display strong {
  font-weight: 600;
  font-style: normal;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  margin: 0 0 0.8rem;
}
.h2 strong {
  font-weight: 600;
  font-style: normal;
}

.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.6rem;
}

.fine {
  font-size: 0.87rem;
  color: var(--ink-faint);
  line-height: 1.55;
}

p {
  max-width: 62ch;
  color: var(--ink-soft);
}

/* A hairline with a leaf on it. The site's one ornament, same job as the
   app's corner leaves: decorate the frame, never the content. */
.rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 3.5rem 0;
}
.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.rule svg {
  flex: none;
  display: block;
}

/* --- sections ------------------------------------------------------------ */

section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem);
}

.rail {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1.4rem;
}
.rail__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gilt);
  padding-top: 0.35rem;
}
@media (max-width: 46rem) {
  .rail {
    grid-template-columns: 1fr;
  }
  .rail__no {
    display: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

/* --- steps / cards ------------------------------------------------------- */

.steps,
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.step,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
}
.step p,
.card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}
.step__n {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: 0.55rem;
}

/* --- the clock figure ---------------------------------------------------- */

.clock {
  margin: 2rem 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.clock__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.clock__title {
  font-weight: 600;
}
.clock__meta {
  color: var(--ink-faint);
}
.lanes {
  display: grid;
  gap: 1px;
  background: var(--border);
}
.lane {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  align-items: baseline;
}
.lane__k {
  font-weight: 500;
  font-size: 0.9rem;
}
.lane__v {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (max-width: 34rem) {
  .lane {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
.clock__foot {
  margin: 0;
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.clock__foot p {
  margin: 0;
  max-width: none;
}

/* --- severity tiles ------------------------------------------------------ */

.tiles {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.tile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-radius: 12px;
  border: 1px solid;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}
.tile__l {
  font-weight: 600;
}
.tile--mild {
  background: var(--g-mild-tint);
  border-color: #e0c48f;
  color: var(--g-mild-ink);
}
.tile--mod {
  background: var(--g-mod-tint);
  border-color: #dca275;
  color: var(--g-mod-ink);
}
.tile--sev {
  background: var(--g-sev-tint);
  border-color: #cb7f6d;
  color: var(--g-sev-ink);
}

/* --- suspects table ------------------------------------------------------ */

.suspects {
  margin-top: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.srow {
  display: grid;
  grid-template-columns: 1fr 5rem 5rem;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  align-items: center;
}
.srow:last-child {
  border-bottom: 0;
}
.srow--head {
  background: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.srow__name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.srow__n,
.srow__lift {
  text-align: right;
  color: var(--ink-soft);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

/* --- closing ------------------------------------------------------------- */

.closing {
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.closing .lede,
.closing p {
  margin-inline: auto;
}
.closing .actions {
  justify-content: center;
}

/* --- footer -------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--border);
  padding-block: 2.6rem 3.4rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.foot__mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.foot p {
  max-width: 60ch;
  margin: 0 0 0.7rem;
  color: var(--ink-faint);
}
.foot em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.foot__meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- legal pages --------------------------------------------------------- */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem var(--gap) 3.5rem;
}
.legal__back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
}
.legal__back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}
.legal__updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 2.2rem;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.legal p,
.legal li {
  color: var(--ink-soft);
  max-width: none;
}
.legal ul {
  padding-left: 1.1rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal code {
  font-size: 0.9em;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
.legal__disclaimer {
  margin-top: 2.6rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gilt);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.93rem;
}
.legal hr {
  display: none;
}

/* The "this is the live copy" line at the foot of each legal page. Play wants
   the policy at a stable public URL; printing that URL on the page itself is
   how a reviewer confirms the one they are reading is the one being claimed. */
.legal__canonical {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
