/* ============================================================
   ScriptWise marketing site — ported from the design handoff
   ("ScriptWise marketing website/design_handoff_scriptwise_marketing").
   Tokens are shared with the portal's login screen (LoginLayout.razor.css);
   keep them in sync by hand. Montserrat is self-hosted — no CDN.
   ============================================================ */

@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Regular.ttf');  font-weight:400; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Medium.ttf');   font-weight:500; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-SemiBold.ttf'); font-weight:600; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Bold.ttf');     font-weight:700; font-display:swap; }

:root {
  --sw-ink:      #14161a;
  --sw-ink-2:    #45494f;
  --sw-muted:    #6f736f;
  --sw-muted-2:  #8b8f8b;
  --sw-faint:    #9a9e9a;
  --sw-paper:    #f6f6f4;
  --sw-surface:  #ffffff;
  --sw-line:     #e4e4df;
  --sw-line-2:   #e0e0da;
  --sw-green:    #0f5c4a;
  --sw-green-2:  #0c4b3c;
  --sw-mint:     #4ec49f;
  --sw-danger:   #b3261e;
  --sw-on-dark-2:#a7aba7;
  --sw-on-dark-3:#7d817d;
  --sw-on-dark-4:#6c706c;
  --sw-on-dark-line:#2b2e32;
  --sw-on-dark-border:#3a3e42;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--sw-paper);
  font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--sw-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sw-green); }
a:hover { color: var(--sw-ink); }
h1, h2, h3, p, dl, dd { margin: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1120px; margin: 0 auto; }

/* ---- Shared chrome: nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 76px;
  background: var(--sw-paper); border-bottom: 1px solid var(--sw-line);
  position: sticky; top: 0; z-index: 10;
}
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 34px; height: 34px; border-radius: 8px; }
.lockup__text { display: flex; flex-direction: column; gap: 3px; }
.lockup__name { color: var(--sw-ink); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lockup__sub  { color: var(--sw-muted-2); font-size: 7.5px; font-weight: 400; letter-spacing: 0.34em; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 12.5px; font-weight: 600; color: var(--sw-ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--sw-green); }
.nav__links a.signin { color: var(--sw-green); }
.nav__links a.signin:hover { color: var(--sw-ink); }
.btn-nav {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px;
  background: var(--sw-ink); color: #fff !important; font-size: 13px; font-weight: 600;
  border-radius: 9px; text-decoration: none;
}
.btn-nav:hover { background: var(--sw-green); }

/* ---- Shared chrome: footer ---- */
.footer { background: var(--sw-paper); padding: 40px 60px; border-top: 1px solid var(--sw-line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer__brand span { font-size: 11px; font-weight: 500; color: var(--sw-muted); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 11.5px; font-weight: 600; color: var(--sw-muted); text-decoration: none; }
.footer__links a:hover { color: var(--sw-green); }
.footer__legal { font-size: 10.5px; font-weight: 500; color: var(--sw-faint); }

/* ---- Buttons ---- */
.btn-white {
  display: inline-flex; align-items: center; height: 50px; padding: 0 28px;
  background: #fff; color: var(--sw-ink) !important; font-size: 14.5px; font-weight: 600;
  border-radius: 9px; text-decoration: none;
}
.btn-white:hover { background: var(--sw-mint); }
.btn-white--lg { height: 52px; padding: 0 30px; }
.btn-outline {
  display: inline-flex; align-items: center; height: 50px; padding: 0 24px;
  color: #fff !important; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--sw-on-dark-border); border-radius: 9px; text-decoration: none;
}
.btn-outline:hover { border-color: var(--sw-mint); color: var(--sw-mint) !important; }
.btn-primary {
  height: 50px; font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; background: var(--sw-ink); border: none; border-radius: 9px; cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--sw-green); }
.btn-primary:active { background: var(--sw-green-2); }
.btn-primary:focus-visible, .btn-nav:focus-visible, .btn-white:focus-visible, .btn-outline:focus-visible {
  outline: 2px solid var(--sw-green); outline-offset: 2px;
}

/* ---- Common typographic idioms ---- */
.eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; color: var(--sw-muted-2); }
.rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--sw-mint); }
.section-title { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--bl { bottom: -260px; left: -180px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(15,92,74,0.55) 0%, rgba(15,92,74,0) 68%); }
.glow--tr { top: -240px; right: -160px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(15,92,74,0.5) 0%, rgba(15,92,74,0) 68%); }
.glow--contact { bottom: -180px; left: -140px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(15,92,74,0.55) 0%, rgba(15,92,74,0) 68%); }

