/*!
 * Midar (مدار) - School Management Platform
 * Copyright (c) 2026 Midar. All rights reserved.
 * Proprietary and confidential. Unauthorized copying or distribution is prohibited.
 */
.st, dialog.st-dlg { --ink: #16244A; --acc: #0B7A75; --acc2: #F0A53A; --soft: #F4F7FA; --line: #E4E9F0; --muted: #5A6478; }
.st { background: #fff; color: var(--ink); overflow-x: clip; }
.st a { color: inherit; }
.st .in { max-width: 1120px; margin: 0 auto; }

.st-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.st-nav .in { padding: 10px 20px; display: flex; align-items: center; gap: 28px; }
.st-nav .brand { display: flex; align-items: center; flex: none; }
.st-nav .brand img, .st-nav .brand svg { height: 32px; }
.st-nav .links { display: flex; gap: 26px; flex: 1; font-size: 15px; }
.st-nav .links a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .15s; }
.st-nav .links a:hover { color: var(--acc); }
.st-nav .install-ic { margin-inline-start: auto; }

.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s; }
.st-btn:active { transform: scale(.98); }
.st-btn.pri { background: var(--acc); color: #fff; } .st-btn.pri:hover { background: #096862; }
.st-btn.gold { background: var(--acc2); color: #1E1503; } .st-btn.gold:hover { background: #F0A53A; }
.st-btn.out { border-color: #CBD3DF; background: #fff; color: var(--ink); } .st-btn.out:hover { border-color: var(--ink); }
.st-btn.ghost { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; } .st-btn.ghost:hover { background: rgba(255,255,255,.1); }
.st-btn.wide { width: 100%; }

.st-hero { color: #fff; padding: 88px 20px 96px; text-align: center;
  background: linear-gradient(160deg, #16244A 0%, #132C4C 60%, #0F3F45 100%); }
.st-hero .txt { max-width: 720px; margin: 0 auto; }
.st-hero h1 { text-wrap: balance; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.3; margin: 0 0 16px; letter-spacing: -.3px; }
.st-hero .lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: #D5DEEC; margin: 0 auto 32px; max-width: 600px; }
.st-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.st-hero .note { margin: 18px 0 0; font-size: 14px; color: #A9B8CF; }

.st-sec { padding: 84px 20px; }
.st-sec.soft { background: var(--soft); }
.st-sec h2 { text-wrap: balance; text-align: center; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; margin: 0 0 10px; }
.st-sec .sub-h { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 560px; line-height: 1.8; font-size: 16px; }

.st-cat + .st-cat { margin-top: 34px; }
.st-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; color: var(--ink); }
.st-cat h3 .ic { width: 34px; height: 34px; border-radius: 10px; background: #E6F4F3; color: var(--acc); display: grid; place-items: center; flex: none; }
.st-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.st-feat:hover { border-color: #BFD9D7; }
.st-feat b { display: block; font-size: 15px; margin-bottom: 4px; }
.st-feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.st-demo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-demo-card { font: inherit; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: center; cursor: pointer; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.st-demo-card:hover { border-color: var(--acc); box-shadow: 0 12px 28px rgba(11,122,117,.12); transform: translateY(-2px); }
.st-demo-card .ic { width: 42px; height: 42px; border-radius: 12px; background: #E6F4F3; color: var(--acc); display: grid; place-items: center; }
.st-demo-card b { font-size: 17px; }
.st-demo-card small { grid-column: 1 / -1; color: var(--muted); line-height: 1.8; font-size: 14px; }
.st-demo-card.busy { opacity: .6; cursor: progress; }

.st-toggle { display: flex; justify-content: center; margin: -14px 0 34px; }
.st-toggle .box { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.st-toggle button { font: inherit; border: 0; background: none; padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.st-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22,36,74,.12); }
.st-toggle .save { font-size: 12px; color: var(--acc); font-weight: 700; margin-inline-start: 6px; }
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.st-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 22px; display: flex; flex-direction: column; }
.st-plan.hi { border: 2px solid var(--acc); box-shadow: 0 20px 44px rgba(11,122,117,.14); }
.st-plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.st-plan .promo { background: #FFF4E0; color: #9A5B00; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.st-plan h3 { margin: 0; font-size: 20px; }
.st-plan .tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.st-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.st-price .n { font-size: 40px; font-weight: 800; line-height: 1.1; }
.st-price .u { color: var(--muted); font-size: 14px; }
.st-price del { color: #9AA3B2; font-size: 16px; }
.st-price .off { background: #E6F4F2; color: var(--acc); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.st-plan .contact { font-size: 22px; font-weight: 800; margin-top: 16px; }
.st-plan .fee { font-size: 13px; color: var(--muted); margin-top: 4px; }
.st-plan .lim { font-size: 14px; color: #3B4658; margin-top: 14px; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.st-plan .inc { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }
.st-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; }
.st-plan li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.st-plan li svg { color: var(--acc); flex: none; margin-top: 3px; }
.st-plan li.more button { font: inherit; background: none; border: 0; padding: 0; color: var(--acc); font-weight: 700; cursor: pointer; }
.st-plan .same { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.st-plan .acts { display: grid; gap: 4px; margin-top: auto; }
.st-plan .try { font: inherit; font-size: 14px; background: none; border: 0; color: var(--acc); font-weight: 700; cursor: pointer; padding: 8px; }

.st-end { max-width: 1120px; margin: 0 auto; border-radius: 26px; padding: 44px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(46,196,182,.25), transparent 70%), linear-gradient(135deg, #16244A, #0E3B4A); }
.st-end h2 { text-align: start; color: #fff; }
.st-end .txt p { color: #C9D4E5; line-height: 1.9; margin: 0 0 24px; }
.st-end .ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-end .way { font: inherit; text-align: start; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .15s; min-width: 0; }
.st-end .way:hover { background: rgba(255,255,255,.14); }
.st-end .way svg { flex: none; color: #7FD6CF; }
.st-end .way span { min-width: 0; } .st-end .way b { display: block; font-size: 15px; }
.st-end .way small { display: block; color: #B7C4D8; font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st .in.narrow { max-width: 780px; }
.st-faq { display: grid; gap: 10px; margin-top: 26px; }
.st-faq details, .seo .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.st-faq summary, .seo .faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::-webkit-details-marker, .seo .faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after, .seo .faq summary::after { content: "+"; color: var(--acc); font-size: 20px; line-height: 1; flex: none; }
.st-faq details[open] summary::after, .seo .faq details[open] summary::after { content: "−"; }
.st-faq p, .seo .faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.9; }

.st-foot { border-top: 1px solid var(--line); padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.st-foot .in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.st-foot .in > :first-child { height: 28px; }
.st-foot .legal { display: flex; gap: 8px 20px; flex: 1; flex-wrap: wrap; }
.st-foot .legal a { text-decoration: none; } .st-foot .legal a:hover { color: var(--acc); }

.st-form .row { display: flex; gap: 10px; } .st-form .row > * { flex: 1; min-width: 0; }
.st-form label.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 10px; cursor: pointer; }
.st-form label.chk input { width: 18px; height: 18px; flex: none; }
.st-form .addons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-bottom: 8px; }
.st-consent { font-size: 13px; color: var(--muted); margin: 2px 0 10px; line-height: 1.8; }
.st-consent a { color: var(--acc); }
dialog.st-dlg { width: min(560px, 96vw); }
dialog.st-dlg .d-in > .row.spaced:last-child .st-btn.wide { width: auto; flex: 1; }
.st-dlg-note { display: flex; align-items: center; gap: 8px; color: #9A5B00; background: #FFF4E0; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.st-ok { text-align: center; padding: 10px; } .st-ok svg { color: var(--acc); }

.blank-legal { display: flex; justify-content: center; gap: 18px; font-size: 14px; margin: 8px 0; }
.blank-legal a { color: #5A6478; text-decoration: none; }

@media (max-width: 1000px) {
  .st-feats { grid-template-columns: repeat(2, 1fr); }
  .st-demo { grid-template-columns: repeat(2, 1fr); }
  .st-end { grid-template-columns: 1fr; text-align: center; } .st-end h2 { text-align: center; }
}
@media (max-width: 760px) { .st-nav .links { display: none; } }
@media (max-width: 560px) {
  .st-nav .in { padding: 8px 16px; }
  .st-hero { padding: 52px 16px 60px; }
  .st-hero .cta .st-btn { flex: 1 1 100%; }
  .st-sec { padding: 56px 16px; }
  .st-sec .sub-h { margin-bottom: 28px; font-size: 15px; }
  .st-feats { grid-template-columns: 1fr; gap: 10px; }
  .st-feat { padding: 14px 16px; }
  .st-demo { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-demo-card { padding: 14px; grid-template-columns: 1fr; justify-items: start; }
  .st-demo-card small { display: none; }
  .st-plans { grid-template-columns: 1fr; }
  .st-end { padding: 30px 18px; border-radius: 20px; }
  .st-end .ways { gap: 10px; }
  .st-end .way { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .st-end .st-btn { width: 100%; }
  .st-form .row { flex-direction: column; gap: 0; }
  .st-form .addons { grid-template-columns: 1fr; }
  .st-foot .in { flex-direction: column; text-align: center; gap: 12px; } .st-foot .legal { justify-content: center; }
}

.st.ln { background: transparent; }
.ln { max-width: 460px; margin: 0 auto; padding: calc(36px + env(safe-area-inset-top)) 18px 40px; display: grid; gap: 22px; color: #16244A; }
.ln .ln-logo { height: 120px; justify-self: center; }
.ln h2 { font-size: 17px; margin: 0 0 10px; }
.ln-list { display: grid; gap: 8px; }
.ln-item { display: flex; align-items: center; gap: 6px; }
.ln-school { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #E4E9F0; border-radius: 16px;
  text-decoration: none; color: inherit; min-width: 0; }
.ln-school:hover { border-color: #0B7A75; }
.ln-ava { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #E3F1F0; color: #0B7A75; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.ln-txt { flex: 1; min-width: 0; display: grid; } .ln-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-txt small { color: #5A6478; font-size: 13px; }
.ln-x { border: 0; background: none; color: #8A93A3; padding: 8px; border-radius: 10px; cursor: pointer; }
.ln-enter { background: #fff; border: 1px solid #E4E9F0; border-radius: 18px; padding: 18px; }
.ln-enter p { margin: 0 0 12px; color: #5A6478; font-size: 14px; }
.ln-row { display: flex; gap: 8px; } .ln-row input { flex: 1; min-width: 0; font-size: 16px; }
.ln-row .st-btn { min-height: 46px; padding: 0 20px; }
.ln-msg { color: #B8412F !important; margin: 8px 0 0 !important; } .ln-msg:empty { display: none; }
.ln-about { text-align: center; color: #5A6478; font-size: 14px; margin: 0; } .ln-about a { color: #0B7A75; text-decoration: none; }

/* Home v2 */
.st-nav .links .lnk, .trust-links .lnk { font: inherit; background: none; border: 0; padding: 6px 0; color: var(--muted); cursor: pointer; }
.st-nav .links .lnk:hover { color: var(--acc); }
.st .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--acc2); margin-bottom: 10px; }
.st-hero.v2 { text-align: start; padding: 72px 20px 80px; }
.st-hero.v2 .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.st-hero.v2 .txt { margin: 0; max-width: none; }
.st-hero.v2 .lead { margin: 0 0 28px; max-width: none; }
.st-hero.v2 .cta { justify-content: flex-start; }
.hero-shot { position: relative; padding-bottom: 28px; }
.hero-shot .desk { width: 100%; height: auto; display: block; border-radius: 14px; border: 6px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-shot .phone { position: absolute; inset-inline-start: -18px; bottom: 0; width: 26%; height: auto; border-radius: 22px; border: 5px solid #0E1A33; box-shadow: 0 20px 40px rgba(0,0,0,.4); background: #fff; }
.st-sec.tight { padding: 44px 20px; }
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aud-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.aud-card .ic, .kf-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #E6F4F3; color: var(--acc); margin-bottom: 12px; }
.aud-card b { font-size: 17px; }
.aud-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.kf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kf-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.kf-card:hover { border-color: #BFD9D7; box-shadow: 0 10px 24px rgba(22,36,74,.06); }
.kf-card h3 { margin: 0 0 6px; font-size: 17px; }
.kf-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.st-catalog { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; background: #fff; }
.st-catalog > summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--acc); }
.st-catalog[open] > summary { margin-bottom: 14px; }
.steps-v { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.steps-v li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps-v .n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps-v b { font-size: 15.5px; }
.steps-v p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.st-plan .aud { color: #3B4658; font-size: 14px; line-height: 1.8; margin: 10px 0 0; }
.st-price.fy { flex-direction: column; align-items: flex-start; gap: 4px; }
.st-price.fy .row1, .st-price.fy .row2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-price.fy small { color: var(--muted); font-size: 13px; }
.plan-facts { margin-top: 16px !important; }
.plan-facts li { font-size: 14.5px; }
.plans-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px auto 0; max-width: 720px; line-height: 1.8; }
.plans-note a { color: var(--acc); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rv-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rv-stars { color: var(--acc2); letter-spacing: 2px; } .rv-stars span { color: #DDE3EA; }
.rv-card blockquote { margin: 0; line-height: 1.9; font-size: 15px; }
.rv-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.rv-card figcaption img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.rv-card figcaption span { display: flex; flex-direction: column; } .rv-card figcaption small { color: var(--muted); }
.rv-invite { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px dashed #C9D3DF; border-radius: 18px; padding: 24px; }
.rv-invite p { color: var(--muted); line-height: 1.9; margin: 0 0 14px; }
.trial-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 36px; border-radius: 24px;
  background: linear-gradient(150deg, #16244A, #0F3F45); color: #fff; }
.trial-box h2 { text-align: start; color: #fff; }
.trial-box p { color: #D5DEEC; line-height: 1.9; }
.st .eyebrow.light { color: var(--acc2); }
.trial-cols { display: grid; gap: 14px; }
.trial-cols > div { background: rgba(255,255,255,.07); border-radius: 16px; padding: 16px 18px; }
.trial-cols ul { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; color: #D5DEEC; font-size: 14.5px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.trust-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; }
.trust-card h3 svg { color: var(--acc); }
.trust-card p, .trust-card li { color: #3B4658; line-height: 1.85; font-size: 14.5px; }
.trust-card ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.trust-card .sub { color: var(--muted); font-size: 13.5px; }
.trust-links { display: grid; gap: 8px; }
.trust-links a, .trust-links .lnk { color: var(--acc); text-decoration: none; font-weight: 600; text-align: start; padding: 0; }
.st-form fieldset.fs { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 4px; margin: 0 0 14px; }
.st-form legend { font-weight: 700; font-size: 15px; padding: 0 6px; color: var(--ink); }
.req-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.full-name { font-size: 13.5px; color: var(--muted); margin: -4px 0 10px; }
.st-form input.bad, .st-form select.bad { border-color: #B8412F; box-shadow: 0 0 0 3px #F8E7E4; }
.req-no { display: inline-flex; align-items: center; gap: 10px; background: #F1F9F8; border: 1px solid #CFE7E5; border-radius: 12px; padding: 8px 14px; margin: 6px 0; }
.req-no span { color: var(--muted); font-size: 13px; } .req-no b { font-size: 22px; color: var(--acc); }
.req-status { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.req-status.ok { border-color: #CFE7E5; background: #F1F9F8; } .req-status.warn { border-color: #F2D5A9; background: #FFF8EC; } .req-status.err { border-color: #F3C9C1; background: #FDF3F1; }
.req-status p { margin: 0; font-weight: 600; }
.req-status small { color: var(--muted); }
@media (max-width: 980px) {
  .st-hero.v2 .in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st-hero.v2 { text-align: center; }
  .st-hero.v2 .cta { justify-content: center; }
  .hero-shot { max-width: 620px; margin: 0 auto; width: 100%; }
  .kf-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-v { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .steps-v li { flex-direction: row; align-items: flex-start; }
  .steps-v .n { flex: none; }
  .trial-box { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 640px) {
  .aud-grid, .kf-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shot .phone { width: 30%; inset-inline-start: -6px; }
  .st-sec { padding: 56px 16px; }
}
.st-form select, .st-form input, .st-form textarea { width: 100%; }

/* Registration: one stepped form with a single field system */
dialog.rg-dlg { --ink: #16244A; --acc: #0B7A75; --acc2: #F0A53A; --soft: #F4F7FA; --line: #E2E8F0; --muted: #5A6478;
  width: min(880px, 100vw); max-width: 100vw; height: min(92vh, 960px); max-height: 100dvh; padding: 0; border: 0; border-radius: 22px;
  background: var(--soft); color: var(--ink); display: none; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(10, 20, 45, .35); }
dialog.rg-dlg[open] { display: flex; }
dialog.rg-dlg::backdrop { background: rgba(12, 22, 44, .55); backdrop-filter: blur(4px); }
.rg-head { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 28px 0; flex: none; }
.rg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rg-top h2 { margin: 0; font-size: 22px; letter-spacing: -.2px; }
.rg-top p { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; color: #8A5A0B; }
.rg-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.rg-x:hover { color: var(--ink); border-color: #C9D2DE; }
.rg-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; padding: 0; counter-reset: s; }
.rg-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 3px solid transparent; min-width: 0; }
.rg-steps li .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); font-size: 13px; }
.rg-steps li .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-steps li.on { color: var(--ink); border-bottom-color: var(--acc); }
.rg-steps li.on .n { background: var(--acc); border-color: var(--acc); color: #fff; }
.rg-steps li.done { color: var(--acc); }
.rg-steps li.done .n { background: #E3F1F0; border-color: #E3F1F0; color: var(--acc); }
.rg-body { flex: 1; overflow-y: auto; padding: 24px 28px; overscroll-behavior: contain; }
.rg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.rg-card-h { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.rg-card-h .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #E3F1F0; color: var(--acc); }
.rg-card-h h3 { margin: 0; font-size: 18px; }
.rg-card-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.rg-group { padding: 18px 0 4px; }
.rg-group + .rg-group { border-top: 1px dashed var(--line); }
.rg-group h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--acc); letter-spacing: .2px; }
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.rg-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.rg-f.wide, .rg-grid > .wide { grid-column: 1 / -1; }
.rg-l { font-size: 14px; font-weight: 600; color: #2C3A55; }
.rg-l i { color: #B8412F; font-style: normal; } .rg-l em { color: #8A94A6; font-style: normal; font-weight: 400; font-size: 12.5px; }
.rg-in { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  border: 1.5px solid #D6DDE7; border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.rg-in { padding-inline-end: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6478' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; }
textarea.rg-in { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.rg-in::placeholder { color: #A3ADBD; }
.rg-in:hover { border-color: #BCC7D6; }
.rg-in:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(11, 122, 117, .12); }
.rg-in.ltr { direction: ltr; text-align: right; }
.rg-hint { font-size: 12.5px; color: var(--muted); }
.rg-err { font-size: 12.5px; color: #B8412F; min-height: 0; }
.rg-err:empty { display: none; }
.rg-f.bad .rg-in { border-color: #B8412F; box-shadow: 0 0 0 4px #F8E7E4; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D6DDE7; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: #3B4658; cursor: pointer; transition: all .15s; }
.rg-chip svg { display: none; }
.rg-chip[aria-pressed="true"] { border-color: var(--acc); background: #E3F1F0; color: var(--acc); }
.rg-chip[aria-pressed="true"] svg { display: block; }
.rg-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rg-plan { display: flex; align-items: center; gap: 12px; text-align: start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #D6DDE7; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.rg-plan .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #BCC7D6; }
.rg-plan b { display: block; font-size: 15px; } .rg-plan small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.rg-plan[aria-pressed="true"] { border-color: var(--acc); background: #F3FAF9; }
.rg-plan[aria-pressed="true"] .dot { border: 6px solid var(--acc); }
.rg-sum { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 16px 18px; background: var(--soft); border-radius: 14px; font-size: 14.5px; }
.rg-sum dt { color: var(--muted); } .rg-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rg-sum dd.ltr { direction: ltr; text-align: right; }
.rg-consent { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.rg-consent a { color: var(--acc); }
.rg-foot { flex: none; display: flex; align-items: center; gap: 16px; background: #fff; border-top: 1px solid var(--line); padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); }
.rg-msg { flex: 1; min-width: 0; font-size: 14px; color: #B8412F; font-weight: 600; }
.rg-acts { display: flex; gap: 10px; margin-inline-start: auto; }
.rg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; height: 50px; padding: 0 26px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.rg-btn.pri { background: var(--acc); color: #fff; } .rg-btn.pri:hover { background: #096862; }
.rg-btn.gold { background: var(--acc2); color: #1E1503; } .rg-btn.gold:hover { background: #F0A53A; }
.rg-btn.ghost { background: #fff; border-color: #D6DDE7; color: var(--ink); } .rg-btn.ghost:hover { border-color: var(--ink); }
.rg-btn:disabled { opacity: .6; cursor: progress; }
.rg-done { text-align: center; padding: 48px 24px; max-width: 520px; margin: 0 auto; }
.rg-done .big { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #E3F1F0; color: var(--acc); }
.rg-done h3 { font-size: 24px; margin: 16px 0 12px; }
.rg-done .muted { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.rg-done .rg-btn { margin-top: 18px; }
.rg-no { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: var(--soft); border: 1px dashed #C9D2DE; }
.rg-no span { color: var(--muted); font-size: 14px; } .rg-no b { font-size: 22px; letter-spacing: .5px; color: var(--ink); }
@media (max-width: 640px) {
  dialog.rg-dlg { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .rg-head { padding: calc(14px + env(safe-area-inset-top)) 16px 0; }
  .rg-top h2 { font-size: 19px; }
  .rg-steps li { flex-direction: column; gap: 6px; font-size: 12px; text-align: center; padding: 10px 2px 12px; }
  .rg-steps li .t { white-space: normal; }
  .rg-body { padding: 14px 12px; }
  .rg-card { padding: 18px 16px; border-radius: 16px; }
  .rg-grid, .rg-plans { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rg-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 8px; }
  .rg-msg:empty { display: none; }
  .rg-acts { margin: 0; } .rg-acts .rg-btn { flex: 1; min-width: 0; }
  .rg-sum { grid-template-columns: minmax(0, 1fr); gap: 2px; } .rg-sum dd { margin-bottom: 8px; }
}

/* Home polish */
.st-hero.v2 { position: relative; overflow: hidden; isolation: isolate; }
.st-hero.v2::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 320px at 85% 10%, rgba(11, 122, 117, .35), transparent 70%), radial-gradient(520px 300px at 10% 90%, rgba(232, 163, 61, .14), transparent 70%);
}
.st-hero.v2::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0 0; padding: 0; font-size: 14px; color: #C9D5E6; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-ticks svg { color: #7FD6CF; flex: none; }
.st .sec-eb { display: block; width: fit-content; margin: 0 auto 12px; padding: 5px 14px; border-radius: 999px; background: #E3F1F0; color: var(--acc); font-size: 13px; font-weight: 700; }
.kf-card, .aud-card, .st-plan, .trust-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.kf-card:hover, .aud-card:hover, .trust-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22, 36, 74, .08); border-color: #D3DCE7; }
@media (max-width: 1000px) { .hero-ticks { justify-content: center; } }
@media (max-width: 560px) {
  .hero-ticks { gap: 8px 14px; font-size: 13px; }
}

/* Reviews: date, service and the customer badge; certifications that can be verified */
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.rv-badge { background: #ecf8f1; color: #17663a; border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.rv-report { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ac-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ac-card h3 { margin: 0; font-size: 17px; } .ac-issuer { margin: 0; color: var(--acc); font-weight: 600; }
.ac-card p { margin: 0; line-height: 1.8; }
.ac-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0; font-size: 14px; }
.ac-card dt { color: var(--muted); } .ac-card dd { margin: 0; }
.ac-card .st-btn { align-self: flex-start; margin-top: auto; }
.rv-report { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.rv-report:hover { color: var(--acc); }
.ac-card .st-btn { padding: 8px 14px; font-size: 14px; }

/* Internal trust badges strip (home and plans) */
.tb-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 22px; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #e7f4f3; color: #0B5F5B; border: 1px solid #9FCFCB; font-size: 14px; font-weight: 600; text-decoration: none; }
.tb-chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #0B7A75; color: #fff; display: grid; place-items: center; font-size: 11px; }
.tb-more { font-weight: 700; color: var(--acc, #0B7A75); text-decoration: none; font-size: 14px; }
.tb-note { flex-basis: 100%; color: #6B7489; font-size: 12px; }
/* The required agreement at the end of the request form. */
.rg-terms { margin: 16px 0 0; padding: 14px 16px; border: 1.5px solid var(--line, #E3E8F2); border-radius: 14px; background: #F7FAFA; }
.rg-terms label { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink, #16244A); cursor: pointer; }
.rg-terms input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: #0B7A75; }
.rg-terms a { color: #0B7A75; font-weight: 600; }
.rg-terms.bad { border-color: #C0392B; background: #FDF2F1; }
.rg-terms .rg-err { display: block; margin-top: 6px; color: #C0392B; font-size: 13px; }
.rg-terms .rg-err:empty { display: none; }
/* Dialogs: one focus style (teal), like the request form's fields. */
dialog.st-dlg :is(input, select, textarea):focus, dialog.rg-dlg :is(input, select, textarea):focus { outline: none; border-color: #0B7A75; box-shadow: 0 0 0 4px rgba(11, 122, 117, .12); }
dialog.st-dlg :is(button, a):focus-visible, dialog.rg-dlg :is(button, a):focus-visible { outline: 2px solid #0B7A75; outline-offset: 2px; }
