/* ==========================================================================
   MotoBi — www.motobiapp.com
   One stylesheet for the whole site.
   No frameworks, no imports, no web fonts, no JavaScript.
   Language variants (/si/, /ta/) reuse this file unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Neutrals — light theme */
  --ink:        #0f151c;
  --ink-2:      #46515e;
  --ink-3:      #6d7885;
  --bg:         #ffffff;
  --bg-2:       #f6f8fa;
  --bg-3:       #eef1f5;
  --surface:    #ffffff;
  --line:       #e2e7ec;
  --line-soft:  #eff2f5;

  /* Brand */
  --brand:      #014bc8;   /* taken from the MotoBi logo */
  --brand-2:    #3d7cea;
  --brand-ink:  #01389a;
  --brand-wash: #eaf1fd;

  /* The hero and CTA bands stay dark in both themes. */
  --night:      #04122e;
  --night-2:    #0a2a63;
  --night-ink:  #f2f6fc;
  --night-ink2: #a9c0e4;
  --night-line: #17376e;

  --warn-bg:    #fdf6ea;
  --warn-line:  #e3bd7c;

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(16, 24, 32, .05), 0 2px 8px rgba(16, 24, 32, .04);
  --shadow-2: 0 2px 6px rgba(16, 24, 32, .06), 0 12px 28px rgba(16, 24, 32, .08);
  --shadow-3: 0 8px 20px rgba(16, 24, 32, .10), 0 30px 60px rgba(16, 24, 32, .14);

  /* Measure */
  --measure:  38rem;   /* long-form legal text */
  --wide:     72rem;   /* marketing sections   */

  --pad: clamp(1.15rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e9eef5;
    --ink-2:      #a9b7c8;
    --ink-3:      #7e8c9e;
    --bg:         #0a1120;
    --bg-2:       #0f1829;
    --bg-3:       #152034;
    --surface:    #111b2d;
    --line:       #22304a;
    --line-soft:  #1a2639;

    --brand:      #79a8ff;
    --brand-2:    #a6c6ff;
    --brand-ink:  #9dc0ff;
    --brand-wash: #0f2145;

    --warn-bg:    #221c12;
    --warn-line:  #6f5527;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .3);
    --shadow-3: 0 8px 20px rgba(0, 0, 0, .4), 0 30px 60px rgba(0, 0, 0, .45);
  }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

p, ul, ol, dl, table, blockquote, figure { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .45rem; }
li > ul, li > ol { margin-top: .45rem; margin-bottom: .5rem; }