/* ============================================================
   Landing
   ============================================================ */
.hero { position: relative; background: var(--sw-ink); overflow: hidden; padding: 96px 60px 88px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__copy h1 { color: #fff; font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: pretty; }
.hero__copy p { max-width: 480px; color: var(--sw-on-dark-2); font-size: 17px; font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.stats { display: flex; gap: 44px; padding-top: 22px; }
.stats div { display: flex; flex-direction: column; gap: 5px; }
.stats dt { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stats dd { color: var(--sw-on-dark-3); font-size: 9px; font-weight: 500; letter-spacing: 0.2em; }
.hero__visual { display: flex; flex-direction: column; gap: 12px; }
.mock {
  background: #fff; border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 16px;
}
.mock__head { display: flex; align-items: baseline; justify-content: space-between; }
.mock__head .eyebrow { font-size: 9.5px; }
.mock__patient { font-size: 10.5px; font-weight: 600; color: var(--sw-muted); }
.mock__rows { display: flex; flex-direction: column; gap: 10px; }
.mock__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--sw-paper); border-radius: 9px;
}
.mock__row--dup { background: #fdf2f0; border: 1px solid #f0c4bf; }
.mock__row div { display: flex; flex-direction: column; gap: 3px; }
.mock__med { font-size: 13px; font-weight: 600; }
.mock__meta { font-size: 10.5px; color: var(--sw-muted); }
.mock__row--dup .mock__med { color: #8f1d16; }
.mock__row--dup .mock__meta { color: var(--sw-danger); }
.badge { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 5px; }
.badge--ok { color: var(--sw-green); background: rgba(78,196,159,0.16); }
.badge--dup { color: #fff; background: var(--sw-danger); }
.hero__caption { text-align: center; color: var(--sw-on-dark-4); font-size: 10.5px; font-weight: 500; }

.section { padding: 88px 60px; }
.section--paper { background: var(--sw-paper); }
.section--white { background: #fff; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.section__inner { display: flex; flex-direction: column; gap: 44px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--sw-line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step__num { font-size: 22px; font-weight: 700; color: var(--sw-green); }
.step h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--sw-line); border: 1px solid var(--sw-line); border-radius: 12px; overflow: hidden; }
.feature { background: #fff; padding: 26px 28px; display: flex; flex-direction: column; gap: 9px; }
.feature h3 { font-size: 14.5px; font-weight: 700; }
.feature p { font-size: 12.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.6; }

.security { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.security__copy { display: flex; flex-direction: column; gap: 16px; }
.security__copy h2 { text-wrap: pretty; }
.security__copy p { font-size: 14px; font-weight: 500; color: var(--sw-muted); line-height: 1.65; text-wrap: pretty; }
.security__copy a { font-size: 13px; font-weight: 600; color: var(--sw-green); text-decoration: none; }
.security__copy a:hover { text-decoration: underline; }
.security__cards { display: flex; flex-direction: column; gap: 14px; }
.scard { display: flex; gap: 16px; background: #fff; border: 1px solid var(--sw-line); border-radius: 12px; padding: 20px 24px; }
.scard__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--sw-mint); }
.scard div { display: flex; flex-direction: column; gap: 5px; }
.scard h3 { font-size: 14px; font-weight: 700; }
.scard p { font-size: 12.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.6; }

.cta { padding: 80px 60px; background: var(--sw-ink); position: relative; overflow: hidden; }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta__copy { display: flex; flex-direction: column; gap: 12px; }
.cta__copy h2 { color: #fff; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.cta__copy p { color: var(--sw-on-dark-2); font-size: 15px; font-weight: 400; line-height: 1.6; }

/* ============================================================
   Legal (terms / privacy)
   ============================================================ */
.legal { flex: 1; padding: 72px 60px 96px; }
.legal__doc { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.legal__head { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--sw-line); padding-bottom: 32px; }
.legal__head h1 { font-size: 38px; font-weight: 700; letter-spacing: -0.025em; }
.legal__meta { font-size: 13px; font-weight: 500; color: var(--sw-muted); }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.legal p { font-size: 14px; font-weight: 500; color: var(--sw-ink-2); line-height: 1.75; }
.legal__note { padding-top: 8px; font-size: 11px !important; font-weight: 500 !important; color: var(--sw-faint) !important; line-height: 1.6 !important; }

/* ============================================================
   Contact
   ============================================================ */
.contact { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; }
.contact__aside {
  position: relative; background: var(--sw-ink); padding: 64px 60px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; overflow: hidden;
}
.contact__aside-body { position: relative; display: flex; flex-direction: column; gap: 26px; }
.contact__aside h1 { max-width: 420px; color: #fff; font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-wrap: pretty; }
.contact__aside > .contact__aside-body > p { max-width: 400px; color: var(--sw-on-dark-2); font-size: 15.5px; font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.contact__steps { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.contact__steps div { display: flex; gap: 12px; align-items: baseline; }
.contact__steps .n { color: var(--sw-mint); font-size: 13px; font-weight: 700; }
.contact__steps .t { color: var(--sw-on-dark-2); font-size: 13px; font-weight: 500; line-height: 1.5; }
.contact__foot { position: relative; display: flex; align-items: center; gap: 14px; color: var(--sw-on-dark-4); font-size: 11px; font-weight: 500; }
.contact__foot .divider { width: 1px; height: 10px; background: var(--sw-on-dark-line); }
.contact__pane { display: flex; align-items: center; justify-content: center; padding: 56px 40px; background: var(--sw-paper); }
.form { width: 440px; display: flex; flex-direction: column; gap: 26px; }
.form__head { display: flex; flex-direction: column; gap: 8px; }
.form__head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.form__head p { font-size: 13.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.5; }
.form__fields { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sw-ink-2); }
.field label .opt { color: var(--sw-faint); font-weight: 500; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; padding: 0 15px; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--sw-ink); background: #fff; border: 1px solid var(--sw-line-2); border-radius: 9px; outline: none;
}
.field input { height: 48px; }
.field textarea { padding: 13px 15px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sw-green); box-shadow: 0 0 0 3px rgba(15,92,74,0.14); }
.form__foot { border-top: 1px solid var(--sw-line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.form__foot p { font-size: 12.5px; font-weight: 500; color: var(--sw-muted); }
.form__foot a { font-weight: 600; text-decoration: none; }
.form__foot .fine { font-size: 10.5px; color: var(--sw-faint); line-height: 1.5; }
.form__foot .fine a { color: var(--sw-faint); }
.alert-ok {
  border: 1px solid #bfe3d6; border-left: 4px solid var(--sw-green); border-radius: 9px;
  background: #eef7f3; padding: 12px 15px; font-size: 12.5px; font-weight: 600; color: var(--sw-green-2);
}
.alert-err {
  border: 1px solid #f0c4bf; border-left: 4px solid var(--sw-danger); border-radius: 9px;
  background: #fdf2f0; padding: 12px 15px; font-size: 12.5px; font-weight: 600; color: #8f1d16;
}
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ============================================================
   Responsive — the handoff was desktop-only; collapse per login.css conventions
   ============================================================ */
@media (max-width: 1180px) {
  .hero__copy h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn-nav):not(.signin) { display: none; }
  .hero { padding: 64px 24px 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy h1 { font-size: 36px; }
  .section, .cta { padding: 56px 24px; }
  .steps, .features { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 32px 24px; }
  .legal { padding: 40px 24px 64px; }
  .contact { grid-template-columns: 1fr; }
  .contact__aside { padding: 48px 24px; }
  .contact__pane { padding: 40px 20px; }
  .form { width: 100%; max-width: 440px; }
  .form__row { grid-template-columns: 1fr; }
}
