/* Beacon Schools design system. One stylesheet for site, admin and family portal.
   Tokens first; components use tokens only. */
:root {
  --ink: #16233a;         /* primary text, dark surfaces */
  --ink-2: #3c4a63;
  --muted: #6b7690;
  --line: #e4e0d8;
  --paper: #fbf8f3;       /* page background */
  --card: #ffffff;
  --sand: #f3ede3;        /* subtle fills */
  --brand: #0e6b5c;       /* kukui green */
  --brand-ink: #0a4f44;
  --brand-soft: #e3f1ed;
  --sun: #f2b544;         /* highlight */
  --sun-soft: #fdf1d8;
  --coral: #d9583b;       /* danger / overdue */
  --coral-soft: #fbe6e0;
  --sky: #2f6fb3;
  --sky-soft: #e4eef9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22,35,58,.06), 0 6px 24px rgba(22,35,58,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }

/* ---------- components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
             margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
       border-radius: 999px; border: 1px solid var(--brand); background: var(--brand);
       color: #fff; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none;
       white-space: nowrap; }
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: var(--sand); }
.btn.danger { background: var(--coral); border-color: var(--coral); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
         font-weight: 600; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--brand-soft); color: var(--brand-ink); }
.badge.sun { background: var(--sun-soft); color: #7a5410; }
.badge.coral { background: var(--coral-soft); color: #9b3420; }
.badge.sky { background: var(--sky-soft); color: #1f4f85; }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat .value { font: 600 26px/1.2 var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.sun > span { background: var(--sun); }
.bar.coral > span { background: var(--coral); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
             color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click:hover td { background: var(--sand); cursor: pointer; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* forms */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 15px var(--font); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; }
.inline-form { display: inline; }

