/* ============================================================
   Rehab Now — landing page styles.
   Colour/type/radius values mirror the product design system
   (src/client/src/design-system/tokens.css) so the marketing
   site and the apps read as one brand.
   ============================================================ */

:root {
  --teal-50: #e9f3f0;
  --teal-100: #d4e8e3;
  --teal-300: #7db4a8;
  --teal: #0e7c6b;
  --teal-hover: #0c685a;
  --teal-deep: #084f44;

  --canvas: #fbf9f6;
  --surface: #ffffff;
  --line: #eee7dd;
  --line-strong: #ddd3c4;

  --ink-900: #22303a;
  --ink-700: #3a4750;
  --ink-500: #61707a;
  --ink-400: #8a969e;

  --apricot: #e8875c;
  --apricot-bg: #fdf1e8;
  --apricot-border: #f5d3bd;
  --apricot-deep: #a25b1e;

  --success: #1f9d6b;

  --r-control: 10px;
  --r-card: 16px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(34, 48, 58, 0.06);
  --shadow-card: 0 1px 2px rgba(34, 48, 58, 0.04), 0 4px 12px rgba(34, 48, 58, 0.05);
  --shadow-raised: 0 8px 24px rgba(34, 48, 58, 0.1);
  --shadow-hero: 0 24px 64px rgba(34, 48, 58, 0.18);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-w: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Anchor jumps must land below the 68px sticky header. */
section[id] {
  scroll-margin-top: 84px;
}

a {
  color: var(--teal);
}

h1, h2, h3 {
  color: var(--ink-900);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.site-header .logo img {
  height: 30px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--teal);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-control);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--teal-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--teal-deep);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--teal-300);
}

.btn-small {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .lead {
  font-size: 1.1875rem;
  color: var(--ink-500);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-500);
  font-weight: 600;
}

.hero-badges li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  margin-right: 7px;
}

/* ---- Sections ---- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44em;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  margin: 10px 0 14px;
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.125rem;
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--ink-500);
  font-size: 0.9875rem;
}

/* ---- Contact form ---- */

.contact .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-form,
.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
  text-align: left;
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
}

.field label .opt {
  font-weight: 500;
  color: var(--ink-400);
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  padding: 12px 14px;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.18);
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-400);
}

.form-status {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-deep);
  min-height: 1.2em;
}

/* ---- Simple hero (v2: centered, waitlist form, no device mockups) ---- */

.hero-simple {
  padding: 88px 0 64px;
  text-align: center;
}

.hero-simple .container {
  max-width: 720px;
}

.hero-simple .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-simple .hero-badges {
  justify-content: center;
  margin-top: 28px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-500);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

/* Honeypot field: visually removed, still in the DOM for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status.is-error {
  color: var(--apricot-deep);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--ink-900);
  color: #9fadb6;
  padding: 40px 0;
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer img {
  height: 28px;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: #c8d2d9;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ---- Legal page (privacy policy) ---- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 2.125rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-400);
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  margin-bottom: 10px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal table {
  /* block+overflow: the 4-column table scrolls inside itself on phones
     instead of forcing the whole page to scroll horizontally */
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 16px 0 24px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
}

.legal th {
  background: var(--teal-50);
  color: var(--ink-900);
}

.legal .placeholder {
  background: var(--apricot-bg);
  border: 1px solid var(--apricot-border);
  color: var(--apricot-deep);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

.legal-note {
  background: var(--apricot-bg);
  border: 1px solid var(--apricot-border);
  border-radius: var(--r-card);
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--apricot-deep);
  margin-bottom: 32px;
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .contact .container {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
