/* Inspired University — hand-written, no build step (the server has no Node). */
:root {
  --navy: #000023;
  --blue: #2da3f2;
  --blue-dark: #1a7fc4;
  --ink: #1d2433;
  --muted: #5f6879;
  --line: #e2e6ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --danger: #b42318;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2 { line-height: 1.2; color: var(--navy); }
h1 { font-size: 2rem; margin: 0 0 .6em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 40px; padding-bottom: 60px; }

/* Header */
.site-header { background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { display: block; height: auto; max-width: 240px; width: 100%; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a, .nav .link { color: var(--white); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav .link:hover { color: var(--blue); }
.nav .btn { color: var(--white); }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Footer */
.site-footer { background: var(--navy); color: #b8bfd0; font-size: .85rem; padding: 22px 0; }

/* Buttons + forms */
.btn {
  display: inline-block; background: var(--blue); color: var(--white); border: 0;
  border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.stack { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 600; font-size: .95rem; }
input[type=email], input[type=text], input[type=search], input[type=date], select, textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #c9cfdb; border-radius: 8px; width: 100%;
}
input:focus-visible, .btn:focus-visible, a:focus-visible, .link:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* Blocks */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.narrow { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.alert { background: #fdecea; color: var(--danger); border-radius: 8px; padding: 10px 14px; }

.hero { text-align: center; padding: 30px 0 40px; }
.hero h1 { font-size: 2.6rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 24px; }
.card h2 { margin-top: 0; }
.badge { display: inline-block; background: #e8f4fd; color: var(--blue-dark); font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.stat-n { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.stat-l { color: var(--muted); font-size: .9rem; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table th { background: #f0f3f8; font-size: .85rem; color: var(--muted); }

.status { font-size: .85rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #eef1f6; }
.status-completed { background: #e3f6ea; color: #1b6b3a; }
.status-started, .status-registered { background: #e8f4fd; color: var(--blue-dark); }
.status-abandoned { background: #fdecea; color: var(--danger); }

/* ---- Marketing pages ---- */
.hero-band {
  /* full-bleed band inside the centred main column */
  margin: -40px calc(50% - 50vw) 0; padding: 64px 0 72px;
  background: radial-gradient(1200px 400px at 70% -10%, #0b3a66 0%, var(--navy) 60%);
  color: #dfe6f3; text-align: center;
}
.hero-band h1 { color: var(--white); font-size: 2.9rem; margin-bottom: .4em; }
.hero-band .lead { color: #c4cee0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin: 0 0 12px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-big { padding: 15px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; border: 2px solid var(--blue); color: var(--white); }
.btn-big.btn-ghost { padding: 13px 26px; }
.btn-ghost:hover { background: var(--blue); }
.section { padding: 48px 0 8px; }
.section-tint { margin: 40px calc(50% - 50vw) 0; padding: 48px calc(50vw - 50%) 56px; background: #eaf1f9; }
.section h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.card-product { display: flex; flex-direction: column; }
.card-product h3 { margin: 0 0 .4em; color: var(--navy); font-size: 1.3rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; }
.price-sm { font-size: 1.3rem; color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 24px 0 0; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.steps strong { color: var(--navy); }

/* Product pages */
.product-hero { text-align: left; }
/* Hero content uses the same 1080px column as the page; only line length is limited */
.hero-band h1 { max-width: 860px; }
.hero-band .lead { max-width: 680px; }
.hero-band:not(.product-hero) h1, .hero-band:not(.product-hero) .lead { margin-left: auto; margin-right: auto; }
.product-hero .lead { margin: 0; }
.product-hero .hero-actions { justify-content: flex-start; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.style-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-left: 6px solid var(--c, var(--blue)); }
.style-card h3 { margin: 0 0 4px; color: var(--navy); }
.style-card .q { font-style: italic; color: var(--muted); margin: 0 0 8px; }
.style-d { --c: #d64545; } .style-i { --c: #e8b923; } .style-s { --c: #3aa365; } .style-c { --c: #2d6fd2; }
.quad h3 { margin: 0 0 8px; color: var(--navy); }
.quad ul { margin: 0; padding-left: 18px; }
.buy { margin: 48px calc(50% - 50vw) 0; padding: 48px 0; background: var(--navy); color: #dfe6f3; }
.buy-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.buy h2 { color: var(--white); margin-top: 0; }
.buy .ticks li::before { color: var(--blue); }
.buy .panel { color: var(--ink); }
.price { font-size: 2.2rem; font-weight: 700; color: var(--white); margin: 0 0 12px; }
.price .muted { font-size: 1rem; font-weight: 400; color: #b8bfd0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.small { font-size: .85rem; margin: 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 10px 0 0; }

/* Legal + checkout consent */
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal h3 { font-size: 1rem; margin: 1.2em 0 .4em; color: var(--navy); }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.badge-draft { background: #fff4d6; color: #7a5600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #b8bfd0; margin-left: 14px; }
.site-footer a.powered { margin-left: 0; color: var(--blue); }
.site-footer a:hover { color: var(--white); }

/* Admin */
input.money { width: 110px; padding: 7px 10px; }
.table tbody th { background: #f0f3f8; width: 260px; }

/* Dashboard */
.notice { background: #e3f6ea; color: #1b6b3a; border-radius: 8px; padding: 10px 14px; }
.assessment-list { display: grid; gap: 14px; }
.assessment-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.assessment-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.assessment-card p { margin: 4px 0; }

@media (max-width: 800px) {
  .split, .buy-inner, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-band h1 { font-size: 2rem; }
  .row { grid-template-columns: 1fr; }
  h1, .hero h1 { font-size: 1.8rem; }
  .brand img { max-width: 170px; }
  .nav { gap: 12px; }
  .nav-product { display: none; }
  .table { font-size: .9rem; }
}

/* Contact form */
textarea { resize: vertical; min-height: 140px; }
select { background: var(--white); }
input.answer { max-width: 120px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Signed-in area: left-hand menu */
.app-shell { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: start; }
.app-main { min-width: 0; }
.side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.side-h { margin: 10px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-h:first-child { margin-top: 0; }
.side a, .side-out { display: block; padding: 8px 10px; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: .95rem; }
.side a:hover, .side-out:hover { background: #eef3fa; }
.side a.on { background: var(--navy); color: var(--white); }
.side form { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.side-out { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; gap: 18px; }
  /* Menu becomes one swipeable row of pills */
  .side { position: static; flex-direction: row; align-items: center; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .side::-webkit-scrollbar { display: none; }
  .side { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }
  .side-h { display: none; }
  .side a, .side-out { white-space: nowrap; padding: 8px 12px; font-size: .9rem; }
  .side form { border: 0; padding: 0; margin: 0 0 0 auto; }
}

/* Coupons */
.coupon-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; align-items: end; }
.coupon-form .stack { gap: 6px; }
.coupon-off { color: var(--muted); }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .03em; }
details.coupon-field summary { cursor: pointer; color: var(--blue-dark, #1a7fc4); font-size: .92rem; }
details.coupon-field[open] summary { margin-bottom: 8px; }
.msg-body { white-space: pre-wrap; margin: 6px 0 0; }
.inline-form { display: inline; }

/* View as customer */
.viewas-bar { background: #fff4d6; border-bottom: 2px solid #f0b429; color: #3d2c00; font-size: .92rem; }
.viewas-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.viewas-inner form { margin: 0; }

/* Admin page header + users list */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0 0 2px; }
.search-form { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 420px; margin: 0; }
.search-form input { flex: 1; min-width: 0; padding: 9px 12px; }
.hint { background: #f0f6fd; border: 1px solid #d6e8f8; border-radius: 8px; padding: 10px 14px; font-size: .88rem; color: #2a3b55; margin: 0 0 16px; }
.btn-outline { background: var(--white); color: var(--blue-dark); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.user-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.user-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.5fr) 110px; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: #fafbfd; }
.user-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e8f1fb; color: var(--navy); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.user-name { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.user-name strong { color: var(--navy); }
.user-email { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; background: #f0f3f8; color: #3d4a60; border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-done { background: #e3f6ea; color: #1b6b3a; }
.user-dates { display: flex; gap: 18px; margin: 0; font-size: .85rem; }
.user-dates dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.user-dates dd { margin: 0; white-space: nowrap; }
.user-act { text-align: right; }
.user-act form { margin: 0; }
@media (max-width: 900px) {
  .user-row { grid-template-columns: 1fr auto; grid-template-areas: "id act" "stats stats" "dates dates"; gap: 10px; }
  .user-id { grid-area: id; } .user-act { grid-area: act; } .user-stats { grid-area: stats; padding-left: 52px; } .user-dates { grid-area: dates; padding-left: 52px; }
}

/* Tables become stacked cards on phones (cells carry data-label) */
@media (max-width: 760px) {
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack { border: 0; background: none; }
  .table-stack thead { display: none; }
  .table-stack tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 7px 14px; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; flex: none; }
  .table-stack td[data-label=""]::before { content: none; }
  .table-stack td.msg-cell { display: block; text-align: left; }
  .table-stack td.msg-cell::before { display: block; margin-bottom: 4px; }
  .table-stack input.money { max-width: 120px; }
  .main { padding-top: 20px; }
  .hero-band { margin-top: -20px; } /* match the smaller top padding, so the band never covers the header */
  .panel { padding: 20px; }
}
.panel > h2:first-child, .panel > h1:first-child { margin-top: 0; }

@media (max-width: 760px) { .table tbody th { width: 40%; } }

/* Photos */
.photo { display: block; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #dfe7f2; }
.photo-hero img { box-shadow: 0 24px 60px rgba(0, 0, 20, .45); border: 1px solid rgba(255, 255, 255, .08); }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; text-align: left; }
.hero-band .hero-split h1, .hero-band .hero-split .lead { margin-left: 0; margin-right: 0; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-band .hero-split h1 { font-size: 2.6rem; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-band .hero-split h1, .hero-band .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-band .hero-split h1 { font-size: 2.1rem; }
  .photo-hero { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Diagrams */
.diagram { margin: 20px 0 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.disc-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; }
.disc-wheel { margin: 0; }
.style-card h3 { display: flex; align-items: center; gap: 10px; }
.letter { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.eq-model { display: grid; grid-template-columns: 34px 1fr 1fr; grid-template-rows: auto auto auto; gap: 8px 16px; }
.eq-model .grid-2 { grid-column: 2 / 4; grid-row: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.axis { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.axis-col { grid-row: 1; text-align: center; }
.axis-col:nth-child(1) { grid-column: 2; } .axis-col:nth-child(2) { grid-column: 3; }
.axis-row { grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; align-self: center; }
.axis-r1 { grid-row: 2; } .axis-r2 { grid-row: 3; }
.chart-card .diagram { margin-top: 6px; }
@media (max-width: 900px) {
  .disc-layout { grid-template-columns: 1fr; }
  .disc-wheel { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 700px) {
  .eq-model { display: block; }
  .eq-model .axis { display: none; }
  .eq-model .grid-2 { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
}

/* Legal pages: easier to read */
.legal, .legal.prose { max-width: none; font-size: 1.02rem; line-height: 1.7; }
.legal h2 { scroll-margin-top: 16px; padding-top: .6em; border-top: 1px solid var(--line); }
.legal-summary { background: #eaf1f9; border: 1px solid #d6e5f5; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.legal-summary h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 1.05rem; }
.legal-summary ul { margin: 0; padding-left: 0; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; margin: 0 0 24px; font-size: .95rem; }
.legal-toc ol { columns: 3; column-gap: 28px; margin: 8px 0 0; padding-left: 20px; }
.legal-toc li { margin: 2px 0; }
@media (max-width: 900px) { .legal-toc ol { columns: 2; } }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } .legal { font-size: 1rem; } }

/* Payment security cues */
.btn-secure { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ico { width: 18px; height: 18px; flex: none; }
.trust { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #1b6b3a; }
.trust .ico { width: 16px; height: 16px; }