a { color: var(--brand); text-underline-offset: .16em; }
a:hover { color: var(--brand-ink); }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { font-weight: 650; }
abbr { text-decoration: none; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.wrap--doc { max-width: var(--measure); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .6rem 1rem; background: var(--brand); color: #fff;
  border-radius: var(--r-sm); text-decoration: none;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav { background: var(--bg); }
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  flex: none;
}

.brand svg,
.brand img { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand em { font-style: normal; color: var(--brand); }
.brand__tag {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: -.15rem;
}

.nav__links {
  display: none;
  margin-left: auto;
  gap: .35rem;
}

.nav__links a {
  padding: .45rem .8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
}

.nav__links a:hover { background: var(--bg-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav__links + .nav__end { margin-left: .5rem; }

/* Language switcher — English is live today; Sinhala and Tamil sit here
   commented out in the markup, ready to be uncommented. */
.langbar { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.langbar li { margin: 0; }
.langbar a, .langbar [aria-current] {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  color: var(--ink-3); text-decoration: none;
}
.langbar a:hover { background: var(--bg-2); color: var(--ink); }
.langbar [aria-current] { background: var(--bg-2); color: var(--ink); font-weight: 650; }

/* Mobile: the page links live in a slim scrollable strip under the bar,
   so nothing is hidden behind a menu that would need JavaScript. */
.nav__strip {
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line-soft);
  padding: .4rem var(--pad);
  -webkit-overflow-scrolling: touch;
}

.nav__strip::-webkit-scrollbar { display: none; }

.nav__strip a {
  flex: none;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav__strip a[aria-current="page"] { background: var(--brand-wash); color: var(--brand); }

@media (min-width: 56rem) {
  .nav__links { display: flex; }
  .nav__strip { display: none; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--sm { padding: .5rem 1rem; font-size: .92rem; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }

.btn--onnight {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.btn--onnight:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* Store button. Swap for Google's official badge when you have it:
   <img src="/assets/img/google-play-badge.png" alt="Get it on Google Play" width="180"> */
.store {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1.35rem .62rem 1.05rem;
  border-radius: var(--r);
  background: #fff;
  color: #0d1219;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .1);
  transition: transform .16s ease, box-shadow .16s ease;
}

.store:hover { color: #0d1219; transform: translateY(-2px); box-shadow: var(--shadow-3); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__txt { display: block; }
.store__txt b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.store__txt span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .62; line-height: 1.4; }

.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 6% 0%, rgba(61, 124, 234, .42) 0%, transparent 60%),
    radial-gradient(95% 70% at 100% 10%, rgba(1, 75, 200, .55) 0%, transparent 58%),
    linear-gradient(168deg, var(--night-2) 0%, var(--night) 66%);
  color: var(--night-ink);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 0;
  isolation: isolate;
}

/* faint road-lane texture, drawn in CSS so it costs nothing to download */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, .028) 0 2px,
    transparent 2px 90px
  );
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .85rem .32rem .45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .82rem;
  font-weight: 550;
  color: var(--night-ink2);
  margin-bottom: 1.35rem;
}

.pill b {
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, #8fbaff, #d7e6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.06rem, 2.4vw, 1.24rem);
  line-height: 1.62;
  color: var(--night-ink2);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.hero .btnrow { margin-bottom: 1.4rem; }

.hero__note { font-size: .85rem; color: rgba(255, 255, 255, .5); margin: 0; }

/* stat strip along the bottom of the hero */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--night-line);
  border-top: 1px solid var(--night-line);
}

@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stats div {
  background: var(--night);
  padding: 1.15rem var(--pad);
  text-align: center;
}

.stats b {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.2;
}

.stats span { display: block; font-size: .82rem; color: var(--night-ink2); }

/* --------------------------------------------------------------------------
   6. Phone mockup
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: min(16.5rem, 74vw);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.4rem;
  padding: .5rem;
  background: linear-gradient(160deg, #3b4654, #171d25 45%, #0a0e13);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    var(--shadow-3);
}

.phone::before {
  content: "";
  position: absolute;
  top: .95rem; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: .42rem;
  border-radius: 999px;
  background: #05080b;
  z-index: 2;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--bg-3);
}

.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

.phone--tilt { transform: rotate(-2.5deg); }

/* a small floating card that overlaps the phone for depth */
.hero__float {
  position: relative;
  max-width: 21rem;
  margin: -1.4rem auto 0;
  padding: .9rem 1.05rem;
  border-radius: var(--r);
  background: rgba(16, 22, 30, .86);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .88rem;
  color: var(--night-ink2);
  z-index: 3;
}

.hero__float svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--brand-2); }
.hero__float b { display: block; color: #fff; font-size: .95rem; }

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .7rem;
}

.section h2 {
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  letter-spacing: -.03em;
  margin-bottom: .7rem;
}

.section__head p {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Feature cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { font-size: .96rem; color: var(--ink-2); margin: 0; line-height: 1.62; }
.card p + p { margin-top: .6rem; }

.icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 1rem;
  border-radius: var(--r);
  background: var(--brand-wash);
  color: var(--brand);
}

.icon svg { width: 1.5rem; height: 1.5rem; }

.card__more {
  display: inline-block;
  margin-top: .85rem;
  font-size: .92rem;
  font-weight: 650;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   9. Steps — "How to download and use"
   -------------------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 1.1rem; }

@media (min-width: 62rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .95rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
}

.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { font-size: .96rem; color: var(--ink-2); margin: 0; }
.step p + p { margin-top: .55rem; }

/* --------------------------------------------------------------------------
   10. Screenshot gallery
   -------------------------------------------------------------------------- */