.flash { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px;
         background: var(--brand-soft); color: var(--brand-ink); border: 1px solid #c4e2da; }
.flash.err { background: var(--coral-soft); color: #9b3420; border-color: #f2c6b9; }
.flash.warn { background: var(--sun-soft); color: #7a5410; border-color: #f1dca7; }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.steps span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--sand); color: var(--muted); }
.steps span.on { background: var(--brand); color: #fff; }
.steps span.done { background: var(--brand-soft); color: var(--brand-ink); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--line); position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
       font-family: Georgia, serif; font-size: 15px; line-height: 1.7; }
.doc h1, .doc h2, .doc h3 { font-family: var(--display); }
@media (max-width: 600px) { .doc { padding: 18px; } }

/* ---------- admin shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #cdd5e3; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { color: #fff; padding: 4px 10px 18px; display: block; }
.side .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d8aa3; padding: 14px 10px 6px; }
.side a.nav { display: flex; align-items: center; gap: 10px; color: #cdd5e3; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.side a.nav:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.side a.nav.on { background: rgba(255,255,255,.12); color: #fff; }
.side .me { border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding: 14px 10px 0; font-size: 13px; }
.main { padding: 26px 32px 60px; min-width: 0; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; font-size: 30px; }
.pagehead .crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .main { padding: 16px 16px 60px; }
  .menu-toggle { display: inline-flex; margin-bottom: 12px; }
}

/* ---------- logo ---------- */
.logo-mark { display: inline-flex; align-items: center; gap: 9px; font: 600 20px var(--display); letter-spacing: -.01em; color: inherit; }
.logo-mark svg { width: 28px; height: 28px; flex: none; }
.logo-mark:hover { text-decoration: none; }

/* ---------- family portal ---------- */
.fam-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.fam-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.fam-nav { display: flex; gap: 2px; overflow-x: auto; }
.fam-nav a { padding: 8px 12px; border-radius: 99px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.fam-nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.fam-nav a:hover { text-decoration: none; background: var(--sand); }
.fam-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 80px; }
.fam-bottom { display: none; }
@media (max-width: 700px) {
  .fam-top .fam-nav { display: none; }
  .fam-bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .fam-bottom a { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 6px; }
  .fam-bottom a.on { color: var(--brand); }
}
.task { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sand); color: var(--muted); font-weight: 700; font-size: 13px; }
.task.done .dot { background: var(--brand); color: #fff; }
.task.now .dot { background: var(--sun); color: var(--ink); }
.task .body { flex: 1; min-width: 0; }

/* ---------- marketing site ---------- */
.site-top { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav > .dd { position: relative; }
.site-nav > .dd > button, .site-nav > a { background: none; border: 0; font: 600 14px var(--font); color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.site-nav > .dd > button:hover, .site-nav > a:hover { background: var(--sand); text-decoration: none; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.dd-menu a small { display: block; color: var(--muted); font-size: 12px; }
.dd-menu a:hover { background: var(--sand); text-decoration: none; }
.site-cta { display: flex; gap: 8px; align-items: center; }
.burger { display: none; }
@media (max-width: 960px) {
  .site-nav, .site-cta .btn.ghost { display: none; }
  .burger { display: inline-flex; }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open .dd-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; }
}
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 56ch; }
.section { padding: 64px 0; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--ink); color: #e9edf4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
.section.dark .eyebrow { color: var(--sun); }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.metric .value { font: 600 clamp(34px, 5vw, 48px)/1 var(--display); color: var(--brand); }
.section.dark .metric .value { color: var(--sun); }
.logos { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; color: var(--muted); font: 600 15px var(--display); opacity: .85; }
.site-foot { background: var(--ink); color: #b9c3d4; padding: 56px 0 28px; font-size: 14px; }
.site-foot a { color: #dfe5ee; }
.site-foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }

/* print: name tags and documents */
@media print {
  .side, .fam-top, .fam-bottom, .site-top, .site-foot, .noprint, .pagehead .row { display: none !important; }
  .shell { display: block; } .main { padding: 0; } body { background: #fff; }
}
.nametags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.nametag { border: 1px dashed #bbb; height: 2.33in; padding: .3in; display: flex; flex-direction: column; justify-content: center; text-align: center; break-inside: avoid; }
.nametag .n { font: 600 28px var(--display); }

/* ---- site module ---- */
body.site { overflow-x: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.site-logo { color: var(--ink); flex: none; }
.site-logo:hover { text-decoration: none; }
.site-nav .caret { font-size: 10px; color: var(--muted); margin-left: 2px; }
.dd-menu .badge { font-size: 10px; padding: 1px 7px; vertical-align: 1px; margin-left: 4px; }
.dd-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.mobile-only { display: none; }
@media (max-width: 960px) {
  .site-nav.open .mobile-only { display: grid; gap: 8px; margin-top: 12px; }
  .site-nav.open > .dd > button { width: 100%; text-align: left; font-size: 16px; padding: 12px 4px 6px; }
  .site-nav.open .caret { display: none; }
}
@media (max-width: 560px) {
  .site-cta > .btn:not(.burger) { display: none; }
}

/* section heads + shared */
.section-head { margin-bottom: 34px; max-width: 760px; }
.section-head.row { max-width: none; }
.lede-sm { font-size: 17px; max-width: 60ch; }
.more { font-weight: 700; font-size: 14px; color: var(--brand); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.narrow { max-width: 560px; }
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); max-width: 20ch; }
.page-head .lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-ctas { margin-top: 26px; }
.hero-note { margin-top: 14px; }
.hero-home { padding-top: 84px; background: radial-gradient(1000px 420px at 85% 10%, var(--brand-soft), transparent 70%), radial-gradient(600px 300px at 5% 100%, var(--sun-soft), transparent 70%); }
.hero-stage { position: relative; min-height: 420px; }
.hero-stage.single { min-height: 0; display: flex; justify-content: center; }
.hero-stage .stage-a { position: relative; z-index: 1; width: 70%; transform: rotate(-1.5deg); }
.hero-stage .stage-b { position: absolute; right: 0; bottom: -70px; width: 52%; z-index: 2; transform: rotate(2deg); }
.product-hero { background: linear-gradient(180deg, var(--brand-soft), transparent 85%); }
.product-hero.accent-sky { background: linear-gradient(180deg, var(--sky-soft), transparent 85%); }
.product-hero.accent-sun { background: linear-gradient(180deg, var(--sun-soft), transparent 85%); }
.product-hero.accent-coral { background: linear-gradient(180deg, var(--coral-soft), transparent 85%); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { min-height: 0; }
  .hero-stage .stage-a { width: 100%; transform: none; }
  .hero-stage .stage-b { display: none; }
}
@media (max-width: 600px) { .hero { padding: 44px 0 36px; } .hero-ctas .btn { width: 100%; justify-content: center; } }

/* partner strip */
.strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.logos span { white-space: nowrap; }
@media (max-width: 600px) { .logos { font-size: 14px; gap: 8px 18px; } .logos span { white-space: normal; } }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metrics .metric { padding: 28px 24px; border-left: 1px solid var(--line); }
.metrics .metric:first-child { border-left: 0; }
.metrics .metric p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .metric:nth-child(3) { border-left: 0; }
  .metrics .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* values */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); position: relative; }
.value-card .vn { font: 600 13px var(--display); color: var(--brand); display: block; margin-bottom: 26px; }
.value-card h3 { font-size: 17px; }
.value-card p { color: var(--ink-2); font-size: 14px; margin: 0; }
.value-card:nth-child(odd) { transform: translateY(14px); }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value-card:nth-child(odd) { transform: none; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* product suite */
.suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.suite-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.suite-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.suite-card.accent-sky, .works-card.accent-sky { background: var(--sky-soft); }
.suite-card.accent-sun, .works-card.accent-sun { background: var(--sun-soft); }
.suite-card.accent-coral, .works-card.accent-coral { background: var(--coral-soft); }
.suite-card h3 { font: 600 22px var(--display); }
.suite-card p { color: var(--ink-2); }
.suite-art { pointer-events: none; }
@media (max-width: 900px) { .suite { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .suite-card { grid-template-columns: 1fr; } .suite-art { order: 2; } }

/* audience (dark section) */
.aud-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #e9edf4; min-height: 210px; }
.aud-card:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.aud-card h3 { font: 600 20px/1.3 var(--display); color: #fff; flex: 1; }
.aud-card .more { color: var(--sun); }
.aud-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9fb0c9; }

/* quotes */
.quote { margin: 0; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote.alt { background: var(--ink); color: #e9edf4; border-color: var(--ink); }
.quote.alt .muted { color: #9fb0c9; }
.quote blockquote { margin: 0; font: 500 19px/1.45 var(--display); }
.quote figcaption { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 13px; flex: none; }

/* posts */
.post-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); height: 100%; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.post-card h3 { font: 600 19px/1.3 var(--display); margin: 4px 0 0; }
.post-card p { margin: 0; flex: 1; font-size: 14px; }
.post-lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.post-lead:hover { text-decoration: none; box-shadow: var(--shadow); }
.post-lead h2 { margin: 10px 0 8px; }
.post-lead-art { aspect-ratio: 16 / 10; border-radius: 14px; background: radial-gradient(circle at 30% 30%, var(--sun) 0 18%, transparent 19%), linear-gradient(135deg, var(--brand), var(--brand-ink)); display: flex; align-items: flex-end; padding: 18px; }
.post-lead-art span { font: 600 24px var(--display); color: #fff; }
@media (max-width: 760px) { .post-lead { grid-template-columns: 1fr; gap: 16px; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { text-decoration: none; border-color: var(--ink); }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.inline-sub { display: flex; gap: 8px; }
.inline-sub input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .inline-sub { flex-direction: column; } }

/* article */
.article-head { max-width: 70ch; margin-bottom: 30px; }
.article-head h1 { font-size: clamp(32px, 5vw, 50px); margin-top: 18px; }
.article-head .lede { font-size: 19px; color: var(--ink-2); }
.byline { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.prose p.numbered { padding: 14px 18px; background: var(--sand); border-radius: var(--radius-sm); border-left: 3px solid var(--brand); }
.prose { overflow-wrap: break-word; }

/* CTA band */
.cta-band { background: var(--brand-ink); color: #dff0eb; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--sun); opacity: .18; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-inner p { max-width: 56ch; margin: 0; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); }
@media (max-width: 600px) { .cta-inner .row { width: 100%; } .cta-inner .btn { width: 100%; justify-content: center; } }

/* product page */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.feature-item { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; flex: none; }
.feature-item h3 { margin-bottom: 4px; }
.feature-item p { margin: 0; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.flow li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 16px; }
.flow li:last-child { border-bottom: 0; }
.flow li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.flow.light li { border-bottom-color: var(--line); font-size: 15px; }
.flow.light li > span { background: var(--brand-soft); color: var(--brand-ink); }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.ticks.big li { font-size: 17px; margin: 12px 0; }
.form-card { padding: 26px; }
.form-card.big { padding: 36px; }
@media (max-width: 600px) { .form-card, .form-card.big { padding: 20px; } }
.works-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; border-radius: 18px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.works-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.works-card h3 { font: 600 20px var(--display); }
.works-card p { margin-bottom: 6px; }
.works-art { pointer-events: none; }
@media (max-width: 520px) { .works-card { grid-template-columns: 1fr; } .works-art { display: none; } }

/* solutions */
.pain { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pain-n { font: 600 30px var(--display); color: var(--coral); display: block; margin-bottom: 10px; }
.family-help { padding: 26px; }

/* events */
.event-list { display: grid; gap: 14px; }
.event-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.event-row h3 { margin: 8px 0 4px; font: 600 20px var(--display); }
.event-row p { margin: 0 0 4px; }
.ev-date { text-align: center; border-radius: 12px; background: var(--sand); padding: 10px 6px; display: grid; }
.ev-date .m { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); }
.ev-date .d { font: 600 30px/1.1 var(--display); }
.ev-date .w { font-size: 12px; color: var(--muted); }
.ev-act { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 640px) {
  .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .ev-act { grid-column: 1 / -1; justify-items: stretch; text-align: center; }
  .ev-act .btn { justify-content: center; }
}

/* about, team, careers, security */
.facts { display: grid; gap: 14px; }
.facts > div { padding: 20px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.facts .value { font: 600 38px/1 var(--display); color: var(--brand); }
.facts p { margin: 6px 0 0; color: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.person .avatar { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font: 600 26px var(--display); margin-bottom: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.person .avatar.a1 { background: var(--sun-soft); color: #7a5410; border-radius: 50%; }
.person .avatar.a2 { background: var(--sky-soft); color: #1f4f85; }
.person .avatar.a3 { background: var(--coral-soft); color: #9b3420; border-radius: 50%; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--brand); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }
.roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.role-row h3 { margin: 8px 0 4px; font: 600 21px var(--display); }
.role-row p { margin: 0 0 4px; max-width: 64ch; }
@media (max-width: 640px) { .role-row { flex-direction: column; align-items: stretch; } .role-row .btn { justify-content: center; } }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sec-item { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-item:nth-child(3n) { border-right: 0; }
.sec-item:nth-last-child(-n+3) { border-bottom: 0; }
.sec-item .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; font-size: 18px; }
@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-item, .sec-item:nth-child(3n) { border-right: 0; }
  .sec-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sec-item:last-child { border-bottom: 0; }
}

/* contact + forms */
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
.form-card:not(.center) .done-mark { margin-left: 0; }
.contact-alt { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.contact-split { align-items: start; }

/* footer */
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.foot-mail { line-height: 1.8; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols .badge { font-size: 10px; padding: 1px 7px; margin-left: 4px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 600px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- mock UI illustrations ---- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(22,35,58,.05), 0 18px 48px rgba(22,35,58,.13); overflow: hidden; font-size: 13px; color: var(--ink); width: 100%; max-width: 440px; position: relative; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted); font-weight: 600; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 16px 18px 18px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mock-split > div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.mock-k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mock-k em { font-style: normal; color: var(--ink); background: var(--sand); padding: 0 6px; border-radius: 99px; margin-left: 2px; }
.mock-v { font: 600 18px var(--display); margin-top: 2px; }
.mock-big { font: 600 34px/1.1 var(--display); color: var(--brand); margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.mock-dim { color: var(--muted); }
.mock-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--sand); }
.mock-chip.green { background: var(--brand-soft); color: var(--brand-ink); }
.mock-chip.sun { background: var(--sun-soft); color: #7a5410; }
.mock-meter { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.mock-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2a9a85); border-radius: 99px; }
.mock-actions { display: flex; gap: 8px; margin-top: 14px; }
.mock-btn { display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; }
.mock-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.mock-btn.block { display: block; width: 100%; text-align: center; }
.mock-lines { display: grid; gap: 7px; margin-bottom: 14px; }
.mock-lines b { display: block; height: 7px; border-radius: 99px; background: var(--sand); }
.mock-table { display: grid; border-top: 1px solid var(--line); }
.mock-table > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mock-table > div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mock-table .neg { color: var(--brand); }
.mock-table .tot { border-bottom: 0; font-weight: 700; }
.mock-sign { margin-top: 14px; padding: 12px 14px; border: 1px dashed #c9c2b5; border-radius: 10px; background: var(--paper); }
.mock-script { font: italic 500 26px/1.2 var(--display); color: var(--sky); margin: 2px 0; }
.mock-stamp { position: absolute; right: 16px; bottom: 74px; transform: rotate(-12deg); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.85); }
.mock-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mock-pay .opt { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; }
.mock-pay .opt.on { border-color: var(--brand); background: var(--brand-soft); }
.mock-pay .opt span { font-size: 11px; color: var(--muted); }
.mock-pay .opt.on span { color: var(--brand-ink); font-weight: 700; }
.mock-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mock-cols .col { background: var(--paper); border-radius: 10px; padding: 8px; min-height: 120px; }
.mock-cols .mock-k { font-size: 10px; margin-bottom: 6px; white-space: nowrap; }
.mock-cols .tk { margin: 0 0 6px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-cols .tk.dim { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.mock-cols .tk.hot { border-color: var(--sun); background: var(--sun-soft); }
.mock-cols .tk.ok { border-color: #c4e2da; background: var(--brand-soft); }
.mock-kokua { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #dfe5ee; font-size: 12px; line-height: 1.45; }
.mock-kokua .spark { color: var(--sun); font-size: 16px; line-height: 1; }
.mock-kokua b { color: #fff; }
.mock-phone { max-width: 270px; border-radius: 34px; border: 8px solid var(--ink); padding-top: 10px; }
.mock-phone .phone-notch { width: 80px; height: 16px; border-radius: 99px; background: var(--ink); margin: 0 auto; }
.ph-task { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.ph-task span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted); font-size: 11px; flex: none; }
.ph-task.done span { background: var(--brand); color: #fff; }
.ph-task.now span { background: var(--sun); color: var(--ink); }
.ph-lang { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ph-lang b { color: var(--brand); }
/* sizes */
.mock.compact .mock-lines { display: none; }
.mock.compact .mock-body { padding: 12px 14px 14px; }
.mock.compact .mock-stamp { bottom: 60px; }
.mock.mini { font-size: 11px; max-width: 320px; box-shadow: 0 10px 30px rgba(22,35,58,.12); }
.mock.mini .mock-body { padding: 12px 12px 14px; }
.mock.mini .mock-big { font-size: 24px; }
.mock.mini .mock-lines, .mock.mini .mock-actions, .mock.mini .mock-kokua, .mock.mini .mock-split, .mock.mini .mock-pay { display: none; }
.mock.mini .mock-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mock.mini .mock-cols .col { min-height: 0; }
.mock.mini .mock-cols .col:nth-child(n+3) { display: none; }
.mock.mini .mock-cols .tk:nth-of-type(n+2) { display: none; }
.mock.mini .mock-stamp { bottom: 40px; }
.mock.mini .mock-script { font-size: 20px; }
.mock-phone.mini { max-width: 200px; }
@media (max-width: 420px) {
  .mock-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-big { font-size: 28px; }
}

/* ---- dashboard (lead) ---- */
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .g-main { grid-template-columns: 1fr; } }
.grid > *, .card, .stack > * { min-width: 0; }
.mock-sign { position: relative; }
.mock-sign .mock-stamp { top: 8px; right: 10px; bottom: auto; }
