/*
 * The Aasandha website demo.
 *
 * A one-page homepage in the visual language of aasandha.mv/dv — the maroon
 * and red of the company mark, the card grid, the statistics band, the dark
 * footer — built here rather than framed from the live site, so the demo runs
 * with no network at all.
 *
 * Right-to-left is structural. The document is `dir="rtl" lang="dv"`, so the
 * grid, the flex rows and the logical properties below all flow that way on
 * their own. Nothing is mirrored by hand, and nothing is positioned with
 * `left`/`right` where `inline-start`/`inline-end` says what is meant.
 */

:root {
  /* Taken from the live site's own stylesheet. */
  --brand: #8b1913;          /* the deep maroon of the mark and the footer */
  --brand-bright: #c62424;   /* the red of the cross and the call to action */
  --brand-deep: #6d130e;
  --brand-tint: #fdf3f2;
  --brand-line: #f0d9d7;

  --ink: #212529;
  --ink-soft: #5d6774;
  --ink-faint: #8a94a1;
  --page: #ffffff;
  --surface: #f8f9fa;
  --line: #e6e9ee;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(33, 37, 41, .05), 0 4px 12px rgba(33, 37, 41, .05);
  --shadow-md: 0 2px 6px rgba(33, 37, 41, .06), 0 14px 34px rgba(33, 37, 41, .09);

  --wrap: 1180px;
  --header-h: 76px;

  /* The typefaces aasandha.mv/dv is actually set in, served from
     `fonts/` so the demo does not fetch them from the live site.

     Note what is NOT here: MV Faruma. The website is the website and the
     assistant is the assistant — the chat widget keeps Faruma, declared under
     `.aai` in widget.css, so the two never borrow each other's face. A widget
     that inherits the host page's font is a widget that looks different on
     every site it is embedded on. */
  --site-thaana: "MVTypewriter", "MV Faruma", sans-serif;
  --site-thaana-bold: "MVTypewriterBold", "MVTypewriter", "MV Faruma", sans-serif;
  --site-display: "MvMagXBold", "MVTypewriterBold", sans-serif;
  --latin: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Typefaces ─────────────────────────────────────────────────────────────
   The four faces aasandha.mv/dv loads, copied into `fonts/` rather than
   hotlinked: the demo has to render with the network off, and a government
   site should not be serving assets to somebody else's prototype.

   `font-display: swap` on all of them. Thaana has no usable system fallback on
   most machines, so blocking on the download means a blank page; swapping means
   a moment of fallback text and then the right face. */

@font-face {
  font-family: "MVTypewriter";
  src: url("fonts/MVTypewriter.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MVTypewriterBold";
  src: url("fonts/MVTypewriter-Bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* The rounded display face the site sets its page headings in. */
@font-face {
  font-family: "MvMagXBold";
  src: url("fonts/Mv_MAG_Round_XBold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* On the root as well as the body: with only `body { overflow-x: hidden }`
     the document itself still scrolled 28px sideways on a 375px screen, which
     in a right-to-left page means the page opens with its start edge off the
     screen and the heading cut in half. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.7 var(--latin);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dhivehi is the demo's default language, so Thaana is the body face and the
   line height is set for it: Thaana carries fili above and below the baseline
   and is unreadable at the 1.5 that suits Latin. MVTypewriter sits lower and
   wants a little more room than Faruma did, which is where the 2.15 comes
   from — the live site sets its body copy at an equivalent 2.5rem. */
body[lang="dv"] { font-family: var(--site-thaana); line-height: 2.15; }

/* Headings take the bold cut of the same family rather than a synthesised
   bold: MVTypewriter ships one weight, and letting the browser smear it is
   what makes Thaana look muddy at display sizes. */
body[lang="dv"] h1,
body[lang="dv"] h2,
body[lang="dv"] h3,
body[lang="dv"] h4,
body[lang="dv"] b,
body[lang="dv"] strong { font-family: var(--site-thaana-bold); font-weight: normal; }

/* A Latin run inside Thaana — "MyAasandha", a phone number, a date. `<bdi>`
   isolates it in the markup; this sets it in the Latin face, because the
   Thaana faces draw a full stop as a raised dot and turn 1400@aasandha.mv
   into 1400@aasandha·mv. */
bdi.ltr, .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--latin);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section { padding: 76px 0; }
.section--tint { background: var(--surface); }

.section-head { margin-bottom: 34px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.7;
}
body[lang="dv"] .section-head h2 {
  font-family: var(--site-display);
  font-weight: normal;
  color: var(--brand);
}
.section-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 62ch; }

/* A short maroon rule under a heading — the site's own accent. */
.section-head h2::after {
  content: "";
  display: block;
  width: 54px; height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
}

/* ── Top strip ─────────────────────────────────────────────────────────── */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
}
.topbar .wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  min-height: 40px;
  padding-block: 4px;
}
.topbar a { text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .spacer { margin-inline-start: auto; }
.topbar .hotline { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar .hotline svg { width: 15px; height: 15px; }

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, .38);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 2px 13px;
  font: 600 12.5px/1.8 var(--latin);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* ── Header ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; gap: 26px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand-text span { font-size: 12px; color: var(--ink-faint); font-family: var(--latin); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand); }

.header .cta {
  flex: none;
  background: var(--brand-bright);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px rgba(198, 36, 36, .26);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.header .cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(139, 25, 19, .3);
}

.menu-btn {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ── English view ──────────────────────────────────────────────────────────
 * A few places carry a small English gloss under the Dhivehi label — the
 * company name under the Thaana wordmark, the service names under the quick
 * links. They are there so an English reader can navigate the Dhivehi page.
 * Once the page *is* in English they are the same words twice, so they go.
 */
[lang="en"] .brand-text span,
[lang="en"] .quick small { display: none; }
[lang="en"] .quick a { align-items: center; }

/* ── Demo badge ────────────────────────────────────────────────────────── */
/* Present, legible, and out of the way. The page has to read as a real
   government service page for the demo to be worth showing; a banner across
   the top would undo that. */
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--brand-line);
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 999px;
  font: 600 11.5px/1.9 var(--latin);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright);
  animation: demo-pulse 2.4s ease-in-out infinite;
}
@keyframes demo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 92px 0 84px;
  background:
    radial-gradient(120% 130% at 88% 0%, rgba(198, 36, 36, .1) 0%, transparent 56%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  overflow: hidden;
}
.hero::after {
  /* A soft maroon wash anchored to the start edge — flips with the document. */
  content: "";
  position: absolute; inset-block: 0; inset-inline-start: -14%;
  width: 46%;
  background: radial-gradient(closest-side, rgba(139, 25, 19, .09), transparent);
  pointer-events: none;
}
/*
 * The site's hero artwork: an open hand holding the Aasandha mark, with
 * families and an aeroplane behind it — the motif the live site leads with.
 *
 * It is laid in as a full-bleed backdrop rather than as a cropped figure in
 * one corner. Cropped, the only part that survived was the hand, which reads
 * as a stray limb; whole and faint, the composition reads as what it is and
 * the heading still has clean ground under it.
 *
 * Two masks, composited: one lifts the artwork off the top edge so the sticky
 * header never sits on a face, the other clears it away from whichever side
 * the copy is on. The heading is the thing on this page that has to be read,
 * and at full strength the Aasandha mark in the photograph was sitting
 * directly behind it.
 */
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 60%;
  z-index: 0;
  opacity: .3;
  pointer-events: none;
  user-select: none;

  /* Fades: top edge, then the inline-end side, which is where the copy sits
     in the Dhivehi view. `intersect` so both apply; browsers without
     mask-composite keep the first, which is still an improvement on neither. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%),
    linear-gradient(to left, transparent 6%, rgba(0, 0, 0, .35) 34%, #000 62%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%),
    linear-gradient(to left, transparent 6%, rgba(0, 0, 0, .35) 34%, #000 62%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* In English the copy moves to the other side, so the clearing does too. */