.shots {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  flex: none;
  width: min(13.5rem, 58vw);
  scroll-snap-align: center;
  margin: 0;
}

.shots .phone { width: 100%; }

.shots figcaption {
  margin-top: .9rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}

@media (min-width: 72rem) {
  .shots { justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.scrollhint {
  text-align: center;
  font-size: .84rem;
  color: var(--ink-3);
  margin: 0;
}

@media (min-width: 72rem) { .scrollhint { display: none; } }

/* --------------------------------------------------------------------------
   11. Split feature rows (image + text)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
}

.split + .split { margin-top: clamp(3rem, 7vw, 4.5rem); }

@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: -1; }
}

.split h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.025em; margin-bottom: .7rem; }
.split p { color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.checks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 999px;
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 35%, transparent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: .34rem; top: .78em;
  width: .42rem; height: .22rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */

.cta {
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(61, 124, 234, .42) 0%, transparent 62%),
    linear-gradient(160deg, var(--night-2), var(--night));
  color: var(--night-ink);
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  text-align: center;
}

.cta h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -.03em; }
.cta p { color: var(--night-ink2); max-width: 34rem; margin: 0 auto 1.9rem; font-size: 1.06rem; }
.cta .btnrow { justify-content: center; }

/* --------------------------------------------------------------------------
   13. Long-form documents (legal pages)
   -------------------------------------------------------------------------- */

.pagehead {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.6rem, 4vw, 2.2rem);
}

.pagehead h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -.032em; margin-bottom: .6rem; }
.pagehead p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

.crumbs { font-size: .86rem; color: var(--ink-3); margin: 0 0 .9rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

.doc { padding: clamp(2rem, 5vw, 3rem) 0 4rem; }

.doc h2 {
  font-size: 1.32rem;
  margin-top: 2.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-soft);
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.4rem; }
.doc h3 { font-size: 1.06rem; margin-top: 1.9rem; }
.doc h4 { font-size: .97rem; margin-top: 1.5rem; color: var(--ink-2); }

.lede { font-size: 1.13rem; color: var(--ink-2); line-height: 1.65; }
.note { font-size: .88rem; color: var(--ink-3); }

.docmeta {
  margin: 0 0 1.9rem;
  padding: .85rem 1.05rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.docmeta p { margin: 0; }
.docmeta p + p { margin-top: .3rem; }

/* --------------------------------------------------------------------------
   14. Callouts
   -------------------------------------------------------------------------- */

.callout {
  margin: 1.8rem 0;
  padding: 1.2rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); }

.callout--brand {
  background: var(--brand-wash);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; font-size: 1.12rem; }

/* --------------------------------------------------------------------------
   15. Tables
   -------------------------------------------------------------------------- */

.tablewrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
}

table { border-collapse: collapse; width: 100%; min-width: 22rem; font-size: .95rem; line-height: 1.55; }

caption { text-align: left; font-size: .88rem; color: var(--ink-3); padding: .7rem .8rem 0; }

