/* ==========================================================
   Akiba Lab theme · v2.0
   1 Colours (light + dark)  2 Base  3 Header  4 Layout & cards  5 Forms & results
   6 Articles & tables  7 Promo boxes  8 Homepage  9 Footer  10 Share bar  11 Print  12 Phones
   ========================================================== */

/* ---------- 0. Fonts (stored on our own site: faster, and no third-party requests) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

/* ---------- 1. Colours: change the brand here, once ---------- */
:root {
  --bg: #F7F5EF;          /* page background (Paper) */
  --surface: #FFFFFF;     /* cards */
  --surface-2: #FBFAF6;   /* subtle panels */
  --text: #13201A;        /* body text */
  --heading: #06301F;     /* headings (Deep Forest) */
  --muted: #5B6B63;       /* secondary text */
  --line: #E4E2DA;        /* borders */
  --input-border: #CFCDC4;
  --primary: #0B5D3B;     /* Akiba Green: buttons */
  --primary-hover: #06301F;
  --on-primary: #FFFFFF;
  --link: #0B5D3B;
  --accent: #F5A524;      /* Marigold */
  --on-accent: #06301F;
  --tint: #E3F1EA;        /* Mint */
  --panel: #06301F;       /* dark promo panels */
  --on-panel: #DCEBE3;
  --series-1: #0B5D3B;    /* chart line 1 */
  --series-2: #F5A524;    /* chart line 2 */
  --header-bg: rgba(247, 245, 239, 0.86);

  --font-head: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-num: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 48, 31, 0.06), 0 4px 16px rgba(6, 48, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(6, 48, 31, 0.14);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1D15; --surface: #12281D; --surface-2: #0F2319; --text: #E3ECE6; --heading: #F1F6F2;
  --muted: #A9BDB2; --line: #24402F; --input-border: #335744; --primary: #1F7A4F; --primary-hover: #28945F;
  --on-primary: #FFFFFF; --link: #8FD3AE; --tint: #173828; --panel: #0F3A27; --on-panel: #DCEBE3;
  --series-1: #5CC08C; --series-2: #F5A524; --header-bg: rgba(11, 29, 21, 0.86);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1D15; --surface: #12281D; --surface-2: #0F2319; --text: #E3ECE6; --heading: #F1F6F2;
    --muted: #A9BDB2; --line: #24402F; --input-border: #335744; --primary: #1F7A4F; --primary-hover: #28945F;
    --on-primary: #FFFFFF; --link: #8FD3AE; --tint: #173828; --panel: #0F3A27; --on-panel: #DCEBE3;
    --series-1: #5CC08C; --series-2: #F5A524; --header-bg: rgba(11, 29, 21, 0.86);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; margin-top: 28px; }
a { color: var(--link); }
code { font-family: var(--font-num); background: var(--tint); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
svg { flex-shrink: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 3. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 20px; }
.brand img { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; color: var(--heading); font: 600 15px var(--font-body); text-decoration: none; background: none; border: 0; cursor: pointer; width: auto; margin: 0; }
.nav-link svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-link:hover, .nav-link.active, .has-menu.open > .nav-link { background: var(--tint); color: var(--heading); }
.has-menu { position: relative; }
.has-menu.open > .nav-link svg { transform: rotate(180deg); }
.menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; }
.menu-wide { display: none; grid-template-columns: 1fr 1fr; gap: 4px 12px; width: 600px; }
.has-menu.open > .menu { display: block; }
.has-menu.open > .menu-wide { display: grid; }
.menu-title { margin: 6px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.menu-link:hover, .menu-link.active { background: var(--tint); }
.menu-link b { display: block; font-size: 15px; color: var(--heading); }
.menu-link small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--primary); }
:root[data-theme="dark"] .ico { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico { color: var(--link); } }
.ico svg { width: 20px; height: 20px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 20px; height: 20px; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-flex; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-dark { display: inline-flex; } :root:not([data-theme="light"]) .when-light { display: none; } }
.when-light, .when-dark { align-items: center; }
img.when-dark { display: none; }
:root[data-theme="dark"] img.when-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.when-dark { display: block; } }
.menu-toggle { display: none; }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .bars i:nth-child(2) { opacity: 0; }
.nav-open .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Layout and cards ---------- */
.page { padding: 0 16px; }
.card { max-width: 480px; margin: 24px auto; background: var(--surface); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.wide { max-width: 720px; }
.intro, .hint, .disclaimer { color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--accent); color: var(--on-accent); padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; border: 0; }
.btn:hover { background: #FFB941; }
.btn svg { width: 18px; height: 18px; }
.btn-green { background: var(--primary); color: var(--on-primary); }
.btn-green:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--heading); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--tint); }
.btn-small { padding: 8px 14px; margin: 0; font-size: 14px; }

