@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,600&family=Montserrat:wght@400;500;600;700&display=swap");

:root{
--navy-700:#0e1c30;--navy-600:#16293f;--gold-700:#8f6a28;--gold-600:#b98933;--gold-400:#e6c66f;--gold-300:#e8d48f;--gold-200:#efe2b8;--gold-100:#f6eed8;
--white:#fff;--offwhite:#faf8f4;--offwhite-2:#f3efe7;--line-100:#e8e3d9;--line-200:#d8d2c6;--grey-600:#5a6472;
--rule-gold:linear-gradient(90deg,#b98933 0%,#e7d38f 28%,#e6c66f 50%,#e7d38f 72%,#b98933 100%);
--font-display:"Cormorant Garamond",Garamond,"Times New Roman",serif;--font-sans:"Montserrat","Helvetica Neue",Arial,sans-serif;
--container:1200px;--gutter:24px;--header-h:88px;
--shadow-xs:0 1px 2px rgba(14,28,48,.05);--shadow-md:0 6px 20px rgba(14,28,48,.08);--shadow-device:0 30px 70px rgba(14,28,48,.18);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--navy-700);font-family:var(--font-sans);font-weight:500;font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.12;letter-spacing:-.005em;margin:0 0 16px}
h1{font-size:clamp(40px,5.2vw,72px)}h2{font-size:clamp(32px,4vw,54px)}h3{font-size:clamp(26px,3vw,40px)}
h4{font-family:var(--font-sans);font-size:17px;font-weight:600;line-height:1.4;margin:0 0 8px}
p{margin:0 0 16px;text-wrap:pretty;overflow-wrap:anywhere}
a{color:var(--gold-600);text-decoration:underline;text-underline-offset:3px;transition:color .2s}
a:hover{color:var(--gold-700)}
:focus-visible{outline:2px solid var(--gold-600);outline-offset:2px;border-radius:4px}
img,svg{max-width:100%}
::selection{background:var(--gold-200)}
.wrap{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}
.sec{padding:clamp(56px,7vw,96px) 0}
.sec-alt{background:var(--offwhite)}
.sec-navy{background:var(--navy-700);color:#fff}
.rule{height:2px;background:var(--rule-gold)}
.eyebrow{margin:0 0 16px;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600)}
.sec-navy .eyebrow{color:var(--gold-300)}
.lead{font-size:19px;line-height:1.7;color:var(--grey-600)}
.muted{color:var(--grey-600)}
.center{text-align:center}
.narrow{max-width:62ch;margin-left:auto;margin-right:auto}
.gold-i{font-style:italic;color:var(--gold-600)}

