/* Scaleo public site (/, /features, /integrations, /for-*, /about, /contact).
   Static on purpose: search engines get full HTML with no JavaScript. Brand tokens
   from design/scalio-figma/tokens.css; orange buttons carry Midnight text (guide p7). */
:root {
  --bg: #f5f5ef; --card: #fff; --subtle: #edf3ee; --line: #e1e7e1;
  --ink: #081217; --txt: #22302f; --muted: #5a6a68; --brand: #094240;
  --action: #fa6708; --on-action: #081217; --link: #b84b00; --accent: #fca52a;
  --shadow: 0 6px 20px rgba(8, 26, 26, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081217; --card: #102f2f; --subtle: #0c2626; --line: #294847;
    --ink: #fff; --txt: #d4deda; --muted: #b6c8c2; --brand: #8fd3c9;
    --link: #fca52a; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.7 "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 9; background: var(--card); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--txt); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.top .btn { padding: 8px 16px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn-ghost { margin-left: auto; } }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* sections */
.hero { padding-block: 72px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.lead { font-size: 20px; color: var(--txt); max-width: 40em; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
section { padding: 56px 0; }
.alt { background: var(--subtle); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; color: var(--action); font-size: 14px; letter-spacing: .08em; margin-bottom: 8px; }
.prose { max-width: 760px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.check { list-style: none; padding: 0; }
.check li { padding-left: 28px; position: relative; margin: 8px 0; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--action); border-bottom: 3px solid var(--action); transform: rotate(-45deg); }
.stat { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 8px; }

/* the service x city matrix illustration */
.matrix { overflow-x: auto; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); font-size: 13px; }
.matrix table { border-collapse: separate; border-spacing: 6px; width: 100%; }
.matrix th { color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
.matrix td { background: var(--subtle); border-radius: 6px; height: 34px; text-align: center; color: var(--brand); font-weight: 700; }
.matrix td.live { background: var(--brand); color: #fff; }
.matrix td.score { background: var(--accent); color: var(--on-action); }
.matrix caption { caption-side: bottom; color: var(--muted); padding-top: 8px; text-align: left; }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 12px 0 0; }

/* breadcrumb + cta band + footer */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.band { background: var(--brand); color: #fff; border-radius: 16px; padding: 40px 32px; text-align: center; }
.band h2, .band p { color: #fff; }
@media (prefers-color-scheme: dark) { .band { background: #0c3a38; } }
.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 2fr repeat(3, 1fr); }
.foot h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--txt); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 32px; gap: 32px; }
  .top-row { gap: 10px; }
  .top .btn { padding: 6px 10px; font-size: 14px; }
  .matrix { padding: 12px; font-size: 12px; }
  .matrix table { border-spacing: 3px; }
  section { padding: 40px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 32px 20px; }
}

/* ===== Motion layer (home + reveals). All of it switches off for reduced motion. ===== */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .08s; } html.js .reveal.d2 { transition-delay: .16s; } html.js .reveal.d3 { transition-delay: .24s; }
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 34px rgba(8, 26, 26, .10); }

/* dark hero band */
.hero-band { background-color: #081217; background-image: radial-gradient(rgba(143, 211, 201, .12) 1px, transparent 1px); background-size: 22px 22px; color: #d4deda; border-bottom: 1px solid #1c3534; overflow: hidden; }
.hero-band h1 { color: #fff; }
.hero-band .lead { color: #d4deda; }
.hero-band .eyebrow { color: #fca52a; }
.hero-band .note { color: #9fb5b0; }
.hero-band .btn-ghost { background: transparent; color: #fff; border-color: #2c4a48; }
.hero-band .btn-ghost:hover { border-color: #8fd3c9; }
.hero-band .hero { padding-block: 88px 96px; }
.hl { color: #fa8d0a; }

/* the live dashboard mock */
.stage { position: relative; }
.app { background: #fff; color: #22302f; border-radius: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; font-size: 13px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: perspective(1400px) rotateY(-14deg) rotateX(8deg) translateY(40px); } }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #edf3ee; border-bottom: 1px solid #e1e7e1; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4deda; }
.app-bar b { margin-left: 10px; font: 500 12px/1 ui-monospace, monospace; color: #5a6a68; background: #fff; padding: 5px 10px; border-radius: 6px; flex: 1; }
.app-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.app-side { background: #f5f5ef; border-right: 1px solid #e1e7e1; padding: 14px 10px; display: grid; gap: 10px; align-content: start; }
.app-side span { height: 8px; border-radius: 4px; background: #d4deda; }
.app-side span.on { background: #094240; }
.app-side img { width: 26px; height: 26px; margin-bottom: 6px; }
.app-main { padding: 16px 18px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.app-head strong { color: #081217; font-size: 14px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff0de; color: #8a3a00; white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fa6708; margin-right: 6px; vertical-align: middle; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.bar { height: 6px; background: #edf3ee; border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; background: #094240; animation: fill 10s ease-in-out infinite; }
@keyframes fill { from { width: 4%; } 85%, to { width: 100%; } }
.runs { width: 100%; border-collapse: collapse; }
.runs th { text-align: left; font-size: 11px; color: #5a6a68; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e1e7e1; }
.runs td { padding: 8px 4px; border-bottom: 1px solid #edf3ee; white-space: nowrap; }
.st { position: relative; display: inline-block; width: 92px; height: 20px; }
.st span { position: absolute; left: 0; top: 0; opacity: 0; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; animation: stage1 10s infinite; }
.st .s1 { background: #edf3ee; color: #094240; }
.st .s2 { background: #e8eefc; color: #2a44a8; animation-name: stage2; }
.st .s3 { background: #fff0de; color: #8a3a00; animation-name: stage3; }
.st .s4 { background: #094240; color: #fff; animation-name: stage4; }
@keyframes stage1 { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes stage2 { 0%, 24% { opacity: 0; } 25%, 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes stage3 { 0%, 49% { opacity: 0; } 50%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes stage4 { 0%, 74% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
.sc { font-weight: 800; color: #094240; opacity: 0; animation: stage4 10s infinite; }
.runs tr:nth-child(2) span, .runs tr:nth-child(2) .sc { animation-delay: -1.2s; }
.runs tr:nth-child(3) span, .runs tr:nth-child(3) .sc { animation-delay: -2.4s; }
.runs tr:nth-child(4) span, .runs tr:nth-child(4) .sc { animation-delay: -3.6s; }
.runs tr:nth-child(5) span, .runs tr:nth-child(5) .sc { animation-delay: -4.8s; }
.float { position: absolute; background: #fff; color: #22302f; border-radius: 12px; padding: 12px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font-size: 13px; line-height: 1.4; animation: bob 6s ease-in-out infinite; max-width: 210px; }
.float b { display: block; color: #081217; font-size: 14px; }
.float .big { font-size: 26px; font-weight: 800; color: #094240; line-height: 1.1; }
.float-a { left: -36px; bottom: -28px; }
.float-b { right: -18px; top: -26px; animation-delay: -3s; }
.float-b b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; margin-right: 6px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* marquees */
.marquees { padding: 28px 0; background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.track { display: flex; gap: 12px; width: max-content; animation: slide 48s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; }
.chip.t { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.t { background: #0c3a38; border-color: #0c3a38; } }
.marquee-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

/* sticky story */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s ease; }
.story-step.active { opacity: 1; }
.story-step .num { font-weight: 800; color: var(--action); letter-spacing: .08em; font-size: 14px; }
.story-step h3 { font-size: 28px; margin-top: 8px; }
.story-step img { display: none; }
.story-media { position: sticky; top: 96px; }
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 30px 60px rgba(8, 26, 26, .14); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-view { position: relative; aspect-ratio: 1400 / 744; background: #fff; }
.story-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .9s ease; }
.story-shot.on { opacity: 1; transform: none; }
.story-cap { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* stats band */
.stats-band { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .stats-band { background: #0c3a38; } }
.stats-band .grid { text-align: center; }
.stats-band .stat { color: #fff; font-size: 52px; }
.stats-band p { color: #cfe3de; margin: 0; }

/* matrix pop-in */
html.js .reveal .matrix td { transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .4s ease; }
html.js .reveal.in .matrix td { transform: none; opacity: 1; }
.matrix tr td:nth-child(3) { transition-delay: .1s; } .matrix tr td:nth-child(4) { transition-delay: .2s; } .matrix tr td:nth-child(5) { transition-delay: .3s; } .matrix tr td:nth-child(6) { transition-delay: .4s; }
.matrix tbody tr:nth-child(2) td { transition-delay: .25s; } .matrix tbody tr:nth-child(3) td { transition-delay: .45s; } .matrix tbody tr:nth-child(4) td { transition-delay: .65s; }

/* screenshot figures on inner pages */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(8, 26, 26, .12); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }

@media (max-width: 860px) {
  .hero-band .hero { padding-block: 48px 104px; }
  .app { transform: none; }
  .float-a { left: 8px; bottom: -72px; } .float-b { right: 8px; top: -34px; }
  .story-grid, .split { grid-template-columns: 1fr; gap: 24px; }
  .story-media { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 16px 0; }
  .story-step img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin-top: 12px; }
  .stats-band .stat { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .st .s4, .sc { opacity: 1; }
  .story-shot.on { opacity: 1; transform: none; }
}

@media (max-width: 860px) { .stage .float { position: static; display: block; max-width: none; margin-top: 12px; animation: none; } .stage > .note { position: static !important; margin-top: 12px !important; } .hero-band .hero { padding-block: 48px 56px; } }

/* Request access form (contact.html; POST /api/leads, no JS needed) */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; color: var(--txt); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.lead-form .wide { grid-column: 1 / -1; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .fine { font-size: 13px; color: var(--muted); margin: 0; }
.form-msg { display: none; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-msg:target { display: block; }
.form-ok { background: var(--subtle); border: 1px solid var(--brand); }
.form-err { border: 1px solid var(--action); }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }

/* ===== One page at "/" (landing + sign-in, pricing, product panels) ===== */
/* sign-in card: the hero's right column */
.signin { background: #fff; color: #22302f; border-radius: 16px; padding: 28px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); scroll-margin-top: 88px; }
.signin h2 { color: #081217; font-size: 24px; margin-bottom: 6px; }
.signin-sub { font-size: 15px; color: #5a6a68; margin-bottom: 18px; }
.signin-sub a, .signin-hint a, .fld-row a { color: #b84b00; font-weight: 600; }
.signin-hint { background: #edf3ee; border: 1px solid #094240; border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.signin form { display: grid; gap: 8px; }
.signin form[hidden], .signin [role="tabpanel"][hidden] { display: none; }   /* display:grid would beat the hidden attribute */
.hero-band .hero:has(.signin) { align-items: start; }
.hero-band .hero:has(.signin) > div:first-child { padding-top: 48px; }
.signin .fld { font-weight: 600; font-size: 15px; color: #081217; }
.fld-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; font-size: 14px; }
.signin input { font: inherit; color: #22302f; background: #fff; border: 1px solid #c9d4cf; border-radius: 10px; padding: 11px 12px; width: 100%; }
.signin input:focus-visible { outline: 2px solid #094240; outline-offset: 1px; }
.signin input:disabled { background: #f5f5ef; }
.signin .btn { width: 100%; text-align: center; margin-top: 8px; cursor: pointer; font-family: inherit; }
.signin .btn:disabled { opacity: .6; cursor: progress; }
.signin .btn-ghost { background: #fff; color: #081217; border-color: #c9d4cf; }
.signin-err { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #fa6708; background: #fff6ee; color: #8a3a00; font-size: 15px; font-weight: 600; }
.tabs { display: flex; gap: 4px; margin: -8px 0 18px; border-bottom: 1px solid #e1e7e1; }
.tabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; color: #5a6a68; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #094240; border-bottom-color: #fa6708; }
.tabs button:focus-visible, .linkish:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.signin .hp { position: absolute; left: -9999px; }
.signin-fine { font-size: 13px; color: #5a6a68; margin: 14px 0 0; }
.signin-fine a { color: #b84b00; }
.linkish { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: #b84b00; font-weight: 600; text-decoration: underline; cursor: pointer; }
#pane-signin h2:focus { outline: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 13px; color: #5a6a68; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #e1e7e1; }

/* trust strip under the hero */
section.trust { padding: 18px 0; background: var(--card); border-bottom: 1px solid var(--line); text-align: center; }
.trust p { margin: 0; font-size: 16px; }
.trust strong { color: var(--ink); }
.trust a { font-weight: 700; margin-left: 6px; }

/* feature rows: copy beside an illustrative panel, alternating sides */
.row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 40px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row.flip > :first-child { order: 2; }
.row-copy h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; margin-bottom: 12px; }
.row-copy .more, .plans-fine a { font-weight: 700; }
.row .stage { margin: 24px 0 8px; }
.row .app { transform: none; animation: none; box-shadow: 0 30px 60px rgba(8, 26, 26, .18); }

/* the illustrative product panel: dashboard chrome around example data */
.pnl { background: #fff; color: #22302f; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(8, 26, 26, .14); font-size: 14px; line-height: 1.5; }
.pnl-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #edf3ee; border-bottom: 1px solid #e1e7e1; }
.pnl-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4deda; }
.pnl-bar b { margin-left: 10px; font-size: 13px; color: #5a6a68; }
.pnl-body { padding: 20px 22px; }
.pnl-title { font-weight: 800; color: #081217; font-size: 17px; margin-bottom: 12px; }
.pnl-note, .pnl-label { font-size: 13px; color: #5a6a68; margin: 14px 0 0; }
.pnl-label { margin: 16px 0 8px; font-weight: 600; }
.brief { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px 14px; }
.brief dt { color: #5a6a68; font-weight: 600; }
.brief dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #094240; color: #fff; border-radius: 99px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.q { background: #edf3ee; color: #094240; border-radius: 6px; padding: 1px 8px; font-size: 13px; }
.score-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.score-head .big { font-size: 34px; font-weight: 800; color: #094240; line-height: 1; }
.pill.ok { background: #e3f4ea; color: #145c33; }
.pill.ok::before { background: #2fbf71; animation: none; }
.meters { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.meters li { display: grid; grid-template-columns: 1fr 9em 2.6em; gap: 12px; align-items: center; font-size: 13px; }
.meters li i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #094240 var(--v), #edf3ee var(--v)); }
.meters li i.warn { background: linear-gradient(90deg, #fca52a var(--v), #edf3ee var(--v)); }
.meters b { text-align: right; color: #081217; }
.gsc { width: 100%; border-collapse: collapse; font-size: 13px; }
.gsc th { text-align: left; color: #5a6a68; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e1e7e1; }
.gsc td { padding: 8px 4px; border-bottom: 1px solid #edf3ee; white-space: nowrap; }
.gsc td:first-child { color: #094240; font-weight: 600; white-space: normal; word-break: break-all; }
.yes, .wait { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.yes { background: #e3f4ea; color: #145c33; }
.wait { background: #fff0de; color: #8a3a00; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checks li { background: #edf3ee; border-radius: 10px; padding: 8px 10px; display: grid; }
.checks span { font-size: 12px; color: #5a6a68; }
.checks b { font-size: 20px; color: #094240; }
.checks li:last-child { background: #094240; }
.checks li:last-child span, .checks li:last-child b { color: #fff; }
.cal { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cal li { display: grid; grid-template-columns: 3em 1fr auto; gap: 12px; align-items: center; border: 1px solid #e1e7e1; border-radius: 10px; padding: 10px 12px; }
.cal .day { font-weight: 800; color: #094240; }
.cal .post { color: #081217; font-weight: 600; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .price { margin: 0; color: var(--muted); }
.plan .price b { font-size: 32px; color: var(--ink); }
.plan .price small { display: block; font-size: 14px; }
.plan .credits { margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.plan .pages { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.plan .check { margin: 0 0 20px; font-size: 15px; flex: 1; }
.plan .btn { text-align: center; }
.plan.rec { border: 2px solid var(--brand); }
.rec-label { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 2px 12px; }
@media (prefers-color-scheme: dark) { .rec-label { color: #081217; } }
.plans-note { margin: 24px 0 8px; font-weight: 600; color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 14px; padding-top: 10px; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 12px; border-top: 1px solid var(--line); }
.price-table thead th { border-top: 0; color: var(--ink); }
.plans-fine { font-size: 14px; color: var(--muted); max-width: 60em; }

/* request access dialog (home); the lead form inside is the contact page form */
.sheet { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 24px; background: var(--card); color: var(--txt); box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.sheet::backdrop { background: rgba(8, 18, 23, .6); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sheet-head h2 { margin: 0; font-size: 26px; }
.sheet-x { font: inherit; font-size: 28px; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sheet-x:focus-visible { outline: 3px solid var(--accent); }
.sheet-sub { color: var(--muted); margin: 8px 0 12px; }
.sheet .btn { cursor: pointer; font-family: inherit; }
.form-status { margin: 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; border: 1px solid var(--brand); background: var(--subtle); }
.form-status.bad { border-color: var(--action); }

@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .row.flip > :first-child { order: 0; }
  .signin { padding: 22px; }
  .brief { grid-template-columns: 1fr; gap: 4px; }
  .brief dd { margin-bottom: 8px; }
  .meters li { grid-template-columns: 1fr 5em 2.6em; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .cal li { grid-template-columns: 2.6em 1fr; }
  .cal .pill { grid-column: 2; justify-self: start; }
}

/* pricing page: plan cards on the .plans/.plan base above (pricing-plans.js swaps in the live
   plans; the HTML carries the v1 ones) */
.plan-featured, .plan-featured:hover { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.plan-badge { position: absolute; top: -12px; left: 20px; background: var(--action); color: var(--on-action); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 99px; line-height: 1.6; }
.plan-tag { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.plan-price { margin-bottom: 4px; }
.plan-price .stat { font-size: 34px; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-price ~ .check { margin-top: 16px; }
.plan .check li.no { color: var(--muted); }
.plan-talk { display: block; margin-top: 12px; text-align: center; font-weight: 700; }
.plan .check li.no::before { height: 0; border-left: 0; border-bottom-color: var(--line); transform: none; top: .85em; }
.plan-toggles { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.plan-toggles[hidden] { display: none; }
.plan-toggles [role="group"] { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.plan-toggles button { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 16px; border: 0; background: transparent; color: var(--txt); cursor: pointer; }
.plan-toggles button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.plan-toggles button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.plan-toggles button[aria-pressed="true"]:focus-visible { outline-color: var(--on-action); }   /* --ink goes white in dark mode: poor on orange */
