/* Meridian Shipping Services — site stylesheet
   Layout: one document column, sections divided by hairlines, overviews in
   rounded cards. Accent from the logo's marine blue; the two product pages add
   a deep band in Eagle Mail's Signature colours (see "product pages" below).
   Page flowcharts: docs/flowcharts/website-pages.md. */
/* ------------------------------------------------------------------- base
   These three came from the drafting host's own page skeleton. These files are
   served raw, so they belong in the stylesheet now. */
html { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }

/* Lettering: the same two faces as the Eagle Mail app and its brochure, kept
   on this site so a page needs no other server. Latin only; a glyph outside
   it (the rupee sign) falls back to the device's own face. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/plus-jakarta-sans-v12-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/space-grotesk-v22-latin.woff2") format("woff2");
}

:root {
  --paper:   #F6F7FB;
  --panel:   #ECEEF7;
  --card:    #FFFFFF;
  --ink:     #0D1530;
  --sea:     #414A6B;
  --sounding:#566080;
  --rule:    #D8DCEB;
  --accent:  #2457D6;
  --accent-deep: #173B9C;
  --accent-soft: rgba(36, 87, 214, 0.10);
  --btn-ink: #FFFFFF;
  --flag:    #B5175F;
  --flag-soft: rgba(181, 23, 95, 0.10);
  --good:    #0B7F76;
  --shadow:  0 1px 2px rgba(13, 21, 48, 0.05), 0 6px 20px rgba(13, 21, 48, 0.06);

  --display: "Space Grotesk", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body:    "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --data:    var(--body);
  --mono:    ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
  --radius:  14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0A0F22;
    --panel:   #111834;
    --card:    #141C3B;
    --ink:     #E8ECFF;
    --sea:     #B6BEDD;
    --sounding:#8B95B8;
    --rule:    #27305A;
    --accent:  #8AB0FF;
    --accent-deep: #B5CCFF;
    --accent-soft: rgba(138, 176, 255, 0.14);
    --btn-ink: #0A0F22;
    --flag:    #FF7DB4;
    --flag-soft: rgba(255, 125, 180, 0.12);
    --good:    #5EEAD4;
    --shadow:  0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:   #0A0F22;
  --panel:   #111834;
  --card:    #141C3B;
  --ink:     #E8ECFF;
  --sea:     #B6BEDD;
  --sounding:#8B95B8;
  --rule:    #27305A;
  --accent:  #8AB0FF;
  --accent-deep: #B5CCFF;
  --accent-soft: rgba(138, 176, 255, 0.14);
  --btn-ink: #0A0F22;
  --flag:    #FF7DB4;
  --flag-soft: rgba(255, 125, 180, 0.12);
  --good:    #5EEAD4;
  --shadow:  0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 0;
}

/* ---------------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.wordmark {
  display: flex; align-items: center; gap: 0.7rem; min-width: 0;
  text-decoration: none; color: inherit;
}
.wordmark:hover .mark { color: var(--accent); }
.wordmark img { width: 2.6rem; height: auto; flex: none; }
.wordmark .names { display: flex; flex-direction: column; min-width: 0; }
.wordmark .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
.wordmark .sub {
  font-family: var(--data);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sounding);
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
}
.masthead nav a {
  color: var(--sea);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.masthead nav a:hover, .masthead nav a:focus-visible, .masthead nav a[aria-current="page"] {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
/* On a phone the links stay on one line and slide sideways, so the header is
   two short rows however many links a page has. */
