/*
 * The 1hfax public site. Ported from the design prototype's public page: the same colors, type and layout, light
 * and dark. Poppins is served from /assets/fonts/ (SIL Open Font License, see fonts/OFL.txt). Nothing here is
 * inline in the HTML, so the page's Content-Security-Policy (style-src 'self'; font-src 'self') holds.
 */

@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Poppins-Regular.woff2) format("woff2")}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/Poppins-Medium.woff2) format("woff2")}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Poppins-SemiBold.woff2) format("woff2")}
@font-face{font-family:Poppins;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/Poppins-Bold.woff2) format("woff2")}

/* Themes. Light is the default; dark follows the system unless the visitor picked light with the switch (home.js
   sets data-theme on <html>), and a visitor's dark pick holds whatever the system says. */
:root{color-scheme:light;--bg:#ffffff;--paper:#ffffff;--ink:#10231c;--muted:#263c32;--line:#cbd6ca;--soft:#e9f0e7;--accent:#e76848;--accent-soft:#fff0e8;--green:#316e54;--green-soft:#e6f1e6;--red:#ba3e3e;--shadow:0 14px 50px #2436310c;--radius:16px}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){color-scheme:dark;--bg:#17241f;--paper:#20302a;--ink:#ecf1e9;--muted:#acb9ae;--line:#36473c;--soft:#2b3d32;--accent:#ff9676;--accent-soft:#422f26;--green:#a4d8ac;--green-soft:#304937;--red:#ff9a91;--shadow:0 14px 50px #0002}
}
:root[data-theme="dark"]{color-scheme:dark;--bg:#17241f;--paper:#20302a;--ink:#ecf1e9;--muted:#acb9ae;--line:#36473c;--soft:#2b3d32;--accent:#ff9676;--accent-soft:#422f26;--green:#a4d8ac;--green-soft:#304937;--red:#ff9a91;--shadow:0 14px 50px #0002}

/* Base */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:13px/1.6 Poppins,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;background:none;border:none;color:inherit}
a{color:inherit}
button,input,a{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent)}
input{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:11px 13px;min-width:0}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-weight:500;line-height:1.25}
h1{font-size:34px;letter-spacing:-1.3px}
h2{font-size:25px;letter-spacing:-.7px}
h3{font-size:17px;letter-spacing:-.3px}
small{font-size:11px}
.muted{color:var(--muted)}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:10;padding:8px 14px;border-radius:8px;background:var(--ink);color:var(--paper);text-decoration:none}
.skip-link:focus{left:8px}

/* Building blocks */
.eyebrow{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.8px}
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between}
.grow{flex:1;min-width:0}
.icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:12px;font-weight:500;text-decoration:none;transition:background .18s,transform .18s}
.btn:hover:not(:disabled){background:var(--soft);transform:translateY(-1px)}
.btn.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.btn.primary:hover:not(:disabled){background:var(--ink);opacity:.9}
.btn.coral{background:var(--accent);color:#182e24;border-color:var(--accent)}
.btn.coral:hover:not(:disabled){background:var(--accent);opacity:.92}
.btn.soon:disabled{background:var(--soft);color:var(--muted);cursor:default}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:500;background:var(--soft);white-space:nowrap}
.pill.green{color:var(--green);background:var(--green-soft)}
.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-weight:500;font-size:11px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:25px}

/* Logo */
.logo{display:flex;align-items:center;gap:9px;font-size:28px;font-weight:600;letter-spacing:-1.6px;white-space:nowrap;text-decoration:none}
.logo-mark{width:29px;height:31px;display:grid;grid-template-columns:repeat(3,6px);gap:3px;align-items:center;transform:skew(-12deg)}
.logo-mark i{background:var(--accent);border-radius:2px;height:17px}
.logo-mark i:nth-child(2){height:30px}
.logo-mark i:nth-child(3){height:23px}
.logo span em{font-style:normal;color:var(--accent)}

