@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --blue: #0f5c63;        /* peacock: the brand colour */
  --blue-dark: #0a4449;
  --gold: #f2a20c;        /* marigold: alerts and attention only */
  --ink: #16242a;
  --muted: #56666b;
  --line: #dce5e3; --tint: #e6f1f0; --tint-line: #bcd9d6;
  --bg: #f5f7f6;
  --card: #ffffff;
  --ok: #1a7f4b;
  --bad: #c8372d;
  --radius: 12px;
  --display: "Bricolage", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-family: var(--display); font-weight: 650; letter-spacing: -.015em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.testbar { background: #b45309; color: #fff; text-align: center; font-size: .85rem; padding: 4px; }

.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: .75em 1.3em; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn-small { padding: .45em .9em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: #e6f1f0; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }

.site-head, .admin-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.dot { width: 15px; height: 15px; border-radius: 50% 50% 50% 3px; background: var(--blue); display: inline-block; box-shadow: inset -4px -4px 0 var(--gold); }

main { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
main.narrow { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.hero { padding: 64px 0 40px; max-width: 760px; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.lead { font-size: 1.2rem; color: #374151; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.band { padding: 40px 0; border-top: 1px solid var(--line); }
.section-lead { color: #374151; max-width: 680px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature, .card, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature p { margin: 0; color: #374151; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 12px; }
.plan.featured { border: 2px solid var(--blue); }
.plan .price { font-size: 1.5rem; font-weight: 700; margin: 0; }
.plan ul { padding-left: 1.1em; margin: 12px 0 0; }
.plan li { margin-bottom: 4px; }

.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .filters input, .filters select { font: inherit; font-weight: 400; padding: .65em .75em; border: 1px solid #c8cfdb; border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #9cc9c4; border-color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex !important; grid-template-columns: none !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.captcha { display: grid; gap: 6px; }
.captcha label { font-weight: 600; font-size: .95rem; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-img svg { display: block; border-radius: 8px; border: 1px solid var(--line); }
.alert { background: #fdecec; color: var(--bad); border: 1px solid #f5c2c2; padding: 10px 12px; border-radius: 8px; margin: 0; }
.note { background: #e9f3f2; border: 1px solid #bcd9d6; padding: 10px 12px; border-radius: 8px; margin: 0; }

.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.site-foot { max-width: 1060px; margin: 0 auto; padding: 28px 20px 40px; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
.site-foot p { margin: 0 0 4px; }

/* sign-in */
body.auth { min-height: 100vh; display: grid; place-items: center; }
.auth-box { width: 100%; max-width: 420px; padding: 24px 16px; }
.auth-box .brand { margin-bottom: 16px; }
.auth-box h1 { font-size: 1.5rem; }

/* admin */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a, .admin-nav .later { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.admin-nav a.active { background: #e6f1f0; color: var(--blue); font-weight: 600; }
.admin-nav a:hover { background: #f3f5f9; }
.admin-nav .later { color: #9aa2ae; font-size: .9rem; }
.admin-nav .later em { font-style: normal; font-size: .75rem; display: block; }
.admin-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.admin-main { padding: 24px; max-width: 1200px; width: 100%; }
.admin-main h1 { font-size: 1.6rem; }
.admin-head form { display: flex; align-items: center; gap: 10px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.stat span { display: block; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.cols .card + .card, .cols > div > .card + .card { margin-top: 16px; }
.card h2 { font-size: 1.1rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.barcell { width: 40%; }
.bar { display: block; height: 10px; background: var(--blue); border-radius: 5px; min-width: 2px; }
.health { list-style: none; padding: 0; margin: 0 0 8px; }
.health li::before { content: "●"; margin-right: 8px; }
.health li.ok::before, .pill.ok { color: var(--ok); }
.health li.bad::before, .pill.bad { color: var(--bad); }
.pill { font-weight: 700; font-size: .8rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters input { max-width: 340px; }
.filters select { max-width: 260px; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 12px; }

@media (max-width: 760px) {
  .grid2, .cols { grid-template-columns: 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav hr, .admin-nav .later { display: none; }
  .admin-main { padding: 16px; }
  .hero { padding-top: 40px; }
}
.head-links { display: flex; gap: 16px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form textarea, .rows-table textarea, .rows-table input, .rows-table select { font: inherit; font-weight: 400; padding: .5em .6em; border: 1px solid #c8cfdb; border-radius: 8px; background: #fff; width: 100%; }
.rows-table td { padding: 4px; } .rows-table td.short { width: 120px; } .rows-table input[type="checkbox"] { width: auto; }
.pack-form .card { margin-bottom: 16px; overflow-x: auto; }
.savebar { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; } .checks legend { font-weight: 600; margin-bottom: 6px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */
.site-head { position: sticky; top: 0; z-index: 5; }
.head-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.home { max-width: 1100px; }
.hero2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero2 h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 750; letter-spacing: -.035em; line-height: .98; margin-bottom: .35em; }
.hero2 .lead { max-width: 30em; }
.demo { position: relative; height: 430px; }
.demo-site { position: absolute; left: 0; top: 0; width: 72%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(15,92,99,.45); }
.demo-bar { background: #eef2f1; padding: 8px 14px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.demo-chat { padding: 16px 64px 20px 16px; display: grid; gap: 8px; min-height: 250px; align-content: start; }
.demo-chat b { font-family: var(--display); font-size: 1rem; }
.d-msg { margin: 0; padding: 9px 13px; border-radius: 14px; max-width: 100%; font-size: .92rem; line-height: 1.4; }
.d-v { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.d-b { background: #eef2f1; border-bottom-left-radius: 4px; }
.d-label { font-size: .72rem; color: var(--muted); }
.demo-phone { position: absolute; right: 0; bottom: 0; width: 42%; min-width: 190px; aspect-ratio: 9 / 16; background: var(--ink); border-radius: 30px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(22,36,42,.6); }
.demo-screen { height: 100%; border-radius: 20px; background: linear-gradient(170deg, #1d5560, #0c2f36); padding: 18px 10px; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.d-time { font-family: var(--display); font-size: 2.6rem; font-weight: 300; text-align: center; margin: 6px 0 10px; }
.d-alert { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 14px; padding: 10px 12px; font-size: .78rem; line-height: 1.35; border-left: 4px solid var(--gold); }
.d-alert strong { display: block; font-size: .8rem; }
.demo-caption { position: absolute; left: 0; bottom: 0; font-size: .78rem; color: var(--muted); max-width: 46%; }
/* one moment on load: the question, the answer, then the phone alert */
.d-v, .d-b, .d-label, .d-alert { opacity: 0; animation: rise .5s ease-out forwards; }
.d-v { animation-delay: .5s; } .d-b, .d-label { animation-delay: 1.5s; } .d-alert { animation-delay: 2.3s; } .d-alert + .d-alert { animation-delay: 3s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .d-v, .d-b, .d-label, .d-alert { animation: none; opacity: 1; } }
.part { padding: 56px 0; border-top: 1px solid var(--line); }
.part > h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 18em; }
.part > .section-lead { margin-bottom: 28px; }
.journey { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.journey li { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 0 0 26px; position: relative; }
.journey li::before { content: ""; position: absolute; left: 100px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey time { font-family: var(--display); font-weight: 600; color: var(--blue); text-align: right; padding-top: 1px; }
.journey div { padding-left: 26px; position: relative; }
.journey div::before { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.journey li.ring div::before { border-color: var(--gold); background: var(--gold); }
.journey h3 { margin: 0 0 4px; font-size: 1.15rem; } .journey p { margin: 0; color: #3c4b50; max-width: 34em; }
.packs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.packs3 > div { border-top: 3px solid var(--blue); padding-top: 14px; }
.packs3 h3 { font-size: 1.25rem; } .packs3 p { color: #3c4b50; margin: 0 0 8px; } .packs3 .ask { font-size: .88rem; color: var(--muted); }
.plan-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-table th, .plan-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { font-family: var(--display); font-size: 1.15rem; } .plan-table thead th span { display: block; font: 400 .85rem system-ui, sans-serif; color: var(--muted); }
.plan-table tbody th { font-weight: 600; color: var(--muted); width: 24%; } .plan-table tr:last-child > * { border-bottom: 0; }
.plan-table .pick { background: #f0f7f6; }
.plan-wrap { overflow-x: auto; }
.plan-table tfoot td, .plan-table tfoot th { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 14px; padding-bottom: 16px; }
.plan-table tfoot .btn { display: block; text-align: center; padding: .7em .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.try { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.try-points { margin: 18px 0 0; padding-left: 1.1em; color: var(--muted); } .try-points li { margin: 6px 0; }
.chatbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -32px rgba(15,92,99,.45); display: flex; flex-direction: column; }
.chatbox-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--blue); color: #fff; }
.chatbox-head b { font-family: var(--display); font-size: 1.05rem; display: block; } .chatbox-head span { font-size: .78rem; opacity: .85; }
.chatbox-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fd68f; flex: none; }
.chatbox-log { height: 340px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.cb-msg { margin: 0; padding: 9px 13px; border-radius: 14px; max-width: 85%; font-size: .93rem; line-height: 1.45; animation: rise .2s ease-out; }
.cb-v { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.cb-b { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cb-note { align-self: center; font-size: .78rem; color: var(--muted); text-align: center; }
.cb-alert { align-self: stretch; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: .85rem; border-left: 4px solid var(--gold); animation: rise .25s ease-out; }
.cb-alert strong { display: block; }
.cb-typing { align-self: flex-start; color: var(--muted); font-size: .85rem; }
.chatbox-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0; background: #fff; }
.chatbox-chips button { min-height: 40px; padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--tint-line); background: var(--tint); color: var(--blue-dark); font: inherit; font-size: .88rem; cursor: pointer; }
.chatbox-chips button:hover { border-color: var(--blue); }
.chatbox-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.chatbox-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.chatbox-form .btn { min-height: 44px; }
.chatbox-foot { margin: 0; padding: 0 12px 12px; font-size: .75rem; color: var(--muted); background: #fff; }
@media (prefers-reduced-motion: reduce) { .cb-msg, .cb-alert { animation: none; } }
.join { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; padding: 40px 0; gap: 28px; }
  .try { grid-template-columns: 1fr; gap: 24px; } .chatbox-log { height: 260px; }
  .demo { height: auto; max-width: 460px; } .demo-site { position: relative; width: 88%; } .demo-chat { padding-right: 42%; min-height: 300px; }
  .demo-phone { top: 44px; bottom: auto; width: 44%; min-width: 0; } .d-time { font-size: 2rem; }
  .demo-caption { position: static; max-width: none; margin: 56px 0 0; }
  .packs3, .join { grid-template-columns: 1fr; gap: 24px; }
  .journey li { grid-template-columns: 64px 1fr; gap: 12px; } .journey li::before { left: 76px; } .journey div { padding-left: 24px; }
  .plan-table { min-width: 620px; }
}
