/* ==========================================================================
   Bookkeeping service pages (bookkeeping.html chooser, bookkeeping-uae.html,
   bookkeeping-oman.html). Loaded after styles.css and module-pages.css and built
   on their tokens. Namespaced bk-* so nothing clashes with the rest of the site.

   Dark-mode rule of the site: text on a themed surface uses var(--heading) /
   var(--text) / var(--muted), never navy; boxes use var(--surface).
   ========================================================================== */

/* Teal text that reads on white: the site's --teal-ink (#0fae9f) is about 2.8:1 on white, so text on
   these pages uses a deeper teal in light mode (5:1) and the bright teal on the dark ground. */
.bk-page { --bk-ink: #0b7a70; }
@media (prefers-color-scheme: dark) { .bk-page { --bk-ink: var(--teal); } }
.bk-page .eyebrow { color: var(--bk-ink); }
.bk-page .section--navy .eyebrow, .bk-page .cta-band .eyebrow { color: var(--teal); }
/* ------------------------------------------------------------ Hero -------- */
.bk-hero { --accent: var(--teal); }
.bk-hero .mod-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.bk-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bk-flag { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #fff; }
.bk-flag svg { width: 24px; height: 16px; border-radius: 2px; flex: none; }
.bk-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; font-size: .78rem; }
.bk-switch a { padding: .28rem .75rem; color: #b9cae0; font-weight: 600; }
.bk-switch a:hover { color: #fff; background: rgba(255,255,255,.07); }
.bk-switch a[aria-current="page"] { color: #06231f; background: var(--teal); }
.bk-ticks { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; color: #b9cae0; font-size: .9rem; }
.bk-ticks b { color: var(--teal); margin-right: .3rem; }

/* Slab finder: a real control, so it follows the theme (not an always-light app picture) */
.bk-finder { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: clamp(1.2rem, 2.6vw, 1.7rem);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.bk-finder h2 { font-size: 1.05rem; color: var(--heading); }
.bk-finder p.hint { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.bk-finder label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem;
  font-weight: 600; color: var(--heading); font-size: .92rem; }
.bk-finder label output { font-family: var(--font-head); font-variant-numeric: tabular-nums; color: var(--bk-ink); font-size: 1.05rem; }
.bk-finder input[type="range"] { width: 100%; margin-top: .6rem; accent-color: var(--bk-ink); height: 28px; cursor: pointer; }
.bk-finder input[type="range"]:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.bk-scale { display: flex; justify-content: space-between; color: var(--subtle); font-size: .74rem; font-variant-numeric: tabular-nums; }
.bk-result { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.bk-result .slab { color: var(--muted); font-size: .88rem; }
.bk-result .fee { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.15rem); color: var(--heading);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.bk-result .fee small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bk-result .plus { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.bk-result .plus a { color: var(--bk-ink); font-weight: 600; }

/* ------------------------------------------------------------ Cards ------- */
.bk-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1rem; }
.bk-cards--4 { --cols: 4; }
.bk-cards--5 { --cols: 5; }
@media (max-width: 1000px) { .bk-cards--4, .bk-cards--5 { --cols: 3; } }
@media (max-width: 760px)  { .bk-cards, .bk-cards--4, .bk-cards--5 { --cols: 2; } }
@media (max-width: 480px)  { .bk-cards, .bk-cards--4, .bk-cards--5 { --cols: 1; } }
.bk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bk-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft); color: var(--bk-ink);
  display: grid; place-items: center; margin-bottom: .85rem; }
.bk-card .ic .ico { width: 22px; height: 22px; }
.bk-card h3 { font-size: 1.04rem; color: var(--heading); }
.bk-card p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.bk-card .bk-price { margin-top: auto; padding-top: .9rem; font-family: var(--font-head); font-weight: 800; color: var(--heading);
  font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.bk-card .bk-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.bk-card--in { border-color: color-mix(in srgb, var(--bk-ink) 45%, var(--border)); }
.bk-tag { align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .26rem .55rem; border-radius: 999px; background: var(--teal-soft); color: var(--bk-ink); margin-bottom: .7rem; }

/* ----------------------------------------------------------- Prices ------- */
.bk-prices { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.4rem; align-items: start; max-width: 980px; margin-inline: auto; }
@media (max-width: 820px) { .bk-prices { grid-template-columns: 1fr; } }
.bk-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }
.bk-table th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--border); }
.bk-table td { padding: .8rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--text); }
.bk-table tr:last-child td { border-bottom: 0; }
.bk-table .r { text-align: right; }
.bk-table td.tx { font-weight: 700; color: var(--heading); }
.bk-table td.amt { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--heading); white-space: nowrap; }
.bk-table td.amt small { font-size: .74rem; font-weight: 600; color: var(--muted); margin-right: .25rem; }
.bk-table tr.is-hit td { background: var(--teal-soft); }
.bk-table tr.custom td.amt { font-size: 1rem; color: var(--bk-ink); }
.bk-notes { display: grid; gap: .8rem; }
.bk-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.bk-note h3 { font-size: .98rem; color: var(--heading); }
.bk-note p { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.bk-note--free { border-color: color-mix(in srgb, var(--bk-ink) 45%, var(--border)); background: color-mix(in srgb, var(--teal-soft) 60%, var(--surface)); }
.bk-small { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 1.1rem; }

/* ------------------------------------------------------------ Steps ------- */
.bk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: bk; }
@media (max-width: 900px) { .bk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bk-steps { grid-template-columns: 1fr; } }
.bk-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.bk-step::before { counter-increment: bk; content: counter(bk); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #06231f; font-family: var(--font-head); font-weight: 800; font-size: .9rem; margin-bottom: .75rem; }
.bk-step h3 { font-size: 1rem; color: var(--heading); }
.bk-step p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.bk-step .bk-tag { margin: .7rem 0 0; }

/* ------------------------------------------------------- Send list -------- */
.bk-send { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .bk-send { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bk-send { grid-template-columns: 1fr; } }
.bk-send div { border-left: 3px solid var(--bk-ink); border-radius: 0; padding: .3rem 0 .3rem .9rem; }
.bk-send b { display: block; color: var(--heading); font-family: var(--font-head); font-size: .95rem; }
.bk-send span { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }

/* ------------------------------------------------------------ Terms ------- */
.bk-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 980px; margin-inline: auto; }
@media (max-width: 640px) { .bk-terms { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- Contact CTA ------ */
.bk-contact { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 1.3rem; color: #cfe0f2; font-size: .95rem; }
.bk-contact a { color: #fff; font-weight: 600; }
.bk-contact a:hover { color: var(--teal); }
.bk-address { position: relative; margin-top: .7rem; font-style: normal; color: #cfe0f2; font-size: .92rem; }
.bk-address::before { content: "Address  "; color: #9fb4d0; }

/* ------------------------------------------------------- Chooser page ----- */
.bk-choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: 1080px; margin: 2rem auto 0; }
@media (max-width: 900px) { .bk-choose { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 560px) { .bk-choose { grid-template-columns: 1fr; } }
.bk-choice { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16); color: #dbe6f3; transition: border-color var(--t-fast), background var(--t-fast); }
.bk-choice:hover, .bk-choice:focus-visible { border-color: var(--teal); background: rgba(55,217,200,.08); }
.bk-choice svg { width: 42px; height: 28px; border-radius: 3px; }
.bk-choice b { font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.bk-choice span { color: #b9cae0; font-size: .92rem; }
.bk-choice em { font-style: normal; color: var(--teal); font-weight: 700; font-family: var(--font-head); margin-top: .3rem; }

@media (max-width: 900px) { .bk-hero .mod-hero__grid { grid-template-columns: 1fr; } }
