/* Rumi's website: the same colors (src/theme/tokens.ts) and typefaces as the app.
   Fonts are served from this site (SIL Open Font License), so no page calls a third party. */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --petrol-900: #0b1f29;
  --petrol-800: #122e3b;
  --petrol-700: #1b3a4b;
  --petrol-500: #2a6f7a;
  --coral: #cf3e1e;
  --coral-dark: #b33418;
  --coral-soft: #ffe6de;
  --gold: #f4c95d;
  --gold-soft: #fdf3d6;
  --teal: #1e7f75;
  --teal-soft: #d8f5f1;
  --cream: #fbf7f1;
  --cream-100: #f3e6d8;
  --line: #e6e1d9;
  --ink: #0f1c24;
  --ink-soft: #3a4d57;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--petrol-500); font-weight: 500; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* Header and hero on petrol, like the top of the app's screens. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: radial-gradient(circle at 85% 0%, var(--petrol-500) 0%, var(--petrol-700) 45%, var(--petrol-900) 100%);
  border-radius: 0 0 36px 36px;
  padding-bottom: 56px;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 28px; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--cream); opacity: 0.9; font-size: 15px; text-decoration: none; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }

.hero-grid { display: grid; gap: 36px; align-items: center; padding-top: 18px; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.16);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 8vw, 60px);
  line-height: 1.05;
  margin: 16px 0 14px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 19px; color: #e8f0f2; margin: 0 0 26px; max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(207, 62, 30, 0.35); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--cream); border: 1.5px solid rgba(251, 247, 241, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.fine { font-size: 14px; color: #c9d7db; margin-top: 14px; }

/* A phone with a real screenshot of the app. */
.phone {
  width: min(280px, 72vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 46px;
  background: #05090c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 2px #2b3740;
  transform: rotate(-4deg);
}
.phone img { border-radius: 38px; }

/* Sections on cream. */
section { padding: 56px 0 8px; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--petrol-900);
}
.section-lead { color: var(--ink-soft); margin: 0 0 26px; max-width: 40em; }

.cards { display: grid; gap: 16px; }
.card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11, 31, 41, 0.07);
}
.card h3 { margin: 12px 0 6px; font-size: 19px; color: var(--petrol-900); }
.card p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--gold-soft);
}
.icon.coral { background: var(--coral-soft); }
.icon.teal { background: var(--teal-soft); }

/* Numbered steps. */
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 22px 22px 22px 84px;
  box-shadow: 0 10px 30px rgba(11, 31, 41, 0.07);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--petrol-700);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.steps h3 { margin: 0 0 4px; font-size: 19px; color: var(--petrol-900); }
.steps p { margin: 0 0 12px; color: var(--ink-soft); }
.steps p:last-child { margin-bottom: 0; }
.steps .btn { min-height: 46px; font-size: 16px; padding: 0 20px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shots figure { margin: 0; }
.shots img { border-radius: 26px; box-shadow: 0 14px 34px rgba(11, 31, 41, 0.14); border: 6px solid #05090c; }
.shots figcaption { text-align: center; font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check li::before {
  content: '✓';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  margin-top: 1px;
}

.band {
  margin-top: 56px;
  border-radius: 32px;
  padding: 36px 28px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900));
  text-align: center;
}
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 34px); margin: 0 0 10px; }
.band p { margin: 0 auto 22px; max-width: 34em; color: #e8f0f2; }
.band .actions { justify-content: center; }

/* Long text pages (privacy policy). */
.doc { background: #fff; border-radius: 28px; padding: 32px 26px; margin-top: -28px; position: relative; box-shadow: 0 14px 40px rgba(11, 31, 41, 0.08); }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--petrol-900); margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); }
.meta { color: #c9d7db; font-size: 15px; margin: 0; }

footer { padding: 48px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
footer .brand span { color: var(--petrol-900); font-size: 22px; }
footer .brand img { width: 34px; height: 34px; border-radius: 9px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; padding-top: 30px; }
  .phone { width: 300px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .doc { padding: 44px 48px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 12px; }
  .actions .btn { width: 100%; }
}

/* Language switch (ES | EN) in the top nav of every page. */
.lang { display: inline-flex; border: 1.5px solid rgba(251, 247, 241, 0.45); border-radius: 999px; overflow: hidden; }
.nav-links .lang a { padding: 4px 12px; font-size: 14px; font-weight: 700; opacity: 1; }
.nav-links .lang a[aria-current='true'] { background: var(--cream); color: var(--petrol-900); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* Store buttons in the hero and the final band. */
.store-note { font-size: 14px; color: #c9d7db; margin: 14px 0 0; }

/* One feature per row: screenshot on a phone next to its text, alternating sides. */
.feature { display: grid; gap: 28px; align-items: center; padding: 48px 0 8px; }
.feature .phone, .phone.flat { transform: none; width: min(250px, 66vw); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.feature h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.15; margin: 0 0 12px; color: var(--petrol-900); }
.feature p { color: var(--ink-soft); margin: 0 0 14px; }
.feature .check { margin-top: 6px; }

/* Ask Rumi showcase: a short chat with real questions the app answers. */
.chat { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 14px 40px rgba(11, 31, 41, 0.08); display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.bubble.q { justify-self: end; background: var(--petrol-700); color: #fff; border-bottom-right-radius: 6px; }
.bubble.a { justify-self: start; background: var(--cream); color: var(--ink); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.a strong { color: var(--petrol-900); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--ink-soft); }


/* FAQ with native disclosure. */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 10px 30px rgba(11, 31, 41, 0.06); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--petrol-900); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--coral); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .feature.flip .phone { order: 2; }
  .ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}
@media (max-width: 520px) {
  .nav-links .hide-sm { display: none; }
}
