/* Maskani Makao — public website.
 *
 * One file, served from 'self': the CSP in _headers allows no inline style
 * and no script, so everything here works with JavaScript absent by design.
 * Colours are the app's tokens (docs/design_tokens.md), including its
 * contrast rule: white text sits on primaryDark (#C24A18, 4.90:1), never on
 * the lighter brand orange (3.51:1 fails at body size).
 */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #191919;
  --ink-2: #5e5e5e;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --line: #e9e7e1;
  --orange: #e85c22;
  --orange-dark: #c24a18;
  --orange-tint: #fceae1;
  --gold-text: #8f6118;
  --gold-tint: #f9edcc;
  --night: #121212;
  --shadow: 0 1px 2px rgba(25, 25, 25, .06), 0 8px 24px rgba(25, 25, 25, .08);
  --shadow-lg: 0 2px 4px rgba(25, 25, 25, .06), 0 24px 60px rgba(25, 25, 25, .14);
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* The app's own display treatment: a gradient clipped to large type only. */
.g {
  background: linear-gradient(100deg, #e8611f, #d9a24b 55%, #c6903b);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-dark); color: #fff; box-shadow: 0 8px 20px rgba(194, 74, 24, .28); }
.btn-primary:hover { background: #a93f13; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn .arrow { font-family: var(--display); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 243, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: rgba(25, 25, 25, .05); }
.nav .lang { color: var(--ink-2); font-size: .92rem; }
.nav .btn { margin-left: 8px; min-height: 44px; padding: 0 18px; }

/* No-JS menu for small screens: a <details> element. */
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu nav {
  position: absolute; left: 16px; right: 16px; top: 76px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; display: grid;
}
.menu nav a { padding: 14px 16px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu nav a:hover { background: var(--bg); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-tint); color: var(--gold-text);
  font: 600 .85rem/1 var(--body); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: block; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }

/* The phone: the app's real home screen, drawn in HTML — not a stock mock. */
.phone {
  position: relative; justify-self: center;
  width: min(340px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--night); border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2a;
}
.phone .screen {
  height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
.phone .hello { font-size: .78rem; color: var(--ink-2); padding: 0 6px; }
.phone .hello b { font-family: var(--display); color: var(--orange-dark); font-weight: 600; }
.phone .title { font: 700 1.2rem/1.15 var(--display); letter-spacing: -.02em; padding: 0 6px 6px; }
.tile {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 84px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  color: #fff; font: 700 1rem/1 var(--display);
}
.tile.near { background: var(--night); min-height: 78px; }
.tile.near small { display: block; font: 400 .7rem/1.3 var(--body); color: #cfcfcf; margin-top: 4px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.tile span, .tile em { position: relative; }
.tile em { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: .9rem; }
.phone .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 0 2px; font-size: .62rem; color: #3b6d4a; font-weight: 600; border-top: 1px solid var(--line); }
.phone .tabs b { color: #1f5532; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.alt { background: var(--surface); }
.dark { background: var(--night); color: #f2f0eb; }
.dark .lede, .dark p { color: #c9c6bf; }
.dark .eyebrow { color: #e0ae3e; }

/* the strip of plain promises under the hero */
.facts { border-block: 1px solid var(--line); background: var(--surface); padding: 0; }
.facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 700 1.05rem/1.25 var(--display); margin-bottom: 4px; }
.facts span { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--orange-tint); color: var(--orange-dark); font: 700 1rem/1 var(--display); margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* regions — the app's 3:1 region banners, shown in their own shape */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }
.regions li { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2.4 / 1; background: #2b2b2b; box-shadow: var(--shadow); }
.regions li:first-child { grid-column: span 2; aspect-ratio: 3 / 1; }
.regions img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.regions li:hover img { transform: scale(1.03); }
.regions li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.regions span { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); z-index: 1; color: #fff; font: 700 1.5rem/1.1 var(--display); }
.regions li:first-child span { font-size: clamp(1.8rem, 3.4vw, 2.6rem); left: 32px; }
@media (prefers-reduced-motion: reduce) { .regions img, .regions li:hover img { transition: none; transform: none; } }
@media (max-width: 700px) {
  .regions { grid-template-columns: 1fr; }
  .regions li, .regions li:first-child { grid-column: auto; aspect-ratio: 2.6 / 1; }
  .regions span, .regions li:first-child span { font-size: 1.35rem; left: 20px; }
}
.regions-note { margin-top: 22px; color: var(--ink-2); font-size: .98rem; }

/* two audiences side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.card > p { color: var(--ink-2); margin-bottom: 22px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-dark);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.ticks b { display: block; }
.ticks span { color: var(--ink-2); font-size: .97rem; }
.card.owner { background: var(--night); border-color: var(--night); color: #f2f0eb; }
.card.owner > p, .card.owner .ticks span { color: #c9c6bf; }
.card.owner .ticks li::before { background: #3a2418; color: #f2a679; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2b2b2b; border-radius: var(--radius-lg); overflow: hidden; }
.trust div { background: var(--night); padding: 30px; }
.trust h3 { color: #fff; margin-bottom: 8px; }
.trust .warn { background: #2a1a12; }
.trust .warn h3 { color: #f2a679; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about .body p + p { margin-top: 16px; }
.about .body p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* app download */
.get {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(120% 140% at 100% 0%, #3a2418 0%, var(--night) 55%);
  color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.get p { color: #d4d0c8; margin-top: 12px; max-width: 34em; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 60px; padding: 10px 22px; border-radius: 14px;
  border: 1px dashed #6a6a6a; color: #d4d0c8; text-align: left;
}
.store small { font-size: .78rem; color: #a9a59d; }
.store b { font: 600 1.05rem/1.2 var(--display); color: #fff; }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; } }

/* faq: <details> again, so it works without script */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 600 1.08rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.5rem; color: var(--orange-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* footer */
.site-footer { background: var(--night); color: #c9c6bf; padding: 64px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8e8a82; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #e9e6df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2b2b2b; display: grid; gap: 10px; font-size: .82rem; color: #8e8a82; }
.site-footer .legal a { color: #b8b4ac; text-decoration: underline; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* restrained entrance: fade-up on load only, never on scroll (no script) */
@media (prefers-reduced-motion: no-preference) {
  .hero .copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .copy > *:nth-child(2) { animation-delay: .06s; }
  .hero .copy > *:nth-child(3) { animation-delay: .12s; }
  .hero .copy > *:nth-child(4) { animation-delay: .18s; }
  .hero .phone { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
