/* Horvans commerce pages (/platform/start/, /platform/centre/, /platform/self-host/, /platform/pricing/, /platform/refund/,
   /platform/terms/, /platform/billing/ (moved notice) and /platform/billing/return/).
   Standard SaaS layout: white surfaces, neutral ink, one dark primary action, cards with soft shadows, sticky top bar.
   Horvans brand: black lowercase wordmark + red full stop #E11D2E.
   Everything is scoped under [data-site="commerce"] (SITE-CONTRACT rule 2). */
@font-face{font-family:"Inter";src:url(/edu/assets/fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}

[data-site="commerce"]{
  --bg:#ffffff;--surface:#fff;--surface-2:#f6f7f9;--surface-3:#eef0f3;--line:#e4e7ec;--line-2:#d0d5dd;
  --ink:#0b0f19;--ink-2:#344054;--muted:#667085;--accent:#0b0f19;--accent-hover:#1d2433;--accent-text:#0b0f19;--accent-wash:#f6f7f9;
  --red:#E11D2E;--ok:#067647;--ok-wash:#ecfdf3;--err:#b42318;--err-wash:#fef3f2;--warn:#b54708;--warn-wash:#fffaeb;
  --f-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--f-head:var(--f-body);
  --g:clamp(16px,2.4vw,32px);--max:1120px;--r:12px;
  --shadow:0 1px 2px rgba(16,24,40,.05);--shadow-lg:0 1px 3px rgba(16,24,40,.06),0 12px 32px -12px rgba(16,24,40,.18);
  background:var(--bg);color:var(--ink);
}
[data-site="commerce"] body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--f-body);-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh}
[data-site="commerce"] main{flex:1 0 auto}
[data-site="commerce"] *,[data-site="commerce"] *::before,[data-site="commerce"] *::after{box-sizing:border-box}
[data-site="commerce"] a{color:var(--ink);text-decoration-color:var(--line-2);text-underline-offset:.2em}
[data-site="commerce"] a:hover{text-decoration-color:var(--ink)}
[data-site="commerce"] :focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
[data-site="commerce"] .skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 12px;border-radius:6px;z-index:50}
[data-site="commerce"] .skip:focus{left:8px}
[data-site="commerce"] .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[data-site="commerce"] code{font:500 .9em/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--surface-2);border:1px solid var(--line);border-radius:4px;padding:1px 5px}

/* top bar */
[data-site="commerce"] #site-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;min-height:64px;padding:0 max(var(--g),calc((100% - var(--max)) / 2 + var(--g)));
  border-bottom:1px solid var(--line);background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.6) blur(10px);backdrop-filter:saturate(1.6) blur(10px)}