@media (max-width: 41.99rem) {
  .masthead .wrap { gap: 0.5rem; padding-block: 0.7rem 0.5rem; }
  .masthead nav {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    margin-inline: -0.5rem; padding-inline: 0; scrollbar-width: none;
  }
  .masthead nav::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero .wrap {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (min-width: 54rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 3rem; }
}
.hero-art { justify-self: center; max-width: 16rem; width: 100%; }
/* Below this width the masthead already shows the badge; a second one would only push the words down. */
@media (max-width: 53.99rem) { .hero-art { display: none; } }
.hero-art img { width: 100%; height: auto; display: block; }

.soundings {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  font-family: var(--data); font-size: 0.66rem;
  color: var(--sounding); opacity: 0.24; overflow: hidden;
}
.soundings span { position: absolute; }
/* On a small screen the depth figures read as stray marks, so they are left out. */
@media (max-width: 53.99rem) { .soundings { display: none; } }

.eyebrow {
  font-family: var(--data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
  max-width: 20ch;
}
.lede {
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.62;
  max-width: 52ch;
  margin: 0 0 1.6rem;
  color: var(--sea);
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  font-family: var(--data); font-size: 0.78rem; font-weight: 500;
  color: var(--sounding);
  border-top: 1px solid var(--rule); padding-top: 1rem;
  max-width: 52ch;
}

/* ---------------------------------------------------------------- sections */

section { border-bottom: 1px solid var(--rule); }
section .wrap { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

.label {
  font-family: var(--data);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sounding); margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.38rem, 3.2vw, 1.85rem);
  line-height: 1.2; letter-spacing: -0.01em;
  text-wrap: balance; margin: 0 0 0.9rem; max-width: 28ch;
}
h3.sub {
  font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; margin: 2rem 0 0.7rem;
}
section p { max-width: 62ch; margin: 0 0 1rem; }
section p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem; margin-top: 1.6rem;
}
.service {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1.3rem; min-width: 0;
}
.service h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1rem; margin: 0 0 0.45rem;
}
.service p {
  font-size: 0.9rem; line-height: 1.55;
  color: var(--sea); margin: 0; max-width: none;
}

/* ---------------------------------------------------------------- diagrams */

figure { margin: 1.8rem 0 0; }
figure svg { display: block; width: 100%; height: auto; }
figcaption {
  font-family: var(--data); font-size: 0.78rem; line-height: 1.6;
  color: var(--sounding); margin-top: 0.7rem; max-width: 62ch;
}
.diagram-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem 1rem;
  overflow-x: auto;
}
.diagram-frame > svg { min-width: 20rem; }

/* -------------------------------------------------------------- particulars */

.particulars-wrap { overflow-x: auto; margin-top: 1.6rem; }
table {
  border-collapse: collapse; width: 100%; min-width: 27rem;
  font-family: var(--data); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left; font-family: var(--data);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sounding); padding-bottom: 0.6rem;
}
th, td {
  text-align: left; padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--rule); vertical-align: baseline;
}
th { font-weight: 600; color: var(--sea); width: 46%; }
td { color: var(--ink); }

/* The plan table (Eagle Mail page): the prices are short, the description is
   the long part, so the description takes the room and reads in the body face.
   Fixed layout keeps the columns where they are given, whatever the text. */
table.plans { table-layout: fixed; }
table.plans col.plan { width: 17%; }
table.plans col.price { width: 15%; }
table.plans th { width: auto; }
table.plans td.for {
  font-family: var(--body); font-size: 0.9rem; line-height: 1.5;
  font-variant-numeric: normal;
}
table.plans td.money { white-space: nowrap; }
table.plans td.money small { display: block; white-space: normal; color: var(--sounding); font-size: 0.72rem; }

/* The small-update finder: one choice instead of a card per version. */
@media (max-width: 33.99rem) {
  table.plans { table-layout: auto; }
  table.plans colgroup, table.plans thead { display: none; }
  table.plans tbody tr { grid-template-columns: auto auto; justify-content: start; column-gap: 1.2rem; }
  table.plans tbody th, table.plans td.for { grid-column: 1 / -1; }
  table.plans td.money small { display: inline; margin-left: 0.3rem; }
}

.finder { margin-top: 1rem; }
.finder label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.finder select { font: inherit; padding: 0.5rem 0.6rem; max-width: 100%; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); }
.finder .answer { margin-top: 0.8rem; }
.finder .answer .sum { display: block; font-family: var(--mono); font-size: 0.72rem; word-break: break-all; margin-top: 0.4rem; }

