/* Maal — mymaal.online
   The app's own palette, so the site and the thing it is selling are plainly
   the same product. Navy is the app's primary, gold its accent. */

:root {
  --navy: #123163;
  --navy-deep: #0b1f42;
  --gold: #e3b04b;
  --ink: #16223a;
  --ink-muted: #5c6b85;
  --page: #f4f7fc;
  --surface: #ffffff;
  --line: #e3e9f4;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

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

a { color: inherit; }

/* ---- nav ---- */

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
}

.brand img { border-radius: 10px; }

.brand-lockup { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name { font-weight: 800; font-size: 20px; }

/* Small enough to read as a strapline rather than as a second heading
   competing with the name it sits under. */
.brand-motto {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.nav nav { display: flex; gap: 26px; }

.nav nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav nav a:hover { color: var(--navy); }

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

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  color: var(--navy);
}

.hero h1 .accent { color: var(--ink-muted); }

.lede {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 34em;
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

/* Not yet shipped, so it says so rather than pretending to be a live link. */
.badge-soon {
  background: transparent;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
}

.fineprint { margin: 16px 0 0; font-size: 14px; color: var(--ink-muted); }

/* ---- the phone ----

   A device rather than a rounded rectangle: a titanium-ish rail, a real bezel,
   the side buttons and the island. Drawn in CSS rather than laid over a PNG
   mock-up so it stays sharp at any width and costs nothing to download. */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(150deg, #d7dae1 0%, #8f96a5 18%, #5b6273 50%, #8f96a5 82%, #d7dae1 100%);
  box-shadow:
    0 30px 70px -26px rgba(11, 31, 66, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.phone-screen {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  /* The app's own page colour, so the status bar area reads as part of the
     screen rather than as a band above it. */
  background: var(--page);
  /* Room for the island, the way iOS leaves room for the status bar. A real
     iPhone's is about 54pt on a 393pt screen, and percentage padding resolves
     against width, so 13.5% is close to life — and, more to the point, clears
     the island so it stops sitting on top of the app's own header. */
  padding-top: 13.5%;
}

.phone-screen img { display: block; width: 100%; }

.phone-island {
  position: absolute;
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  aspect-ratio: 5 / 1.6;
  border-radius: 999px;
  background: #07080b;
  z-index: 2;
}

/* Side buttons, on the rail rather than on the screen. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #9aa1af, #6a7182);
}

/* Volume pair and the silence switch, left rail. */
.phone::before {
  left: -2px;
  top: 21%;
  height: 8%;
  box-shadow: 0 calc(11%) 0 0 #7d8494, 0 calc(23%) 0 0 #7d8494;
}

/* Side button, right rail. */
.phone::after {
  right: -2px;
  top: 27%;
  height: 12%;
}

.phone-sm { max-width: 258px; width: 100%; justify-self: center; }

.hero-shot { justify-self: center; width: 100%; max-width: 316px; }

/* ---- the three pillars ----

   This was three bare numerals — 3, 2, 0 — over wrapped captions, which asked
   the reader to work out what was being counted before it said anything. Each
   one now leads with the claim. */

.pillars {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.pillar svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ---- features ---- */

.features { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 0; }

.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 56px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* Alternating sides, so a column of three does not read as a list. */
.feature.reverse { grid-template-columns: 260px 1fr; }
.feature.reverse .feature-copy { order: 2; }

.feature h3 { font-size: 26px; font-weight: 800; color: var(--navy); }

.feature p { margin: 14px 0 0; color: var(--ink-muted); max-width: 40em; }

/* ---- the bento ----

   Mixed tile sizes rather than a row of identical cards, so the eye is given
   somewhere to start. Three of these are not built yet and carry a badge that
   says so — a landing page that shows a feature without dating it is a page
   that lies by omission. */

.bento-wrap { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 0; }

.bento-wrap h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 36px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "chat chat accounts accounts"
    "chat chat offline  goals"
    "scan scan voice    voice";
  gap: 18px;
}

.tile-chat { grid-area: chat; }
.tile-accounts { grid-area: accounts; }
.tile-offline { grid-area: offline; }
.tile-goals { grid-area: goals; }
.tile-scan { grid-area: scan; }
.tile-voice { grid-area: voice; }

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.tile h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }

.tile p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* The one filled tile, so the grid has a centre of gravity. */
.tile-scan {
  background: linear-gradient(150deg, #1b427f, var(--navy-deep));
  border-color: transparent;
}

.tile-scan h3 { color: #fff; }
.tile-scan p { color: rgba(255, 255, 255, 0.78); }
.tile-scan svg { stroke: var(--gold); }

.soon {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #7a5a12;
  background: rgba(227, 176, 75, 0.18);
}

.soon-light { color: var(--navy-deep); background: var(--gold); }

/* The mocked-up exchange under "Chat with Maal". Deliberately drawn as a
   sketch rather than a screenshot, because there is no screen to shoot. */
.chat { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.chat-you {
  align-self: flex-end;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.chat-maal {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(27, 122, 75, 0.1);
  color: #14603b;
  font-size: 14px;
  font-weight: 700;
}

.chat-maal svg {
  width: 17px;
  height: 17px;
  margin: 0;
  stroke: #1b7a4b;
  stroke-width: 2.4;
  flex-shrink: 0;
}

/* ---- community ---- */

.community {
  max-width: var(--wrap);
  margin: 96px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.community h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}

.community p { margin: 0 0 14px; color: var(--ink-muted); max-width: 40em; }

.community-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  /* WhatsApp's own green, because a button that says WhatsApp and is navy
     reads as a link to something else. */
  background: #1fa855;
}

.community-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-cta:hover { background: #178c46; }

/* The code itself, on a card so it reads as something to point a camera at. */
.community-qr {
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.community-qr img { border-radius: 10px; width: 100%; max-width: 240px; }

.community-qr span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

/* ---- privacy ---- */

.privacy {
  max-width: var(--wrap);
  margin: 96px auto 0;
  padding: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}

.privacy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }

.privacy p { color: rgba(255, 255, 255, 0.78); max-width: 44em; }

.privacy .link { color: var(--gold); font-weight: 700; text-decoration: none; }

.privacy .link:hover { text-decoration: underline; }

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

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--navy);
}

.foot-brand img { border-radius: 8px; }

footer nav { display: flex; gap: 22px; }

footer nav a { font-size: 15px; color: var(--ink-muted); text-decoration: none; }

footer nav a:hover { color: var(--navy); }

.copy { margin: 0 0 0 auto; font-size: 14px; color: var(--ink-muted); }

/* ---- legal pages ---- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.doc h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 800; color: var(--navy); }

.doc .updated { margin: 12px 0 40px; font-size: 15px; color: var(--ink-muted); }

.doc h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 44px 0 12px;
}

.doc p, .doc li { color: var(--ink); }

.doc ul { padding-left: 22px; }

.doc li { margin-bottom: 8px; }

.doc .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}

.doc .callout p { margin: 0; }

.doc a { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .hero, .feature, .feature.reverse, .privacy, .community { grid-template-columns: 1fr; }
  .hero { padding-bottom: 48px; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
  .privacy { text-align: center; justify-items: center; padding: 36px 26px; }
  .privacy img { max-width: 160px; }
  .pillars { grid-template-columns: 1fr; }
  /* Six tiles at phone width are six rows; the areas grid stops earning its
     keep well before that. */
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "chat" "accounts" "offline" "goals" "scan" "voice";
  }
  .bento-wrap { padding-top: 64px; }
  .features { padding-top: 64px; }
  .copy { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .nav { padding: 18px 20px; }
  .nav nav { gap: 16px; }
  /* Four links do not fit beside the wordmark on a phone. The two that go
     nowhere the page does not already scroll to are the ones to drop. */
  .nav-optional { display: none; }
  /* At this width the strapline and the links fight for the same row, and the
     links are the ones with somewhere to go. */
  .brand-motto { display: none; }
}