/* ---------- 5. Forms and results ---------- */
label { display: block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--heading); }
input, select { width: 100%; padding: 11px 12px; margin-top: 6px; font-size: 16px; font-family: var(--font-body); color: var(--text); background: var(--surface); border: 1.5px solid var(--input-border); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input[data-money] { font-family: var(--font-num); letter-spacing: .01em; }
input:hover, select:hover { border-color: var(--primary); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
main button:not(.share-btn) { width: 100%; margin-top: 22px; padding: 13px; font: 600 16px var(--font-body); background: var(--primary); color: var(--on-primary); border: none; border-radius: 10px; cursor: pointer; }
.results { margin-top: 20px; }
.results:empty { min-height: calc(var(--rh, 0px) + 52px); }   /* keeps space so the page doesn't jump when results appear */
.results p { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; margin: 0; }
.results span:last-child { font-family: var(--font-num); font-weight: 500; white-space: nowrap; }
.results .highlight { font-weight: 700; color: var(--primary); }
:root[data-theme="dark"] .results .highlight { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .results .highlight { color: var(--link); } }
.results .highlight:last-child { background: var(--tint); border-bottom: none; border-radius: 10px; padding: 12px; margin-top: 8px; }

/* ---------- 6. Articles and tables ---------- */
.guide { line-height: 1.7; }
.guide h2 { margin-top: 0; }
.guide h3, .guide h2.h3 { padding-left: 12px; border-left: 4px solid var(--accent); }
h2.h3 { font-size: 19px; margin-top: 28px; }
.guide-card h2.h3 { padding-left: 0; border-left: 0; margin: 0 0 6px; font-size: 18px; }
.guide table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.guide td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide td:last-child:nth-child(2) { text-align: right; font-family: var(--font-num); }
.guide a { color: var(--link); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin-bottom: 8px; }
.guide h1 { font-size: 28px; }
.crumb { margin: 0 0 6px; font-size: 14px; }
.guide-list { display: grid; gap: 14px; margin-top: 18px; }
.guide a.guide-card { font-weight: 400; }
.guide-card { display: block; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
.guide-card:hover { border-color: var(--primary); background: var(--tint); transform: translateY(-2px); }
.guide .guide-card h3, .guide .guide-card h2.h3 { margin: 0 0 6px; padding-left: 0; border-left: none; color: var(--heading); }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; }
.funds { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.funds th { text-align: left; background: var(--panel); color: #FFFFFF; padding: 10px 8px; font-weight: 600; font-size: 14px; }
.funds th:first-child { border-top-left-radius: 8px; }
.funds th:last-child { border-top-right-radius: 8px; }
.funds td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.funds th:not(:first-child), .funds td:not(:first-child) { text-align: right; }
.funds td:not(:first-child) { white-space: nowrap; font-family: var(--font-num); font-size: 14px; }
.funds tbody tr:hover { background: var(--tint); }
.funds tr.muted td { color: var(--muted); }
.schedule td:first-child { white-space: nowrap; }
.chart-box { position: relative; height: 320px; margin-top: 12px; }

/* ---------- 7. Promo and free-download boxes ---------- */
.promo { max-width: 480px; margin: 24px auto; padding: 24px 28px; background: var(--panel); color: var(--on-panel); border-radius: var(--radius); background-image: radial-gradient(circle at 100% 0%, rgba(245, 165, 36, 0.18), transparent 45%); }
.promo.wide { max-width: 720px; }
.promo h2 { margin-top: 0; color: #FFFFFF; font-size: 22px; }
.promo strong { color: #FFFFFF; }
.freebox { max-width: 480px; margin: 24px auto; padding: 22px 28px; background: var(--tint); border: 1.5px solid var(--primary); border-radius: var(--radius); }
.freebox.wide { max-width: 720px; }
.freebox h2 { margin: 0 0 6px; font-size: 21px; }
.freebox-tag { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

/* ---------- 8. Homepage ---------- */
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
:root[data-theme="dark"] .eyebrow, :root[data-theme="dark"] .freebox-tag { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow, :root:not([data-theme="light"]) .freebox-tag { color: var(--link); } }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 45%, transparent) 62%); }
:root[data-theme="dark"] .hero h1 em { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--link); } }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { margin: 0; padding: 14px 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--primary); }
.rate-card { background: var(--panel); color: var(--on-panel); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.rate-card h2 { color: #FFFFFF; font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5CC08C; box-shadow: 0 0 0 4px rgba(92, 192, 140, .25); }
.rate-card .sub { margin: 2px 0 16px; font-size: 13px; color: #A9C9B8; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .1); position: relative; z-index: 1; }
.rate-row span { font-size: 15px; }
.rate-row small { display: block; font-size: 12px; color: #A9C9B8; }
.rate-row b { font-family: var(--font-num); font-size: 22px; color: #FFFFFF; font-weight: 600; }
.rate-row b.gold { color: var(--accent); }
.rate-card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; position: relative; z-index: 1; }
.rate-card .card-link svg { width: 16px; height: 16px; }
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 32px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-head a svg { width: 16px; height: 16px; }
.group-label { margin: 22px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-card h3, .tool-card h2.h3 { margin: 0; font-size: 18px; }
.tool-card p { margin: 0; font-size: 14px; color: var(--muted); }
.tool-card .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }
.tool-card .go svg { width: 16px; height: 16px; transition: transform .18s; }
.tool-card:hover .go svg { transform: translateX(3px); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { display: flex; gap: 14px; }
.feature h3, .feature h2.h3 { margin: 2px 0 4px; font-size: 18px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.product-card.featured { background: var(--panel); color: var(--on-panel); border-color: var(--panel); }
.product-card.featured h3, .product-card.featured h2.h3, .product-card.featured .price { color: #FFFFFF; }
.product-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--primary); }
:root[data-theme="dark"] .product-card .tag { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-card .tag { color: var(--link); } }
.product-card.featured .tag { background: var(--accent); color: var(--on-accent); }
.product-card h3, .product-card h2.h3 { margin: 14px 0 6px; font-size: 20px; }
.product-card p { margin: 0 0 18px; font-size: 15px; color: var(--muted); flex: 1; }
.product-card.featured p { color: var(--on-panel); }
.product-card .price { font-family: var(--font-num); font-size: 24px; font-weight: 600; color: var(--heading); margin-bottom: 14px; }
.product-card .btn { justify-content: center; margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.newsletter { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: var(--panel); color: var(--on-panel); border-radius: 20px; padding: 36px; }
.newsletter h2 { color: #FFFFFF; margin: 0 0 6px; font-size: 28px; }
.newsletter p { margin: 0; }

/* ---------- 9. Footer ---------- */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 20px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 14px; }
.footer-wa svg { width: 18px; height: 18px; }
.footer-title { margin: 4px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-inner a:not(.footer-wa) { display: block; color: var(--text); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-inner a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom p { max-width: 1120px; margin: 0 auto; padding: 16px 20px 28px; font-size: 13px; color: var(--muted); }

/* ---------- 10. Share bar (added under calculator results) ---------- */
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--heading); font: 600 13px var(--font-body); cursor: pointer; }
.share-btn:hover { border-color: var(--primary); background: var(--tint); }
.share-btn[data-action="whatsapp"] svg { color: #25D366; }

/* ---------- 11. Print / Save as PDF: just the calculator and its results ---------- */
@page { margin: 16mm; }
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --heading: #06301F; --line: #ccc; --tint: #EEF5F0; }
  .site-header, .site-footer, .promo, .freebox, .share-bar, .guide, .skip { display: none !important; }
  .card { box-shadow: none; border: 0; max-width: 100%; margin: 0; }
  body::before { content: "Akiba Lab · Numbers that grow with you."; display: block; font: 700 14px var(--font-head); color: #0B5D3B; margin-bottom: 8px; }
}

/* ---------- 12. Tablets and phones ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav-link { padding: 12px 8px; font-size: 16px; justify-content: space-between; }
  .menu, .menu-wide { position: static; width: auto; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px; }
  .has-menu.open > .menu-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 26px; }
  .tool-grid, .features, .product-grid, .guide-grid, .newsletter { grid-template-columns: 1fr; }
  .tool-card { flex-direction: row; align-items: center; padding: 16px; }
  .tool-card .go { display: none; }
  .newsletter { padding: 26px; }
  .hide-sm { display: none; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .brand img { height: 30px; }
}
@media (max-width: 500px) {
  .page { padding: 0 12px; }
  .band { margin: 0 -12px; padding: 0 12px; }
  .card { padding: 20px 16px; }
  h1 { font-size: 26px; }
  .funds { font-size: 13px; }
  .funds th, .funds td { padding: 7px 4px; }
  .funds td:not(:first-child) { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- 13. Embeddable widgets ---------- */
body.embed { background: transparent; padding: 0; }
.embed .card { margin: 0 auto; max-width: 480px; box-shadow: none; padding: 20px; }
.embed label { margin-top: 12px; }
.embed .results { margin-top: 12px; }
.embed h1 { font-size: 22px; }
.embed-credit { max-width: 480px; margin: 8px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
.embed-preview { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }
.embed-preview iframe { width: 100%; border: 0; display: block; }
.embed-code { width: 100%; margin-top: 6px; padding: 10px; font: 13px/1.5 var(--font-num); color: var(--text); background: var(--surface-2); border: 1.5px solid var(--input-border); border-radius: 10px; resize: vertical; }
.copy-code { margin-top: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: 600 14px var(--font-body); cursor: pointer; }
.copy-code:hover { background: var(--primary-hover); }