/* On a narrow phone the particulars table would be the one thing on the site
   you had to push sideways to read. Below 34rem each row becomes a stacked
   label and value instead, and the scroller is switched off. */
@media (max-width: 33.99rem) {
  .particulars-wrap { overflow-x: visible; }
  .particulars-wrap table { min-width: 0; }
  .particulars-wrap tbody tr {
    display: grid; gap: 0.1rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  }
  .particulars-wrap th, .particulars-wrap td {
    display: block; width: auto; padding: 0; border-bottom: none;
  }
  .particulars-wrap th {
    font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sounding);
  }
}

/* -------------------------------------------------------------------- team */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.8rem; margin-top: 1.6rem;
}
.person {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1.3rem; min-width: 0;
}
.person .role {
  font-family: var(--data); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sounding); margin: 0 0 0.35rem;
}
.person h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.08rem; margin: 0 0 0.5rem;
}
.person p { font-size: 0.92rem; line-height: 1.55; color: var(--sea); margin: 0 0 0.8rem; max-width: none; }

/* ----------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem 2.5rem; margin-top: 1.5rem;
}
.contact-block { min-width: 0; }
.contact-block h3 {
  font-family: var(--data); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sounding); font-weight: 700; margin: 0 0 0.6rem;
}
.addr { font-style: normal; line-height: 1.65; font-size: 0.95rem; }
.copyline {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}
.copyline code {
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--ink); word-break: break-all;
}
button.copy {
  font-family: var(--data); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sea); background: var(--card);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.25rem 0.7rem; cursor: pointer; flex: none;
}
button.copy:hover { border-color: var(--accent); color: var(--accent); }
button.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ footer */

footer { background: var(--panel); }
footer .wrap {
  padding-block: 2rem 2.5rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 42rem) {
  footer .wrap { grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; }
}
footer img.flogo { width: 9rem; height: auto; }
.legal {
  font-family: var(--data); font-size: 0.78rem; line-height: 1.7;
  color: var(--sounding); display: grid; gap: 0.35rem; min-width: 0;
}
.legal strong { color: var(--sea); font-weight: 700; letter-spacing: 0.04em; }

/* The one line in the footer that is about a person rather than the company.
   A hairline keeps it from reading as another statutory particular, which is
   what it would look like sitting flush under the CIN and the registered
   office. */

.credit {
  margin-top: 0.4rem; padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}

/* -------------------------------------------------------------- placeholder */

.todo {
  background: var(--flag-soft); border-bottom: 1px dashed var(--flag);
  color: var(--flag); padding: 0 0.18em; font-style: normal;
}
.todo::before { content: "▸ "; font-family: var(--data); font-size: 0.8em; }

.note {
  border-left: 2px solid var(--flag); background: var(--flag-soft);
  padding: 0.85rem 1rem; margin: 1.6rem 0 0;
  font-size: 0.88rem; line-height: 1.55; max-width: 62ch;
}
.note b {
  font-family: var(--data); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--flag); display: block; margin-bottom: 0.3rem;
}

a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* subpage additions */
.doc .wrap { max-width: 50rem; }
.doc h2 { margin-top: 2.2rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc ul, .doc ol { max-width: 62ch; padding-left: 1.1rem; margin: 0 0 1rem; }
.doc ol { padding-left: 1.4rem; }
.doc h3 { margin-top: 1.4rem; }
.doc li { margin-bottom: 0.45rem; }
.stamp {
  font-family: var(--data); font-size: 0.78rem;
  color: var(--sounding); border-top: 1px solid var(--rule);
  padding-top: 0.9rem; margin-top: 2.2rem;
}
.back {
  font-family: var(--data); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--sea);
}
.back:hover { color: var(--accent); }
.keypoints {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem; margin: 1.6rem 0 0;
}
.keypoint {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.1rem 1.2rem; min-width: 0;
}
.keypoint h3 { font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin: 0 0 0.4rem; }
.keypoint p { font-size: 0.88rem; line-height: 1.55; color: var(--sea); margin: 0; max-width: none; }
.flag-line {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1rem; margin: 1.6rem 0 0; font-size: 0.92rem;
  line-height: 1.55; max-width: 62ch;
}

