/*
 * The look of the search pages (/gst-calculator/, /gst-invoice-maker/, ...).
 * The first half is the landing page's own style (landing/index.php), rule for rule,
 * so these pages look like it; change a shared rule in both places. The second half
 * ("search pages only") is what the landing page does not have: the tool cards, the
 * bill sheet and its print rules.
 */
:root {
  /* Ivory and brown: the logo, the current app and the @wisdomaccounts posts */
  --bg:          #F7F2EA;
  --bg-soft:     #EFE7DA;
  --surface:     #FFFFFF;
  --ink:         #2A221C;
  --ink-soft:    #554A40;
  --muted:       #6C6157;
  --brand:       #4A3D33;
  --brand-hover: #382D25;
  --brand-deep:  #2A211B;
  --tile:        #EDE3D3;
  --mark:        #D9C7A8;
  --wa:          #1E8E4E;
  --warn:        #9A4B12;
  --line:        rgba(42, 34, 28, 0.11);
  --line-strong: rgba(42, 34, 28, 0.28);
  --shadow-sm:   0 4px 14px -6px rgba(42, 34, 28, 0.18);
  --shadow-md:   0 14px 32px -12px rgba(42, 34, 28, 0.22);
  --shadow-lg:   0 34px 80px -24px rgba(42, 34, 28, 0.38);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::placeholder { color: #B3A99E; opacity: 1; font-weight: 500; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }
@media (max-width: 520px) { .container { padding: 0 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn .arrow { transition: transform .22s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(42,34,28,.6); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-soft); background: transparent; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--tile); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); }
.btn-store {
  background: #16110D; color: #fff; padding: 10px 22px 10px 16px; min-height: 56px;
  border-radius: 14px; box-shadow: 0 12px 26px -12px rgba(22,17,13,.6);
}
.btn-store:hover { background: #2B231C; transform: translateY(-1px); }
.btn-store .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-store .small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.btn-store .big { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn-light:hover { background: #FBF8F3; }
.btn-light .small { opacity: .7; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .88);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo img { width: 40px; height: 31px; object-fit: contain; }
.logo span { white-space: nowrap; }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--mark); }
.nav-cta { display: flex; gap: 6px; align-items: center; }
.nav-cta .btn-primary { padding: 11px 18px; font-size: 14px; }
.nav-cta .short { display: none; }
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-cta .long { display: none; } .nav-cta .short { display: inline; } }
@media (max-width: 420px) { .nav-cta .btn-ghost { display: none; } .logo { font-size: 16px; } }

/* Only one store per device where one button is shown */
.only-ios { display: none !important; }
.pf-ios .only-ios { display: inline-flex !important; }
.pf-ios .not-ios { display: none !important; }
.pf-ios .hero-cta .btn-store-ios, .pf-ios .app-line .btn-store-ios { order: -1; }
.pf-android .ios-hint, .pf-ios .ios-hint { display: none; }

/* ---------- hero (the trade pages) ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -280px;
  background: radial-gradient(circle, rgba(217,199,168,.55) 0%, rgba(217,199,168,0) 62%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 28px 0 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.eyebrow .pill { background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; letter-spacing: .04em; }
h1.headline {
  font-weight: 800; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 20px;
}
.hl { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); padding: 0 .04em; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin: 0 0 16px; }
.lang-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 0 0 28px; color: var(--ink); }
.lang-line .mic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ios-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.ios-hint strong { color: var(--ink-soft); }
.hero-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--wa); }
@media (max-width: 520px) {
  .lede { font-size: 17px; }
  .hero-cta .btn-store { flex: 1 1 100%; justify-content: center; }
}

/* phone frame */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone {
  position: relative; width: 300px; aspect-ratio: 1080 / 2400; background: #17120E; border-radius: 40px; padding: 9px;
  box-shadow: 0 0 0 1px rgba(42,34,28,.4), var(--shadow-lg);
}
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.tag-sample {
  position: absolute; top: -12px; right: 6px; z-index: 4; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
@media (max-width: 520px) { .phone { width: 250px; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.kicker { font-size: 12.5px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.fine { font-size: 13.5px !important; color: var(--muted) !important; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tile); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 6px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- start card ---------- */
.start-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 48px 44px; }
@media (max-width: 720px) { .start-card { padding: 34px 22px; border-radius: 20px; } }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 34px 0 30px; list-style: none; padding: 0; }
@media (max-width: 760px) { .start-grid { grid-template-columns: 1fr; gap: 18px; } }
.start-grid li { display: flex; gap: 14px; align-items: flex-start; }
.start-grid .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tile); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.start-grid h3 { font-size: 17px; font-weight: 800; margin: 4px 0 4px; letter-spacing: -.01em; }
.start-grid p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.h2-card { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.help-line { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.help-line a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.help-line .hours { color: var(--muted); white-space: nowrap; }

/* ---------- final CTA ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--brand-deep) 0%, var(--brand) 100%); color: #fff;
  border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; width: 520px; height: 520px; top: -220px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217,199,168,.28) 0%, rgba(217,199,168,0) 62%); pointer-events: none;
}
@media (max-width: 720px) { .cta-banner { padding: 46px 20px; border-radius: 22px; } }
.cta-banner h2 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0 auto 28px; max-width: 540px; position: relative; }
.cta-banner .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }
.cta-banner .row2 { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; position: relative; font-size: 14.5px; }
.cta-banner .row2 a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.cta-banner .row2 a:hover { opacity: 1; }
.cta-banner .fine { color: rgba(255,255,255,.7) !important; margin: 18px 0 0 !important; position: relative; }
@media (max-width: 520px) { .cta-banner .row .btn-store { flex: 1 1 100%; justify-content: center; } }

/* ---------- footer ---------- */
footer { padding: 64px 0 34px; border-top: 1px solid var(--line); background: var(--surface); margin-top: 96px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-blurb { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 16px; max-width: 330px; }
.foot-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-stores .btn-store { min-height: 50px; }
.foot-stores .btn-store .big { font-size: 16px; }
.foot-col h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 9px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13.5px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.foot-langs a { color: var(--ink-soft); font-weight: 600; }
.foot-langs a:hover, .foot-langs a[aria-current="true"] { color: var(--ink); }
.foot-langs a[aria-current="true"] { font-weight: 800; }

/* ---------- sticky install bar (phones) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(42,34,28,.45);
  align-items: center; gap: 12px; transform: translateY(110%); transition: transform .28s ease;
}
.sticky-bar.show { transform: none; }
.sticky-bar img { width: 34px; height: 26px; object-fit: contain; }
.sticky-bar .t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.sticky-bar .t span { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.sticky-bar .btn { padding: 12px 18px; }
@media (max-width: 760px) { .sticky-bar { display: flex; } body:has(.sticky-bar) footer { padding-bottom: 96px; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sticky-bar { transition: none; }
}

a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.cta-banner a:focus-visible, .langbar a:focus-visible { outline-color: #fff; }

/* ---------- language bar ---------- */
.langbar { background: var(--brand-deep); color: #fff; }
.langbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
.langbar .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); margin-right: 6px; }
.langbar a {
  color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; line-height: 1.3;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.langbar a:hover { color: #fff; background: rgba(255,255,255,.14); }
.langbar a[aria-current="true"] { background: #fff; color: var(--brand-deep); font-weight: 700; }
@media (max-width: 520px) {
  .langbar-inner { justify-content: center; gap: 2px; }
  .langbar .lbl span { display: none; }
  .langbar .lbl { margin-right: 2px; }
  .langbar a { padding: 7px 10px; }
}

/* ---------- Devanagari and Gujarati pages ---------- */
/* Joined letters break when tracked, and marks above and below need taller lines. */
.sc-deva body { font-family: "Plus Jakarta Sans", "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }
.sc-gujr body { font-family: "Plus Jakarta Sans", "Mukta Vaani", "Noto Sans Gujarati", "Nirmala UI", system-ui, sans-serif; }
.sc-indic body { line-height: 1.65; }
.sc-indic h1, .sc-indic h2, .sc-indic h3, .sc-indic h5, .sc-indic summary, .sc-indic legend,
.sc-indic .kicker, .sc-indic .lbl, .sc-indic .pill, .sc-indic label { letter-spacing: 0 !important; }
.sc-indic h1.headline { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.26; }
.sc-indic .tool-hero h1 { line-height: 1.3; }
.sc-indic .section-head h2, .sc-indic .cta-banner h2, .sc-indic .h2-card, .sc-indic .prose h2 { line-height: 1.3; }
.sc-indic .btn { line-height: 1.3; }
.sc-indic .btn-store .stack { line-height: 1; }
.sc-indic .hl { background: linear-gradient(transparent 66%, var(--mark) 66%, var(--mark) 94%, transparent 94%); }
.sc-indic .lede { font-size: 20px; }
@media (max-width: 520px) { .sc-indic .lede { font-size: 18px; } }

section[id] { scroll-margin-top: 84px; }

/* ---------- who makes it ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin-top: 18px; }
.trust > div { padding: 24px 28px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; }
.trust h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.trust p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .trust > div:first-child { border-top: 0; }
}

/* ---------- questions ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 54px 18px 22px;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq .ans { padding: 0 22px 20px; font-size: 16px; color: var(--ink-soft); }
.faq .ans a { color: var(--ink); font-weight: 700; border-bottom: 1.5px solid var(--mark); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* =====================================================================
   Search pages only
   ===================================================================== */

/* ---------- top of a tool page ---------- */
.tool-hero { padding: 40px 0 26px; }
.tool-hero .crumbs { font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.tool-hero .crumbs a { color: var(--ink-soft); border-bottom: 1.5px solid var(--mark); }
.tool-hero h1 { font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 12px; }
.tool-hero .lede { max-width: 720px; margin: 0; }
.tool-hero .hero-meta { margin-top: 16px; }
@media (max-width: 720px) { .tool-hero { padding: 26px 0 18px; } }

/* ---------- the card a tool sits in ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .tool { padding: 20px 16px; border-radius: 20px; } }
/* minmax(0, 1fr), never a bare 1fr: a long <select> option must not push a column wider than the phone. */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.field { display: block; margin: 0 0 18px; min-width: 0; }
.field > .lab, fieldset.field > legend { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin: 0 0 7px; padding: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .hint.warn { color: var(--warn); font-weight: 600; }
.inp, select.inp, textarea.inp {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea.inp { min-height: 72px; resize: vertical; line-height: 1.4; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(74,61,51,.16); }
.inp[aria-invalid="true"] { border-color: var(--warn); }
.inp-money { position: relative; }
.inp-money .inp { padding-left: 38px; font-size: 22px; font-weight: 700; min-height: 58px; }
.inp-money::before { content: "₹"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--muted); }

/* two or three choices in a row */
.seg { display: flex; background: var(--bg-soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { flex: 1 1 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 10px; border-radius: 11px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.25;
}
.seg span small { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* rate buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-soft); background: #fff; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; min-height: 44px; min-width: 62px;
}
.chip-btn:hover { border-color: var(--brand); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips-more { margin-top: 10px; align-items: center; }
.chips-more .lab2 { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chips-more .chip-btn { font-size: 14px; padding: 7px 13px; min-height: 40px; min-width: 54px; }
.rate-own { display: inline-flex; align-items: center; gap: 6px; }
.rate-own .inp { width: 84px; min-height: 40px; padding: 7px 10px; font-size: 15px; font-weight: 700; text-align: right; }
.rate-own span { font-weight: 700; color: var(--ink-soft); }

/* the answer */
.result { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.result h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 0 0 10px; }
.result dl { margin: 0; }
.result .r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-size: 16px; }
.result .r dt { color: var(--ink-soft); }
.result .r dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result .r.sub dt { padding-left: 14px; font-size: 14.5px; }
.result .r.sub dd { font-weight: 600; font-size: 14.5px; }
.result .r.total { border-bottom: 0; padding-top: 14px; }
.result .r.total dt { color: var(--ink); font-weight: 800; }
.result .r.total dd { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.result .empty { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.copied { font-size: 13.5px; font-weight: 700; color: var(--wa); align-self: center; }

/* the line from a tool to the app */
.app-line {
  margin-top: 18px; background: var(--tile); border-radius: 18px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.app-line .txt { flex: 1 1 260px; min-width: 0; }
.app-line strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.app-line .txt span { font-size: 14.5px; color: var(--ink-soft); }
.app-line .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.app-line .btn-store { min-height: 50px; }
.app-line .btn-store .big { font-size: 16px; }
@media (max-width: 520px) { .app-line .btns, .app-line .btn-store { flex: 1 1 100%; justify-content: center; } }

/* ---------- reading sections under a tool ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 12px; }
.prose p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 14px; }
.prose .block { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 14px; margin-bottom: 18px; }
@media (max-width: 560px) { .prose .block { padding: 20px 18px 8px; } }
.formula {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.6;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px;
  color: var(--ink); overflow-x: auto; white-space: nowrap;
}
.formula b { font-weight: 700; }
.rate-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15.5px; }
.rate-table th, .rate-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rate-table td:first-child { font-weight: 800; white-space: nowrap; }
.sc-indic .rate-table th { letter-spacing: 0; }

/* ---------- the other pages, as cards ---------- */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .more { grid-template-columns: 1fr; } }
.more-card { display: block; background: var(--tile); border-radius: 20px; padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease; }
.more-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.more-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 6px; }
.more-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- bill maker ---------- */
.bm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .bm { grid-template-columns: minmax(0, 1fr); } }
.bm > * { min-width: 0; }
.bm-form .tool + .tool { margin-top: 16px; }
.bm-form .tool { padding: 22px; }
@media (max-width: 560px) { .bm-form .tool { padding: 18px 14px; } }
.bm-form h2 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.bm-form h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: var(--brand); font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 520px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } .cols-2.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bm-form .field { margin-bottom: 14px; }
.bm-form .inp { min-height: 46px; padding: 10px 12px; }
.item-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 12px; background: var(--bg); position: relative; }
.item-row .top { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0 12px; }
.item-row .nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 12px; align-items: end; }
@media (max-width: 520px) { .item-row .top { grid-template-columns: minmax(0, 1fr) 96px; } .item-row .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item-row .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 12px; font-size: 14px; color: var(--ink-soft); }
.item-row .foot b { font-variant-numeric: tabular-nums; color: var(--ink); }
.link-btn { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); background: none; border: 0; padding: 6px 2px; cursor: pointer; border-bottom: 1.5px solid var(--mark); }
.link-btn:hover { color: var(--ink); }
.bm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bm-actions .btn-primary { padding: 15px 24px; font-size: 16px; }
.bm-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.bm-side { position: sticky; top: 84px; }
@media (max-width: 1020px) { .bm-side { position: static; } }
.bm-side-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.bm-side-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 0; }
.sc-indic .bm-side-head h2, .sc-indic .result h2 { letter-spacing: 0; }

/* The bill itself. Always English, like the app's printed bill, in a plain face that prints the same everywhere. */
.sheet-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); overflow-x: auto; }
.sheet {
  min-width: 560px; padding: 26px 26px 22px; color: #111; background: #fff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 12px; line-height: 1.4;
}
.sheet .s-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .12em; margin: 0 0 12px; }
.sheet .s-head { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1.5px solid #111; padding-bottom: 10px; }
.sheet .s-biz { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.sheet .s-pre { white-space: pre-line; }
.sheet .s-meta { text-align: right; white-space: nowrap; }
.sheet .s-meta b { font-size: 13px; }
.sheet .s-to { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; }
.sheet .s-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; margin: 0 0 2px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet .s-items th, .sheet .s-items td { border: 1px solid #111; padding: 5px 6px; vertical-align: top; }
.sheet .s-items th { background: #f1f1f1; font-size: 11px; text-align: left; }
.sheet .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet .ph, .sheet .ghost td { color: #9a9a9a; font-weight: 400; }
.sheet .s-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 10px; align-items: flex-start; }
.sheet .s-tax { flex: 1 1 auto; }
.sheet .s-tax table { width: auto; }
.sheet .s-tax th, .sheet .s-tax td { border: 1px solid #999; padding: 3px 7px; font-size: 11px; }
.sheet .s-tax th { background: #f6f6f6; text-align: right; }
.sheet .s-tot { flex: 0 0 auto; min-width: 220px; }
.sheet .s-tot td { padding: 3px 0 3px 12px; }
.sheet .s-tot tr.grand td { border-top: 1.5px solid #111; font-size: 14px; font-weight: 700; padding-top: 6px; }
.sheet .s-words { margin-top: 10px; border-top: 1px solid #999; padding-top: 8px; }
.sheet .s-foot { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; align-items: flex-end; }
.sheet .s-sign { text-align: right; white-space: nowrap; }
.sheet .s-sign .line { display: block; margin-top: 44px; border-top: 1px solid #111; padding-top: 4px; min-width: 190px; }
.sheet .s-by { margin-top: 14px; font-size: 10px; color: #777; text-align: center; }

/* ---------- printing the bill: the sheet alone, on A4 ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  .no-print, .langbar, .nav, footer, .sticky-bar { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .container { max-width: none; padding: 0; }
  .bm { display: block; }
  .bm-side { position: static; }
  .sheet-wrap { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .sheet { min-width: 0; padding: 0; font-size: 11.5pt; zoom: 1 !important; }
  .sheet .s-items th, .sheet .s-tax th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet .s-items tr, .sheet .s-bottom, .sheet .s-foot { break-inside: avoid; }
  .sheet .s-items .ghost { display: none; }
  .sheet .ph { visibility: hidden; }
}