[data-site="commerce"] .bar-mark{display:inline-flex;align-items:baseline;text-decoration:none;color:var(--ink);font:900 1.35rem/1 var(--f-body);letter-spacing:-.045em;view-transition-name:site-mark}
[data-site="commerce"] .bar-mark .dot{display:inline-block;width:.3em;height:.3em;border-radius:50%;background:var(--red);margin-left:.05em}
[data-site="commerce"] .bar-sect{color:var(--muted);text-decoration:none;font-size:.9rem;font-weight:500;padding-left:16px;border-left:1px solid var(--line)}
[data-site="commerce"] .bar-sect:hover{color:var(--ink)}
[data-site="commerce"] .bar-nav{margin:0 0 0 auto;display:flex;align-items:center;gap:4px;list-style:none;padding:0;flex-wrap:wrap}
[data-site="commerce"] .bar-nav a{display:block;padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-size:.92rem;font-weight:500}
[data-site="commerce"] .bar-nav a:hover{color:var(--ink);background:var(--surface-2)}
[data-site="commerce"] .bar-nav a[aria-current="page"]{color:var(--ink);background:var(--surface-2)}
[data-site="commerce"] .bar-nav li:last-child a{margin-left:6px;border:1px solid var(--line-2);background:#fff;color:var(--ink)}
[data-site="commerce"] .bar-nav li:last-child a:hover{border-color:var(--ink)}

/* layout */
[data-site="commerce"] .wrap{max-width:var(--max);margin:0 auto;padding:0 var(--g)}
[data-site="commerce"] .hero{padding:clamp(40px,6vw,72px) var(--g) clamp(24px,3vw,40px)}
[data-site="commerce"] .hero.center{text-align:center}
[data-site="commerce"] .hero.center .lede{margin-left:auto;margin-right:auto}
[data-site="commerce"] .kicker{display:inline-block;margin:0 0 14px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-weight:600;font-size:.8rem;letter-spacing:.01em}
[data-site="commerce"] h1{font:800 clamp(2rem,4.4vw,3rem)/1.1 var(--f-head);letter-spacing:-.03em;margin:0 0 14px;view-transition-name:site-title}
[data-site="commerce"] h1 .stop{display:inline-block;width:.2em;height:.2em;border-radius:50%;background:var(--red);margin-left:.04em}
[data-site="commerce"] h2{font:700 clamp(1.2rem,2.2vw,1.45rem)/1.3 var(--f-head);letter-spacing:-.015em;margin:36px 0 10px}
[data-site="commerce"] h3{font:650 1.02rem/1.35 var(--f-head);margin:24px 0 8px}
[data-site="commerce"] .lede{font-size:clamp(1.05rem,1.5vw,1.2rem);line-height:1.6;color:var(--ink-2);max-width:44rem;margin:0}
[data-site="commerce"] .muted{color:var(--muted)}
[data-site="commerce"] .grid2{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:start}
[data-site="commerce"] .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:clamp(20px,2.6vw,32px);box-shadow:var(--shadow)}
[data-site="commerce"] .card>h2:first-child,[data-site="commerce"] .card>.row:first-child h2{margin-top:0}
[data-site="commerce"] .card+.card{margin-top:20px}
[data-site="commerce"] aside.card{position:sticky;top:88px;background:var(--surface-2);box-shadow:none}
[data-site="commerce"] .sec{padding-bottom:clamp(48px,7vw,96px)}
[data-site="commerce"] .note{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:16px 0;color:var(--ink-2);font-size:.95rem}
[data-site="commerce"] .draft{background:var(--warn-wash);border:1px solid #fedf89;border-radius:10px;padding:14px 16px;margin:0 0 28px;color:#7a2e0e;font-size:.95rem}
[data-site="commerce"] .ph{background:#fef0c7;padding:0 .25em;border-radius:3px}

/* pricing */
[data-site="commerce"] .price{margin:12px 0 4px;font:800 clamp(2.4rem,5vw,3rem)/1 var(--f-head);letter-spacing:-.03em}
[data-site="commerce"] .price small{display:inline-block;font:500 .95rem/1.3 var(--f-body);color:var(--muted);letter-spacing:0;margin-left:4px}
[data-site="commerce"] .plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px;margin:8px auto 16px;max-width:880px}
[data-site="commerce"] .plans .card{display:flex;flex-direction:column;margin:0;padding:32px;box-shadow:var(--shadow-lg)}
[data-site="commerce"] .plans .card h2{margin:0;font-size:1.1rem}
[data-site="commerce"] .plans .card .plan-desc{margin:6px 0 0;color:var(--muted);font-size:.95rem}
[data-site="commerce"] .plans .card .btn{width:100%;margin-top:auto}
[data-site="commerce"] .plans .card>p:last-child{margin:28px 0 0;margin-top:auto;padding-top:28px}
[data-site="commerce"] .plans .featured{border:2px solid var(--ink);position:relative}
[data-site="commerce"] .plans .badge{position:absolute;top:-13px;left:32px;background:var(--ink);color:#fff;font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:999px}
[data-site="commerce"] .plans ul,[data-site="commerce"] .ticks{list-style:none;padding:0;margin:24px 0 0;border-top:1px solid var(--line);padding-top:20px}
[data-site="commerce"] .plans li,[data-site="commerce"] .ticks li{position:relative;margin:10px 0;padding-left:28px;color:var(--ink-2)}
[data-site="commerce"] .plans li::before,[data-site="commerce"] .ticks li::before{content:"";position:absolute;left:0;top:.2em;width:18px;height:18px;border-radius:50%;background:var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23067647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
[data-site="commerce"] .center-note{text-align:center;color:var(--muted);font-size:.92rem;margin:12px 0 0}
[data-site="commerce"] .faq{max-width:760px;margin:clamp(48px,7vw,88px) auto 0}
[data-site="commerce"] .faq>h2{text-align:center;margin:0 0 24px;font-size:clamp(1.5rem,2.6vw,1.9rem)}
[data-site="commerce"] .faq details{border-bottom:1px solid var(--line)}
[data-site="commerce"] .faq details:first-of-type{border-top:1px solid var(--line)}
[data-site="commerce"] .faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-weight:600;font-size:1.02rem}
[data-site="commerce"] .faq summary::-webkit-details-marker{display:none}
[data-site="commerce"] .faq summary::after{content:"+";flex:none;font-size:1.4rem;font-weight:400;line-height:1;color:var(--muted)}
[data-site="commerce"] .faq details[open] summary::after{content:"\2212"}
[data-site="commerce"] .faq details>*:not(summary){margin:0 0 16px;color:var(--ink-2)}
[data-site="commerce"] .faq ol{padding-left:1.2em}

/* forms */
[data-site="commerce"] form .fld{margin:0 0 18px}
[data-site="commerce"] label{display:block;font-weight:600;font-size:.9rem;margin:0 0 6px;color:var(--ink-2)}
[data-site="commerce"] .opt{font-weight:400;color:var(--muted)}
[data-site="commerce"] input[type=text],[data-site="commerce"] input[type=tel],[data-site="commerce"] input[type=email],[data-site="commerce"] select{
  width:100%;font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line-2);border-radius:8px;padding:10px 14px;min-height:44px;box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}
[data-site="commerce"] input:focus,[data-site="commerce"] select:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px rgba(11,15,25,.08)}
[data-site="commerce"] input[aria-invalid=true],[data-site="commerce"] select[aria-invalid=true]{border-color:var(--err);background:var(--err-wash)}
[data-site="commerce"] .slugrow{display:flex;align-items:stretch;border:1px solid var(--line-2);border-radius:8px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
[data-site="commerce"] .slugrow:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(11,15,25,.08)}
[data-site="commerce"] .slugrow span{padding:10px 8px 10px 14px;color:var(--muted);white-space:nowrap;font-size:.95rem;align-self:center;background:var(--surface-2);border-right:1px solid var(--line);align-self:stretch;display:flex;align-items:center}
[data-site="commerce"] .slugrow input{border:0;border-radius:0;box-shadow:none}
[data-site="commerce"] .slugrow input:focus{box-shadow:none}
[data-site="commerce"] .hint{font-size:.85rem;color:var(--muted);margin:6px 0 0}
[data-site="commerce"] .hint.ok{color:var(--ok)}
[data-site="commerce"] .err{font-size:.85rem;color:var(--err);margin:6px 0 0}
[data-site="commerce"] .check{display:flex;gap:10px;align-items:flex-start;font-weight:400;color:var(--ink-2)}
[data-site="commerce"] .check input{width:18px;height:18px;margin:3px 0 0;flex:none;accent-color:var(--ink)}
[data-site="commerce"] .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:8px;border:1px solid var(--line-2);
  background:#fff;color:var(--ink);font:600 .95rem/1.2 var(--f-body);text-decoration:none;cursor:pointer;box-shadow:var(--shadow);transition:background-color .15s,border-color .15s}
