/* Duit Ayah: shared styles for the home, /usd/ and /templates/ pages.
   One theme: emerald for actions and brand, gold for prices and highlights, cream and white surfaces. */
:root {
  --ground: #FAF8F1;
  --surface: #FFFFFF;
  --tint: #E3F1EA;
  --tint-2: #F1F7F2;
  --gold-soft: #FBF1D9;
  --ink: #16302A;
  --muted: #5B6A63;
  --line: #E1E5DA;
  --em: #0F5A47;
  --em-2: #2E8B6E;
  --em-text: #0F5A47;
  --on-em: #FFFFFF;
  --gold: #C9962B;
  --gold-text: #7A5810;
  --on-gold: #FFFFFF;
  --shadow: 0 1px 2px rgba(22, 48, 42, .05), 0 10px 28px rgba(15, 90, 71, .10);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0E1714; --surface: #15211D; --tint: #17322A; --tint-2: #13261F; --gold-soft: #2E2610;
    --ink: #EEF3EF; --muted: #A6B5AE; --line: #24352E; --em: #3FB28C; --em-2: #5CC6A2; --em-text: #7FD6B6;
    --on-em: #06231A; --gold: #E2B653; --gold-text: #F0CB72; --on-gold: #2A1F05;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0E1714; --surface: #15211D; --tint: #17322A; --tint-2: #13261F; --gold-soft: #2E2610;
  --ink: #EEF3EF; --muted: #A6B5AE; --line: #24352E; --em: #3FB28C; --em-2: #5CC6A2; --em-text: #7FD6B6;
  --on-em: #06231A; --gold: #E2B653; --gold-text: #F0CB72; --on-gold: #2A1F05;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }
img { max-width: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6;
       padding: 0 16px 44px; }
.wrap { max-width: 540px; margin: 0 auto; display: grid; gap: 26px; }
h1, h2 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--em-2); outline-offset: 2px; border-radius: 10px; }
[id] { scroll-margin-top: 76px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
          max-width: 1120px; margin: 0 auto 18px; padding: 10px 4px;
          background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tb-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px;
            text-decoration: none; min-height: 40px; white-space: nowrap; }
.tb-logo { width: 22px; height: 28px; }
.tb-links { display: flex; gap: 0; }
.tb-links a { text-decoration: none; font-weight: 700; font-size: 13px; padding: 6px 8px; border-radius: 8px; min-height: 40px;
              display: inline-flex; align-items: center; white-space: nowrap; transition: background .15s ease; }
.tb-links a:hover { background: var(--tint); }
.tb-links a[aria-current="page"] { background: var(--tint); color: var(--em-text); }
.tb-links a.tb-free { background: var(--em); color: var(--on-em); padding: 6px 12px; margin-left: 4px; }
.tb-links a.tb-free:hover { filter: brightness(1.1); background: var(--em); }
.tb-links a.tb-free[aria-current="page"] { background: var(--em); color: var(--on-em); }
@media (max-width: 419px) {
  .tb-brand { font-size: 15px; gap: 6px; }
  .tb-links a { font-size: 12.5px; padding: 6px 6px; }
  .tb-links a.tb-free { padding: 6px 10px; }
}
@media (max-width: 419px) { .intro { font-size: 16px; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 55%, var(--gold-soft) 100%); border-radius: 10px;
        padding: 22px 20px 20px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; left: -50px; bottom: -60px;
                background: var(--gold-soft); opacity: .9; }
.hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px;
               background: color-mix(in srgb, var(--em-2) 16%, transparent); }
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: clamp(30px, 8.4vw, 50px); font-weight: 700; letter-spacing: -.02em; max-width: 18ch; }
.intro { font-size: 17px; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--ground); text-decoration: none;
       font-weight: 700; padding: 12px 18px; border-radius: 8px; font-size: 15px; transition: transform .15s ease; min-height: 44px; box-sizing: border-box; }
.cta:hover { transform: translateY(-1px); }
.cta svg { width: 18px; height: 18px; }
.cta.em { background: var(--em); color: var(--on-em); }
.ghost { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 8px; font-weight: 700; font-size: 15px;
         text-decoration: none; background: var(--surface); color: var(--ink); min-height: 44px; box-sizing: border-box; }
