/* Aeon Guardians — one stylesheet, no framework. Mobile first; desktop gets side-by-side buy boxes. */
/* Headings font, served from this site (no trip to Google). Bayon, SIL Open Font Licence, latin subset from Google Fonts. */
@font-face { font-family: 'Bayon'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/bayon.woff2) format('woff2'); }
:root {
  --orange: #ff5a17; --orange-dark: #e04806; --teal: #08636c; --teal-light: #e6f2f3;
  --ink: #141414; --text: #2b2b2b; --muted: #6b6b6b; --line: #e6e6e3; --bg: #fff; --soft: #f6f6f3;
  --ok: #1d7a3a; --warn: #9a6a00; --err: #b3261e;
  --radius: 10px; --wrap: 1180px;
  --display: 'Bayon', Impact, 'Arial Narrow', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border: 0; border-radius: 8px;
  background: var(--orange); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--orange-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-big { min-height: 56px; font-size: 1.15rem; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-teal { background: var(--teal); } .btn-teal:hover { background: #054b52; }
.btn-link { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3em; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; /* no iOS zoom */ padding: .7em .8em; border: 1.5px solid #cfcfcb; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field { margin-bottom: 14px; }
/* minmax(0, …) + min-width: 0 so a wide control (date-and-time pickers have a big built-in minimum) can't push past its panel */
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > *, .row3 > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; background: #fdecea; color: var(--err); }
.alert-ok { background: #e7f5ec; color: var(--ok); }

/* ── Header ── */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .85rem; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo img { width: 186px; height: 24px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--orange); }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; padding: 8px; }
.cart-link svg { width: 26px; height: 26px; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .logo img { width: 150px; height: 19px; }
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
}

/* ── Home ── */
.hero { position: relative; color: #fff; background: #111 center/cover no-repeat; min-height: min(78vh, 620px); display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.75)); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 48px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .2em; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34em; margin: 0 0 22px; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: #fff; } .hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.trust { background: var(--soft); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.trust li::before { content: '✓'; color: var(--orange); font-weight: 800; margin-right: 6px; }
.section { padding-top: 56px; padding-bottom: 56px; }   /* top/bottom only: keeps .wrap's side gutters */
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.uses { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.use img { border-radius: var(--radius); aspect-ratio: 2/1; object-fit: cover; object-position: right center; /* two photos carry captions on the right */ width: 100%; margin-bottom: 14px; }
.use h3 { margin-bottom: .3em; }
.use p { margin: 0; color: var(--muted); }
.byd { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.byd img { max-width: 240px; }
.stockist-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.stockist-row img { max-height: 70px; width: auto; }
@media (max-width: 860px) { .uses { grid-template-columns: 1fr; } .byd { grid-template-columns: 1fr; gap: 20px; } }

/* ── Product cards ── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.card .img { aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; }
.card .img img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; margin: 0; color: var(--ink); line-height: 1.3; }
.card .price { margin-top: auto; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .85em; margin-left: 6px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chips a { padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Product page: gallery left, buy box right (one screen on desktop) ── */
.crumbs { font-size: .85rem; margin: 18px 0; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery .main { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--soft); cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 84px; }
.buybox h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .25em; }
.buybox .price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.buybox .gst { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.buy-form { scroll-margin-top: 80px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.buy-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-bottom: 12px; }
.quote { min-height: 1.5em; font-size: .92rem; margin: -4px 0 12px; }
.quote.ok { color: var(--ok); font-weight: 600; } .quote.bad { color: var(--err); }
.alt-pay { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }
.pay-icons { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; background: #fff; font-weight: 600; }
.stock-low { color: var(--warn); font-weight: 600; font-size: .9rem; }
.dg-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text); }
.specs { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 600; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 20px; }
  .buybox { position: static; }
  /* Thumb-reach Buy bar on phones, shown once the main button scrolls away */
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .2s; }
  .sticky-buy.show { transform: none; }
  .sticky-buy .p { font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
  .sticky-buy .btn { flex: 1; }
}

/* ── Cart / checkout: items left, summary right ── */
.cart { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; height: 84px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.cart-line .name { font-weight: 700; color: var(--ink); text-decoration: none; }
.qty-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-form button { width: 34px; height: 34px; border: 1.5px solid var(--line); background: #fff; border-radius: 6px; font-size: 1.1rem; cursor: pointer; }
.qty-form span { min-width: 24px; text-align: center; font-weight: 700; }
.summary { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; }
.summary .line { display: flex; justify-content: space-between; margin: 6px 0; }
.co-step { font-size: 1.15rem; margin: 22px 0 10px; }
.co-step:first-child { margin-top: 0; }
.pay-element { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 120px; }
#checkout-form .btn-big, #invoice-pay .btn-big { width: 100%; margin-top: 14px; }
.summary .total { font-size: 1.25rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }

/* ── Order page ── */
.status { display: inline-block; padding: 4px 10px; border-radius: 14px; font-weight: 700; font-size: .85rem; background: var(--soft); }
.status-paid, .status-shipped { background: #e7f5ec; color: var(--ok); }
.status-awaiting_payment { background: #fff4d6; color: var(--warn); }
.status-cancelled, .status-refunded { background: #fdecea; color: var(--err); }
.payid-box { background: #fff6f1; border: 1px solid #ffd2bd; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.payid-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.payid-box dt { color: var(--muted); } .payid-box dd { margin: 0; font-weight: 700; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: #cfcfcf; margin-top: 64px; padding: 44px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 0 0 10px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; } .foot-grid li { margin: 6px 0; }
.foot-bottom { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9a9a9a; font-size: .82rem; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: #cfcfcf; }
.foot-legal a:hover { color: #fff; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── Toasts (every action confirms itself) ── */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .95rem; border-left: 5px solid var(--orange); animation: toast-in .2s ease-out; }
.toast-success { border-left-color: #3ccf6e; } .toast-error { border-left-color: #ff5a5a; } .toast-info { border-left-color: #5ab4ff; }
.toast button { margin-left: auto; background: none; border: 0; color: #aaa; cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Personality & sale (Black Friday etc. — src/lib/sale.js) ── */
.announce-sale { background: #000; font-size: .9rem; }
.announce-sale a { color: #fff; text-decoration: none; }
.announce-sale strong { color: var(--orange); }
.announce-sale .go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sticker { display: inline-block; background: var(--orange); color: #fff; font: 400 1.05rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 10px 5px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.sticker-big { font-size: 1.35rem; padding: 9px 14px 7px; margin-bottom: 14px; }
.card .img, .choice .img { position: relative; }
.card .sticker, .choice .sticker { position: absolute; top: 12px; left: 12px; }
.save { color: var(--ok); font-weight: 700; font-size: .9rem; }
.sale-flag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.sale-flag .cd { color: var(--err); font-weight: 700; font-size: .9rem; }
.buybox .save { margin: -2px 0 4px; }
.summary .line.save { font-size: 1rem; }
.sticky-buy .p .was { font-size: .8rem; }
.kicker { margin: 0 0 10px; font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.hero .btn:not(.btn-ghost) { box-shadow: 0 4px 0 var(--orange-dark); }

/* Pick your setup: three plain-English choices, straight to the product */
.choices { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.choice { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.choice:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
.choice.best { border: 2.5px solid var(--orange); }
.choice-flag { position: absolute; z-index: 2; top: 12px; right: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 14px; }
.choice .img { aspect-ratio: 4/3; background: var(--soft); }
.choice .img img { width: 100%; height: 100%; object-fit: contain; }
.choice .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.choice h3 { margin: 0; font-size: 1.6rem; }
.choice .who { margin: 0; color: var(--text); }
.choice .name { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.choice .price { margin-top: auto; padding-top: 6px; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.choice .btn { margin-top: 10px; width: 100%; }
@media (max-width: 860px) { .choices { grid-template-columns: 1fr; } .choice .img { aspect-ratio: 16/9; } }

/* Straight answers */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.6rem; color: var(--orange); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; }

/* Call-us band above the footer */
.cta-band { background: var(--teal); color: #fff; padding: 44px 0; margin-bottom: -64px; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; max-width: 36em; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; } .cta-band .btn-ghost:hover { background: #fff; color: var(--teal); }
.oops { font: 400 1.1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
/* Hero: darker on the text side so the copy reads over bright photos */
.hero::before { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.6)); }
.hero .kicker { color: #ffb48f; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero p { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.8) 55%); } }

/* ── "Ask us" chat ── */
.chat-launch { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 30px;
  background: var(--ink); color: #fff; font: 700 .95rem var(--body); cursor: pointer; transition: transform .15s, bottom .2s;
  box-shadow: 0 0 0 2px #fff, 0 8px 24px rgba(0,0,0,.25); /* white ring: stays visible over the dark footer */ }
.chat-launch:hover { transform: translateY(-2px); background: #000; }
.chat-launch svg { width: 22px; height: 22px; color: var(--orange); }
body.chat-open .chat-launch { display: none; }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; }
.chat-head small { color: #bbb; font-size: .8rem; }
.chat-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: .94rem; line-height: 1.5; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--teal); font-weight: 600; }
.msg.typing::after { content: '…'; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2 } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-starters[hidden] { display: none; }
.chat-starters button { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 11px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink); }
.chat-starters button:hover { border-color: var(--orange); }
.chat-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-ask textarea { resize: none; min-height: 44px; max-height: 120px; }
.chat-ask .btn { min-height: 44px; padding: 0 16px; }
.chat-ask[hidden], .chat-person[hidden], .chat-foot[hidden] { display: none; }
.chat-person { padding: 14px; border-top: 1px solid var(--line); overflow-y: auto; }
.chat-person .field { margin-bottom: 10px; }
.chat-person-btns { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px 12px; font-size: .9rem; }
@media (max-width: 860px) { body.has-sticky-buy .chat-launch { bottom: 84px; } }
@media (max-width: 600px) {
  .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 14px; }
}

/* ── Page blocks (Admin › Pages) ── */
.page-blocks > .blk + .blk { margin-top: 28px; }
.blk.a-center { text-align: center; }
.blk-heading h1, .blk-heading h2, .blk-heading h3 { margin-bottom: .2em; }
.blk-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }
.blk-text { max-width: 760px; }
.blk-text.a-center { margin-left: auto; margin-right: auto; }
.blk-banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; background: #111 center/cover no-repeat; display: flex; align-items: flex-end; }
.blk-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.1) 80%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.blk-banner.h-tall { min-height: 520px; } .blk-banner.h-medium { min-height: 380px; } .blk-banner.h-short { min-height: 220px; }
.blk-banner .banner-inner { position: relative; padding: 36px; max-width: 680px; }
.blk-banner h2 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .2em; }
.blk-banner p { font-size: 1.1rem; margin: 0 0 18px; }
.blk-banner .kicker { color: #ffb48f; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: 6px; }
.blk-banner .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.blk-banner .btn-ghost { color: #fff; border-color: #fff; } .blk-banner .btn-ghost:hover { background: #fff; color: var(--ink); }
.blk-image { margin: 0; text-align: center; }
.blk-image img { border-radius: var(--radius); margin: 0 auto; }
.blk-image.w-medium img { max-width: 640px; } .blk-image.w-small img { max-width: 380px; }
.blk-image figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.blk-imagetext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.blk-imagetext img { border-radius: var(--radius); width: 100%; }
.blk-imagetext.is-right > img, .blk-imagetext.is-right > span { order: 2; }
.blk-cards .uses.cols-2 { grid-template-columns: repeat(2, 1fr); } .blk-cards .uses.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-cards a.use { text-decoration: none; color: inherit; }
.blk-cards a.use:hover h3 { color: var(--orange); }
.blk-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border-radius: var(--radius); color: #fff; }
.blk-cta h2 { color: inherit; margin-bottom: .2em; } .blk-cta p { margin: 0; }
.blk-cta.tone-teal { background: var(--teal); } .blk-cta.tone-dark { background: var(--ink); } .blk-cta.tone-orange { background: var(--orange); }
.blk-cta.tone-orange .btn { background: var(--ink); }
.blk-cta.tone-light { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.blk-button.a-center { text-align: center; }
.blk-highlight { padding: 16px 20px; border-radius: var(--radius); border-left: 5px solid var(--orange); background: #fff1ea; }
.blk-highlight.tone-teal { background: var(--teal-light); border-color: var(--teal); }
.blk-highlight.tone-grey { background: var(--soft); border-color: #bbb; }
.blk-highlight.tone-yellow { background: #fff6c8; border-color: #e6c200; }
.blk-highlight > :last-child { margin-bottom: 0; }
.blk-quote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.blk-quote cite { display: block; margin-top: 8px; font-size: .95rem; font-style: normal; color: var(--muted); }
.blk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.blk-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.blk-video { margin: 0; } .blk-video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.blk-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-video figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.blk-signup { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px auto 8px; max-width: 640px; }
.signup-form input { flex: 1 1 180px; width: auto; }
.blk-contact form { max-width: 640px; }
.blk-note { padding: 10px 14px; border: 2px dashed #e6c200; background: #fffbe6; border-radius: 8px; font-size: .9rem; }
.blk-divider { border: 0; border-top: 2px solid var(--line); }
.blk-spacer.s-small { height: 8px; } .blk-spacer.s-medium { height: 28px; } .blk-spacer.s-large { height: 64px; }
.page-blocks > .blk-spacer + .blk, .page-blocks > .blk + .blk-spacer { margin-top: 0; }
@media (max-width: 760px) {
  .blk-imagetext { grid-template-columns: 1fr; gap: 16px; } .blk-imagetext.is-right > img { order: 0; }
  .blk-cards .uses.cols-2, .blk-cards .uses.cols-4 { grid-template-columns: 1fr; }
  .blk-banner .banner-inner { padding: 22px; } .blk-cta { padding: 24px; }
}
/* Footer sign-up */
.foot-signup { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.foot-signup input { flex: 1 1 160px; width: auto; padding: .55em .7em; font-size: 15px; background: #222; border-color: #444; color: #fff; }
.foot-signup .btn { min-height: 42px; padding: .5em 1em; }

/* ── Testimonials ── */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.quote-card figcaption { margin-top: auto; color: var(--muted); font-size: .9rem; }
.quote-card figcaption strong { color: var(--ink); }
.stars { color: var(--orange); letter-spacing: 2px; font-size: 1.05rem; }
.stars span { color: #ddd; }

/* ── Account & support ── */
.acct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acct-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.acct-row:first-child { border-top: 0; }
.acct-row .meta { color: var(--muted); font-size: .88rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; max-width: 260px; }
.help-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 36px; }
.help-tile { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; }
.help-tile strong { display: block; color: var(--ink); margin-bottom: 4px; }
.help-tile:hover { border-color: var(--orange); }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.thread .msg { max-width: 100%; }
.thread .msg .who { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.thread .msg.me .who { color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .help-tiles { grid-template-columns: 1fr 1fr; } }

/* ── Home: "What'll it run?" + sun band (icons are our own, views/partials/icon.ejs) ── */
s { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 3px; color: var(--muted); }
h3 s { display: block; font: 600 .95rem/1.3 var(--body); letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.lead-note { margin: -6px 0 22px; color: var(--muted); max-width: 640px; }
.fine { font-size: .8rem; color: var(--muted); margin: 20px 0 0; max-width: 820px; }
.sits { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: transform .2s; }
.sit:nth-child(odd) { transform: rotate(-.6deg); } .sit:nth-child(even) { transform: rotate(.5deg); }
.sit:hover { transform: rotate(0) translateY(-3px); }
.sit-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sit-ico { width: 58px; height: 58px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; flex: none; }
.sit-ico .ico { width: 36px; height: 36px; }
.sit-big { font: 400 2.1rem/1 var(--display); color: var(--orange); letter-spacing: .02em; }
.sit h3 { font-size: 1.45rem; margin-bottom: .35em; }
.sit p { margin: 0 0 10px; }
.sit .sit-math { font-size: .82rem; color: var(--muted); margin: 0; border-top: 1px dashed var(--line); padding-top: 8px; }
.sun-band { background: var(--ink); color: #e9e9e6; }
.sun-band h2 { color: #fff; } .sun-band strong { color: #fff; } .sun-band s { color: #9a9a96; }
.sun-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sun-meter { background: #1f1f1f; border-radius: 14px; padding: 22px; }
.sun-sky { color: #ffc23a; width: 72px; margin: 0 auto 14px; animation: sun-spin 18s linear infinite; }
.sun-sky .ico { width: 72px; height: 72px; }
.sun-batt { display: flex; gap: 4px; border: 3px solid #fff; border-radius: 8px; padding: 4px; position: relative; margin-right: 10px; }
.sun-batt::after { content: ''; position: absolute; right: -10px; top: 50%; width: 6px; height: 22px; margin-top: -11px; background: #fff; border-radius: 0 3px 3px 0; }
.sun-batt span { flex: 1; min-width: 0; height: 54px; border-radius: 4px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: end center; padding-bottom: 4px;
  animation: cell-fill 6s calc(var(--i) * .45s) infinite both; }
.sun-cap { text-align: center; font-size: .8rem; color: #a9a9a5; margin: 12px 0 0; }
@keyframes cell-fill { 0%, 8% { opacity: .12 } 14%, 88% { opacity: 1 } 100% { opacity: .12 } }
@keyframes sun-spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .sun-batt span, .sun-sky { animation: none; } .sit, .sit:nth-child(n) { transform: none; } }
@media (max-width: 860px) { .sits { grid-template-columns: minmax(0, 1fr); } .sun-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (min-width: 861px) and (max-width: 1100px) { .sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sun-note { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; background: #fff8e6; border: 1px solid #f3dca0; border-radius: var(--radius); font-size: .92rem; }
.sun-note-ico { color: #e59a00; flex: none; } .sun-note-ico .ico { width: 30px; height: 30px; }
.sun-note details { margin-top: 6px; font-size: .82rem; color: var(--muted); } .sun-note summary { cursor: pointer; color: var(--teal); }
.sun-note details p { margin: 6px 0 0; }

/* Home: "Straight talk: what it won't do" — handwritten-note feel */
.nope { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.nope-item { background: #fffbe8; border: 1px solid #efe2a8; border-radius: 4px; padding: 16px 18px; box-shadow: 0 2px 0 rgba(0,0,0,.04); position: relative; }
.nope-item:nth-child(3n+1) { transform: rotate(-.7deg); } .nope-item:nth-child(3n+2) { transform: rotate(.5deg); } .nope-item:nth-child(3n) { transform: rotate(-.3deg); }
.nope-item p { margin: 0; }
.nope-q { font: 400 1.3rem/1.15 var(--display); color: var(--ink); margin-bottom: 8px !important; letter-spacing: .01em; }
.nope-q::before { content: '✗ '; color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .nope-item { transform: none !important; } }
.nope-yes .nope-q::before { content: '✓ '; color: var(--teal); }
