/* Momble website. Colours and type follow the app (momble-ios DesignSystem/Theme.swift). */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --coral: #e2826c;
  --coral-dark: #c9654f;
  --teal: #386c68;
  --teal-dark: #2b5552;
  --text: #4d4d4d;
  --strong: #2d2d2d;
  --bg: #fffaf7;
  --surface: #ffffff;
  --border: #ece4df;
  --light-coral: #f4e9e2;
  --light-teal: #e2f4f1;
  --light-purple: #ede7f7;
  --light-yellow: #f4f0e2;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(56, 40, 30, 0.28);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--strong); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--strong); font-weight: 700; font-size: 1.35rem; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--coral-dark); }
.header-cta { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 0.93rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 190px;
  transition: transform 0.15s, background 0.15s;
}
.store:hover { background: #2a2a2a; color: #fff; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.72rem; opacity: 0.85; }
.store strong { font-size: 1.12rem; }
.stores.light .store { background: #fff; color: var(--strong); }
.stores.light .store:hover { background: #f3f3f3; }

.pills { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.95rem; font-weight: 700; color: var(--teal); }
.pills li { display: flex; align-items: center; gap: 6px; }
.pills li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--light-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23386c68' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero::before { width: 620px; height: 620px; right: -140px; top: -120px; background: radial-gradient(circle at 40% 40%, #fbe3da, #f6d3c6 60%, transparent 70%); }
.hero::after { width: 420px; height: 420px; right: 300px; bottom: -220px; background: radial-gradient(circle, #dff1ee, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--light-coral); color: var(--coral-dark); font-weight: 700; font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.2rem; max-width: 34em; margin-bottom: 28px; }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .phone:first-child { left: 0; top: 10px; transform: rotate(-4deg); z-index: 2; }
.hero-phones .phone:last-child { right: 0; top: 70px; transform: rotate(5deg); }
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 215px; }
}

.phone {
  border-radius: 40px; padding: 9px; background: #1d1d1f;
  box-shadow: var(--shadow), 0 2px 0 1px rgba(255,255,255,0.08) inset;
}
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #f6f6f6; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { font-size: 1.1rem; }
.tint-coral { background: var(--light-coral); }
.tint-teal { background: var(--light-teal); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .phone { width: 280px; position: relative; z-index: 1; }
.feature-media::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.blob-coral::before { background: var(--light-coral); }
.blob-teal::before { background: var(--light-teal); }
.blob-purple::before { background: var(--light-purple); }
.blob-yellow::before { background: var(--light-yellow); }
.feature-kicker { color: var(--coral-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 8px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--light-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23386c68' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .feature.same-as-hero .feature-media { display: none; }
  .feature-media .phone { width: 240px; }
  .feature-media::before { width: 300px; height: 300px; }
}

/* Tool cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.97rem; }
.i-coral { background: var(--light-coral); color: var(--coral-dark); }
.i-teal { background: var(--light-teal); color: var(--teal); }
.i-purple { background: var(--light-purple); color: #7b57b8; }
.i-yellow { background: var(--light-yellow); color: #b8901c; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--teal); color: #e6f2f0; }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band a { color: #fff; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.privacy-grid div { border-top: 2px solid rgba(255,255,255,0.25); padding-top: 16px; }
.privacy-grid p { margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--strong); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; color: var(--coral); line-height: 1.3; }
.faq details[open] summary::after { content: "–"; }
.faq details p:last-child { margin-bottom: 16px; }

/* CTA */
.cta { text-align: center; padding: 84px 0; background: linear-gradient(160deg, var(--coral) 0%, #d9705b 100%); color: #fff; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; margin-bottom: 28px; }
.cta .stores { justify-content: center; }
.cta img.mark { width: 72px; height: 72px; margin: 0 auto 16px; background: #fff; border-radius: 20px; padding: 10px; }

/* Footer */
.site-footer { padding: 48px 0 40px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--coral-dark); }
.site-footer .small { color: #7a7a7a; font-size: 0.88rem; margin: 6px 0 0; max-width: 30em; }

/* Text pages (privacy, support, account) */
.page { padding: 48px 0 80px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page h3 { margin-top: 1.5em; }
.page .meta { color: #7a7a7a; margin-bottom: 2em; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 24px; margin: 0 0 2em; }
.toc strong { display: block; color: var(--strong); margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); font-size: 0.96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--light-coral); color: var(--strong); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--light-teal); border-radius: 16px; padding: 18px 22px; margin: 1.5em 0; }
.note p:last-child { margin: 0; }
.warn { background: var(--light-coral); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.path { font-weight: 700; color: var(--strong); }

/* Placeholders Sander still has to fill in. Remove when none are left. */
.todo { background: #fff2a8; color: #6b5800; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Download page */
.download { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.download img.mark { width: 96px; height: 96px; margin: 0 auto 20px; }
.download .stores { justify-content: center; margin-top: 24px; }
.center-link { text-align: center; margin-top: 36px; font-weight: 700; }
.small-print { margin-top: 14px; color: #6f6f6f; }
.download .lead { margin: 0 auto; }