[dir="ltr"] .hero-art {
  object-position: 42% 60%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%),
    linear-gradient(to right, transparent 6%, rgba(0, 0, 0, .35) 34%, #000 62%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%),
    linear-gradient(to right, transparent 6%, rgba(0, 0, 0, .35) 34%, #000 62%);
}

.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 58px;
  align-items: center;
}
/* The live site sets its page headings in MvMagXBold at 2.8rem and colours
   h1 in the brand red — both copied here, because between them they are most
   of what makes an Aasandha page recognisable at a glance. */
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.6;
  font-weight: normal;
  letter-spacing: 0;
  color: var(--brand-bright);
}
body[lang="dv"] .hero h1 { font-family: var(--site-display); }
.hero p {
  margin: 20px 0 0;
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font: inherit; font-size: 15.5px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary {
  background: var(--brand-bright); color: #fff;
  box-shadow: 0 8px 20px rgba(198, 36, 36, .26);
}
.btn--primary:hover {
  background: var(--brand); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 25, 19, .3);
}
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn--ghost:hover { border-color: var(--brand-bright); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* The hero's companion panel: the assistant, shown rather than described. */
.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
}
.hero-panel-head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.hero-panel-head img { width: 34px; height: 44px; object-fit: contain; }
.hero-panel-head b { font-size: 15.5px; }
.hero-panel-head small { display: block; color: var(--ink-faint); font-size: 12px; font-family: var(--latin); }
.hero-bubble {
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 15.5px;
  margin-bottom: 10px;
}
.hero-bubble--user {
  background: var(--brand); color: #fff;
  margin-inline-start: 22%;
}
.hero-bubble--bot { background: var(--surface); border: 1px solid var(--line); margin-inline-end: 12%; }
.hero-panel .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ── Quick services strip ──────────────────────────────────────────────── */
.quick {
  background: var(--brand);
  color: #fff;
}
.quick .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
}
.quick a {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px;
  background: var(--brand);
  text-decoration: none;
  transition: background .18s ease;
}
.quick a:hover { background: var(--brand-deep); }
.quick .icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center;
}
.quick .icon svg { width: 21px; height: 21px; stroke: #fff; }
.quick b { display: block; font-size: 15.5px; font-weight: 600; }
.quick small { display: block; opacity: .78; font-size: 12.5px; font-family: var(--latin); letter-spacing: .02em; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  /* The maroon cap on the block-start edge, revealed on hover. */
  content: "";
  position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.card:hover::before { transform: scaleX(1); }
/*
 * A card that leads with a photograph.
 *
 * The source images are wide banners — about 2.4:1, with the subject sitting
 * against the inline-end edge and empty pattern filling the rest. Cropped to a
 * card they would show mostly pattern, so `object-position` pulls the frame
 * over to where the subject actually is.
 */
.cards--media .card { padding: 0 0 24px; }
.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-tint);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 82% center;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.card:hover .card-media img { transform: scale(1.045); }
.cards--media .card h3,
.cards--media .card p,
.cards--media .card .more { margin-inline: 26px; }
.cards--media .card h3 { margin-block: 20px 9px; }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--brand-tint);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 25px; height: 25px; stroke: var(--brand-bright); }
.card h3 { margin: 0 0 9px; font-size: 19.5px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  color: var(--brand-bright);
  font-weight: 600; font-size: 14.5px;
  text-decoration: none;
}
.card .more svg { width: 15px; height: 15px; }
/* The chevron points along the reading direction, so it flips with the page. */
.card .more svg { transform: scaleX(-1); }
:root:not([dir="rtl"]) .card .more svg,
[dir="ltr"] .card .more svg { transform: none; }
.card .more:hover { text-decoration: underline; }

