/* ---------------------------------------------------------------
   FOOSH Medical — single-page site
   Self-hosted fonts, no third-party requests anywhere on the page.
   Two surfaces only: a deep pine field for the opening and the close,
   warm paper for everything in between.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f2ec;
  --pine: #1e2e2a;
  --pine-deep: #16221f;
  --ink: #1a2320;
  --ink-soft: rgba(26, 35, 32, 0.74);
  --ink-faint: rgba(26, 35, 32, 0.52);

  /* Clay reads warm on paper; it needs lifting to stay warm on pine. */
  --clay: #a1683f;
  --clay-light: #cf9f76;

  --rule: rgba(26, 35, 32, 0.16);
  --rule-light: rgba(245, 242, 236, 0.2);

  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.5rem, 6vw, 5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.9rem, 8.6vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.eyebrow,
.label {
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  /* Tracking is applied to the right of every letter, including the last one,
     which leaves the whole line looking a step off-centre without this. */
  text-indent: 0.3em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 clamp(1.4rem, 4vh, 2.6rem);
  color: var(--clay-light);
}

.label {
  margin: 0 0 1.5rem;
  color: var(--ink-faint);
}

.label--light { color: rgba(245, 242, 236, 0.55); }

/* --- opening ------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--pine);
  color: var(--paper);
  overflow: hidden;
}

/* A single soft light source behind the type, so the field reads as a room
   rather than a flat swatch. Cheap, and it never has to load. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(96, 124, 112, 0.34) 0%, rgba(30, 46, 42, 0) 62%),
    radial-gradient(80% 70% at 92% 100%, rgba(161, 104, 63, 0.18) 0%, rgba(30, 46, 42, 0) 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
}

/* The brand sits at the top; auto margins above the eyebrow and below the
   button centre everything between it and the foot of the screen. */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(2.5rem, 8vh, 5rem);
}

.brand__mark {
  width: clamp(2rem, 3.4vw, 2.5rem);
  height: auto;
  flex: none;
  color: var(--clay);
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}

.brand__name {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.brand__sub {
  font-size: clamp(0.72rem, 1.1vw, 0.84rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}

.hero .eyebrow { margin-top: auto; }

/* The auto margin below closes the pair opened by `.hero .eyebrow`, centring
   the eyebrow/headline/lede block in the space under the brand lockup. */
.lede {
  margin: clamp(1.6rem, 4vh, 2.4rem) 0 auto;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.68;
  color: rgba(245, 242, 236, 0.82);
}

.hero__scroll {
  position: relative;
  margin: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.4);
}

/* --- bands --------------------------------------------------------- */

.band {
  padding: clamp(3.5rem, 11vh, 7.5rem) var(--gutter);
}

.band__inner {
  max-width: 68rem;
  margin-inline: auto;
}

.band--rule .band__inner {
  border-top: 1px solid var(--rule);
  padding-top: clamp(3.5rem, 11vh, 7.5rem);
}

/* The section label parks in the left margin on wide screens and simply sits
   above the text on narrow ones. */
@media (min-width: 62em) {
  .split {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: clamp(2rem, 5vw, 5rem);
  }

  .split > .label {
    position: sticky;
    top: clamp(2rem, 8vh, 4rem);
    align-self: start;
    margin: 0.55rem 0 0;
  }
}

/* --- prose ---------------------------------------------------------- */

.prose > * { max-width: 58ch; }

.prose p {
  margin: 0 0 1.25em;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

.prose__opener {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important;
  line-height: 1.24 !important;
  letter-spacing: -0.005em;
  color: var(--ink) !important;
  margin-bottom: 1.1em !important;
}

.prose__note {
  margin-top: 2rem !important;
  padding-left: 1.1rem;
  border-left: 2px solid var(--clay);
  color: var(--ink) !important;
}

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

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}

.step:first-child { border-top: 0; padding-top: 0; }

.step__num {
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1;
  color: var(--clay);
}

.step__title {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.step p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(0.97rem, 1.2vw, 1.04rem);
  line-height: 1.72;
  color: var(--ink-soft);
}

@media (max-width: 30em) {
  .step { grid-template-columns: 1fr; gap: 0; }
  .step__num { grid-row: auto; display: block; margin-bottom: 0.35rem; }
}

/* --- treated areas ---------------------------------------------------- */

.areas {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 58ch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.areas li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(0.97rem, 1.2vw, 1.04rem);
}

/* --- close ------------------------------------------------------------- */

.closing {
  padding: clamp(4rem, 13vh, 9rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  background: var(--pine-deep);
  color: var(--paper);
}

.closing__inner {
  max-width: 68rem;
  margin-inline: auto;
}

/* The address is the whole section, so it is set at display size and given
   room rather than being introduced by a line of copy. */
.closing__email {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.disclaimer {
  margin: clamp(3rem, 9vh, 5.5rem) 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-light);
  max-width: 58ch;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.5);
}

.legal {
  margin: 1.6rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 236, 0.45);
}

/* --- links ------------------------------------------------------------- */

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
  transition: text-decoration-color 150ms ease;
}

.prose a,
.legal a,
.closing__email a { text-decoration-color: var(--clay-light); }

a:hover,
a:focus-visible { text-decoration-color: currentColor; }

:where(a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  text-decoration: none;
}

/* --- reveal ------------------------------------------------------------- */

/* Visible by default. The script adds .is-armed to hide these only once it
   knows it can also reveal them, so a scripting failure leaves the page
   readable rather than blank. */
.reveal.is-armed {
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-armed.is-in {
  opacity: 1;
  transform: none;
}

/* --- short landscape viewports ------------------------------------------ */

@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: clamp(2rem, 10vh, 3.5rem); }
  .brand { margin-bottom: 2rem; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
