/* Auxtechna / MediCase public landing page.
   Self-contained styles. Mirrors brand colours from
   server/email/templates.js so transactional emails and the landing feel
   like the same surface. Single file, no preprocessor, no framework. */

:root {
  --brand-navy: #0F2A4A;
  --brand-navy-deep: #091B33;
  --brand-teal: #2EA8A6;
  --brand-teal-deep: #1F8786;
  --ink: #1A2A3F;
  --grey-text: #41526B;
  --grey-mute: #6E809A;
  --grey-line: #E6ECF2;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FB;
  --warn: #C7382B;
  --ok: #1F8786;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 6px 22px rgba(15, 42, 74, 0.08);
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--brand-teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--brand-navy);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.005em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 20px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.muted { color: var(--grey-mute); }
.small { font-size: 0.875rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-teal-deep);
  margin: 0 0 10px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0 0 6px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */

.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--grey-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 100%);
  box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(15, 42, 74, 0.18);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-list a:hover { color: var(--brand-navy); text-decoration: none; }
.nav-cta {
  background: var(--brand-navy);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--brand-navy-deep); text-decoration: none; }

@media (max-width: 720px) {
  .nav-list { gap: 12px; }
  .nav-list li:not(:last-child) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--brand-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-teal-deep); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}
.btn-secondary:hover { background: var(--brand-navy); color: #fff; }

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

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

.hero {
  padding: clamp(36px, 6vw, 72px) 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--grey-text);
  max-width: 30em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}
.cta-support {
  color: var(--grey-mute);
  font-size: 0.9rem;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}

/* ---------- Proof strip ---------- */

.proof {
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}
.proof-line {
  text-align: center;
  font-size: 1rem;
  color: var(--grey-text);
  margin: 0;
}

/* ---------- What you get ---------- */

.what-you-get {
  padding: clamp(48px, 6vw, 80px) 0;
}
.section-lede {
  max-width: 50em;
  color: var(--grey-text);
  margin: 0 0 28px;
  font-size: 1.05rem;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tile {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--grey-line);
}
.tile h3 { margin-top: 14px; color: var(--brand-navy); }
.tile p { color: var(--grey-text); margin: 0; font-size: 0.95rem; }
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #fff;
  color: var(--brand-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-line);
}
.tile-icon svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* ---------- Two paths ---------- */

.two-paths {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg-soft);
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.path-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-line);
}
.path-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-teal-deep);
  margin: 0 0 6px;
}
.path-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.path-card .check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.path-card .check-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--grey-text);
}
.path-card .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-teal);
  background-image:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.path-card-alt {
  background: linear-gradient(180deg, #fff 0%, #F2FAFA 100%);
  border-color: rgba(46, 168, 166, 0.35);
}

@media (max-width: 860px) {
  .path-grid { grid-template-columns: 1fr; }
}

/* ---------- Wedge / discipline mode ---------- */

.wedge {
  padding: clamp(56px, 7vw, 96px) 0;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #fff;
}
.wedge h2, .wedge .eyebrow { color: #fff; }
.wedge .eyebrow { color: #8FE3E1; }
.wedge p { color: #C4D2E6; max-width: 30em; }
.wedge-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.wedge-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

@media (max-width: 860px) {
  .wedge-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq {
  padding: clamp(48px, 6vw, 80px) 0;
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.faq summary {
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-teal-deep);
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  margin-top: 10px;
  color: var(--grey-text);
}

/* ---------- Final CTA + form ---------- */

.final-cta {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--bg-soft);
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.final-copy h2 { margin-bottom: 12px; }
.final-copy p { color: var(--grey-text); max-width: 28em; margin-bottom: 22px; }
.final-copy .muted { margin-top: 18px; }

.demo-form {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.demo-form h3 { margin-bottom: 6px; }
.form-lede { color: var(--grey-text); font-size: 0.95rem; margin-bottom: 18px; }
.demo-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--ink);
}
.demo-form label > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.demo-form input,
.demo-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}
.demo-form input:focus,
.demo-form textarea:focus {
  outline: 2px solid var(--brand-teal);
  outline-offset: 1px;
  background: #fff;
}
.demo-form abbr {
  color: var(--warn);
  text-decoration: none;
  margin-left: 2px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot { margin: 12px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-error { color: var(--warn); }
.form-ok { color: var(--ok); }
.form-thanks h3 { color: var(--brand-navy); }
.form-thanks p { color: var(--grey-text); margin: 0; }

@media (max-width: 860px) {
  .final-grid { grid-template-columns: 1fr; }
}

/* ---------- Doc pages (privacy, terms) ---------- */

.doc-page {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #fff;
}
.doc-page .container { max-width: 760px; }
.doc-page .lede {
  color: var(--grey-text);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.doc-page h2 {
  margin-top: 36px;
  font-size: 1.35rem;
}
.doc-page h2:first-of-type { margin-top: 28px; }
.doc-page p,
.doc-page li {
  color: var(--grey-text);
}
.doc-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--brand-navy);
}
.doc-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}
.doc-page ul li { margin-bottom: 6px; }
.doc-page time { color: var(--grey-mute); }

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

.site-foot {
  background: var(--brand-navy);
  color: #C4D2E6;
  padding: 48px 0 24px;
}
.site-foot h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a {
  color: #C4D2E6;
  font-size: 0.95rem;
}
.site-foot a:hover { color: #fff; }
.site-foot .brand { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}
.foot-bottom .muted { color: rgba(255, 255, 255, 0.6); }
.foot-bottom a { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Print ---------- */

@media print {
  .site-nav, .final-cta, .site-foot { display: none; }
}