/* ── Updates ───────────────────────────────────────────────────────────── */
.updates { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.update {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px 24px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 11px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.update:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* The photograph is edge to edge at the top of the card; the padding above
   is removed rather than the image inset, so it reads as a news item and not
   as a picture pasted into a box. */
.update-media {
  margin: 0 -24px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.update-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.update:hover .update-media img { transform: scale(1.04); }
.update time { margin-top: 14px; }
.update time {
  align-self: flex-start;
  font: 600 12.5px/1.8 var(--latin);
  color: var(--brand-bright);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 2px 11px;
}
.update h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.85; }

/* ── Mobile app band ───────────────────────────────────────────────────── */
.app-band {
  background:
    radial-gradient(90% 120% at 20% 100%, rgba(198, 36, 36, .07) 0%, transparent 60%),
    var(--surface);
  overflow: hidden;
}
.app-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.app-copy h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.7;
}
body[lang="dv"] .app-copy h2 {
  font-family: var(--site-display);
  font-weight: normal;
  color: var(--brand);
}
.app-copy p { margin: 14px 0 0; color: var(--ink-soft); max-width: 46ch; }
/* The two store badges are supplied as separate images, so they are sized by
   height and left to keep their own proportions. They stay side by side in
   source order — Google Play then App Store — in both text directions,
   because that pairing is a brand convention and not a sentence. */
.app-copy .store-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.app-copy .store-badges img {
  height: 44px; width: auto;
  border-radius: 7px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.app-copy .store-badges a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 37, 41, .18);
}
.app-art img { width: 100%; height: auto; }

