/* ==========================================================================
   PractitionerHQ — shared styles
   Tokens sourced from the PractitionerHQ brand guidelines.
   ========================================================================== */

:root {
  --app-background: #F6F8FB;
  --surface: #FFFFFF;
  --primary-navy: #081524;
  --secondary-navy: #0D2238;
  --navy-hover: #13304D;
  --primary-action: #2F80ED;
  --text: #232C36;
  --muted: #637381;
  --success: #268B60;
  --warning: #BE7A14;
  --border: #D7E0E8;
  --logo-ink: #F4EFE6;
  --logo-tagline: #8FB8E8;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-full: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--app-background);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  padding: 14px 26px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s, border-color 0.15s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--primary-action); color: #fff; }
.btn-primary:hover { background: #2569C4; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary-action); }
.btn-outline-dark { background: transparent; color: #fff; border: 1px solid #33465A; }
.btn-outline-dark:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* ---------- Nav ---------- */
.navbar {
  width: 100%;
  background: var(--primary-navy);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar .logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.navlink { color: #B9C6D4; font-size: 14px; font-weight: 500; }
.nav-links a.navlink:hover { opacity: 0.75; }
.nav-links a.navlink.active { color: #fff; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions a.login-link { color: #E3E9EF; font-size: 14px; font-weight: 600; padding: 10px 8px; }
.nav-left { display: flex; align-items: center; gap: 32px; }

@media (max-width: 760px) {
  .navbar { padding: 0 20px; flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .nav-left { gap: 18px; }
  .nav-links a.navlink:not(.logo) { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  background: var(--primary-navy);
  padding: 56px 40px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1C2E42;
}
.footer-top img { height: 26px; margin-bottom: 12px; }
.footer-top p { margin: 0; color: #7C8CA0; font-size: 13px; max-width: 280px; line-height: 1.6; }
.footer-col-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: #8FA0B3; font-size: 13px; margin-bottom: 10px; }
.footer-bottom { padding-top: 24px; color: #5E7288; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-simple { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  background: var(--primary-navy);
  padding: 88px 40px 96px;
}
.hero-inner { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 480px; min-width: 320px; }
.eyebrow { color: var(--primary-action); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 18px; }
.hero-copy h1 { margin: 0 0 20px; color: #fff; font-size: 46px; line-height: 1.16; font-weight: 700; letter-spacing: -0.5px; }
.hero-copy p { margin: 0 0 32px; color: #AEBBC9; font-size: 18px; line-height: 1.6; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; color: #7C8CA0; font-size: 13px; }
.hero-visual { flex: 1 1 420px; min-width: 320px; display: flex; justify-content: center; }

.mock-card { width: 100%; max-width: 460px; background: var(--app-background); border-radius: 12px; border: 1px solid #1C2E42; box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden; display: flex; }
.mock-sidebar { width: 88px; background: var(--secondary-navy); padding: 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.mock-sidebar span { display: block; width: 100%; height: 8px; border-radius: 4px; background: #243A52; }
.mock-sidebar span.active { background: var(--primary-action); }
.mock-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
.mock-block { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 8px; }
.mock-line.light { background: #EDF1F5; margin-bottom: 0; }
.mock-cta { background: var(--primary-action); border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 12px; font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 64px; }
  .hero-copy h1 { font-size: 32px; }
}

/* ---------- Section headers ---------- */
.section { padding: 96px 40px; }
.section-head { max-width: 600px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 0 0 14px; font-size: 32px; font-weight: 700; letter-spacing: -0.3px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.feature-card { grid-column: span 2; }
.feature-card:nth-child(4) { grid-column: 2 / span 2; }
.feature-card:nth-child(5) { grid-column: 4 / span 2; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; transition: border-color 0.15s; }
.feature-card:hover { border-color: var(--primary-action); }
.feature-card h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) { grid-column: auto; }
  .section { padding: 64px 20px; }
}

/* ---------- Security band ---------- */
.security-band { width: 100%; background: var(--secondary-navy); padding: 64px 40px; }
.security-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.security-item .title { color: var(--success); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.security-item p { margin: 0; color: #9FB0C0; font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr 1fr; }
  .security-band { padding: 40px 20px; }
}

/* ---------- CTA banner ---------- */
.cta-banner { width: 100%; background: var(--primary-action); padding: 72px 40px; text-align: center; }
.cta-banner h2 { margin: 0 0 14px; color: #fff; font-size: 30px; font-weight: 700; }
.cta-banner p { margin: 0 0 28px; color: #E5EEFC; font-size: 16px; }
.cta-banner .btn-primary { background: #fff; color: var(--primary-action); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.pricing-head { max-width: 640px; margin: 0 auto; text-align: center; padding: 72px 40px 16px; }
.pricing-grid { max-width: 1080px; margin: 0 auto; padding: 48px 40px 96px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.tier { border-radius: 8px; padding: 32px; display: flex; flex-direction: column; transition: border-color 0.15s; }
.tier-light { background: #fff; border: 1px solid var(--border); }
.tier-light:hover { border-color: var(--primary-action); }
.tier-dark { background: var(--primary-navy); border: 1px solid var(--primary-navy); position: relative; }
.tier-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tier-desc { margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.tier-price .amount { font-size: 34px; font-weight: 700; }
.tier-badge { position: absolute; top: -13px; left: 32px; background: var(--primary-action); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-full); }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tier li { display: flex; gap: 10px; font-size: 14px; }
.pricing-note { max-width: 720px; margin: 0 auto; padding: 0 40px 96px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; padding: 32px 20px 64px; }
  .pricing-head { padding: 48px 20px 16px; }
}

/* ---------- Signup ---------- */
.signup-topbar { width: 100%; background: var(--primary-navy); height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.signup-topbar .aux { color: #AEBBC9; font-size: 14px; }
.signup-topbar .aux a { color: #fff; font-weight: 600; }
.signup-wrap { max-width: 520px; margin: 0 auto; padding: 40px 40px 96px; }

.step-indicator { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 28px auto 0; padding: 0 40px; }
.step-indicator .step { display: flex; align-items: center; gap: 8px; }
.step-indicator .dot { width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--border); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-indicator .label { font-size: 13px; font-weight: 600; color: #9AA7B4; }
.step-indicator .rule { flex: 1; height: 1px; background: var(--border); }
.step-indicator .step.active .dot,
.step-indicator .step.done .dot { background: var(--primary-action); }
.step-indicator .step.active .label { color: var(--text); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}
.form-group input:focus { outline: 2px solid var(--primary-action); outline-offset: 1px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.plan-card {
  cursor: pointer; background: #fff; border: 2px solid var(--border); border-radius: 8px;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.plan-card:hover { border-color: var(--primary-action); }
.plan-card.selected { border-color: var(--primary-action); }
.plan-card .name { font-weight: 700; font-size: 15px; }
.plan-card .sub { color: var(--muted); font-size: 13px; }
.plan-card .price { font-weight: 700; font-size: 15px; }
.plan-card .price span { color: var(--muted); font-weight: 500; font-size: 12px; }
.plan-tag { color: var(--primary-action); font-size: 11px; font-weight: 700; }

.pay-btn-row { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-btn { flex: 1; border: none; border-radius: var(--radius-md); padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pay-btn.apple { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-btn.paypal { background: #FFC439; color: #003087; font-weight: 800; font-style: italic; }
.divider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #9AA7B4; font-size: 12px; }
.divider-row .rule { flex: 1; height: 1px; background: #E4EAF0; }

.notice-box { display: flex; gap: 8px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; background: var(--app-background); border-radius: var(--radius-md); }
.notice-box p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.confirm { text-align: center; padding: 24px 0; }
.confirm .check-circle { width: 56px; height: 56px; border-radius: var(--radius-full); background: #EAF6EF; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.confirm p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.step-actions { display: flex; gap: 12px; margin-top: 24px; }
.step-actions .btn-secondary { flex: 0 0 auto; }
.step-actions .btn-primary { flex: 1; }
.signup-legal { margin: 14px 0 0; color: #8A98A8; font-size: 12px; line-height: 1.55; text-align: center; }
.signup-legal a { color: var(--primary-action); text-decoration: underline; text-underline-offset: 2px; }

[data-step-panel] { display: none; }
[data-step-panel].active { display: block; }

/* ---------- Login ---------- */
.login-page {
  width: 100%; min-height: 100vh; background: var(--primary-navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px;
}
.login-logo { margin-bottom: 32px; }
.login-logo img { height: 36px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 10px; padding: 36px; }
.login-card .forgot { display: flex; justify-content: flex-end; margin: 12px 0 20px; }
.login-card .forgot a { color: var(--primary-action); font-size: 13px; font-weight: 600; }
.login-switch { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.login-switch a { color: var(--primary-action); font-weight: 600; }
[data-login-view] { display: none; }
[data-login-view].active { display: block; }
.login-notice { text-align: center; }
.login-notice .icon-circle { width: 48px; height: 48px; border-radius: var(--radius-full); background: #FDF3E5; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-notice h1 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.login-notice p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Demo (request a callback) ---------- */
.demo-section { padding: 72px 40px 96px; }
.demo-inner { max-width: 920px; margin: 0 auto; display: flex; gap: 64px; flex-wrap: wrap; }
.demo-copy { flex: 1 1 340px; min-width: 300px; }
.demo-copy h1 { margin: 0 0 16px; font-size: 32px; font-weight: 700; letter-spacing: -0.3px; }
.demo-copy > p { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.demo-points { display: flex; flex-direction: column; gap: 16px; }
.demo-points .point { display: flex; gap: 12px; align-items: flex-start; }
.demo-points span.text { font-size: 14.5px; color: var(--text); }
.demo-form-card { flex: 1 1 380px; min-width: 320px; }
.demo-form-card .inner { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.demo-fine { margin: 14px 0 0; color: #9AA7B4; font-size: 12px; line-height: 1.5; }
.demo-done { text-align: center; padding: 20px 0; }
.demo-done .check-circle { width: 52px; height: 52px; border-radius: var(--radius-full); background: #EAF6EF; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.demo-done h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.demo-done p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
[data-demo-view] { display: none; }
[data-demo-view].active { display: block; }

@media (max-width: 760px) {
  .demo-section { padding: 48px 20px 64px; }
}


/* ---------- Legal / privacy ---------- */
.legal-page { padding: 72px 40px 96px; }
.legal-wrap { max-width: 840px; margin: 0 auto; }
.legal-wrap h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.15; letter-spacing: -0.4px; }
.legal-updated { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.legal-section { margin: 0 0 36px; }
.legal-section h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.3; }
.legal-section h3 { margin: 22px 0 6px; font-size: 16px; line-height: 1.4; }
.legal-section p { margin: 0 0 14px; color: #394552; font-size: 15px; line-height: 1.75; }
.legal-section ul, .legal-section ol { margin: 0 0 16px 20px; padding: 0; color: #394552; }
.legal-section li { margin: 0 0 7px; line-height: 1.65; }
.legal-section a { color: var(--primary-action); text-decoration: underline; text-underline-offset: 2px; }
.legal-summary { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px 26px; margin: 0 0 36px; }
.legal-summary strong { display: block; margin-bottom: 8px; font-size: 16px; }
.legal-summary p { margin: 0; color: #394552; line-height: 1.7; }
.legal-summary ul { margin: 10px 0 0 20px; padding: 0; color: #394552; }
.legal-summary li { margin-bottom: 7px; line-height: 1.6; }
.legal-summary-bottom { margin-top: 48px; margin-bottom: 0; }

@media (max-width: 640px) {
  .legal-page { padding: 48px 20px 64px; }
  .legal-wrap h1 { font-size: 32px; }
  .legal-section h2 { font-size: 21px; }
  .legal-summary { padding: 20px; }
}