/* header */
.hdr{position:sticky;top:0;z-index:40;background:#fff}
.hdr-in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--header-h)}
.hdr-logo img{height:84px;display:block;margin:-4px 0}
.nav{display:flex;align-items:center;gap:32px}
.nav a,.nav button{font-family:var(--font-sans);font-size:14px;font-weight:600;color:var(--navy-700);text-decoration:none;background:none;border:0;cursor:pointer;padding:8px 0}
.nav a:hover,.nav button:hover{color:var(--gold-700)}
.nav a[aria-current=page]{color:var(--gold-700)}
.burger{display:none;background:none;border:0;cursor:pointer;padding:8px;color:var(--navy-700)}
.mobile{display:none;border-top:1px solid var(--line-100);padding:20px var(--gutter) 24px;gap:16px}
.mobile[data-open=true]{display:grid}
.mobile a{font-size:16px;font-weight:600;color:var(--navy-700);text-decoration:none}
@media(max-width:940px){.nav{display:none}.burger{display:block}.hdr-logo img{height:60px;margin:-2px 0}:root{--header-h:68px}}
@media(max-width:480px){.hdr-logo img{height:48px;margin:-2px 0}:root{--header-h:58px}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-sans);font-size:16px;font-weight:600;letter-spacing:.02em;line-height:1.2;padding:13px 26px;border-radius:8px;border:1px solid transparent;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,transform .12s}
.btn:active{transform:translateY(1px)}
.btn-lg{padding:16px 34px;font-size:17px}
.btn-sm{padding:9px 18px;font-size:14px}
.btn-primary{background:var(--gold-300);color:var(--navy-700)}
.btn-primary:hover{background:var(--gold-400);color:var(--navy-700)}
.btn-secondary{border-color:var(--navy-700);color:var(--navy-700);background:transparent}
.btn-secondary:hover{background:var(--navy-700);color:#fff}
.btn-inverse{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-inverse:hover{background:rgba(255,255,255,.1);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:16px}
.btn-full{width:100%}

/* cards & grids */
.grid{display:grid;gap:24px}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.card{background:#fff;border:1px solid var(--line-100);border-radius:16px;padding:32px;box-shadow:var(--shadow-xs)}
.card h4{margin-bottom:12px}
.card p{font-size:14px;color:var(--grey-600);margin:0}
.card .card-link{display:inline-block;margin-top:16px;font-size:14px;font-weight:600;text-decoration:none}
.ico{width:24px;height:24px;color:var(--gold-600);display:block;margin-bottom:12px}
.ico svg{width:100%;height:100%;display:block}
.feat{display:flex;gap:16px}
.feat .ico{margin:2px 0 0;flex:0 0 auto}
.feat p{margin:0;font-size:14px;color:var(--grey-600)}
.feat h4{margin:0 0 4px;font-size:16px}
.step-n{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;border:1px solid var(--gold-300);background:var(--gold-100);font-family:var(--font-display);font-weight:600;font-size:20px;color:var(--gold-700);margin-bottom:12px}
.pill-note{display:flex;gap:16px;align-items:center;background:var(--gold-100);border:1px solid var(--gold-200);border-radius:12px;padding:16px 20px}
.pill-note p{margin:0;font-size:14px}
.anchors{display:flex;flex-wrap:wrap;gap:24px;margin-top:32px}
.anchors a{font-size:14px;font-weight:600;text-decoration:none;border-bottom:1px solid var(--gold-300);padding-bottom:2px}

/* hero devices */
.hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:64px;align-items:center}
.devices{position:relative;display:flex;justify-content:center;align-items:flex-end;min-height:0}
.halo{position:absolute;width:min(460px,100%);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(232,212,143,.30) 0%,rgba(232,212,143,0) 68%)}
/* The laptop+phone row is a fixed composition: 420 laptop + 200 phone - 130 overlap = 490.
   It scales to whatever width the hero column gives it. The negative margin hands back the
   layout height a transform does not reclaim -- which is what the previous hand-tuned `height`
   overrides were compensating for, and getting wrong by about 20%. */
.devices-in{--dev-s:1;display:flex;align-items:flex-end;justify-content:center;width:490px;height:410px;flex:0 0 auto;transform:scale(var(--dev-s));transform-origin:bottom center;margin-bottom:calc((var(--dev-s) - 1) * 410px)}
@media(max-width:1240px){.devices-in{--dev-s:.78}}
.hero-phone{margin-left:-130px;margin-bottom:-30px}
/* On a phone the laptop is decorative at best -- the dashboard inside it is illegible well
   before this width -- so it goes, and the phone mock is shown at its natural size. */
@media(max-width:760px){.devices-in{--dev-s:1;width:auto;height:auto;margin-bottom:0}.devices-in .laptop{display:none}.hero-phone{margin-left:0;margin-bottom:0}}
.phone{position:relative;width:200px;max-width:100%;padding:10px;background:var(--navy-700);border-radius:44px;box-shadow:var(--shadow-device);flex:0 0 auto}
.phone-in{position:relative;border-radius:34px;overflow:hidden;background:#fff}
.notch{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:84px;height:22px;border-radius:999px;background:var(--navy-700);z-index:2}
.laptop{position:relative;width:420px;max-width:100%;flex:0 0 auto}
/* Larger instances on platform.html. Declared after .phone/.laptop: equal specificity, so
   source order is what decides. */
.phone-lg{width:260px}
.laptop-lg{width:860px}
.laptop-top{padding:10px;background:var(--navy-700);border-radius:12px;box-shadow:var(--shadow-device)}
.laptop-scr{aspect-ratio:16/10;border-radius:6px;overflow:hidden;background:#fff}
.laptop-base{height:10px;width:100%;background:var(--navy-600);border-radius:0 0 8px 8px}
.ph-holder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:24px;background:var(--offwhite-2);border:1px dashed var(--line-200);border-radius:12px;color:var(--grey-600);font-size:13px;line-height:1.5}
.ph-holder>svg{width:24px;height:24px;flex:0 0 auto}
.ph-holder.tall{aspect-ratio:9/16}
.ph-holder.wide{aspect-ratio:4/3}
.photo{border-radius:40px;overflow:hidden;aspect-ratio:4/3}
.photo picture,.app-photo picture{display:contents}
.photo img{width:100%;height:100%;object-fit:cover;object-position:52% 34%;display:block}

/* app screen mock */
.app{--app-s:.4615;width:100%;aspect-ratio:390/845;overflow:hidden;font-size:0}
.phone-lg .app{--app-s:.6154}
.app-i{width:390px;transform:scale(var(--app-s));transform-origin:top left;background:#fff;font-family:var(--font-sans);font-size:13px;line-height:1.5}
.app-status{display:flex;justify-content:space-between;align-items:center;padding:14px 22px 4px;font-size:12.5px;font-weight:600}
.app-sys{display:flex;gap:5px;align-items:center}
.app-sys svg{width:14px;height:14px;display:block}
.app-logo{display:flex;justify-content:center;padding:12px 0 6px}
.app-logo img{height:68px}
.app-h{text-align:center;padding:6px 30px 0}
.app-h .t{font-family:var(--font-display);font-weight:700;font-size:30px;line-height:1.15;color:#16305a}
.app-h .s{font-size:13px;color:var(--grey-600);margin-top:10px;line-height:1.5}
.app-photo{margin-top:18px;height:300px;position:relative;overflow:hidden}
.app-photo img{width:100%;height:100%;object-fit:cover;object-position:52% 22%;display:block}
.app-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:72px;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#fff 88%)}
.app-pts{padding:6px 34px 0;display:grid;gap:18px}
.app-pt{display:flex;align-items:center;gap:14px}
.app-pt span.c{width:42px;height:42px;border-radius:50%;background:#f6efe2;border:1px solid #ecdfc7;display:grid;place-items:center;color:#b08a4a;flex:0 0 auto}
.app-pt span.c svg{width:19px;height:19px}
.app-pt b{font-size:13.5px;font-weight:500}
.app-cta{padding:22px 30px 26px}
.app-cta .g{background:#16305a;color:#fff;border-radius:12px;padding:16px 0;text-align:center;font-size:17px;font-weight:600}
.app-cta .a{text-align:center;margin-top:16px;font-size:12.5px;color:var(--grey-600)}
.app-bar{width:130px;height:4px;border-radius:999px;background:var(--navy-700);margin:18px auto 0}

/* footer */
.ftr{background:var(--navy-700);color:#fff}
.ftr-in{padding:48px var(--gutter) 32px;max-width:var(--container);margin:0 auto}
.ftr-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:40px}
.ftr-logo img{height:104px;display:block;margin:-12px 0 0 -6px}
.ftr-tag{margin:0;max-width:34ch;min-width:0;font-size:14px;color:#b7c2d1}
.ftr h5{margin:0 0 16px;font-family:var(--font-sans);font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-300)}
.ftr ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ftr ul a{font-size:14px;color:#b7c2d1;text-decoration:none}
.ftr ul a:hover{color:#fff}
.ftr-bot{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-wrap:wrap;align-items:baseline;column-gap:32px;row-gap:12px}
.ftr-bot p{margin:0;font-size:11px;line-height:1.6;color:#b7c2d1}
.ftr-bot p:first-child{flex:1 1 420px;min-width:0}
.ftr-bot p:last-child{flex:0 0 auto}
.badges{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.badge{display:inline-flex;align-items:center;gap:12px;padding:10px 18px;border-radius:8px;border:1px solid rgba(255,255,255,.35);color:#fff;line-height:1.25}
.badge svg{width:24px;height:24px}
.badge small{display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;opacity:.75}
.badge b{display:block;font-size:16px;font-weight:600}

/* forms */
.form{display:grid;gap:20px}
.field{display:grid;gap:8px}
.field label{font-size:14px;font-weight:600}
.field .req{color:var(--gold-700)}
.field input,.field select,.field textarea{width:100%;font-family:var(--font-sans);font-size:16px;font-weight:500;line-height:1.4;color:var(--navy-700);background:#fff;border:1px solid var(--line-200);border-radius:8px;padding:13px 14px;outline:none;transition:border-color .2s,box-shadow .2s}
.field textarea{resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold-600);box-shadow:0 0 0 3px rgba(185,137,51,.35)}
.field input:disabled,.field select:disabled{background:var(--offwhite-2);opacity:.6;cursor:not-allowed}
.field .help{font-size:13px;color:var(--grey-600)}
.field .err{font-size:13px;color:#9b2c2c;display:none}
.field[data-error=true] input,.field[data-error=true] select,.field[data-error=true] textarea{border-color:#9b2c2c}
.field[data-error=true] .err{display:block}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.45;cursor:pointer}
.check input{width:18px;height:18px;margin-top:2px;accent-color:var(--gold-600);flex:0 0 auto}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:560px){.row2{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ts-slot:empty{display:none}
.form-error{margin:0;padding:12px 16px;border-radius:8px;background:#fdf2f2;border:1px solid #e8c9c9;color:#9b2c2c;font-size:14px}
.success{background:#f1f7f4;border:1px solid #d5e4dc;border-radius:16px;padding:40px;text-align:center}
.success svg{width:32px;height:32px;color:#2f5d4a}
.success h3{font-size:30px;margin:16px 0 8px}
.notice{margin-top:24px;display:flex;gap:12px;align-items:flex-start;background:#fbf7ec;border:1px solid var(--gold-200);border-radius:12px;padding:16px 20px}
.notice p{margin:0;font-size:14px}
.notice svg{width:16px;height:16px;color:var(--gold-700);flex:0 0 auto;margin-top:4px}

/* legal */
.legal{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;align-items:start;max-width:1200px;margin:0 auto;padding:clamp(40px,5vw,72px) var(--gutter)}
.toc{position:sticky;top:calc(var(--header-h) + 20px)}
.toc p{margin:0 0 16px;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-700)}
.toc ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;border-left:1px solid var(--line-100)}
.toc a{display:block;padding:2px 0 2px 16px;font-size:14px;color:var(--grey-600);text-decoration:none}
.toc a:hover{color:var(--gold-700)}
.legal article{max-width:900px}
.legal article h1{margin-bottom:8px}
.legal article h2{font-size:28px;line-height:1.2;margin:48px 0 16px;scroll-margin-top:calc(var(--header-h) + 20px)}
.legal article h3{font-size:17px;font-family:var(--font-sans);font-weight:600;margin:32px 0 12px}
.legal article p,.legal article li{font-size:17px;line-height:1.7;overflow-wrap:anywhere}
.legal article .meta{font-size:14px;color:var(--grey-600);margin-bottom:24px}
.toc-toggle{display:none}
@media(max-width:860px){.legal{grid-template-columns:1fr}.toc{position:static}.toc-toggle{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;cursor:pointer;font-family:var(--font-sans);font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-700)}.toc p{display:none}.toc[data-open=false] ul{display:none}}

/* reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s cubic-bezier(.16,.84,.44,1),transform .6s cubic-bezier(.16,.84,.44,1)}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}

/* Static mock of the clinic portal dashboard, used inside the laptop frame. */
.dashwrap{--dash-s:.3203;width:100%;height:100%;overflow:hidden}
.laptop-lg .dashwrap{--dash-s:.6563}
.laptop-scr .dashwrap{height:100%}
.dash{width:1280px;height:800px;transform:scale(var(--dash-s));transform-origin:top left;background:#faf8f4;display:flex;color:#0e1c30;font-family:var(--font-sans);font-size:13px;line-height:1.5}
.dash-nav{width:226px;background:#fff;border-right:1px solid #e9e4da;padding:16px 12px;flex:0 0 auto}
.dash-logo{height:40px;display:block;margin:2px 8px 18px}
.dash-navi{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:12.5px;color:#5c6472}
.dash-navi.on{background:#f3ece0;color:#0e1c30;font-weight:600}
.dash-navi span{width:16px;height:16px;flex:0 0 auto}
.dash-navi span svg{width:16px;height:16px;display:block}
.dash-main{flex:1;min-width:0;display:flex;flex-direction:column}
.dash-top{background:#fff;border-bottom:1px solid #e9e4da;padding:10px 20px;display:flex;align-items:center;gap:18px;font-size:12.5px}
.dash-search{flex:1;max-width:340px;border:1px solid #e9e4da;border-radius:8px;padding:7px 10px;color:#9aa2ae;font-size:11.5px}
.dash-user{margin-left:auto;display:flex;align-items:center;gap:8px}
.dash-user i{width:28px;height:28px;border-radius:50%;background:#e6dfd2;display:block}
.dash-body{padding:20px;display:grid;gap:14px}
.dash-head{display:flex;justify-content:space-between;align-items:flex-end}
.dash-head h3{font-size:30px;margin:0;line-height:1.1}
.dash-head p{font-size:13px;color:#6b7382;margin:4px 0 0}
.dash-date{text-align:right;font-size:11.5px;color:#6b7382}
.dash-date b{display:block;color:#0e1c30}
.dash-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.dash-card{background:#fff;border:1px solid #e9e4da;border-radius:12px;padding:16px}
.dash-stats .dash-card{display:flex;gap:10px;align-items:flex-start}
.dash-ico{width:20px;height:20px;flex:0 0 auto;margin-top:2px;color:#b08a4a}
.dash-ico svg{width:20px;height:20px;display:block}
.dash-stats small{display:block;font-size:11px;color:#6b7382;line-height:1.3}
.dash-stats b{display:block;font-size:24px;line-height:1.2}
.dash-stats span{display:block;font-size:10.5px;color:#6b7382}
.dash-two{display:grid;grid-template-columns:1fr 1.35fr;gap:12px}
.dash-card h6{margin:0 0 12px;font-size:13.5px;font-weight:600;font-family:var(--font-sans)}
.dash-card h6 em{font-style:normal;font-weight:500;color:#6b7382}
.dash-donut-row{display:flex;gap:20px;align-items:center}
.dash-donut{width:132px;height:132px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;background:conic-gradient(#3f7a55 0 84%,#d9b44a 84% 94%,#d98b3a 94% 98%,#b23b3b 98% 100%)}
.dash-donut span{width:92px;height:92px;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center;font-size:26px;font-weight:700;line-height:1}
.dash-donut small{display:block;font-size:10px;font-weight:500;color:#6b7382;margin-top:4px}
.dash-legend{list-style:none;margin:0;padding:0;display:grid;gap:8px;flex:1;font-size:11.5px}
.dash-legend li{display:flex;align-items:center;gap:8px}
.dash-legend i{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.dash-legend b{margin-left:auto}
.dash-tabs{display:flex;gap:6px;margin-bottom:8px}
.dash-tabs span{font-size:10.5px;padding:4px 9px;border-radius:6px;border:1px solid #e9e4da;color:#6b7382}
.dash-tabs span.on{background:#f3ece0;border-color:#e4d7bf;color:#0e1c30;font-weight:600}
.dash-chart{width:100%;height:104px}
.dash-table{width:100%;border-collapse:collapse;font-size:11.5px}
.dash-table th{text-align:left;font-weight:600;color:#6b7382;padding:7px 8px;border-bottom:1px solid #e9e4da}
.dash-table td{padding:8px;border-bottom:1px solid #e9e4da;color:#6b7382}
.dash-table td b{color:#0e1c30}
.dash-table .tag{font-weight:600;font-size:10.5px;padding:3px 9px;border-radius:999px}
.dash-table .act{color:#b08a4a;font-weight:600}

/* Every device mock is a fixed-pixel composition shown inside a flexible frame. Dividing the
   container's own width by the mock's intrinsic width gives the exact scale at any size, which
   is what the hand-tuned per-instance factors above were approximating -- and getting wrong:
   the clinic-portal mock rendered 840px of dashboard into a 342px frame on a phone and was
   silently cropped to 30%. calc() only yields a <number> when a length is divided by a length,
   so this needs `/ 1280px`, not `/ 1280`, and the whole block is gated on support for it.
   Without support the declarations above stand and behaviour is exactly what it was. */
@supports (transform: scale(calc(100cqw / 1px))) {
  .devices{container-type:inline-size}
  .devices-in{--dev-s:min(1, calc(100cqw / 490px))}
  @media(max-width:760px){.devices-in{--dev-s:1}}
  .dashwrap{container-type:inline-size;--dash-s:calc(100cqw / 1280px)}
  .laptop-lg .dashwrap{--dash-s:calc(100cqw / 1280px)}
  .app{container-type:inline-size;--app-s:calc(100cqw / 390px)}
  .phone-lg .app{--app-s:calc(100cqw / 390px)}
}
