/* ------------------------------------------------------------------ tokens
   A software company, not a product page. Pine and paper: serious without being
   corporate, and deliberately not the warm-cream-and-terracotta OurMeds itself
   uses, so the company and its products read as different things.               */
:root {
  --paper:   #F7F6F2;
  --surface: #FFFFFF;
  --sunken:  #EFEEE8;
  --ink:     #16181A;
  --muted:   #55605C;
  --faint:   #8B938F;
  --line:    #E1E0D9;
  --hair:    #EBEAE4;
  --pine:    #14302A;
  --pine-lt: #2E6355;
  --glow:    #DCEBE4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0E110F;
    --surface: #161A18;
    --sunken:  #12100E;
    --ink:     #ECEAE3;
    --muted:   #A3ABA6;
    --faint:   #7C847F;
    --line:    #262C29;
    --hair:    #1E2320;
    --pine:    #7FC9B0;
    --pine-lt: #9BD8C2;
    --glow:    #14302A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 62rem; margin: 0 auto; padding: 0 1.75rem; }
.narrow { max-width: 40rem; }

/* ------------------------------------------------------------------- type */
h1, h2, h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); line-height: 1.04; font-variation-settings: "SOFT" 20, "WONK" 1; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.12rem; line-height: 1.3; }
p  { margin: 0; color: var(--muted); }
a  { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-lt); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------------ header */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 4.25rem;
}
.wordmark {
  display: flex; align-items: center; gap: .65rem;
  font-family: "Fraunces", ui-serif, serif; font-weight: 600;
  font-size: 1.02rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.wordmark svg { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.masthead nav { display: flex; gap: 1.6rem; font-size: .93rem; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .masthead nav { display: none; } }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero .eyebrow { display: block; margin-bottom: 1.6rem; }
.hero h1 { max-width: 15ch; }
.hero .lede {
  margin-top: 1.9rem; max-width: 46ch;
  font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.55; color: var(--muted);
}
.rule-row {
  margin-top: 3.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 2.4rem;
  font-family: "DM Mono", monospace; font-size: .8rem; color: var(--faint);
}

/* ----------------------------------------------------------------- bands */
.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--hair); }
.band.sunk { background: var(--sunken); }
.band-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.6rem; }
.band-head p { max-width: 52ch; }

/* ----------------------------------------------------------- capabilities */
.cap-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cap {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.75rem 1.85rem 1.9rem; display: grid; gap: .7rem; align-content: start;
  position: relative;
}
.cap-num {
  font-family: "DM Mono", monospace; font-size: .74rem; letter-spacing: .12em;
  color: var(--pine); font-weight: 500;
}
.cap h3 { font-size: 1.22rem; }
.cap p { font-size: .96rem; }
@media (max-width: 720px) { .cap-grid, .feat { grid-template-columns: 1fr; } }

.more { margin-top: 1.75rem; font-size: .97rem; max-width: 56ch; }

/* --------------------------------------------------------------- product */
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  display: grid; gap: 1.5rem;
  box-shadow: 0 1px 2px rgba(20,24,22,.04), 0 18px 40px -30px rgba(20,24,22,.35);
}
.product-top { display: flex; align-items: flex-start; gap: 1.1rem; flex-wrap: wrap; }
.mark {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--glow); color: var(--pine);
  display: grid; place-items: center; font-size: 1.35rem;
}
.product-top h3 { font-size: 1.45rem; }
.product-top .eyebrow { margin-top: .3rem; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 2.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat li { display: flex; gap: .7rem; font-size: .95rem; color: var(--muted); }
.feat b { color: var(--ink); font-weight: 600; }
.tick { color: var(--pine); flex: none; }
.cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pine); color: var(--paper); text-decoration: none;
  padding: .7rem 1.2rem; border-radius: .55rem; font-size: .95rem; font-weight: 500;
  transition: transform .15s ease, opacity .15s ease; width: fit-content;
}
.cta:hover { color: var(--paper); opacity: .92; transform: translateY(-1px); }

/* ---------------------------------------------------------------- contact */
.contact-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: .8rem;
  padding: 1.4rem 1.5rem; display: grid; gap: .35rem;
}
.contact-card .eyebrow { margin-bottom: .25rem; }
.contact-card a { font-size: 1.02rem; }

/* ----------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; }
.foot-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: baseline;
  font-size: .87rem; color: var(--faint);
}
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--ink); text-decoration: underline; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