/* Header */
.public-header{height:90px;padding:0 6%;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--line);background:var(--bg)}
.public-header .navlink{font-size:15px;color:var(--muted);text-decoration:none}
.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--soft);flex-shrink:0}
.theme-switch[hidden]{display:none}
.theme-option{width:34px;height:32px;display:grid;place-items:center;border-radius:8px;font-size:21px;line-height:1;color:var(--ink)}
.theme-option:hover{background:var(--paper)}
.theme-option.active{background:var(--paper);box-shadow:0 1px 5px #182e2420;color:var(--green)}

/* Notice (the result of the notify-me form) */
.notice-wrap{padding:20px 6% 0}
.notice{max-width:760px;margin:auto;padding:12px 18px;border:1px solid var(--line);border-radius:12px;font-size:14px;text-align:center}
.notice.ok{background:var(--green-soft);color:var(--green);border-color:var(--green)}
.notice.error{background:var(--accent-soft);color:var(--red);border-color:var(--red)}

/* Hero */
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:5%;padding:70px 8% 65px;max-width:1600px;margin:auto;align-items:center}
.hero h1{font-size:clamp(45px,5.1vw,76px);font-weight:500;line-height:1.12;letter-spacing:-3.6px;margin:22px 0}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero-eyebrow{gap:8px}
.hero-eyebrow .dot{color:var(--accent)}
.free-offer{margin:20px 0 10px;font-size:19px;line-height:1.5;letter-spacing:-.4px;font-weight:500}
.hero .intro{font-size:14px;line-height:1.9;color:var(--muted);max-width:450px}
.hero .intro strong{color:var(--ink);font-weight:500}
.hero-actions{margin-top:29px;display:flex;gap:11px}
.hero-actions .btn{padding:14px 20px;min-height:49px}
.hero-note{font-size:10px;color:var(--muted);margin-top:16px;max-width:450px}
.hipaa{margin-top:26px;gap:9px}
.hipaa .avatar{background:var(--green-soft);color:var(--green)}
.hipaa p{font-size:11px;color:var(--muted)}
.hipaa strong{color:var(--ink);font-weight:500}