.ghost:hover { box-shadow: inset 0 0 0 2px var(--em-2); }
.ghost.outline { justify-self: start; border: 1px solid var(--line); }

/* Sub-page header */
.page-hero { background: linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 60%, var(--gold-soft) 100%); border-radius: 10px;
             padding: 24px 20px; display: grid; gap: 12px; }
.page-hero h1 { font-size: clamp(30px, 8vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.page-hero .lead { font-size: 17px; max-width: 60ch; }

/* Kickers, tags, chips */
.kicker { justify-self: start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
          padding: 4px 10px; border-radius: 8px; margin-bottom: 6px; background: var(--tint); color: var(--em-text); }
.kicker.gold { background: var(--gold-soft); color: var(--gold-text); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 8px;
       background: var(--tint); color: var(--em-text); white-space: nowrap; }
.section { display: grid; gap: 12px; }
.sub { color: var(--muted); font-size: 15px; }

/* Doors on the home page */
.doors { display: grid; gap: 14px; }
.door { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
        border-top: 6px solid var(--em-2); border-radius: 10px; padding: 20px; transition: transform .15s ease, box-shadow .15s ease; }
.door.gold { border-top-color: var(--gold); }
.door:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.door h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.door p { color: var(--muted); font-size: 15px; }
.door .from { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--gold-text); }
.door .go { margin-top: auto; align-self: stretch; justify-content: center; font-weight: 700; color: var(--on-em, #fff); background: var(--em);
            border-radius: 8px; padding: 13px 18px; min-height: 48px; box-sizing: border-box; display: inline-flex; gap: 6px; align-items: center; }
.door.gold .go { background: var(--gold-text); }

/* Business offers on the home page: a plain list, so they read as a second shelf, not three more doors */
.biz { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.biz a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 2px; min-height: 44px;
         border-bottom: 1px solid var(--line); text-decoration: none; }
.biz b { font-size: 17px; color: var(--em-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.biz a:hover b { text-decoration-thickness: 2px; }
.biz .p { grid-row: 1; grid-column: 2; align-self: baseline; font-family: var(--display); font-weight: 700; font-size: 18px;
          color: var(--gold-text); white-space: nowrap; }
.biz .d { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.biz a:active { background: var(--tint-2); }

/* Secondary link inside a package card (/usd/ guide card to /guide/) */
.pkg .more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--em-text);
             text-underline-offset: 3px; }

/* Calculator (/kira) */
.calc h1 { font-size: clamp(26px, 7vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.next-line { text-align: center; font-weight: 700; }
.next-line a { color: var(--em-text); }
.calc { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px;
        border-top: 6px solid var(--em-2); }
.calc .lead { color: var(--muted); font-size: 15px; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); font-weight: 600; }
.field-top output { color: var(--ink); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--em); height: 36px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: var(--ground);
                  color: var(--ink); padding: 6px 14px; min-height: 40px; border-radius: 8px; cursor: pointer; }
.presets button[aria-pressed="true"] { background: var(--em); color: var(--on-em); border-color: var(--em); }
.growth { display: block; width: 100%; height: auto; }
.result { min-width: 0; grid-template-columns: minmax(0, 1fr); background: var(--tint-2); border-radius: 10px; padding: 16px; display: grid; gap: 10px; }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 10vw, 44px); font-variant-numeric: tabular-nums; color: var(--em-text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend b { color: var(--ink); }
.calc-body, .calc-in { display: grid; gap: 16px; }
.r-when { margin: 0; color: var(--muted); font-size: 15px; }
.r-when b { color: var(--ink); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs > div { border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); }
.vs span { font-size: 13px; font-weight: 700; color: var(--muted); }
.vs b { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 6vw, 30px); font-variant-numeric: tabular-nums; color: var(--gold-text); }
.vs .vs-in { border: 2px solid var(--em); }
.vs .vs-in b { color: var(--em-text); }
.gain { margin: 0; font-size: 15px; }
.gain b { color: var(--em-text); }
.freq { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.freq-t { font-size: 14px; font-weight: 700; color: var(--muted); }
.freq-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.freq-row span { display: grid; font-size: 12.5px; color: var(--muted); }
.freq-row b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.freq small { font-size: 12.5px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.note { font-size: 13px; color: var(--muted); }
.note a { color: var(--em-text); font-weight: 700; }

/* Earn in USD */
.usd { display: grid; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--em-text);
          font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b .count { font: inherit; color: inherit; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-main { grid-column: 1 / -1; background: var(--tint); border-color: transparent; }
.stat-main b { font-size: 30px; }
.stat-gold { background: var(--gold-soft); border-color: transparent; }
.stat-gold b { color: var(--gold-text); }
.pkgs { display: grid; gap: 12px; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 2px solid var(--line);
       border-top: 6px solid var(--em-2); border-radius: 10px; padding: 18px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pkg:hover { box-shadow: var(--shadow); }
.pkg.featured { border-color: var(--gold); background: var(--gold-soft); }
.pkg h3 { margin: 0; font-family: var(--body); font-size: 17px; font-weight: 700; line-height: 1.3; }
.pkg .desc { font-size: 15px; color: var(--muted); }
.pkg .best { font-size: 12.5px; font-weight: 700; color: var(--em-text); }
.pkg .badge { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
              padding: 2px 8px; border-radius: 8px; background: var(--tint); color: var(--em-text); vertical-align: 2px; }
.pkg .ribbon { position: absolute; top: -12px; right: 16px; background: var(--gold-text); color: var(--on-gold); font-size: 12px;
               font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; }
.buy-area { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--gold-text); line-height: 1; }
.price small { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.buy { display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 8px;
       border: 2px solid var(--em); color: var(--em-text); transition: background .15s ease, color .15s ease; }
.buy:hover, .buy.primary { background: var(--em); color: var(--on-em); }
.buy.primary:hover { filter: brightness(1.08); }
.buy-alt { display: block; text-align: center; font-size: 14px; font-weight: 700; color: var(--em-text); text-decoration: none;
           padding: 10px 6px; border-radius: 12px; }
.buy-alt:hover { background: var(--tint); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 24px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--em-text); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); font-size: 15px; padding-bottom: 14px; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.ticks li { display: flex; gap: 8px; }
.ticks li::before { content: "\2713"; font-weight: 700; color: var(--em-text); }

/* Templates */
.tpl { display: grid; gap: 12px; }
.tpl-group { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--em-text); margin: 8px 0 0; }
.tpl-grid { display: grid; gap: 12px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tcard h3 { margin: 0; font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.3; }
.tthumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
          border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
.tcard p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tcard .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.tcard .tp { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--gold-text); line-height: 1; }
.tcard .tp s { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.tcard .tb { text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1; padding: 0 20px; border-radius: 8px;
             background: var(--ink); color: var(--ground); height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
             white-space: nowrap; flex: none; }
.tcard .tb:hover { filter: brightness(1.15); }
.tcard.pack { border: 2px solid var(--gold); background: var(--gold-soft); padding: 16px 18px; gap: 6px; }
.tcard.pack p { font-size: 14px; }
.tcard.pack .tb { background: var(--em); color: var(--on-em); }
/* Ads landing page (/pakej): one offer, buy block top and bottom */
.lp-buy, .lp-end { display: grid; gap: 10px; }
.lp-buy .price small s { margin-right: 4px; }
.lp-buy .buy, .lp-end .buy { font-size: 17px; padding: 14px 18px; min-height: 52px; box-sizing: border-box; }
.lp-shot { margin: 0; display: grid; gap: 6px; }
.lp-shot img, .lp-sheets img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: zoom-in; }
.lp-shot figcaption { font-size: 13px; color: var(--muted); }
.lp-sheets { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; counter-reset: sheet; }
.lp-sheets li { display: grid; gap: 6px; counter-increment: sheet; }
.lp-sheets b::before { content: counter(sheet) ". "; font-family: var(--display); font-weight: 700; color: var(--gold-text); }
.lp-sheets span { font-size: 15px; color: var(--muted); }
dialog.zoom { width: min(96vw, 1100px); }
/* Wide dashboards on a phone: open at ~2x width so the numbers are readable; scroll sideways inside the dialog. */
@media (max-width: 600px) { dialog.zoom.landscape img { width: 200%; max-width: none; } }
.lp-end { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 10px; padding: 20px; text-align: center; }
.lp footer { text-align: center; color: var(--muted); font-size: 13.5px; }
.tpl-note { font-size: 13px; color: var(--muted); }
.tpl-note a { color: var(--em-text); font-weight: 700; }
.tpl-custom { border: 1.5px dashed var(--em-2); border-radius: 10px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center;
              justify-content: space-between; gap: 10px 16px; background: var(--tint-2); }
.tpl-custom p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 320px; }
.tpl-custom strong { color: var(--ink); }
.tpl-custom .tpl-quote { flex-basis: 100%; order: 3; font-style: normal; color: var(--ink); }
.tpl-quote span { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }
.proof { display: grid; gap: 10px; }
.proof-meta { margin: 0; color: var(--muted); font-size: 15px; }
.proof-meta b { color: var(--ink); }
.proof-meta a { color: var(--em-text); font-weight: 700; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quotes blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
                     border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.tpl-custom a { font-weight: 700; font-size: 15px; color: var(--em-text); text-decoration: none; border: 1.5px solid var(--em);
                border-radius: 8px; padding: 0 18px; height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.tpl-custom a:hover { background: var(--em); color: var(--on-em); }
/* Footer bits */
.disclaimer { background: var(--tint); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.disclaimer b { display: block; margin-bottom: 2px; color: var(--em-text); }
footer { text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }

/* /free page */
.free-jump { justify-self: start; }
.free-shot { margin: 0; display: grid; gap: 8px; }
.free-shot img { width: 100%; max-width: 603px; height: auto; border-radius: 10px; border: 1px solid var(--line);
                 box-shadow: var(--shadow); background: #fff; justify-self: center; }
.free-shot figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.free-get { display: grid; gap: 12px; scroll-margin-top: 80px; width: 100%; max-width: 680px; margin: 0 auto; }
.form-embed { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.form-embed iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (min-width: 720px) { .form-embed iframe { height: 560px; } }
.free-done { display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface); color: var(--ink); border: 2px solid var(--em); border-radius: 10px; padding: 18px; outline: none; }
.free-done[hidden] { display: none; }
.free-done h3 { flex-basis: 100%; margin: 0; }
.free-done .note { flex-basis: 100%; margin: 4px 0 0; }
.free-next { flex-basis: 100%; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.free-next a { color: var(--em-text); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 10px; font-weight: 700; }
.foot-links a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
.foot-links a:hover { color: var(--em-text); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet and desktop */
@media (min-width: 760px) {
  body { padding: 0 32px 60px; }
  .wrap { max-width: 1120px; gap: 40px; }
  h2 { font-size: 26px; }
  .topbar { padding: 12px 0; margin-bottom: 24px; }
  .tb-links { gap: 4px; }
  .tb-links a { font-size: 15px; padding: 7px 14px; }
  .hero { padding: 44px 48px; border-radius: 10px; }
  .hero::before { width: 220px; height: 220px; left: -70px; bottom: -110px; }
  .hero::after { width: 340px; height: 340px; right: -90px; top: -130px; }
  .intro { font-size: 20px; max-width: 52ch; }
  .page-hero { padding: 40px 48px; border-radius: 10px; gap: 14px; }
  .page-hero .lead { font-size: 19px; }
  .calc { padding: 28px 32px; gap: 20px; }
  .calc-body { grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
  .doors { grid-template-columns: 1fr 1fr; gap: 18px; }
  .door { padding: 26px; }
  .stats { grid-template-columns: 1.4fr 1fr; gap: 14px; max-width: 640px; }
  .stat { padding: 18px 20px; }
  .stat-main { grid-column: auto; }
  .stat-main b { font-size: 36px; }
  .stat b { font-size: 28px; }
  .pkgs { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 6px; }
  .pkg { padding: 22px 20px 20px; }
  .pkg:hover { transform: translateY(-2px); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
}
@media (min-width: 1100px) {
  .pkgs { grid-template-columns: repeat(4, 1fr); }
  .tpl-grid.three { grid-template-columns: repeat(3, 1fr); }
  .tpl-grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.tag.gold { background: var(--gold-soft); color: var(--gold-text); }
.door .tag { align-self: flex-start; }

/* Third door, /excel page (18 Oct) */
.door.ai { border-top-color: var(--ink); }
.door.ai .go { background: var(--ink); color: var(--ground); }
.q-by { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-style: normal; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.demo-grid figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.demo-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.demo-grid figcaption { font-size: 14px; color: var(--muted); line-height: 1.45; }
.demo-grid figcaption b { color: var(--ink); }
.price small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.demo-grid img { cursor: zoom-in; }
dialog.zoom { padding: 0; border: 0; border-radius: 10px; width: min(92vw, 640px); max-height: 92vh; overflow: auto;
              background: var(--surface); box-shadow: var(--shadow); }
dialog.zoom img { display: block; width: 100%; height: auto; }
dialog.zoom::backdrop { background: rgba(10, 20, 16, .72); }
dialog.zoom button { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0;
                     background: var(--ink); color: var(--ground); font-size: 24px; line-height: 1; cursor: pointer; }
.zoom-hint { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.swipe-hint { display: none; font-size: 13px; font-weight: 700; color: var(--em-text); margin: -4px 0 0; }
@media (max-width: 759px) {
  /* phones: a swipeable row of big cards instead of unreadable thumbnails */
  .demo-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
               margin-inline: -16px; padding: 2px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .demo-grid::-webkit-scrollbar { display: none; }
  .demo-grid figure { flex: 0 0 82%; scroll-snap-align: start; }
  .swipe-hint { display: block; }
}
.demo-grid .keep { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--em-text); }
.value-box { background: var(--gold-soft); border-radius: 10px; padding: 18px 20px; display: grid; gap: 10px; }
.value-box h3 { margin: 0; font-family: var(--display); font-size: 22px; }
/* Phones: short nav labels ("USD", "Excel") so all 4 links fit */
@media (max-width: 519px) { .tb-long, .tb-name { display: none; } }
@media (min-width: 760px) { .demo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 720px) { .doors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .pkgs.three { grid-template-columns: repeat(3, 1fr); } }
.faq a { color: var(--em-text); font-weight: 700; }
@media (max-width: 759px) { .desk-only { display: none; } }

/* /excel levels (25 Oct) */
.lead-note { font-size: 15px; font-weight: 700; color: var(--gold-text); }
.lead-note a { color: var(--em-text); }
.level-check { display: grid; gap: 8px; }
.level-check .ticks { font-size: 14.5px; }
.level-check .ticks li::before { content: "\2192"; }
.pkg .note { margin: 0; text-align: center; }
.sub-h { margin: 10px 0 0; font-family: var(--display); font-size: 20px; line-height: 1.2; }
@media (min-width: 1100px) { .pkgs.two { grid-template-columns: repeat(2, 1fr); } }

/* /excel: class video + free prompts (25 Oct) */
.class-video { margin: 0; display: grid; gap: 8px; }
.class-video video { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.class-video figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.freebie-line { background: linear-gradient(160deg, var(--tint), var(--gold-soft)); border-radius: 10px; padding: 20px; display: grid; gap: 10px; }
.freebie-line .cta { justify-self: start; }
@media (min-width: 760px) { .class-video { max-width: 820px; justify-self: center; } }

/* /guide ebook landing page */
.lp-cover img { max-width: 220px; margin: 0 auto; }
.lp-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }


.stages { display: grid; gap: 12px; }
.stages h3 small { font-family: var(--body, inherit); font-size: 14px; font-weight: 600; opacity: .75; margin-left: 6px; }
@media (min-width: 760px) { .stages { grid-template-columns: 1fr 1fr; } }
.demo-one { margin: 14px 0 0; max-width: 420px; }
.demo-one img { width: 100%; height: auto; border-radius: 10px; display: block; cursor: zoom-in; }
.demo-one figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }


/* Editorial system, Nov 2026: serif headlines, flat panels, restrained colour, figures that line up */
body { font-size: 16.5px; line-height: 1.62; font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.012em; }
.page-hero h1 { font-weight: 600; letter-spacing: -.018em; line-height: 1.08; }
.tb-brand { font-family: var(--body); font-weight: 700; letter-spacing: -.01em; }
.page-hero { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--em); box-shadow: none; }
.kicker { background: none !important; padding: 0 !important; border: 0; border-radius: 0; font-size: 12.5px; letter-spacing: .09em; font-weight: 700; color: var(--gold-text); }
.price, .stat b, .tp { font-family: var(--body); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.buy, .tb { font-weight: 600; }
.lp-shot img, .lp-sheets img { box-shadow: none; }
.lp-end { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
@media (min-width: 1000px) {
  .lp .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 56px; align-items: center; }
  .lp .page-hero > * { grid-column: 1; }
  .lp .page-hero > .lp-shot { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
  .lp .page-hero > .lp-cover img { max-width: 300px; }
  .lp .page-hero h1 { font-size: 44px; }
  .lp .lp-buy .buy { justify-self: start; min-width: 280px; padding-inline: 32px; }
  .lp .lp-sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .lp .lp-end { justify-items: center; }
  .lp .lp-end .buy { min-width: 280px; }
  .lp .section, .lp .proof { max-width: 980px; width: 100%; justify-self: center; }
}
.hero { background: var(--surface) !important; border: 1px solid var(--line); border-top: 4px solid var(--em); box-shadow: none; }
.hero::before, .hero::after { display: none !important; }

/* Calm pass, 18 Nov 2026 (owner: "buttons and design look too much").
   One filled button per view, quiet secondary actions, no decorative colour stripes,
   sentence-case labels, no lift or fade motion. Emerald marks the action; gold marks prices. */
.cta, .cta.em, .buy.primary { background: var(--em); color: var(--on-em); border: 0; font-weight: 600; font-size: 15px;
  padding: 11px 20px; min-height: 44px; border-radius: 8px; box-shadow: none; }
.cta:hover, .buy.primary:hover { transform: none; filter: none; background: color-mix(in srgb, var(--em) 86%, #000); color: var(--on-em); }
.buy { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.buy:hover { background: var(--tint-2); color: var(--ink); }
.lp-buy .buy, .lp-end .buy { font-size: 16px; padding: 12px 22px; min-height: 48px; }
.ghost:hover { box-shadow: none; background: var(--tint-2); }
/* Nav: plain links; the current page gets a thin underline instead of a filled chip */
.tb-links a:hover { background: none; color: var(--em-text); }
.tb-links a[aria-current="page"], .tb-links a.tb-free[aria-current="page"] { background: none; color: var(--em-text); box-shadow: inset 0 -2px 0 var(--em); border-radius: 0; }
.tb-links a.tb-free { background: none; color: var(--em-text); padding-inline: 8px; margin-left: 0; }
.tb-links a.tb-free:hover { filter: none; background: none; text-decoration: underline; text-underline-offset: 4px; }
/* Home doors: the whole card is the link, so the action is a text link, not a second button */
.door { border-top: 1px solid var(--line); transition: border-color .15s ease; }
.door:hover { transform: none; box-shadow: none; border-color: var(--em-2); }
.door .go, .door.gold .go, .door.ai .go { background: none; color: var(--em-text); padding: 0; min-height: 0; border-radius: 0;
  align-self: flex-start; justify-content: flex-start; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
/* Packages: one hairline border; only the recommended one is marked, with a thin gold border */
.pkg { border: 1px solid var(--line); border-top: 1px solid var(--line); }
.pkg:hover { transform: none; box-shadow: none; }
.pkg.featured { border: 1.5px solid var(--gold); background: var(--surface); }
.pkg .ribbon, .pkg .badge, .tag { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pkg .ribbon { background: var(--gold-soft); color: var(--gold-text); }
/* Template cards: quiet outline buy button; the pack card keeps the one filled button */
.tcard .tb { background: var(--surface); color: var(--ink); border: 1px solid var(--line); height: 40px; padding: 0 16px; font-weight: 600; }
.tcard .tb:hover { filter: none; background: var(--tint-2); }
.tcard.pack .tb { background: var(--em); color: var(--on-em); border: 0; }
/* No decorative top stripes on panels */
.hero, .page-hero, .lp-end, .calc { border-top: 1px solid var(--line) !important; }
.calc { box-shadow: none; border: 1px solid var(--line); }
/* Labels above headlines: small plain text, not a shouting uppercase eyebrow */
.kicker, .kicker.gold { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
/* Content is visible on load; no fade-in on scroll */
.js .reveal { opacity: 1 !important; transform: none !important; }
.quotes blockquote { border-left: 1px solid var(--line); }

/* /ai/ page */
.ai-video { margin: 0; display: grid; gap: 8px; }
.ai-video video { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; border-radius: 10px; border: 1px solid var(--line); background: #0F3429; justify-self: center; }
.ai-video figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.flow-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.flow-list b { font-weight: 600; }
.flow-list span { color: var(--muted); font-size: 15px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-table td:first-child { font-weight: 600; }
.price-table tr.now td { background: var(--gold-soft); }
.price-table tr.now td:first-child { color: var(--gold-text); }
@media (min-width: 1000px) {
  .lp .page-hero > .ai-video { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
}
.door .go span { display: inline-block; text-decoration: none; margin-left: 4px; }
.tpl-group { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--muted); }
.tcard.pack { background: var(--surface); border: 1.5px solid var(--gold); }

/* Desktop composition: fill the wide hero boxes with the content they already hold, instead of leaving the right half empty */
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; padding: 56px 56px 52px; }
  .hero > .hero-title { grid-column: 1; grid-row: 1 / span 2; max-width: none; }
  .hero > .intro, .hero > .actions { grid-column: 2; }
  .hero > .intro { font-size: 19px; }
  .page-hero.split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .page-hero.split > h1, .page-hero.split > .lead { grid-column: 1; }
  .page-hero.split > .stats { grid-column: 2; grid-row: 1 / span 3; align-self: center; grid-template-columns: 1fr; max-width: none; }
  .page-hero.split > .actions { grid-column: 1; }
  /* Landing pages: body sections start on the same line as the hero text */
  .lp .section, .lp .proof { justify-self: start; margin-left: 49px; width: calc(100% - 98px); }
}
/* Templates: the Complete Pack reads as one wide feature, picture left, words right */
@media (min-width: 900px) {
  .tcard.pack.wide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 32px; row-gap: 8px;
                     align-content: center; padding: 20px; }
  .tcard.pack.wide .tthumb { grid-column: 1; grid-row: 1 / span 4; }
  .tcard.pack.wide > :not(.tthumb) { grid-column: 2; }
  .tcard.pack.wide h3 { font-size: 22px; font-family: var(--display); align-self: end; }
  .tcard.pack.wide p { font-size: 15px; }
  .tcard.pack.wide .row { align-self: start; margin-top: 8px; }
}
/* Side-by-side package cards: keep prices and buttons on one line even when one card has an extra link or note under its button */
@media (min-width: 1100px) {
  .pkgs:has(.buy-area > :nth-child(3)) .buy-area { grid-template-rows: auto auto minmax(44px, auto); align-content: start; }
}
/* Buttons size by their border box, so min-height does not stack on top of the padding */
.buy, .buy-alt, .tb { box-sizing: border-box; }
.pkg .buy { min-height: 48px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1100px) {
  .pkgs:has(.buy-area > :nth-child(4)) .buy-area { grid-template-rows: auto auto minmax(44px, auto) minmax(44px, auto); }
}
.door .go { white-space: nowrap; }
.vs > div { min-width: 0; }
@media (max-width: 359px) { .vs { grid-template-columns: 1fr; } }
/* Calculator result numbers scale with the result panel, not the window, so they fit beside each other in the two-column tablet layout */
.result { container-type: inline-size; }
@supports (font-size: 1cqi) { .vs b { font-size: clamp(19px, 8.4cqi, 30px); } }
/* Play button over the /ai/ demo poster, replacing the browser's control bar until the video starts */
.ai-video { position: relative; }
.play-btn { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
            min-height: 52px; padding: 12px 22px 12px 16px; border: 0; border-radius: 999px; background: var(--em); color: var(--on-em);
            font-weight: 700; font-size: 16px; box-shadow: 0 6px 20px rgba(15, 52, 41, .35); white-space: nowrap; }
.play-btn svg { width: 24px; height: 24px; fill: currentColor; }
.play-btn:hover { background: color-mix(in srgb, var(--em) 86%, #000); }
.play-btn:active { transform: translate(-50%, -50%) scale(.98); }
/* /templates/: the header is only a title and one line, so it sits on the page instead of in an empty box */
.page-hero.plain { background: none !important; border: 0 !important; box-shadow: none; padding: 4px 0 0; }
@media (min-width: 760px) { .page-hero.plain { padding: 8px 0 0; } }
