/* Just Say When — marketing site styles (static pages at /, /help).
   Brand pulled from the app: purple accent family, system font stack. */

:root {
  --ink: #08060d;
  --body: #4d4757;
  --muted: #6b6375;
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --border: #e5e4e7;
  /* Brand teal — matches the app's C.teal family. Text-on-white shades chosen
     for WCAG AA: #0F766E on white = 5.7:1; white on #0F766E = 5.7:1. */
  --accent: #0D9488;
  --accent-dark: #0F766E;
  --accent-deep: #115E59;
  --accent-bg: rgba(13, 148, 136, 0.08);
  --accent-border: rgba(13, 148, 136, 0.35);
  --blue: #47bfff;
  --green: #15803d;
  --amber: #b45309;
  --shadow: rgba(15, 23, 42, 0.10) 0 10px 30px -6px, rgba(15, 23, 42, 0.06) 0 4px 10px -4px;
  --radius: 14px;
  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.55 var(--sans);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 62px; }
/* Brand: calendar-cross mark + serif name (wordmark redesign parked). */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { height: 32px; width: auto; margin-right: 10px; }
.brand .bw { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.45rem; line-height: 1; letter-spacing: -0.5px; }

.nav-signin { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-left: 26px; }
.nav-signin:hover { color: var(--accent-dark); text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 550; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  font-weight: 650; font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--accent-border); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: 12px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--accent-bg); color: var(--accent-dark);
  border: 1px solid var(--accent-border); border-radius: 999px;
  padding: 4px 14px; font-size: 0.82rem; font-weight: 650; margin-bottom: 18px;
}
.hero p.lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* Schedule-grid mockup */
.mock {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; font-size: 0.72rem;
  overflow-x: auto; /* the nowrap grid must scroll inside the card, never widen the page */
}
.hero-grid > * { min-width: 0; }
.mock-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-bottom: 12px; font-size: 0.85rem; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { border: 1px solid var(--border); padding: 6px 7px; text-align: left; white-space: nowrap; }
.mock th { background: var(--bg-soft); color: var(--muted); font-weight: 650; }
.mock td:first-child, .mock th:first-child { font-weight: 650; color: var(--ink); }
.chip { display: inline-block; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.chip-on { background: var(--accent-bg); color: var(--accent-dark); }
.chip-pto { background: rgba(217, 119, 6, 0.12); color: var(--amber); }
.chip-gap { background: rgba(220, 38, 38, 0.10); color: #b91c1c; }
.chip-ok { background: rgba(22, 163, 74, 0.10); color: var(--green); }

/* ── Sections ─────────────────────────────────────────── */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* The five-rights tagline — the medication-administration riff */
.rights-hero { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--accent-dark); margin: 0 0 14px; line-height: 1.35; letter-spacing: -0.01em; }
.rights-hero span { white-space: nowrap; }
.five-rights { margin: 0 0 40px; padding: 18px 24px; border-left: 4px solid #DC2626; background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.rights-wink { color: var(--muted); font-size: 0.98rem; margin: 0; }
.rights-wink strong { color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card .icon { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Smart Import steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 58px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-dark); color: #fff; font-weight: 750;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Playground sticker + tiles */
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.play-head > div { max-width: 44em; }
.sticker { width: 120px; height: auto; flex-shrink: 0; }
@media (max-width: 560px) { .sticker { width: 84px; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: block; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; color: inherit; position: relative;
  transition: border-color 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
}
.tile:hover { text-decoration: none; border-color: var(--accent-border); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .icon { font-size: 1.8rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.badge {
  position: absolute; top: 16px; right: 16px; font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; padding: 3px 10px;
}
.badge-live { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.badge-soon { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }

/* ── Request access form ──────────────────────────────── */
.request { max-width: 620px; }
.request form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.request label { display: block; font-size: 0.85rem; font-weight: 650; color: var(--ink); margin-bottom: 5px; }
.field-full { grid-column: 1 / -1; }
.request input, .request select, .request textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg);
}
.request input:focus, .request select:focus, .request textarea:focus {
  outline: 2px solid var(--accent-border); border-color: var(--accent);
}
.request textarea { resize: vertical; min-height: 84px; }
.form-msg { grid-column: 1 / -1; font-weight: 600; display: none; }
.form-msg.ok { color: var(--green); display: block; }
.form-msg.err { color: #b91c1c; display: block; }
.hp { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

/* ── Help / FAQ pages ─────────────────────────────────── */
.help-hero { padding: 56px 0 34px; }
.help-hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.help-toc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.help-toc a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  color: var(--accent-dark); font-size: 0.88rem; font-weight: 650;
}
.help-toc a:hover { text-decoration: none; background: rgba(13, 148, 136, 0.14); }
.faq { max-width: 720px; }
.faq h2 { margin-bottom: 20px; }
.faq details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 18px; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--accent-border); }
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--ink);
  padding: 14px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--accent-dark); font-weight: 700; font-size: 1.1rem;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 0.96rem; margin: 0 0 16px; }

/* ── Footer ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid, .steps, .tiles { grid-template-columns: 1fr 1fr; }
  .nav-links a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .tiles, .request form { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero { padding: 44px 0 24px; }
}