/* ------------------------------------------------------------- quick enquiry
   A floating button, bottom right, on every page. The home page is ten
   thousand pixels tall and the contact details sit at the very bottom of it;
   somebody who has just read what the agency does should not have to scroll
   there to act on it.

   Built from <details>, so it opens and closes with no JavaScript at all.
   The site has no backend and no form handler — the CSP forbids both — so
   every choice hands off to something the phone already has: WhatsApp, the
   dialler, the mail app. */

.enquire {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
}

.enquire > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  /* Not white: in the dark theme the accent lightens, and white on that is
     unreadable. --btn-ink flips with the theme. */
  color: var(--btn-ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}
.enquire > summary::-webkit-details-marker { display: none; }
.enquire > summary:hover { background: var(--accent-deep); }
.enquire > summary svg { width: 1.05rem; height: 1.05rem; flex: none; }
/* Below the width where the page has a free margin the button would sit on
   the text, so there it is the icon alone. */
@media (max-width: 75.99rem) {
  .enquire > summary { padding: 0.8rem; }
  .enquire > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .enquire > summary svg { width: 1.25rem; height: 1.25rem; }
}
/* say-shut is what the button says while shut, say-open while open. */
.enquire[open] > summary .say-shut { display: none; }
.enquire:not([open]) > summary .say-open { display: none; }

.enquire-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  width: min(19rem, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  padding: 1rem 1rem 0.85rem;
}
.enquire-panel p.ask {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sea);
  margin: 0 0 0.8rem;
  max-width: none;
}
.enquire-panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  margin-inline: -0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}
.enquire-panel a:hover { background: var(--accent-soft); }
.enquire-panel a svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent); }
.enquire-panel a b { font-weight: 600; display: block; }
.enquire-panel a span {
  display: block;
  font-family: var(--data);
  font-size: 0.8rem;
  color: var(--sounding);
}
.enquire-panel small {
  display: block;
  font-family: var(--data);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--sounding);
  border-top: 1px solid var(--rule);
  margin-top: 0.7rem;
  padding-top: 0.6rem;
}

/* The button floats over the end of the page, so the footer needs room under
   its last line or the button sits on top of the copyright. */
footer .wrap { padding-bottom: 5.5rem; }
@media (min-width: 42rem) { footer .wrap { padding-bottom: 4.5rem; } }

/* Download buttons on the Eagle Mail page: one per file, the checksum under each
   so a file fetched elsewhere can be checked against the one we built. */
.downloads { display:grid; gap:0.8rem; grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr)); margin:1.25rem 0; }
.download { background:var(--card); border:1px solid var(--rule); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.1rem 1.2rem; display:flex; flex-direction:column; gap:.5rem; }
.download .name { font-family:var(--display); font-weight:700; font-size:1.05rem; }
.download .meta { font-size:.88rem; color:var(--sea); }
.download a.get { display:inline-block; align-self:flex-start; padding:.6rem 1.15rem; border-radius:999px; background:var(--accent); color:var(--btn-ink); text-decoration:none; font-weight:700; }
.download a.get:hover { background:var(--accent-deep); }
.download a.get:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.download .sum, .dl-help .sum { font-family:var(--mono); font-size:.72rem; word-break:break-all; color:var(--sounding); }
.download .sum b, .dl-help .sum b { font-family:var(--body); font-weight:700; }
.dl-help { border:1px solid var(--rule); border-radius:var(--radius); background:var(--card); padding:.8rem 1.1rem; margin-top:.6rem; max-width:62ch; }
.dl-help > summary { cursor:pointer; font-weight:600; }
.dl-help ol, .dl-help ul { padding-left:1.2rem; }

