/* SICK NOTES — SINGLE CSS (independent) */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:where(p, ul, ol) + :where(p, ul, ol) { margin-top: 1rem; }

/* ===== Theme ===== */
:root {
  --brand-700: #236b51;
  --brand-600: #2b7a5c;
  --brand-500: #3a8c6c;
  --brand-400: #5aa184;

  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;

  --radius-1: .375rem;
  --radius-2: .75rem;
  --radius-3: 1.25rem;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --shadow-2: 0 12px 40px rgba(16, 24, 40, .12);

  --container-max: 1200px;

  --footer-bg: #0b1220;
  --footer-text: #e5e7eb;

  --hero-overlay: linear-gradient(0deg, rgba(8, 29, 23, .58), rgba(8, 29, 23, .58));
}

html { font-size: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + .75rem, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1vw + .5rem, 1.5rem); font-weight: 700; }

.muted { color: var(--muted); }
.tiny { font-size: .925rem; }

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; }

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: .5rem .75rem;
  background: #fff;
  border: 2px solid var(--brand-600);
  border-radius: .5rem;
  z-index: 9999;
}

/* ===== Header + Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: 0 .5px 0 rgba(16, 24, 40, .04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-logo {
  width: 260px;
  height: auto;
}

.primary-nav { display: block; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 2rem);
}

.nav-link {
  display: inline-block;
  padding: .3rem .25rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: .5rem;
  transition: color .2s ease;
}

.nav-link:hover { color: var(--text); }

.nav-link[aria-current="page"] {
  color: var(--brand-600);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-weight: 600;
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: .6rem;
  margin-left: auto;
  width: 48px;
  height: 40px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle::before,
.nav-toggle .nav-toggle-bar,
.nav-toggle::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: #fff;
    border-top: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem clamp(1rem, 3vw, 2rem);
  }

  .nav-link {
    width: 100%;
    padding: .9rem 0;
    display: block;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .05s;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--brand-600) 85%, black);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background: #fff;
  color: var(--brand-600);
  border: 1px solid color-mix(in oklab, var(--brand-600) 70%, #fff);
  box-shadow: var(--shadow-1);
}

.btn-outline:hover {
  background: color-mix(in oklab, var(--brand-600) 6%, #fff);
}

.btn-row {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Hero ===== */
.hero.hero--image {
  --overlay: linear-gradient(0deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .78));
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 2rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  background: #fff;
}

.hero.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--overlay), var(--hero, none);
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.02);
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.sn-hero {
  --overlay: var(--hero-overlay);
  min-height: 220px;
  padding-block: 2rem;
}

.sn-hero .hero-inner h1,
.sn-hero .hero-inner p {
  color: #ffffff;
}

.sn-hero .hero-inner p {
  margin-top: .75rem;
  font-size: 1.05rem;
}

.price-pill {
  display: inline-block;
  margin: 1rem 0 1rem;
  padding: .45rem .85rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .95);
  color: #0b3d2c;
  border-radius: 999px;
  box-shadow: var(--shadow-2);
}

/* ===== Page sections ===== */
.sn-what,
.sn-form {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.sn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

.sn-figure img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-2);
}

.sn-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sn-definition {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.sn-form .container {
  max-width: 980px;
}

.sn-form-head {
  margin-bottom: 1rem;
}

.sn-form-head h2 {
  margin-bottom: .45rem;
}

.sn-form-head .muted,
.sn-form-head .price-inline,
.sn-form-head .form-helper {
  margin-top: .35rem;
}

.price-inline {
  font-size: .95rem;
  color: var(--text);
}

.sn-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-1);
}

.sn-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.sn-fieldset > legend {
  font-weight: 800;
  margin-bottom: .65rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .85rem;
}

.field label {
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .72rem .85rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: color-mix(in oklab, var(--brand-600) 65%, white);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-600) 14%, white);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

@media (min-width: 720px) {
  .sn-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.agree {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.agree input[type="checkbox"] {
  margin-top: .2rem;
  accent-color: var(--brand-600);
}

.actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}

.text-link {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success,
.form-error {
  margin-top: .95rem;
  padding: .85rem 1rem;
  border-radius: .75rem;
}

.form-success {
  background: color-mix(in oklab, var(--brand-600) 10%, #fff);
  border: 1px solid color-mix(in oklab, var(--brand-600) 35%, #fff);
}

.form-error {
  background: #fff4f4;
  border: 1px solid #f2bcbc;
}

.form-success a,
.form-error a {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.footer-col { min-width: 0; }

.footer-head {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .75rem;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.25rem;
  margin-bottom: .25rem;
}

.footer-strong { color: #fff; }
.footer-accent { color: var(--brand-400); }

.footer-note {
  color: color-mix(in oklab, #fff 70%, #000);
  margin: .25rem 0 .5rem;
}

.gphc-wrap { margin: .25rem 0 1rem; }

.gphc-badge {
  width: 240px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .08));
}

.social-row {
  display: flex;
  gap: .6rem;
  margin-top: .5rem;
}

.social {
  --icon-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: color-mix(in oklab, #fff 92%, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color .2s, box-shadow .2s, transform .06s;
}

.social:hover {
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 3px rgba(255, 255, 255, .06);
}

.social:active {
  transform: translateY(1px);
}

.social .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
}

.footer-links {
  display: grid;
  gap: .5rem;
}

.footer-links a {
  color: color-mix(in oklab, #fff 85%, #000);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: .85rem;
  color: color-mix(in oklab, #fff 70%, #000);
  font-size: .925rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}