/* ── Statistics ────────────────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 58%, #5a0f0b 100%);
  color: #fff;
}
.stats-head { text-align: center; margin-bottom: 44px; }
.stats-head h2 { margin: 0; font-size: clamp(23px, 3vw, 32px); font-weight: 700; line-height: 1.7; }
/* On the maroon band the heading stays white — the brand red the other
   headings use would disappear into it. */
body[lang="dv"] .stats-head h2 { font-family: var(--site-display); font-weight: normal; color: #fff; }
.stats-head p { margin: 8px 0 0; opacity: .78; font: 500 14px/1.8 var(--latin); letter-spacing: .04em; }

/* Four across, then two, then one — set explicitly rather than left to
   auto-fit. The figures are not interchangeable in width: "192,833,616" is
   nine digits and "60" is two, and auto-fit sized every column to the small
   ones, so the total-expenditure figure ran into the cell beside it. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: transparent;
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(1px);
}
.stat b {
  display: block;
  /* 2.1vw, not 3.4: the ceiling has to be set by the widest figure in the set,
     not by the ones that read comfortably at a larger size. */
  font: 700 clamp(21px, 2.1vw, 30px)/1.25 var(--latin);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat span { display: block; margin-top: 7px; font-size: 14.5px; opacity: .84; line-height: 1.75; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-bright);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.contact-card p { margin: 0 0 13px; color: var(--ink-soft); font-size: 14.5px; }
.contact-card .value {
  font: 700 22px/1.4 var(--latin);
  color: var(--brand);
  letter-spacing: -.01em;
  word-break: break-word;
}
.contact-card a.value { text-decoration: none; }
.contact-card a.value:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: #2a0806;
  color: rgba(255, 255, 255, .72);
  padding: 62px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 46px;
}
.footer img.logo { height: 62px; width: auto; margin-bottom: 16px; }
.footer h4 { margin: 0 0 14px; color: #fff; font-size: 15.5px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; opacity: .82; }
.footer a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.footer .address { max-width: 34ch; line-height: 1.95; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 13px;
}
.footer-bottom .spacer { margin-inline-start: auto; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 460px; }
  /* Stacked into one column there is more text over the artwork, so it
     steps back further. */
  .hero-art { opacity: .26; }
  .app-band .wrap { grid-template-columns: 1fr; gap: 26px; }
  .app-art { max-width: 460px; }
  .quick .wrap { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  /* The button reveals the same anchors as a stacked list under the header —
     the demo is one page, so a drawer would have nowhere else to go. */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    padding: 8px 20px 14px;
    background: #fff;
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav.is-open a { padding: 12px 10px; border-radius: 10px; }
  .header .cta { display: none; }
  .menu-btn { display: flex; }
  .topbar .hide-sm { display: none; }
  .topbar .demo-badge { display: none; }
  .topbar .wrap { gap: 6px 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 56px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  /* On a phone the heading fills the column on its own, and a photograph
     behind Thaana at that size is only noise. */
  .hero-art { display: none; }
  .app-copy .store-badges img { height: 38px; }
  .quick .wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .brand-text b { font-size: 16px; }
  .hero-panel { padding: 18px; }
}

/* Someone who has asked for less motion gets the layout and none of the
   movement — including the badge's pulse. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── DEMO watermark ──────────────────────────────────────────────────────
   The demo is a mock-up of a real government site, so it says so on its face:
   one fixed, tilted "DEMO" that stays put while the page scrolls.

   Two things keep it out of the assistant's way. `pointer-events: none` means
   every click passes through it to whatever is underneath, and the z-index sits
   far below the widget's own layer (2147483000 in widget.css), so the chat
   panel and its launcher draw over the mark rather than under it. */
.demo-watermark {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}

.demo-watermark span {
  font-family: var(--latin);
  font-weight: 800;
  font-size: clamp(72px, 18vw, 260px);
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(139, 25, 19, .13);         /* the brand maroon, kept faint */
  text-transform: uppercase;
  transform: rotate(-18deg);
  /* The mark is decoration on a demo, not part of the page's meaning; it is
     aria-hidden in the markup, and the tilt is purely visual. */
}

@media (max-width: 640px) {
  .demo-watermark span { font-size: clamp(56px, 22vw, 140px); }
}
