/* theme.css: the calm, senior-friendly design layer (October 2026 redesign).
   Loaded after ald.css on every page. Same green brand colours; larger text, calmer surfaces,
   one card style, one button style, even spacing. Text size follows the "Aa" control
   (html[data-text] set by ui.js). Removing this file restores the previous look. */

:root {
  --green: #1a7f37;
  --green-ink: #14612b;
  --green-deep: #0f4d22;
  --green-soft: #eaf5ed;
  --green-wash: #f4faf6;
  --ink: #171512;
  --muted: #4a4741;             /* darker than before: easier to read */
  --line: #e2e6e1;
  --soft: #f6f8f5;
  --bg: #ffffff;
  /* Flat design (a standing decision): no drop shadows. Depth comes from fine borders. */
  --card-shadow: none;
  --card-shadow-hover: none;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--green);
  --text-scale: 1;
}
html[data-text="lg"] { --text-scale: 1.12; }
html[data-text="xl"] { --text-scale: 1.25; }
html { font-size: calc(100% * var(--text-scale)); }

/* ---------- Type ---------- */
body { font-size: 1.1875rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.025em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); letter-spacing: -.02em; }
h3 { font-size: 1.28rem; line-height: 1.25; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.muted, .card p.muted { color: var(--muted); }
.eyebrow { font-size: .86rem; letter-spacing: .08em; color: var(--green-ink); margin-bottom: 10px; }
.small, small { font-size: .92rem; }
.disclaimer { font-size: .95rem; color: var(--muted); }
p, li { text-wrap: pretty; }

/* ---------- Layout and rhythm ---------- */
.container { width: min(1180px, 100% - 48px); }
.narrow { width: min(780px, 100% - 48px); }
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section.tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.section.band { background: var(--green-wash); border-block: 1px solid #e6efe8; }
.sec-head { margin-bottom: clamp(22px, 3vw, 34px); align-items: flex-end; }
.sec-head > div { max-width: 760px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head .lead { margin-bottom: 0; }

/* ---------- Buttons (one style family) ---------- */
.btn { min-height: 56px; padding: 0 28px; font-size: 1.05rem; border-radius: 999px; transition: background .18s, color .18s, box-shadow .18s, transform .14s var(--ease); }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.1rem; }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.btn-primary { background: var(--green); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--green-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--green-ink); }
.btn-soft { background: var(--green-soft); color: var(--green-ink); }
.btn-soft:hover { background: #dcefe2; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-text { font-size: 1.05rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(26, 127, 55, .35); }
.btn-text:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 12px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Cards (one style: white, fine border, soft shadow) ---------- */
.card, .faq details, .note-box, .ask-inline {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.card { border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 32px); transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
a.card:hover, .card.is-link:hover { border-color: var(--green); background: var(--green-wash); transform: translateY(-3px); }
a.card:active, .card.is-link:active { transform: translateY(-1px); }
.section.band .card, .section.band .faq details { background: #fff; }
main .icon-chip { display: none; }
.grid { gap: clamp(16px, 2vw, 24px); }

/* Soft panels become calm white panels with a green edge */
.panel-soft { background: #fff; border: 1px solid #cfe6d6; border-radius: var(--r-xl); box-shadow: var(--card-shadow); position: relative; overflow: hidden; }
.panel-soft::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--green); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* The header keeps a fixed size (it doesn't grow with the text-size setting), so the menu never crowds. */
.site-header .nav-link { font-size: 15.5px; white-space: nowrap; padding: 0 11px; }
.site-header .nav-login { font-size: 15.5px; white-space: nowrap; }
.site-header .btn { font-size: 16px; min-height: 48px; padding: 0 22px; }
.site-header .menu-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .brand img { width: 132px; height: auto; }
  .site-header .nav-cta { gap: 8px; }
  .site-header .nav-join { padding: 0 16px; }
  }
@media (max-width: 359px) { .site-header .brand img { width: 112px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 84px); background: #fff; border-bottom: 0; }
.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-actions .btn-lg { padding: 0 28px; }
.hero .lead { font-size: 1.25rem; }
.hero-actions { gap: 12px; }
.badges li { background: #fff; border: 1px solid #d6eadc; color: var(--green-ink); font-size: .95rem; }
.try-card {
  background: #fff; border: 1px solid #cfe6d6; border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px); box-shadow: none; border-width: 2px;
}
.try-card .try-tag { display: inline-flex; align-items: center; gap: 8px; font: 800 .86rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.try-card .try-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: tryPulse 2.4s ease-in-out infinite; }
@keyframes tryPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.try-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: .4em; }
.try-card p { color: var(--muted); }
.try-card .lc-teaser { display: grid; gap: 12px; margin-top: 18px; }
.try-card .lc-teaser input { width: 100%; min-height: 60px; font-size: 1.15rem; padding: 0 20px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.try-card .lc-teaser input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(26,127,55,.15); outline: none; }
.try-card .lc-teaser .btn { width: 100%; min-height: 60px; font-size: 1.1rem; }
.try-card .try-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .98rem; color: var(--muted); }
.try-card .try-steps li { display: flex; gap: 10px; align-items: flex-start; }
.try-card .try-steps b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; margin-top: 1px; }

/* ---------- Practice tabs (two exercises in one place) ---------- */
.px-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; box-shadow: var(--card-shadow); }
.px-tabs [role="tab"] { min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; font: 700 1.05rem var(--font-body); color: var(--muted); cursor: pointer; transition: background .18s, color .18s; }
.px-tabs [role="tab"]:hover { color: var(--green-ink); }
.px-tabs [role="tab"][aria-selected="true"] { background: var(--green); color: #fff; }
.px-panel[hidden] { display: none; }
.px-panel { animation: pxIn .28s var(--ease); }
@keyframes pxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Carousels become calm grids (no arrows or dots to manage) ---------- */
.as-grid .car-ctrl, .as-grid .car-dots { display: none !important; }
.as-grid .track { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 24px); overflow: visible; margin: 0 !important; padding: 0 !important; cursor: auto; scroll-snap-type: none; }
.as-grid .slide { min-width: 0; flex: none; }
.as-grid .slide > .card { height: 100%; }

/* ---------- Closing call to action ---------- */
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center;
  padding: clamp(30px, 4vw, 52px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.15rem; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eaf5ed; color: var(--green-deep); }
.cta-band .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.cta-band .btn-row { justify-content: flex-end; }
.after-cta { margin-top: clamp(16px, 2vw, 24px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); }
.faq details[open] { border-color: #bfe0c9; }
.faq summary { font-size: 1.15rem; min-height: 68px; }
.faq .answer { font-size: 1.08rem; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select { font-size: 1.05rem; }
main input[type="search"], main input[type="text"], main input[type="email"], main input[type="url"], main textarea { background-color: #fff; border: 2px solid var(--line); }
main input[type="search"]:focus, main input[type="text"]:focus, main input[type="email"]:focus, main input[type="url"]:focus, main textarea:focus { border-color: var(--green); }
.alerts-form input { min-height: 56px; border-radius: 14px; font-size: 1.05rem; }
.alerts-form .btn { min-height: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: #fbfcfb; border-top: 1px solid var(--line); margin-top: 0; }
.site-footer a { font-size: 1rem; }

/* ---------- Pieces that become calmer ---------- */
.portrait { border-radius: var(--r-xl); outline: 0; border: 1px solid var(--line); }
.ask-inline { border-radius: var(--r-md); }
.chip { min-height: 50px; font-size: 1rem; }
.tabs .tab, .tab { font-size: 1rem; min-height: 50px; }
.app-card { border: 1px solid var(--line); box-shadow: var(--card-shadow); }
/* One scam-alert form per page: the footer copy hides when the page already has its own. */
body:has(main form[data-alerts]) .footer-alerts { display: none; }

@media (prefers-reduced-motion: reduce) {
  .try-card .try-tag i, .px-panel { animation: none; }
  .card, .btn { transition: none; }
  a.card:hover, .card.is-link:hover { transform: none; }
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-content: flex-start; }
  .triage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .container, .narrow { width: min(100% - 32px, 1140px); }
  .section { padding: 52px 0; }
  .section.tight { padding: 38px 0; }
  .hero { padding: 30px 0 44px; }
  .hero .lead { font-size: 1.12rem; }
  .hero-actions .btn { width: 100%; }
  .px-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .px-tabs [role="tab"] { padding: 0 10px; font-size: .98rem; border-radius: 14px; line-height: 1.2; }
  .cta-band .btn-row .btn { width: 100%; }
  .faq summary { font-size: 1.05rem; }
  .portrait { max-width: 220px; border-radius: 24px; }
}

/* =========================================================================================
   Round 2 (Oct 13): cards that pop, the Alds mascot, animated app previews, a new footer
   ========================================================================================= */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- Cards: clean type, a soft green spotlight that follows the cursor, a springy lift */
.card { border-radius: 24px; padding: clamp(24px, 2.4vw, 30px); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--spring), border-color .25s, background-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(26, 127, 55, .10), transparent 46%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: #a9d8b7; transform: translateY(-6px); }
a.card:hover, .card.is-link:hover { background: #fff; border-color: var(--green); }
.card h3 { font-size: 1.32rem; letter-spacing: -.01em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.card .tag { font-size: .8rem; letter-spacing: .06em; }
.card .go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-weight: 800; color: var(--green-ink); }
.card .go .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--green-soft); transition: transform .35s var(--spring), background .2s, color .2s; }
.card:hover .go .ic { transform: translateX(6px); background: var(--green); color: #fff; }
.g-card { display: flex; flex-direction: column; }
/* Numbered cards ("How I help") */
.num-cards { counter-reset: n; }
.num-cards > .card { counter-increment: n; }
.num-cards > .card::after { content: "0" counter(n); position: absolute; top: 18px; right: 22px; font: 900 2.6rem/1 var(--font-head); color: #d6ecdd; transition: color .3s, transform .45s var(--spring); }
.num-cards > .card:hover::after { color: #bfe3ca; transform: scale(1.12) rotate(-4deg); }
.num-cards > .card h3 { padding-right: 56px; }

/* ---------- Pop-in on scroll: a little spring as things appear */
[data-reveal] { transform: translateY(22px); transition: opacity .6s var(--ease), transform .7s var(--spring); }
[data-reveal].is-in { transform: none; }

/* ---------- Header: a green line that glides under the link you point at */
.site-header .nav { position: relative; }
.nav-ink { position: absolute; bottom: 6px; height: 3px; border-radius: 3px; background: var(--green); left: 0; width: 0; opacity: 0;
  transition: left .35s var(--spring), width .35s var(--spring), opacity .2s; pointer-events: none; }
.site-header .nav-link::after { display: none !important; }
.nav-join { position: relative; overflow: hidden; }
.nav-join::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: left .6s var(--ease); }
.nav-join:hover::after { left: 120%; }

/* ---------- Footer: the mascot says hello, then links, then the small print */
.site-footer { background: #fff; border-top: 0; padding: clamp(24px, 4vw, 48px) 0 28px; }
  border-radius: 28px; background: var(--green-wash); border: 1px solid #dcefe2; margin-bottom: clamp(28px, 4vw, 44px); }
.footer-grid h2.fh { font-size: .82rem; letter-spacing: .1em; color: var(--muted); }
.footer-grid a { text-decoration: none; color: var(--ink); background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.footer-grid a:hover { color: var(--green-ink); background-size: 100% 2px; }
.footer-alerts { border-radius: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; text-align: left !important; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .9rem; color: var(--muted); max-width: 720px; }
.footer-bottom p:last-of-type { order: -1; font-weight: 700; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .card, .card .go .ic, .num-cards > .card::after, [data-reveal], .nav-ink { transition: none; }
  .card:hover { transform: none; }
  .hero-art .bot-bubble { animation: none; }
}
@media (max-width: 980px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Free Link Check: email to see the result */
.try-card .lc-teaser input[type="email"] { min-height: 56px; }
.lc-teaser-msg { margin: 0; min-height: 0; color: #b42318; font-size: .95rem; font-weight: 600; }
.lc-teaser-msg:empty { display: none; }
.try-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.lc-opt { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; font-size: 1rem; cursor: pointer; }
.lc-opt input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--green); flex: 0 0 auto; }
#lcUrl { width: 100%; min-height: 58px; border-radius: 16px; padding: 0 18px; font-size: 1.1rem; margin-bottom: 6px; }
#lcEmail { flex: 1 1 260px; min-height: 58px; border-radius: 16px; padding: 0 18px; font-size: 1.1rem; }

/* Footer: the greeting strip already has "Ask me a question" */

/* Text links stay easy to tap */
.btn-text { min-height: 44px; flex-shrink: 0; }

/* =========================================================================================
   Round 3 (Oct 13): Aldrian's own mascot artwork, the Chrome extension demo, guide and blog cards
   ========================================================================================= */

/* ---------- The mascot (Aldrian's artwork, optimized WebP). Still pictures with a playful hover. */
.mascot { display: block; height: auto; user-select: none; -webkit-user-drag: none; transition: transform .5s var(--spring); transform-origin: 50% 90%; }
.mascot:hover { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.sec-head .mascot { width: clamp(130px, 13vw, 170px); flex: 0 0 auto; margin: 0 0 -6px auto; }
.cta-band .mascot { width: 160px; margin: -40px 0 -48px -10px; }
.m-404 { width: 200px; margin: 0 auto 6px; }
.m-page { width: 140px; margin: 0 0 6px; }

/* Hero: the mascot stands on the Link Check card. He waves; when you point at or start using the
   Link Check, he gives a thumbs-up. */
.hero-art { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 10px; }
.mascot-swap { grid-column: 1; grid-row: 1; position: relative; display: block; width: clamp(122px, 10.5vw, 150px); margin: 0 0 -30px 18px; z-index: 2; }
.mascot-swap .mascot { width: 100%; transition: opacity .25s, transform .5s var(--spring); }
.mascot-swap .m-b { position: absolute; inset: 0; opacity: 0; transform: translateY(8px) scale(.94); }
.hero-art:hover .mascot-swap .m-a, .hero-art:focus-within .mascot-swap .m-a { opacity: 0; }
.hero-art:hover .mascot-swap .m-b, .hero-art:focus-within .mascot-swap .m-b { opacity: 1; transform: none; }
.hero-art .bot-bubble { grid-column: 2; grid-row: 1; align-self: center; justify-self: start; margin: 0 0 10px; max-width: 230px;
  background: var(--ink); color: #fff; font: 700 .98rem/1.35 var(--font-body); padding: 11px 15px; border-radius: 16px 16px 16px 4px;
  animation: bubbleIn .7s var(--spring) .5s both; }
.hero-art .try-card { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Chrome extension: one feature card, text on the left, a live demo on the right */
.apps-grid { display: block; }
.cx-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; overflow: hidden; padding: 0; }
.cx-card .app-body { padding: clamp(26px, 3vw, 40px); align-self: center; }
.cx-card .checklist { margin-top: 14px; }
.cx-demo { position: relative; min-height: 360px; background: linear-gradient(150deg, #f4faf6 0%, #e4f2e8 100%); display: flex; align-items: center; justify-content: center; padding: 28px 22px; }
.cx-browser { position: relative; width: min(470px, 100%); background: #fff; border: 1px solid #d5e2d9; border-radius: 16px; overflow: visible; }
.cx-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid #edf1ee; background: #f8faf9; border-radius: 16px 16px 0 0; }
.cx-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e1e7e3; }
.cx-url { flex: 1; min-width: 0; height: 26px; border-radius: 999px; background: #eef2ef; font: 600 12px/26px var(--font-body); color: #57534e; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-url b { font-size: 10px; }
.cx-ext { width: 30px; height: 30px; border-radius: 9px; background: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.cx-page { display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 16px; }
.cx-img { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, #fbcfe8, #f9a8d4 55%, #f472b6); }
.cx-sale { position: absolute; top: 8px; left: 8px; background: #b42318; color: #fff; font: 800 11px var(--font-body); padding: 3px 7px; border-radius: 6px; }
.cx-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #44403c; }
.cx-info b { font: 800 15px/1.25 var(--font-head); color: var(--ink); }
.cx-price s { color: #78716c; } .cx-price em { font-style: normal; font-weight: 800; color: #b42318; font-size: 16px; }
.cx-timer { font-size: 12px; font-weight: 700; color: #b45309; }
.cx-cart { margin-top: 6px; align-self: flex-start; background: #1c1917; color: #fff; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 999px; }
/* The popup, shown complete when still */
.cx-pop { position: absolute; top: 44px; right: 10px; width: min(250px, 62%); background: #fff; border: 1px solid #cfe0d4; border-radius: 14px; padding: 12px 14px 10px; z-index: 2; transform-origin: top right; }
.cx-pop::before { content: ""; position: absolute; top: -7px; right: 16px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #cfe0d4; border-top: 1px solid #cfe0d4; transform: rotate(45deg); }
.cx-pop-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #57534e; }
.cx-pop-h img { width: 18px; height: 18px; border-radius: 5px; background: var(--green); padding: 2px; }
.cx-store { font: 800 14.5px var(--font-head); color: var(--ink); margin: 8px 0 6px; }
.cx-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fdecec; color: #b42318; font: 800 11px var(--font-body); letter-spacing: .05em; }
.cx-pop ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cx-pop li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #f1f3f1; font-size: 12.5px; color: #292524; }
.cx-pop li i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; background: #fdecec; color: #b42318; }
.cx-pop li.ok i { background: #e3f5e8; color: var(--green); }
.cx-cursor { position: absolute; top: 24px; right: 26px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.75); z-index: 3; opacity: 0; pointer-events: none; }
/* While on screen: the cursor clicks the button, the popup opens, the checks tick in one by one */
.cx-demo.is-playing .cx-cursor { animation: cxCursor 8s var(--ease) infinite; }
.cx-demo.is-playing .cx-ext { animation: cxClick 8s infinite; }
.cx-demo.is-playing .cx-pop { animation: cxPop 8s var(--spring) infinite; }
.cx-demo.is-playing .cx-badge { animation: cxBadge 8s var(--spring) infinite; }
.cx-demo.is-playing .cx-r1 { animation: cxRow1 8s infinite; }
.cx-demo.is-playing .cx-r2 { animation: cxRow2 8s infinite; }
.cx-demo.is-playing .cx-r3 { animation: cxRow3 8s infinite; }
@keyframes cxCursor { 0% { opacity: 0; transform: translate(-170px, 150px); } 4% { opacity: 1; } 11% { transform: translate(0, 0); } 13% { transform: scale(.75); } 16% { transform: scale(1); opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes cxClick { 0%, 11% { transform: scale(1); } 13% { transform: scale(.84); } 16%, 100% { transform: scale(1); } }
@keyframes cxPop { 0%, 13% { opacity: 0; transform: scale(.85) translateY(-6px); } 19%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes cxBadge { 0%, 38% { opacity: 0; transform: scale(.4); } 44% { opacity: 1; transform: scale(1.15); } 48%, 100% { opacity: 1; transform: scale(1); } }
@keyframes cxRow1 { 0%, 20% { opacity: 0; transform: translateX(-8px); } 25%, 100% { opacity: 1; transform: none; } }
@keyframes cxRow2 { 0%, 26% { opacity: 0; transform: translateX(-8px); } 31%, 100% { opacity: 1; transform: none; } }
@keyframes cxRow3 { 0%, 32% { opacity: 0; transform: translateX(-8px); } 37%, 100% { opacity: 1; transform: none; } }

/* ---------- Guide and blog cards: tidy header, title, three lines of summary, a footer row */
.g-card { padding: 0 !important; display: flex !important; flex-direction: column; }
.g-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green), #6fcf8f); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--spring); }
.g-card:hover::after { transform: scaleX(1); }
.g-card .card-media { margin: 0; border-radius: 0; }
.g-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; padding: 22px 24px 0; }
.g-card .meta .tag { padding: 0; background: none; border: 0; font: 800 .78rem var(--font-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.g-card .meta .tag.green { padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); letter-spacing: .04em; }
.g-card h3 { margin: 12px 24px 8px; font-size: 1.28rem; line-height: 1.25; }
.g-card > p { margin: 0 24px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-card .g-bar { margin: 16px 24px 0; height: 6px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.g-card .g-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.g-card .go, .g-card .foot { margin-top: auto; }
.g-card > .go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 1rem; white-space: nowrap; }
.g-card .foot { margin: auto 0 0; padding: 16px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-card .foot br { display: none; }
.g-card .foot .go { margin: 0; padding: 0; }
.g-card > p + .go, .g-card > .g-bar + .go { margin-top: 18px; }
.as-grid .track { align-items: stretch; }

@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot-swap .mascot, .g-card::after { transition: none; }
  .mascot:hover { transform: none; }
}
@media (max-width: 980px) {
  .cx-card { grid-template-columns: minmax(0, 1fr); }
  .cta-band .mascot { width: 120px; margin: -64px 0 0; }
}
@media (max-width: 640px) {
  .sec-head .mascot { display: none; }
  .mascot-swap { width: 112px; margin-left: 6px; }
  .hero-art .bot-bubble { font-size: .9rem; max-width: 200px; }
  .cx-demo { min-height: 320px; padding: 20px 12px; }
  .cx-page { grid-template-columns: 38% 1fr; padding: 12px; gap: 10px; }
  .cx-pop { width: 72%; }
}

/* Round 3 fixes */
.cta-band { grid-template-columns: auto minmax(0, 1.3fr) auto; }
.sec-head .mascot { width: auto; max-height: 190px; max-width: 170px; }
.g-card .meta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
@media (max-width: 980px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* Phones: a taller page so the whole popup fits inside the browser frame */
  .cx-img { aspect-ratio: 9 / 17; }
  .cx-pop { top: 40px; right: 8px; width: 74%; padding: 10px 12px 8px; }
  .cx-pop li { font-size: 12px; padding: 6px 0; }
}

/* =========================================================================================
   Round 4 (Oct 13): scam alerts in the hero, closing cards, share row, deep green footer,
   centred layout on phones
   ========================================================================================= */

/* ---------- Hero: free scam alerts */
.al-card .al-hero-form { display: grid; gap: 12px; margin-top: 18px; }
.al-card .al-hero-form input { width: 100%; min-height: 60px; font-size: 1.15rem; padding: 0 20px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.al-card .al-hero-form input:focus { border-color: var(--green); outline: 3px solid rgba(26,127,55,.25); outline-offset: 1px; }
.al-card .al-hero-form .btn { width: 100%; min-height: 60px; font-size: 1.1rem; }
.al-card .alerts-msg { margin: 0; font-weight: 700; color: var(--green-ink); }
.al-card .alerts-msg:empty { display: none; }
.al-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 1rem; }
.al-points li { display: flex; gap: 10px; align-items: center; }
.al-points li::before { content: "\2713"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); font-weight: 900; font-size: .8rem; }

/* ---------- Closing cards: Free Link Check and share */
.after-cta .grid > .card { margin: 0; }
.after-cta .card > .eyebrow { margin: 0 0 10px; }
.after-cta .card > h3 { margin: 0 0 8px; }
.after-cta .card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 34px); }
.after-cta .card > h3, .after-cta .card > p.muted { max-width: calc(100% - 104px); }
.m-corner { position: absolute; right: 14px; bottom: -10px; width: 104px; z-index: 0; }
.lc-card { text-decoration: none; color: inherit; }
.lc-card .go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--green-ink); position: relative; z-index: 1; }
.lc-card .go .ic-arrow { transition: transform .35s var(--spring); }
.lc-card:hover .go .ic-arrow { transform: translateX(5px); }
.lc-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Share row: official WhatsApp and Facebook marks, simple line icons for copy and email */
.share-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 20px; position: relative; z-index: 1; max-width: calc(100% - 96px); }
.sh { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; min-width: 64px; padding: 2px; border: 0; background: none; text-decoration: none; color: var(--ink); font: 700 .9rem/1.2 var(--font-body); cursor: pointer; }
.sh[hidden] { display: none; }
.sh-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--spring), background-color .2s, color .2s; }
.sh-ic svg { width: 24px; height: 24px; }
.sh-copy .sh-ic, .sh-mail .sh-ic, .sh-more .sh-ic { background: var(--green-soft); color: var(--green-ink); }
.sh-wa .sh-ic { background: #25D366; color: #fff; }
.sh-fb .sh-ic { background: #0866FF; color: #fff; }
.sh-fb .sh-ic svg { width: 26px; height: 26px; }
.sh:hover .sh-ic { transform: translateY(-3px) scale(1.06); }
.sh:focus-visible { outline: none; }
.sh:focus-visible .sh-ic { outline: 3px solid var(--green); outline-offset: 3px; }
.sh-copy.is-done .sh-ic { background: var(--green); color: #fff; }
.share-note { margin: 14px 0 0; font-weight: 700; color: var(--green-ink); position: relative; z-index: 1; }
.share-note:empty { display: none; }

/* ---------- Footer: deep green, calm, three link groups */
.site-footer.ft-v3 { background: #0f3a20; color: #d3e6d8; border-top: 0; padding: clamp(44px, 5vw, 68px) 0 30px; }
.ft-v3 .footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); }
.ft-v3 .footer-grid p, .ft-v3 .muted { color: #cfe3d4 !important; }
.ft-v3 .footer-grid h2.fh { color: #9fd4ae; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.ft-v3 .footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ft-v3 .footer-grid a { color: #fff; background-image: linear-gradient(#7bd897, #7bd897); }
.ft-v3 .footer-grid a:hover { color: #fff; }
.ft-v3 .footer-grid .brand { background: none; display: inline-block; }
.ft-v3 .footer-grid .brand img { filter: brightness(0) invert(1); }
.ft-v3 .btn-text[data-open-chat] { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; margin-top: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 800; text-decoration: none; transition: background-color .2s, color .2s; }
.ft-v3 .btn-text[data-open-chat]:hover { background: #fff; color: #0f3a20; }
.ft-v3 a:focus-visible, .ft-v3 button:focus-visible, .ft-v3 input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ft-v3 .soon-tag { background: rgba(255,255,255,.12); color: #fff; }
.ft-v3 .footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 40px; padding-top: 22px; }
.ft-v3 .footer-bottom p { color: #b9d6c1; }
.ft-v3 .footer-bottom p:last-of-type { color: #fff; }
.ft-v3 .footer-alerts { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.ft-v3 .footer-alerts h3 { color: #fff; }
.ft-v3 .footer-alerts p { color: #cfe3d4; }
.ft-v3 .footer-alerts .btn-primary { background: #fff; color: #0f3a20; border-color: #fff; }
.ft-v3 .footer-alerts .alerts-msg { color: #fff; }

@media (max-width: 980px) {
  .ft-v3 .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-v3 .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Phones: centred, balanced layout */
@media (max-width: 640px) {
  .hero-grid > div:first-child { text-align: center; }
  .hero .hero-actions { justify-content: center; }
  .hero .badges { justify-content: center; }
  .sec-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .sec-head > div { width: 100%; }
  .sec-head .lead { margin-left: auto; margin-right: auto; }
  .sec-head .mascot { display: block; order: -1; width: auto; max-width: 110px; max-height: 120px; margin: 0 auto; }
  .split { text-align: center; }
  .split .portrait { width: min(260px, 72%); max-width: none; margin: 0 auto; }
  .split .btn-row { justify-content: center; }
  .cta-band { text-align: center; justify-items: center; }
  .cta-band .mascot { width: 112px; margin: -78px auto 0; }
  .cta-band .btn-row { justify-content: center; width: 100%; }
  .after-cta .card > h3, .after-cta .card > p.muted { max-width: none; }
  .m-corner { width: 84px; right: 10px; }
  .lc-card .go { padding-right: 84px; }
  .share-row { max-width: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; width: 100%; }
  .sh { min-width: 0; font-size: .8rem; }
  .share-card { padding-bottom: 84px !important; }
  .ft-v3 { text-align: center; }
  .ft-v3 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .ft-v3 .footer-grid > div:first-child, .ft-v3 .footer-grid > div:last-child { grid-column: 1 / -1; }
  .ft-v3 .footer-grid > div:first-child p { margin-left: auto !important; margin-right: auto !important; }
  .ft-v3 .footer-grid > div:last-child ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
  .ft-v3 .footer-bottom { flex-direction: column; align-items: center; text-align: center !important; }
}
/* "How I help": a green numbered badge beside each title instead of the faint big number */
.hero { padding-bottom: clamp(28px, 3.5vw, 44px); }
.hero + .section { padding-top: clamp(36px, 4.5vw, 64px); }
.num-cards > .card::after { content: none; }
.num-cards > .card { padding: clamp(24px, 2.6vw, 32px); }
.num-cards > .card h3 { padding-right: 0; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.num-cards > .card h3::before { content: counter(n); flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 800 1.05rem/1 var(--font-head); transition: transform .45s var(--spring); }
.num-cards > .card:hover h3::before { transform: rotate(-8deg) scale(1.1); }

@media (prefers-reduced-motion: reduce) { .num-cards > .card h3::before { transition: none; } .sh-ic, .lc-card .go .ic-arrow { transition: none; } .sh:hover .sh-ic { transform: none; } }