/* The Eagle Mail licence application (eaglemail-apply.html): the same answers and file as the app's Apply wizard. */
.apply fieldset { background:var(--card); border:1px solid var(--rule); border-radius:var(--radius); padding:1rem 1.1rem 1.1rem; margin:0 0 1.1rem; }
.apply legend { font-family:var(--display); font-weight:600; padding:0 .4rem; }
.apply .row { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fit, minmax(13rem, 1fr)); }
.apply .field { display:flex; flex-direction:column; gap:.25rem; margin:.45rem 0; }
.apply .field label { font-family:var(--body); font-weight:600; font-size:.88rem; color:var(--sea); }
.apply input:not([type=radio]):not([type=checkbox]), .apply textarea { font:inherit; font-size:1rem; padding:.55rem .65rem; border:1px solid var(--rule); border-radius:8px; background:var(--paper); color:var(--ink); width:100%; box-sizing:border-box; }
.apply input:focus-visible, .apply textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.apply .bad { border-color:var(--flag) !important; background:var(--flag-soft) !important; }
.apply .chips { display:flex; flex-wrap:wrap; gap:.5rem; margin:.4rem 0 .6rem; }
.apply .chips label { display:inline-flex; align-items:center; gap:.4rem; border:1px solid var(--rule); border-radius:999px; padding:.35rem .8rem; cursor:pointer; font-family:var(--body); font-weight:600; font-size:.92rem; }
.apply .chips label:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.apply .tick { display:flex; align-items:flex-start; gap:.5rem; margin:.4rem 0; }
.apply .block { border-top:1px solid var(--rule); padding-top:.6rem; margin-top:.6rem; }
.apply .block h3 { font-family:var(--display); font-size:1rem; margin:.2rem 0; }
.apply .hint, #done .hint { font-size:.9rem; color:var(--sounding); margin:.3rem 0; }
.apply .problems { border:1px solid var(--flag); background:var(--flag-soft); border-radius:10px; padding:.7rem 1rem; margin:0 0 1rem; }
.apply button.primary, #done a.get { display:inline-block; padding:.65rem 1.25rem; border-radius:999px; background:var(--accent); color:var(--btn-ink); border:0; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.apply button.ghost, #done .ghost { display:inline-block; padding:.55rem 1rem; border-radius:999px; border:1px solid var(--rule); background:transparent; color:var(--ink); font:inherit; cursor:pointer; text-decoration:none; }
.apply button.ghost:hover, #done .ghost:hover { border-color:var(--accent); color:var(--accent); }
#done .actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:1rem 0; }
.appout { font-family:var(--mono); font-size:.78rem; white-space:pre-wrap; word-break:break-all; border:1px solid var(--rule); border-radius:10px; padding:1rem; background:var(--panel); }
@media print { .masthead, footer, .hero, .phero, .actionbar, #done .actions, .enquire { display:none !important; } .appout { border:0; background:none; } }
.apply [hidden], #done[hidden], .apply[hidden] { display:none !important; }

/* ================================================================ buttons
   One filled main button per view, as a pill; everything else outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  padding: 0.7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--btn-ink); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; }

/* ========================================================== product pages
   Eagle Mail, its licence application and Paisa Book open with a deep band in
   the app's Signature colours (navy into indigo, violet and teal). These are
   fixed colours on purpose: the band is the same in the light and the dark
   theme, like the cover of the brochure. Below the band the page uses the
   ordinary tokens. */
.phero {
  position: relative; overflow: hidden; color: #E8ECFF;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0) 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(14, 165, 160, 0.30) 0%, rgba(14, 165, 160, 0) 60%),
    linear-gradient(160deg, #0B1433 0%, #1B1A66 60%, #10294A 100%);
}
.phero.paisa {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(16, 185, 129, 0.40) 0%, rgba(16, 185, 129, 0) 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 60%),
    linear-gradient(160deg, #06231F 0%, #0B3B36 60%, #0B2A3F 100%);
}
.phero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: center;
  padding-block: clamp(1.75rem, 4.5vw, 3.25rem);
}
@media (min-width: 54rem) {
  .phero .wrap.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
}
.phero .brand { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.9rem; }
.phero .brand img { width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.phero .brand b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #FFFFFF; display: block; line-height: 1.15; }
.phero .brand span span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #7FE8D9; }
.phero h1 { color: #FFFFFF; max-width: 18ch; margin-bottom: 0.9rem; }
.phero h1 em { font-style: normal; background: linear-gradient(90deg, #B7A4FF, #5EEAD4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero.paisa h1 em { background: linear-gradient(90deg, #6EE7B7, #7DD3FC); -webkit-background-clip: text; background-clip: text; }
.phero .lede { color: #CDD3F2; margin-bottom: 0; }
.phero .lede strong { color: #FFFFFF; }
.phero .btn { background: linear-gradient(90deg, #6D5DFC, #7C3AED); color: #FFFFFF; }
.phero .btn:hover { background: linear-gradient(90deg, #7C6DFF, #8B4DF5); }
.phero .btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.phero .btn.ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.phero .btn.still { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); cursor: default; transform: none; }
.phero :focus-visible { outline-color: #FFFFFF; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pills li { font-size: 0.78rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.2rem 0.7rem; color: #CDD3F2; }
.phero.slim .wrap { padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.phero.slim h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }

/* A drawing of the app, made of boxes so it costs no download. Decoration
   only (aria-hidden); every name in it is made up. */
.appshot {
  background: #F5F7FF; color: #1A2040; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); font-size: 0.78rem; line-height: 1.35;
  max-width: 27rem; width: 100%; justify-self: center;
}
.appshot .top { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; color: #FFFFFF; font-weight: 700; background: linear-gradient(90deg, #1E3A8A, #5B21B6 60%, #0E7C86); }
.appshot .top i { margin-left: auto; width: 5.5rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.appshot .body { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); }
.appshot .side { background: #E9ECFB; padding: 0.6rem 0.5rem; display: grid; gap: 0.3rem; align-content: start; font-weight: 600; color: #4A5380; }
.appshot .side span { padding: 0.2rem 0.5rem; border-radius: 999px; }
.appshot .side .on { background: #6D3BE0; color: #FFFFFF; }
.appshot .rows { padding: 0.2rem 0.8rem 0.5rem; }
.appshot .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid #E1E5F5; align-items: start; }
.appshot .row:last-child { border-bottom: 0; }
.appshot .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-top: 0.35rem; background: #0EA5A0; }
.appshot .dot.v { background: #7C3AED; } .appshot .dot.a { background: #F59E0B; } .appshot .dot.r { background: #F43F5E; }
.appshot b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot small { display: block; color: #5B6280; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot .tag { font-size: 0.64rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.5rem; background: #E7E0FF; color: #4C1D95; white-space: nowrap; }
.appshot .tag.g { background: #D5F5EE; color: #0B5F58; } .appshot .tag.o { background: #FDECC8; color: #7A4A00; } .appshot .tag.p { background: #FFE0E7; color: #9F1239; }
@media (max-width: 53.99rem) { .appshot { display: none; } }

/* Who it is for, and what it does: cards with a small colour mark. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1.4rem 0 0; }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.05rem 1.1rem 1.15rem; min-width: 0;
}
.tile h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.55rem; }
.tile h3::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 0.25rem; flex: none; background: var(--mark, var(--accent)); }
.tile p { font-size: 0.9rem; line-height: 1.5; color: var(--sea); margin: 0; max-width: none; }
.tile:nth-child(6n+1) { --mark: #7C3AED; } .tile:nth-child(6n+2) { --mark: #0EA5A0; } .tile:nth-child(6n+3) { --mark: #F59E0B; }
.tile:nth-child(6n+4) { --mark: #F43F5E; } .tile:nth-child(6n+5) { --mark: #2563EB; } .tile:nth-child(6n+6) { --mark: #10B981; }
.tile .also { display: block; margin-top: 0.45rem; font-size: 0.78rem; font-weight: 600; color: var(--sounding); }

/* Plans: one card each, one currency at a time. The switch is two radio
   buttons and CSS, so it works with JavaScript off. */
.cur-in { position: absolute; opacity: 0; pointer-events: none; }
.cur { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); margin: 0.4rem 0 0; }
.cur label { padding: 0.35rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--sea); }
#cur-usd:checked ~ .cur label[for="cur-usd"], #cur-inr:checked ~ .cur label[for="cur-inr"] { background: var(--accent); color: var(--btn-ink); }
#cur-usd:focus-visible ~ .cur label[for="cur-usd"], #cur-inr:focus-visible ~ .cur label[for="cur-inr"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#cur-usd:checked ~ .plan-grid .inr, #cur-usd:checked ~ p .inr, #cur-inr:checked ~ .plan-grid .usd, #cur-inr:checked ~ p .usd { display: none; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; margin: 1rem 0 0; }
@media (min-width: 34rem) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.15rem 1.2rem; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem;
}
.plan-card.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 0; }
.plan-card .who { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sounding); margin: 0; }
.plan-card .amount { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--accent-deep); margin: 0.2rem 0; font-variant-numeric: tabular-nums; }
.plan-card .amount small { font-family: var(--body); font-size: 0.8rem; font-weight: 600; color: var(--sounding); }
.plan-card p.has { font-size: 0.88rem; line-height: 1.5; color: var(--sea); margin: 0; max-width: none; }
.fine { font-size: 0.86rem; color: var(--sounding); }

/* Two boxes side by side: free against subscription. */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 0.8rem; margin: 1.2rem 0; }
.pair .tile.dark { background: linear-gradient(160deg, #0B3B36, #0B2A3F); border-color: transparent; }
.pair .tile.dark h3 { color: #FFFFFF; } .pair .tile.dark p { color: #CFEDE3; }

/* Product cards on the home page. */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.8rem; margin-top: 1.4rem; }
.product {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.4rem; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem;
}
.product .head { display: flex; align-items: center; gap: 0.8rem; }
.product .head img { width: 3rem; height: 3rem; border-radius: 0.8rem; flex: none; }
.product h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; }
.product .kind { font-size: 0.78rem; font-weight: 600; color: var(--sounding); }
.product p { font-size: 0.93rem; line-height: 1.55; color: var(--sea); margin: 0; max-width: none; }
.product .btn { align-self: flex-start; margin-top: auto; }

/* The closing band of a product page: the one thing to do next. */
.next {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem; margin-top: 2.2rem;
}
.next h2 { margin-top: 0 !important; }

/* On a phone the two main actions of a product page stay within reach in a
   bar along the bottom; the Enquire button takes the bar's right-hand end. */
.actionbar { display: none; }
@media (max-width: 41.99rem) {
  .actionbar {
    display: flex; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.55rem 4.4rem calc(0.55rem + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(13, 21, 48, 0.10);
  }
  .actionbar .btn { flex: 1; padding: 0.65rem 0.6rem; font-size: 0.9rem; }
  body.has-bar .enquire { right: 10px; bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
  body.has-bar .enquire > summary { box-shadow: none; }
  body.has-bar footer .wrap { padding-bottom: 6.5rem; }
}
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------------------------------------------------------- small helpers
   The pages carry no style="" attributes: the site's content security policy
   refuses them, so one written in a page would show here on disk and vanish on
   the live site. tools/check.py fails a page that has one. */
.mt-l { margin-top: 2.5rem !important; }
.mt-m { margin-top: 1rem !important; }
.mt-s { margin-top: 0.7rem !important; }
.flush { margin-bottom: 0 !important; }
section.last { border-bottom: none; }
section .wrap.roomy { padding-block: clamp(3rem, 8vw, 5rem); }
.hero .wrap.single { display: block; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
section p.aside { font-size: 0.86rem; color: var(--sounding); margin-top: 0.4rem; max-width: 32ch; }
section p.aside-plain { font-size: 0.95rem; margin: 0; color: var(--sea); }
/* The depth figures scattered over the home page's opening, like soundings on a chart. */
.soundings span:nth-child(1) { left: 4%;  top: 14%; }
.soundings span:nth-child(2) { left: 20%; top: 63%; }
.soundings span:nth-child(3) { left: 37%; top: 27%; }
.soundings span:nth-child(4) { left: 55%; top: 78%; }
.soundings span:nth-child(5) { left: 68%; top: 17%; }
.soundings span:nth-child(6) { left: 81%; top: 49%; }
.soundings span:nth-child(7) { left: 90%; top: 82%; }
.soundings span:nth-child(8) { left: 11%; top: 89%; }
.soundings span:nth-child(9) { left: 47%; top: 8%; }

/* A product page uses the full column, so the band above and the cards below
   share one left edge. Running text keeps its reading width. */
.doc.wide .wrap { max-width: 68rem; }

.swipe-hint { display: none; }

/* ------------------------------------------------------------- phone layout
   Minimal scrolling: the long card lists become a row you swipe, with the next
   card showing at the edge; the plans tighten into short rows. */
@media (max-width: 41.99rem) {
  .phero .btn-row .btn { padding: 0.65rem 1rem; font-size: 0.9rem; }
  .pills li { font-size: 0.74rem; }
  .tiles.four { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .tiles.four .tile { padding: 0.85rem 0.85rem 0.9rem; }
  .tiles.four .tile p { font-size: 0.84rem; }
  .tiles.swipe {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.7rem;
    margin-inline: -16px; padding: 0.2rem 16px 0.9rem; scrollbar-width: thin;
  }
  .tiles.swipe .tile { flex: 0 0 78%; scroll-snap-align: center; }
  .services {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.7rem;
    margin-inline: -16px; padding: 0.2rem 16px 0.9rem; scrollbar-width: thin;
  }
  .services .service { flex: 0 0 78%; scroll-snap-align: center; }
  .swipe-hint { display: block; font-size: 0.8rem; font-weight: 600; color: var(--sounding); margin: 0.2rem 0 0; }
  .plan-card { padding: 0.9rem 1rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.8rem; align-items: baseline; }
  .plan-card h3 { grid-column: 1; }
  .plan-card .who { grid-column: 1; grid-row: 2; }
  .plan-card .amount { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 1.45rem; margin: 0; align-self: center; }
  .plan-card .amount small { display: block; font-size: 0.72rem; }
  .plan-card p.has { grid-column: 1 / -1; font-size: 0.84rem; margin-top: 0.35rem; }
  footer img.flogo { width: 6rem; }
}

/* ======================================================= Google Play badge
   Paisa Book is given out through Google Play only. The badge follows the
   shape of Google's own (black, rounded, the four-colour mark, "GET IT ON"
   over "Google Play") but is drawn here in HTML and inline SVG, because the
   CSP lets a page load pictures from this site only. */
.play-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #000000; color: #FFFFFF; text-decoration: none;
  border: 1px solid #A6A6A6; border-radius: 0.6rem;
  padding: 0.45rem 1.05rem 0.45rem 0.8rem; line-height: 1.05;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.play-badge:hover { transform: translateY(-1px); border-color: #FFFFFF; }
.play-badge svg { flex: none; }
.play-badge span { display: flex; flex-direction: column; font-family: var(--body); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em; }
.play-badge small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.12rem; }
.get-play {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin: 1.8rem 0 0;
}
.get-play h2 { margin: 0 0 0.3rem; }
.get-play p { margin: 0; max-width: 46ch; color: var(--sea); }