/* The NPI illustration: a fixed light card in both themes, as in the prototype */
.hero-art{position:relative;min-height:455px;background:#e6eadc;border-radius:50% 50% 15px 15px;display:flex;justify-content:center;align-items:center;padding:34px}
.hero-art:before{content:"";position:absolute;inset:20px;border:1px solid #c6cdb8;border-radius:50% 50% 10px 10px}
.float-check{width:33px;height:33px;border-radius:50%;background:#e7f0e2;display:grid;place-items:center;color:#537a50}
.npi-story{position:relative;z-index:1;width:100%;color:#243631}
.npi-senders{display:flex;justify-content:space-between;gap:12px;text-align:center;margin:0 -9px}
.npi-sender{font-size:16px;font-weight:600;line-height:1.4;color:#243631;flex:1}
.npi-sender .float-check{background:#fff;color:#3e683e;width:64px;height:64px;margin:0 auto 12px;border:1px solid #c7d3bb;box-shadow:0 4px 12px #2436310a}
.npi-sender .icon{width:30px;height:30px;stroke-width:1.8}
.npi-routes{display:block;width:100%;height:65px;fill:none;stroke:#9aaa8b;stroke-width:1.2}
.npi-address{background:#fff;padding:25px 23px;border:1px solid #d9e0cf;border-radius:12px;box-shadow:0 15px 35px #273f2110}
.npi-address .npi-tagline{font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-.5px;color:#243631}
.npi-number{font-size:31px;letter-spacing:3px;margin:10px 0 8px;font-weight:500;white-space:nowrap}
.npi-name{font-size:12px;font-weight:500}
.npi-address p{font-size:10px;color:#737e78}
.npi-delivery{margin:14px 0 0;display:flex;align-items:center;gap:12px;background:#f6f8ef;border:1px solid #d3dcc7;border-radius:10px;padding:14px 17px}
.npi-delivery strong{font-size:12px;font-weight:500;display:block}
.npi-delivery small{color:#737e78;font-size:9px}
.npi-example{font-size:8px;letter-spacing:.5px;text-align:center;margin-top:12px;color:#6b7863}

/* Strip and explainer */
.public-strip{display:flex;justify-content:center;gap:65px;padding:25px 6%;border-block:1px solid var(--line);font-size:11px}
.public-strip .row{gap:12px;font-size:18px;font-weight:600;color:var(--ink)}
.public-strip .row .icon{width:23px;height:23px;color:var(--green);stroke-width:1.8}
.npi-explainer{max-width:1440px;margin:auto;padding:66px 8%;display:grid;grid-template-columns:1fr 1fr;gap:9%;border-bottom:1px solid var(--line)}
.npi-explainer h2{font-size:34px;letter-spacing:-1.1px;margin:13px 0 18px;line-height:1.22}
.npi-explainer p{font-size:16px;line-height:1.75;color:var(--muted)}
.npi-steps{display:flex;flex-direction:column;gap:23px}
.npi-step{display:flex;align-items:flex-start;gap:17px}
.npi-step>span{color:var(--accent);font-size:11px;border:1px solid var(--line);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0}
.npi-step h3{font-size:17px;margin:3px 0 6px}
.npi-step p{font-size:16px}

/* Plans */
.plans{padding:60px 6%;max-width:1500px;margin:auto}
.plans-heading{text-align:center;margin-bottom:30px}
.plans-heading .eyebrow{margin-bottom:12px}
.plans-heading h2{font-size:33px;margin-bottom:10px}
.plans-heading p{font-size:12px;max-width:630px;margin:auto}
.plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.plan-card{padding:24px 22px;display:flex;flex-direction:column;position:relative}
.plan-card.featured{border-color:#78916b;background:var(--green-soft)}
.plan-card.featured .pill{font-size:12px}
.plan-card h3{font-size:19px}
.plan-price{font-size:37px;letter-spacing:-1.5px;margin:20px 0 5px}
.plan-price small{font-size:14px;letter-spacing:0;color:var(--muted)}
.plan-pages{font-size:15px}
.plan-card ul{list-style:none;padding:0;font-size:14px;color:var(--muted);line-height:1.9;margin:17px 0 22px}
.plan-card li{margin-bottom:9px}
.plan-card li:before{content:"✓";color:var(--green);margin-right:7px}
.plan-card .btn{margin-top:auto;font-size:14px}
.plans-note{text-align:center;font-size:10px;margin-top:21px}

/* The notify-me form, shown while sign-up is off */
.notify{max-width:520px;margin:30px auto 0;text-align:center}
.notify label{display:block;font-size:14px;font-weight:500;margin-bottom:9px}
.notify-row{display:flex;gap:9px}
.notify-row input{flex:1;min-width:0}
.notify-row .btn{flex-shrink:0}
.notify-privacy{font-size:11px;margin-top:9px}
.notify-privacy a{color:inherit;text-decoration:underline}

/* Terms and privacy */
.legal{max-width:680px;margin:auto;padding:60px 6%;display:flex;flex-direction:column;gap:18px}
.legal p{font-size:15px;line-height:1.75;color:var(--muted)}
.legal .btn{align-self:flex-start}

/* Footer */
.public-footer{border-top:1px solid var(--line);padding:25px 6%;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}
.public-footer .logo{font-size:28px}
.footer-tagline{margin-left:15px}

@media (max-width:950px){
  .hero{padding:50px 6%;gap:5%}
  .hero h1{font-size:52px}
  .hero-art{min-height:420px;padding:22px}
  .hero-actions{flex-wrap:wrap}
  .public-header{padding-inline:5%}
  .public-strip{gap:25px}
  .plan-grid{grid-template-columns:1fr 1fr}
  .npi-number{font-size:25px;letter-spacing:2px}
  .npi-address{padding:21px 17px}
  .npi-address .npi-tagline{font-size:20px}
  .npi-senders{gap:7px}
  .npi-sender{font-size:14px}
  .npi-sender .float-check{width:56px;height:56px}
  .npi-sender .icon{width:27px;height:27px}
  .npi-explainer{gap:6%;padding:45px 6%}
  .npi-explainer h2{font-size:28px}
}

@media (max-width:680px){
  .public-header{height:74px;padding:0 10px;gap:6px}
  .public-header .navlink{display:none}
  .public-header .logo{font-size:21px;gap:4px}
  .public-header .logo-mark{transform:scale(.8) skew(-12deg);width:23px}
  .public-header .btn{padding:6px 8px;min-height:35px}
  .theme-switch{gap:1px;padding:3px}
  .theme-option{width:27px;height:29px;font-size:18px}
  .hero{display:flex;flex-direction:column;padding:43px 24px 35px;gap:45px}
  .hero h1{font-size:46px;letter-spacing:-2.5px}
  .hero .free-offer{font-size:18px}
  .hero .intro{font-size:13px}
  .hero-note{font-size:9px}
  .hero-actions .btn{padding:12px 15px}
  .hero-art{width:100%;max-width:390px;padding:26px 22px;min-height:410px;border-radius:26px}
  .hero-art:before{border-radius:18px;inset:12px}
  .npi-senders{margin:0}
  .npi-number{font-size:27px;letter-spacing:2.3px}
  .public-strip{flex-wrap:wrap;justify-content:flex-start;gap:15px 25px;padding:22px 24px}
  .public-strip .row{font-size:16px}
  .npi-explainer{grid-template-columns:1fr;gap:30px;padding:40px 24px}
  .npi-explainer h2{font-size:30px}
  .plans{padding:40px 20px}
  .plans-heading h2{font-size:27px}
  .plan-grid{grid-template-columns:1fr}
  .plan-card{padding:25px}
  .plan-price{margin-top:15px}
  .public-footer{gap:15px;flex-wrap:wrap;padding:22px}
  .public-footer>.row:first-child{flex-wrap:wrap}
  .footer-tagline{margin-left:0}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