th, td { text-align: left; vertical-align: top; padding: .72rem .85rem; border-bottom: 1px solid var(--line-soft); }
td + td, th + th, td + th, th + td { border-left: 1px solid var(--line-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

thead th { background: var(--bg-2); font-weight: 650; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 620; }

/* --------------------------------------------------------------------------
   15b. Table of contents — long legal pages
   -------------------------------------------------------------------------- */

.toc {
  margin: 0 0 2.4rem;
  padding: 1.1rem 1.3rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.doc .toc h2 {
  margin: 0 0 .7rem;
  padding: 0;
  border-top: 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc ol {
  margin: 0;
  padding: 0 0 0 1.55rem;
  columns: 2;
  column-gap: 2rem;
  font-size: .93rem;
}

.toc li { margin: 0 0 .34rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover, .toc a:focus-visible { text-decoration: underline; }

@media (max-width: 33rem) { .toc ol { columns: 1; } }

/* Keep an anchored heading clear of the sticky header. */
.doc h2[id] { scroll-margin-top: 5.5rem; }

/* --------------------------------------------------------------------------
   16. FAQ — details/summary works with JavaScript disabled
   -------------------------------------------------------------------------- */

.faq { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.faq details { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 620;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: .62rem; height: .62rem;
  margin-top: .42rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--brand); }
.faq summary:hover { background: var(--bg-2); }

.faq details > *:not(summary) { padding-inline: 1.1rem; }
.faq details > *:not(summary):last-child { padding-bottom: 1.1rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2.5rem;
  font-size: .93rem;
  color: var(--ink-2);
}

.foot__grid { display: grid; gap: 2rem; }

@media (min-width: 40rem) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .foot__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .foot__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
@media (min-width: 72rem) { .foot__brand { grid-column: auto; } }

.foot h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .85rem;
}

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }

.foot__brand .brand { margin-bottom: .9rem; }
.foot__brand p { font-size: .92rem; color: var(--ink-3); max-width: 22rem; }

/* Store badge in the footer — dark pill, same shape as the official badge.
   Swap the whole <a> for Google's official artwork when you have it. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem .5rem .8rem;
  border-radius: 10px;
  background: #101418;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2b3239;
}

.badge:hover { background: #1c232b; color: #fff; text-decoration: none; }
.badge svg { width: 22px; height: 22px; flex: none; }
.badge__txt { display: block; }
.badge__txt b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.badge__txt span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; opacity: .7; line-height: 1.3; }

.foot__soon { font-size: .82rem; color: var(--ink-3); margin: .8rem 0 0; }

.foot__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-3);
}

.foot__base p { margin: 0; }

/* --------------------------------------------------------------------------
   18. Motion — reveal on scroll, pure CSS, degrades to "always visible"
   -------------------------------------------------------------------------- */

/* Deliberately NO scroll-driven reveal animation.
   Content that starts at opacity:0 and waits for a scroll timeline can stay
   invisible on browsers that half-support it, on printers, and in crawlers.
   On a site whose whole job is to be readable on a cheap phone that is not a
   trade worth making. The `.reveal` class is kept in the markup as a hook in
   case a safe entrance animation is added later; today it does nothing. */

.hero > .wrap,
.hero .stats {
  animation: rise .55s cubic-bezier(.22, .8, .3, 1) both;
}

.hero .stats { animation-delay: .1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   19. Placeholder image slots
   Delete this block once every real screenshot is in place.
   -------------------------------------------------------------------------- */

.is-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--bg-3) 0 12px, var(--bg-2) 12px 24px);
}

.is-placeholder img { opacity: .96; }

/* --------------------------------------------------------------------------
   20. Script-specific tuning for the future /si/ and /ta/ variants
   Sinhala and Tamil glyphs are taller than Latin and look cramped at Latin
   leading. These rules fire from the lang attribute alone — adding a language
   needs no CSS change.
   -------------------------------------------------------------------------- */

:lang(si), :lang(ta) { line-height: 1.85; font-size: 1.06em; }

:lang(si) h1, :lang(ta) h1,
:lang(si) h2, :lang(ta) h2,
:lang(si) h3, :lang(ta) h3 {
  line-height: 1.42;
  letter-spacing: normal;
}

html[lang="si"] body { font-family: "Noto Sans Sinhala", "Iskoola Pota", system-ui, sans-serif; }
html[lang="ta"] body { font-family: "Noto Sans Tamil", "Latha", system-ui, sans-serif; }

/* --------------------------------------------------------------------------
   21. Print — legal pages get printed and filed
   -------------------------------------------------------------------------- */

@media print {
  :root {
    --ink: #000; --ink-2: #333; --ink-3: #555;
    --bg: #fff; --bg-2: #fff; --bg-3: #fff; --surface: #fff;
    --line: #999; --line-soft: #ccc;
  }
  .nav, .foot, .cta, .hero, .btnrow, .langbar, .skip, .scrollhint, .toc { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .wrap { max-width: none; padding: 0; }
  .doc, .pagehead { padding: 0; border: 0; background: none; }
  .faq details { display: block; }
  .faq summary::after { display: none; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  h2, h3 { break-after: avoid; }
  table, .callout { break-inside: avoid; }
}