[data-site="commerce"] .btn:hover{background:var(--surface-2);border-color:var(--ink);color:var(--ink)}
[data-site="commerce"] .btn-pay,[data-site="commerce"] .btn-ink{background:var(--ink);border-color:var(--ink);color:#fff}
[data-site="commerce"] .btn-pay:hover,[data-site="commerce"] .btn-ink:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
[data-site="commerce"] form .btn-pay{width:100%;min-height:48px;font-size:1rem;margin-top:6px}
[data-site="commerce"] .btn[disabled]{opacity:.55;cursor:progress}
[data-site="commerce"] .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
[data-site="commerce"] .msg{border-radius:8px;padding:12px 14px;margin:14px 0;font-size:.95rem}
[data-site="commerce"] .msg.bad{background:var(--err-wash);color:var(--err);border:1px solid #fecdca}
[data-site="commerce"] .msg.good{background:var(--ok-wash);color:var(--ok);border:1px solid #abefc6}
[data-site="commerce"] .sum{width:100%;border-collapse:collapse;margin:16px 0;font-size:.95rem}
[data-site="commerce"] .sum td,[data-site="commerce"] .sum th{padding:10px 0;border-bottom:1px solid var(--line);text-align:left;font-weight:400;color:var(--ink-2)}
[data-site="commerce"] .sum td:last-child{text-align:right;font-variant-numeric:tabular-nums}
[data-site="commerce"] .sum tr.total td,[data-site="commerce"] .sum tr.total th{font-weight:700;color:var(--ink);border-bottom:0}
[data-site="commerce"] .pill{display:inline-block;font-size:.75rem;font-weight:600;padding:2px 10px;border-radius:999px;background:var(--surface-3);color:var(--ink-2);text-transform:capitalize}
[data-site="commerce"] .pill.trial,[data-site="commerce"] .pill.active{background:var(--ok-wash);color:var(--ok)}
[data-site="commerce"] .pill.grace{background:var(--warn-wash);color:var(--warn)}
[data-site="commerce"] .pill.readonly,[data-site="commerce"] .pill.suspended,[data-site="commerce"] .pill.cancelled{background:var(--err-wash);color:var(--err)}
[data-site="commerce"] .tbl{width:100%;border-collapse:collapse;font-size:.92rem}
[data-site="commerce"] .tbl th{padding:10px 12px;background:var(--surface-2);color:var(--muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em;text-align:left;border-bottom:1px solid var(--line)}
[data-site="commerce"] .tbl td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
[data-site="commerce"] .tblwrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
[data-site="commerce"] .tblwrap .tbl tr:last-child td{border-bottom:0}
[data-site="commerce"] .steps{counter-reset:s;list-style:none;padding:0;margin:16px 0}
[data-site="commerce"] .steps li{counter-increment:s;position:relative;padding:0 0 16px 40px;color:var(--ink-2)}
[data-site="commerce"] .steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:#fff;border:1px solid var(--line-2);color:var(--ink);font:700 .8rem/24px var(--f-body);text-align:center}
[data-site="commerce"] .prose{max-width:46rem}
[data-site="commerce"] .prose p,[data-site="commerce"] .prose li{color:var(--ink-2)}
[data-site="commerce"] .prose h2{scroll-margin-top:88px;padding-top:4px}
[data-site="commerce"] .prose li{margin:6px 0}

/* legal pages: sticky contents on the left, text on the right */
[data-site="commerce"] .legal{display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:start}
[data-site="commerce"] .toc{position:sticky;top:88px;font-size:.9rem}
[data-site="commerce"] .toc p{margin:0 0 10px;font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
[data-site="commerce"] .toc ol{list-style:none;padding:0 0 0 12px;margin:0;border-left:1px solid var(--line)}
[data-site="commerce"] .toc li{margin:0}
[data-site="commerce"] .toc a{display:block;padding:5px 0;color:var(--ink-2);text-decoration:none}
[data-site="commerce"] .toc a:hover{color:var(--ink)}
[data-site="commerce"] .meta{display:inline-flex;gap:8px;align-items:center;margin:16px 0 0;font-size:.9rem;color:var(--muted)}

/* footer */
[data-site="commerce"] #site-foot{border-top:1px solid var(--line);background:var(--surface-2);padding:32px var(--g);font-size:.9rem;color:var(--muted)}
[data-site="commerce"] #site-foot .fw{max-width:calc(var(--max) - 2 * var(--g));margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;justify-content:space-between}
[data-site="commerce"] #site-foot ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 24px}
[data-site="commerce"] #site-foot a{color:var(--ink-2);text-decoration:none}
[data-site="commerce"] #site-foot a:hover{color:var(--ink);text-decoration:underline}
[data-site="commerce"] #site-foot p{margin:0}

/* skeleton placeholders while data loads */
[data-site="commerce"] .sk{display:block;border-radius:6px;background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-2) 50%,var(--surface-3) 75%);background-size:200% 100%;animation:sk-shine 1.4s ease-in-out infinite}
[data-site="commerce"] .sk-h{width:40%;height:22px;margin-bottom:16px}
[data-site="commerce"] .sk-line{width:75%;height:12px;margin-bottom:10px}
[data-site="commerce"] .sk-short{width:45%}
[data-site="commerce"] .sk-block{width:100%;height:96px;margin-top:20px;border-radius:10px}
@keyframes sk-shine{from{background-position:100% 0}to{background-position:-100% 0}}

/* ---- 2026-10-17b: three plans (cloud trial, monthly, self-hosted), "Your centre" sign-in, the self-host guide ---- */
[data-site="commerce"] .plans.plans-3{max-width:var(--max);grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
[data-site="commerce"] .price.price-ask{font-size:clamp(1.9rem,4vw,2.3rem)}
[data-site="commerce"] .hero-cta{margin-top:24px}
[data-site="commerce"] .small-note{font-size:.88rem;margin:16px 0 0}
[data-site="commerce"] .centre-list{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:10px}
[data-site="commerce"] .centre-list .btn{width:100%;justify-content:space-between;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:600}
[data-site="commerce"] .prose pre{margin:12px 0 18px;padding:14px 16px;background:var(--ink);color:#e6e8ec;border-radius:10px;overflow-x:auto;font:500 .84rem/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:4}
[data-site="commerce"] .prose pre code{background:none;border:0;padding:0;color:inherit;font:inherit}
[data-site="commerce"] .prose .steps li pre{margin-top:10px}
[data-site="commerce"] .prose .tblwrap{margin:12px 0 18px}
[data-site="commerce"] .prose .tbl td:first-child{white-space:nowrap;font-weight:600;color:var(--ink)}
[data-site="commerce"] .prose .tbl code{white-space:normal;overflow-wrap:anywhere}
[data-site="commerce"] .prose h3{margin-top:20px}
[data-site="commerce"] .prose .draft{margin:12px 0 18px}
[data-site="commerce"] .sh-compare{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 20px;align-items:stretch}
[data-site="commerce"] .sh-compare .card{margin:0;display:flex;flex-direction:column}
[data-site="commerce"] .sh-compare .card h3{margin-top:0}
[data-site="commerce"] .sh-compare .card .ticks{margin-top:12px;padding-top:12px}
[data-site="commerce"] .sh-compare .card>p:last-child{margin:auto 0 0;padding-top:16px}
[data-site="commerce"] .legal .prose{min-width:0}
/* five nav items: on a phone the row scrolls sideways inside the bar instead of widening the page */
@media (max-width:560px){[data-site="commerce"] #site-bar>nav{flex:1 1 100%;min-width:0;max-width:100%}[data-site="commerce"] .bar-nav{scrollbar-width:none}}
@media (max-width:820px){[data-site="commerce"] .sh-compare{grid-template-columns:1fr}[data-site="commerce"] .prose .tbl td:first-child{white-space:normal}}

[data-site="commerce"] [hidden]{display:none!important}
@media (max-width:900px){[data-site="commerce"] .legal{grid-template-columns:1fr}[data-site="commerce"] .toc{position:static;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:16px}}
@media (max-width:820px){[data-site="commerce"] .grid2{grid-template-columns:1fr}[data-site="commerce"] aside.card{position:static}[data-site="commerce"] .bar-sect{display:none}}
@media (max-width:560px){[data-site="commerce"] #site-bar{flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px}[data-site="commerce"] .bar-nav{margin:0;width:100%;overflow-x:auto;flex-wrap:nowrap}[data-site="commerce"] .bar-nav a{white-space:nowrap;padding:6px 10px}[data-site="commerce"] .plans .card{padding:24px}}
@media (prefers-reduced-motion:reduce){[data-site="commerce"] *{transition:none!important;animation:none!important}}
