:root{--teal:#0f3d3e;--teal2:#16595a;--cream:#f6f1e7;--paper:#fffdf8;--amber:#e8a33d;--amber-d:#b97a14;--ink:#14201f;--muted:#5b6b69;--line:#e0d8c8;--ok:#1d7a4a;--bad:#b3261e;--r:12px;--shadow:0 1px 2px rgba(20,32,31,.06),0 8px 24px rgba(20,32,31,.07);--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--cream);line-height:1.5;overflow-x:hidden}
h1,h2,h3{font-family:var(--serif);color:var(--teal);line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(1.7rem,4vw,2.6rem)}h2{font-size:clamp(1.3rem,2.6vw,1.7rem)}h3{font-size:1.1rem}
p{margin:0 0 1em}a{color:var(--teal2)}
img,svg{max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--teal);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:0}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:4px}
.muted{color:var(--muted)}.fineprint{font-size:.85rem;color:var(--muted)}
.page{min-height:100vh;display:flex;flex-direction:column}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 1rem}
.narrow{max-width:640px}
.topbar{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:60px;flex-wrap:wrap;padding:.4rem 0}
.brand{display:flex;align-items:center;gap:.5rem;font-family:var(--serif);font-weight:700;color:var(--teal);text-decoration:none;font-size:1.1rem}
.logo{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}
.logo img{width:28px;height:28px;flex:none}
.logo strong{color:var(--amber-d)}
.lang{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.lang-btn{border:0;background:transparent;padding:.4rem .8rem;min-height:36px;cursor:pointer;font:inherit;font-weight:600;color:var(--muted)}
.lang-btn[aria-pressed=true]{background:var(--teal);color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.55rem 1.1rem;border-radius:10px;border:1px solid var(--teal);background:var(--teal);color:#fff;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s,transform .1s}
.btn:hover{background:var(--teal2)}.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn-ghost{background:transparent;color:var(--teal)}.btn-ghost:hover{background:rgba(15,61,62,.08)}
.btn-small{min-height:36px;padding:.3rem .8rem;font-size:.9rem}
.btn-large{min-height:52px;padding:.7rem 1.6rem;font-size:1.05rem;background:var(--amber);border-color:var(--amber);color:var(--ink)}
.btn-large:hover{background:#f0b25a}
.btn-block{width:100%}
.btn-danger{background:var(--bad);border-color:var(--bad)}.btn-danger:hover{background:#8f1d17}
.btn-danger-ghost{background:transparent;color:var(--bad);border-color:var(--bad)}.btn-danger-ghost:hover{background:rgba(179,38,30,.08)}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1.25rem;box-shadow:var(--shadow);margin-bottom:1rem}
.stack>*+*{margin-top:.8rem}.stack-lg>*+*{margin-top:1.5rem}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.3rem}
.field>label,.field>span.lbl,legend{font-weight:600;font-size:.92rem}
.field.inline{flex-direction:row;align-items:center;gap:.5rem}
input,select,textarea{font:inherit;color:inherit;min-height:44px;padding:.5rem .7rem;border:1px solid #bfb6a3;border-radius:8px;background:#fff;width:100%}
input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0;accent-color:var(--teal)}
.hint{font-size:.82rem;color:var(--muted)}
.field-err{font-size:.85rem;color:var(--bad)}
#rem-preview{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.field.has-error input,.field.has-error select{border-color:var(--bad)}
.state-error,.form-error{background:#fdecea;color:var(--bad);border:1px solid #f1b8b3;border-radius:8px;padding:.6rem .8rem}
.form-error:empty{display:none}
fieldset{border:1px solid var(--line);border-radius:var(--r);padding:.8rem;margin:0}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip,.check{display:inline-flex;align-items:center;gap:.4rem;min-height:40px;padding:.3rem .8rem;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer}
.toasts{position:fixed;right:1rem;bottom:1rem;display:flex;flex-direction:column;gap:.5rem;z-index:200;max-width:calc(100vw - 2rem)}
.toast{background:var(--teal);color:#fff;padding:.7rem 1rem;border-radius:10px;box-shadow:var(--shadow)}
.toast.error{background:var(--bad)}
.loading{display:flex;align-items:center;gap:.6rem;padding:2rem;justify-content:center;color:var(--muted)}
.spin{width:18px;height:18px;border:3px solid var(--line);border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.empty{text-align:center;padding:2rem 1rem;border:2px dashed var(--line);border-radius:var(--r);color:var(--muted)}
.empty h3{margin-bottom:.3rem}
.badge{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.78rem;font-weight:700;background:#e9e4d6;color:var(--ink)}
.badge-confirmed{background:#d9efe2;color:var(--ok)}.badge-cancelled{background:#f6dcd9;color:var(--bad)}
.badge-completed{background:#dde8f5;color:#1f4e8c}.badge-no_show{background:#fbe9c8;color:var(--amber-d)}
.badge-rem-pending{background:#dde8f5;color:#1f4e8c}.badge-rem-sent{background:#d9efe2;color:var(--ok)}
.badge-rem-failed,.badge-rem-cancelled{background:#f6dcd9;color:var(--bad)}.badge-rem-blocked_no_provider{background:#fbe9c8;color:var(--amber-d)}
dialog,.dialog{border:0;border-radius:16px;padding:0;max-width:min(560px,calc(100vw - 1.5rem));width:100%;box-shadow:0 20px 60px rgba(0,0,0,.3);background:var(--paper);color:var(--ink)}
dialog::backdrop{background:rgba(15,40,40,.55)}
.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
.dialog-head h2{margin:0;font-size:1.25rem}
.dialog-body{padding:1.25rem;max-height:75vh;overflow:auto}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:.5rem}
.slot{min-height:44px;border:1px solid var(--teal);background:#fff;color:var(--teal);border-radius:8px;font:inherit;font-weight:600;cursor:pointer}
.slot:hover{background:rgba(15,61,62,.08)}.slot[aria-pressed=true],.slot.selected{background:var(--teal);color:#fff}
.datechips{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.4rem}
.datechip{flex:0 0 auto;min-width:64px;min-height:56px;border:1px solid var(--line);background:#fff;border-radius:10px;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.3rem .5rem}
.datechip[aria-pressed=true],.datechip.selected{background:var(--teal);color:#fff;border-color:var(--teal)}
.cards-radio{display:grid;gap:.6rem}
.choice{display:flex;gap:.7rem;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:.8rem;background:#fff;cursor:pointer}
.choice:has(input:checked){border-color:var(--teal);box-shadow:0 0 0 2px var(--teal) inset}
.choice-body{display:flex;flex-direction:column}
.detail{display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1rem;margin:0}
.detail dt{color:var(--muted)}.detail dd{margin:0;font-weight:600}
.subpanel{background:#f3eee2;border-radius:10px;padding:1rem}
.step-card{border-left:4px solid var(--amber)}
.auth-card{max-width:440px;margin:2rem auto}
.book-head{text-align:center;padding:1.5rem 0}
.summary{background:#f3eee2;padding:.8rem;border-radius:10px}
.code{font-family:ui-monospace,Consolas,monospace;background:#efe9da;padding:.1rem .4rem;border-radius:4px}
.demo-banner,.notice{background:#fbe9c8;border:1px solid #efce8a;border-radius:10px;padding:.6rem .9rem;margin-bottom:1rem}
.ok-note{background:#d9efe2;color:#14522f;border-radius:10px;padding:.6rem .9rem}
/* marketing */
.hero{background:linear-gradient(160deg,var(--teal),#0b2b2c);color:#fff;padding:3rem 0}
.hero h1{color:#fff}
.hero-in{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:700;color:var(--amber)}
.lead{font-size:1.1rem;opacity:.92}
.hero-copy .btn-ghost{color:#fff;border-color:rgba(255,255,255,.6)}
.hero-copy .btn-ghost:hover{background:rgba(255,255,255,.12)}
.hero-copy .row-between{justify-content:flex-start}
.mock{background:var(--paper);color:var(--ink);border-radius:16px;padding:1rem;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.mock-row{display:flex;gap:.6rem;align-items:center;padding:.5rem;border-radius:8px;margin-bottom:.4rem;background:#f3eee2}
.mock-label{font-size:.7rem;color:var(--muted)}
.section{padding:2.5rem 0}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;list-style:none;padding:0;counter-reset:s}
.step{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1rem}
.step-n{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--amber);font-weight:700;margin-bottom:.5rem}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.feature{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1.1rem}
.footer{margin-top:auto;padding:1.5rem 0;text-align:center;color:var(--muted);font-size:.9rem}
/* admin */
.adminnav{flex:1;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-top:.75rem}
.adminnav ul{display:flex;gap:.25rem;overflow-x:auto;padding:.3rem;margin:0;list-style:none;scrollbar-width:thin}
.adminnav li{flex:0 0 auto}
.navlink{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;padding:.3rem .9rem;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:600}
.navlink:hover{background:rgba(15,61,62,.08)}
.navlink[aria-current=page]{background:var(--teal);color:#fff}
.subnav{display:flex;gap:.5rem;flex-wrap:wrap}
.admin-main{padding-top:1.25rem;padding-bottom:3rem;flex:1}
.pagehead{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.pagehead h1{margin:0;font-size:1.6rem}
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.seggroup{display:inline-flex;border:1px solid var(--teal);border-radius:10px;overflow:hidden}
.seg{border:0;background:#fff;min-height:40px;padding:.3rem .9rem;font:inherit;font-weight:600;cursor:pointer;color:var(--teal)}
.seg[aria-pressed=true]{background:var(--teal);color:#fff}
.calwrap{overflow-x:auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--r)}
.cal{display:flex;min-width:680px}
.cal.cal-single{min-width:0}
.cal-axiscol{flex:0 0 52px}
.cal-daycol{flex:1 1 0;min-width:0}
.agenda{list-style:none;padding:0;margin:0}
.bars li{display:grid;grid-template-columns:minmax(80px,1fr) 2fr 2rem;gap:.6rem;align-items:center}
.bars,.agenda-days,.cards-list{list-style:none;padding:0;margin:0}
.cal-axis{position:relative;border-right:1px solid var(--line);font-size:.75rem;color:var(--muted)}
.cal-axis span{position:absolute;right:.4rem;transform:translateY(-50%)}
.cal-col{position:relative;border-right:1px solid var(--line);border-left:1px solid var(--line)}
.cal-col.today{background:rgba(232,163,61,.07)}
.cal-dayhead{position:sticky;top:0;background:var(--paper);text-align:center;font-weight:700;padding:.4rem;border-bottom:1px solid var(--line);z-index:2;min-height:2.4rem;line-height:1.6}
.cal-appt>*{display:block}
.cal-dayhead.today{color:var(--amber-d)}
.cal-line{position:absolute;left:0;right:0;border-top:1px solid #efe9da}
.cal-appt{position:absolute;left:3px;right:3px;border-radius:8px;padding:.25rem .4rem;font-size:.78rem;overflow:hidden;border:0;text-align:left;cursor:pointer;background:#d9efe2;color:#14522f;border-left:4px solid var(--ok);font-family:inherit}
.cal-appt.st-cancelled{background:#f6dcd9;color:var(--bad);border-left-color:var(--bad);text-decoration:line-through}
.cal-appt.st-completed{background:#dde8f5;color:#1f4e8c;border-left-color:#1f4e8c}
.cal-appt.st-no_show{background:#fbe9c8;color:var(--amber-d);border-left-color:var(--amber)}
.cal-appt.flat{position:static;display:block;width:100%;margin-bottom:.4rem}
.agenda{display:grid;gap:1rem}
.agenda-days{display:grid;gap:1rem}
.agenda-item{display:flex;gap:.7rem;align-items:center;padding:.6rem;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;width:100%;text-align:left;font:inherit}
.cards-list{display:grid;gap:.7rem;list-style:none;padding:0;margin:0}
.item{display:flex;justify-content:space-between;gap:.8rem;align-items:center;flex-wrap:wrap;background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:.9rem}
.item-main{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.tags{display:flex;gap:.3rem;flex-wrap:wrap}.tag{background:#efe9da;border-radius:6px;padding:.1rem .5rem;font-size:.8rem}
.tablewrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;background:var(--paper)}
.table th,.table td{text-align:left;padding:.65rem .7rem;border-bottom:1px solid var(--line)}
.table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;margin-bottom:1rem}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1rem}
.stat-value{font-family:var(--serif);font-size:2rem;color:var(--teal);font-weight:700}
.bars{display:grid;gap:.5rem}
.bar-row,.bar{display:grid;grid-template-columns:minmax(80px,1fr) 2fr 2rem;gap:.6rem;align-items:center}
.bar-track{background:#efe9da;border-radius:999px;height:10px;overflow:hidden;display:block}
.bar-fill{display:block;height:100%;background:var(--amber);border-radius:999px}
.bar-n{text-align:right;font-weight:700}
.linkcard{border-color:var(--amber)}
.linkrow{display:flex;gap:.5rem;flex-wrap:wrap}
.linkbox{flex:1;min-width:200px;font-family:ui-monospace,Consolas,monospace}
.setup,.checklist{list-style:none;padding:0;margin:0;display:grid;gap:.4rem}
.checklist li{display:flex;gap:.5rem;align-items:center}
.sch-row{display:grid;grid-template-columns:110px repeat(4,1fr);gap:.5rem;align-items:center;padding:.4rem 0;border-bottom:1px solid var(--line)}
.plainlist{list-style:none;padding:0;margin:0}.rows>*{padding:.5rem 0;border-bottom:1px solid var(--line)}
@media(max-width:860px){.hero-in,.two-col{grid-template-columns:1fr}.sch-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){
  .row-2{grid-template-columns:1fr}
  .table thead{display:none}
  .table,.table tbody,.table tr,.table td{display:block;width:100%}
  .table tr{border:1px solid var(--line);border-radius:10px;margin-bottom:.6rem;padding:.4rem}
  .table td{border:0;display:flex;justify-content:space-between;gap:1rem;padding:.3rem .5rem}
  .table td::before{content:attr(data-label);color:var(--muted);font-weight:600}
  .detail{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
