/* masmaaru.mv. Tokens from CLAUDE.md "Visual system"; fonts are the app's, served from here. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-203A, U+20AC, U+2122, U+2190-2193, U+2212, U+00D7;
}
/* The bundled Thaana file is enlarged 1.3x (app/tool/enlarge_thaana.py): never size it by hand. */
@font-face {
  font-family: "Noto Sans Thaana";
  src: url("fonts/NotoSansThaana.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+0640, U+200C-200F, U+FDF2;
}

:root {
  --ink: #0E2430;
  --ink-2: #163747;
  --ground: #F3F6F5;
  --surface: #FFFFFF;
  --line: #DCE4E2;
  --muted: #4A5D66;
  --teal: #0B6B63;
  --teal-soft: #E1F0EE;
  --orange: #B5440F;
  --orange-soft: #FCE9DF;
  --coral: #F08A55;
  --sea-muted: #AFC2CA;
  --wash: radial-gradient(1100px 650px at 100% -10%, #D8ECEA 0, transparent 62%),
          radial-gradient(900px 600px at -10% 110%, #FCE9DF 0, transparent 58%), var(--ground);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --body-lh: 1.55;
  --head-lh: 1.06;
  color-scheme: light;
  accent-color: var(--teal);
  scrollbar-color: #A9B9BF var(--ground);
}
:root:lang(dv) { --body-lh: 1.7; --head-lh: 1.45; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Thaana", system-ui, sans-serif;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--wash);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { line-height: var(--head-lh); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
:lang(dv) h1, :lang(dv) h2, :lang(dv) h3 { letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 14px; font-weight: 700; }
.skip:focus { top: 12px; }

/* --- Header --------------------------------------------------------------- */
.top { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 22px var(--gutter); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; color: inherit; text-decoration: none; min-height: 44px; }
.mark { width: 40px; height: 40px; flex: none; }
.top-nav { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-inline-start: auto; }
.top-nav a { color: inherit; font-weight: 700; text-decoration: none; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.top-nav a:hover, .top-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 800; text-decoration: none; color: inherit; border: 1.5px solid currentColor; }
.lang:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.top--light { color: var(--ink); }
.top--dark { color: #fff; background: var(--ink); }
.top--dark .mark rect { fill: #163747; }
/* Home: the brand sits on the ink half, the links on the light half. */
.top--split { position: absolute; inset-inline: 0; top: 0; color: var(--ink); }
.top--split .brand { color: #fff; }
.top--split .mark rect { fill: #163747; }

/* --- Store buttons (coming soon) -------------------------------------------- */
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.store { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 22px; border-radius: 999px; border: 1.5px dashed currentColor; }
.store-soon { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
:lang(dv) .store-soon { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.store-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; }

.tag-example { display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--muted); background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; line-height: 1.5; }

/* --- Home: the two doors --------------------------------------------------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.door { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(120px, 14vh, 150px) var(--gutter) 128px; }
.door--sea { background: linear-gradient(180deg, var(--ink) 0, #102B39 100%); color: #fff; }
.door--land { background: radial-gradient(800px 500px at 100% 0, #D8ECEA 0, transparent 62%), var(--ground); }
.door h2 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.door-lead { font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.5rem); font-weight: 600; margin: 14px 0 clamp(26px, 4vh, 40px); max-width: 26ch; }
.door--sea .door-lead { color: #D3DEE2; }
.door--land .door-lead { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 560px; text-align: start; }
.steps li { display: flex; gap: 18px; align-items: flex-start; border-radius: 20px; padding: 18px 22px; }
.door--sea .steps li { background: var(--ink-2); }
.door--land .steps li { background: var(--surface); border: 1px solid var(--line); }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.door--sea .step-n { background: var(--coral); color: var(--ink); }
.door--land .step-n { background: var(--teal); color: #fff; }
.steps p { font-size: 0.96rem; }
.door--sea .steps p { color: #DCE6EA; }
.door--land .steps p { color: var(--muted); }
.steps strong { display: block; font-size: 1.12rem; color: inherit; margin-bottom: 2px; }
.door--sea .steps strong { color: #fff; }
.door--land .steps strong { color: var(--ink); }
.door-foot { padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.05rem; text-decoration: none; min-height: 44px; width: fit-content; }
.more:hover { text-decoration: underline; }
.door--sea .more { color: var(--coral); }
.door--land .more { color: var(--teal); }
.chev { width: 20px; height: 20px; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.seam { position: absolute; z-index: 2; left: 50%; bottom: 40px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; font-weight: 800; font-size: 1.05rem; border-radius: 999px; padding: 14px 24px; white-space: nowrap; box-shadow: 0 18px 34px -16px rgba(14, 36, 48, 0.7); }
.seam svg { width: 34px; height: 14px; color: #FFD9C4; }

/* The one authored moment: the two halves close on the harbour. Visible from the first frame. */
@media (prefers-reduced-motion: no-preference) {
  .door--sea { animation: from-start 900ms var(--ease-out) both; }
  .door--land { animation: from-end 900ms var(--ease-out) both; }
  .seam { animation: dock 700ms 380ms var(--ease-out) both; }
  [dir="rtl"] .door--sea { animation-name: from-end; }
  [dir="rtl"] .door--land { animation-name: from-start; }
}
@keyframes from-start { from { transform: translateX(-28px); } }
@keyframes from-end { from { transform: translateX(28px); } }
@keyframes dock { from { transform: translateX(-50%) scale(0.86); box-shadow: 0 0 0 0 rgba(14, 36, 48, 0); } }

/* --- Sections --------------------------------------------------------------- */
section { scroll-margin-top: 24px; }
.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
section h2 { font-size: clamp(2rem, 3vw + 0.6rem, 3.2rem); }
.lead { font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.32rem); max-width: 58ch; }

/* One catch, sea to harbour */
.journey { padding-block: clamp(80px, 11vw, 140px) clamp(60px, 8vw, 110px); }
.route { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); position: relative; }
.route::before { content: ""; position: absolute; inset-inline: 10px; top: 13px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) 0, var(--teal) 100%); transform-origin: left; }
[dir="rtl"] .route::before { background: linear-gradient(270deg, var(--ink) 0, var(--teal) 100%); transform-origin: right; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .route::before { animation: route-fill linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes route-fill { from { transform: scaleX(0.04); } }
.stop { position: relative; padding-top: 44px; }
.stop::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--ground); }
.stop--captain::before { background: var(--coral); }
.stop--buyer::before { background: var(--teal); }
.stop time { display: block; font-size: clamp(1.6rem, 1.6vw + 0.8rem, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.who { display: block; font-weight: 800; font-size: 0.9rem; margin: 4px 0 10px; }
.stop--captain .who { color: var(--orange); }
.stop--buyer .who { color: var(--teal); }
.stop p { color: var(--muted); max-width: 30ch; }

/* Money */
.money { background: var(--ink); color: #fff; padding-block: clamp(80px, 10vw, 130px); }
.money-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.money h2 { max-width: 16ch; }
.money .lead { color: #C5D3D8; margin-top: 22px; }
.path { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.path li { position: relative; background: var(--ground); color: var(--ink); font-weight: 800; border-radius: 16px; padding: 14px 18px; }
.path li + li::before { content: ""; position: absolute; inset-inline-start: -26px; top: 50%; width: 10px; height: 10px; border-block-start: 3px solid var(--coral); border-inline-end: 3px solid var(--coral); transform: translateY(-50%) rotate(45deg); }
[dir="rtl"] .path li + li::before { transform: translateY(-50%) rotate(-45deg); }
.fine { color: var(--sea-muted); margin-top: 26px; max-width: 58ch; font-size: 0.95rem; }

/* Ticket (example) */
.ticket { margin: 0; background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(26px, 3vw, 36px); position: relative; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.55); max-width: 460px; justify-self: end; width: 100%; }
.ticket .tag-example { position: absolute; top: 18px; inset-inline-end: 18px; }
.ticket-label { font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.ticket-code { font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: 0.02em; line-height: 1.05; margin: 6px 0 4px; text-align: start; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
[dir="rtl"] .ticket-code { text-align: end; }
.ticket-code span { color: var(--orange); }
.ticket-show { color: var(--teal); font-weight: 700; }
.ticket-lines { margin: 24px 0 0; padding-top: 18px; border-top: 2px dashed var(--line); display: grid; gap: 8px; }
.ticket-lines div { display: flex; justify-content: space-between; gap: 16px; }
.ticket-lines dt { color: var(--muted); }
.ticket-lines dd { margin: 0; font-weight: 800; }
.ticket-paid { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; background: var(--teal-soft); color: var(--teal); font-weight: 800; border-radius: 999px; padding: 6px 14px; }
.ticket-paid svg { width: 18px; height: 18px; }

/* Made for the Maldives */
.local { padding-block: clamp(80px, 10vw, 130px) clamp(40px, 6vw, 80px); }
.names { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px) clamp(24px, 4vw, 64px); }
.names li { display: flex; flex-direction: column; }
.names [lang="dv"] { font-family: "Noto Sans Thaana", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 3.4vw + 0.4rem, 3.6rem); line-height: 1.35; color: var(--ink); }
.names [lang="en"] { font-weight: 700; color: var(--orange); font-size: 0.95rem; }
[dir="ltr"] .names [lang="dv"] { text-align: left; }
.facts { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 1.08rem; font-weight: 600; text-wrap: pretty; }

/* Questions */
.faq { padding-block: clamp(50px, 6vw, 90px) clamp(80px, 9vw, 120px); display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 1.08rem; min-height: 56px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 3px solid var(--teal); border-block-end: 3px solid var(--teal); transform: rotate(45deg); transition: transform 240ms var(--ease-out); margin-top: -6px; }
.qa details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.qa details p { padding: 0 22px 20px; color: var(--muted); max-width: 64ch; }

/* Closing */
.closing { background: var(--orange-soft); padding-block: clamp(64px, 8vw, 110px); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { font-size: clamp(2rem, 3vw + 0.6rem, 3.2rem); }
.closing p { color: var(--muted); margin-top: 10px; font-size: 1.1rem; }
.closing .store { color: var(--ink); background: var(--surface); border-style: solid; border-color: var(--line); }

/* --- Captains / buyers ------------------------------------------------------ */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 120px); }
.hero--sea { background: var(--ink); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.4vw + 0.6rem, 4.6rem); max-width: 15ch; }
.hero .lead { margin: 22px 0 34px; }
.hero--sea .lead { color: #C5D3D8; }
.hero--land .lead { color: var(--muted); }
.hero--sea .store { color: #fff; }
.hero--sea .store-soon { color: var(--coral); }
.hero--land .ticket { box-shadow: 0 40px 70px -34px rgba(14, 36, 48, 0.45); }

.catch { margin: 0; background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(26px, 3vw, 34px); position: relative; justify-self: end; width: 100%; max-width: 460px; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.6); }
.catch .tag-example { position: absolute; top: 18px; inset-inline-end: 18px; }
.catch-boat { font-weight: 800; font-size: 1.5rem; }
.catch-fish { list-style: none; margin: 18px 0; padding: 0; }
.catch-fish li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.catch-fish b { font-size: 1.3rem; }
.catch-dock { display: inline-block; background: var(--orange-soft); color: var(--orange); font-weight: 800; border-radius: 999px; padding: 6px 14px; }

.features { padding-block: clamp(70px, 9vw, 120px) clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); }
.feature { border-top: 3px solid var(--ink); padding-top: 22px; }
.feature h2 { font-size: clamp(1.35rem, 0.8vw + 1rem, 1.7rem); margin-bottom: 10px; }
.feature p { color: var(--muted); max-width: 46ch; }
.note { padding-bottom: clamp(70px, 9vw, 120px); }
.note-inner { background: var(--teal-soft); border-radius: 22px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px 48px; align-items: center; }
.note h2 { font-size: clamp(1.7rem, 1.8vw + 0.8rem, 2.4rem); color: var(--teal); }
.note p { font-size: 1.1rem; }

/* --- Privacy (a document) -------------------------------------------------- */
.doc { max-width: 34rem; padding-block: clamp(30px, 5vw, 60px) clamp(70px, 8vw, 110px); }
.doc h1 { font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem); }
.doc h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.doc .updated { color: var(--muted); margin: 8px 0 28px; }
.doc-lead { background: var(--teal-soft); border-radius: 18px; padding: 20px 24px; font-size: 1.08rem; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 8px 0; }
.doc p { margin: 10px 0; }
.doc p, .doc li { text-wrap: pretty; }

/* --- Footer ----------------------------------------------------------------- */
.foot { background: var(--ink); color: #fff; padding: 44px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.foot .mark rect { fill: #163747; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.foot-nav a { color: #fff; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.foot .muted { color: var(--sea-muted); margin-inline-start: auto; }

/* --- Narrow screens ----------------------------------------------------------- */
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; min-height: 0; }
  .door { padding-top: 104px; padding-bottom: 76px; }
  .door--land { padding-top: 64px; }
  .seam { position: relative; left: auto; top: auto; transform: none; justify-self: center; margin: -28px 0; }
  @media (prefers-reduced-motion: no-preference) {
    .door--sea, .door--land, [dir="rtl"] .door--sea, [dir="rtl"] .door--land { animation-name: rise; }
    .seam { animation-name: dock-flat; }
  }
  .top--split { color: #fff; }
  .top-nav { display: none; }
  .top .lang { margin-inline-start: auto; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { inset-inline: auto; inset-inline-start: 11px; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(180deg, var(--ink), var(--teal)); transform-origin: top; }
  [dir="rtl"] .route::before { background: linear-gradient(180deg, var(--ink), var(--teal)); transform-origin: top; }
  @keyframes route-fill { from { transform: scaleY(0.04); } }
  .stop { padding: 0 0 34px; padding-inline-start: 48px; }
  .money-inner, .hero-inner, .faq, .note-inner { grid-template-columns: 1fr; }
  .path { flex-direction: column; align-items: flex-start; gap: 30px; }
  .path li + li::before { inset-inline-start: 26px; top: -21px; transform: rotate(135deg); }
  [dir="rtl"] .path li + li::before { transform: rotate(-135deg); }
  .ticket, .catch { justify-self: stretch; max-width: none; }
  .foot .muted { margin-inline-start: 0; }
}
@keyframes rise { from { transform: translateY(18px); } }
@keyframes dock-flat { from { transform: scale(0.86); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (prefers-contrast: more) { .door--sea .steps p, .money .lead, .hero--sea .lead { color: #fff; } }
