/* Marovoya website — shared styles.
 *
 * Tokens are copied from the app's src/constants/theme.ts light palette so the
 * site and the app read as one product. The Stitch export drifted back to
 * Material defaults for on-surface, secondary and tertiary; these are the real
 * values.
 *
 * Deliberately no Tailwind CDN: that ships ~400KB of JS and compiles styles at
 * runtime, which on a marketing page means a visible flash of unstyled content
 * on exactly the slow connections our travellers are on.
 */

:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-alt: #F3ECE3;
  --surface-dim: #E5DBD1;

  --ink: #2A2320;
  --ink-muted: #6B5F58;
  --ink-faint: #9C9089;

  --primary: #C1613C;
  --primary-dark: #9A4A2C;
  --primary-light: #F2DDD3;
  --secondary: #2E5F8A;
  --tertiary: #D9A441;

  --line: #E5DBD1;
  --shadow: 0 12px 40px rgba(42, 35, 32, 0.06);

  --container: 1120px;
  --gutter: 24px;
  --section: 88px;

  --font-display: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.5px; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface-alt); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary); margin: 0 0 14px;
}
.lede { font-size: 1.0625rem; color: var(--ink-muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--primary); text-decoration: none; letter-spacing: -0.5px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
@media (max-width: 780px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--primary); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Scrim: the Stitch mock put white text straight onto a bright sunset and the
   subhead was unreadable. This guarantees contrast whatever the photo does. */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,17,.55) 0%, rgba(30,22,17,.28) 45%, rgba(30,22,17,.65) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero h1, .hero .lede { color: #fff; }
.hero .lede { margin-top: 16px; text-shadow: 0 1px 20px rgba(0,0,0,.3); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .btn-row { margin-top: 32px; }

/* ---------- stat strip ---------- */
.stats { background: var(--surface-alt); padding: 22px 0; }
.stats .wrap { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stats span { color: var(--ink-muted); font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.stats span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: .95rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 20px;
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 840px; margin: 44px auto 0; }
/* Left-aligned even inside a centred section: a centred tick-list has a ragged
   left edge and reads as decoration rather than something you can scan. */
.plan { background: var(--surface); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); position: relative; text-align: left; }
.plan--featured { border: 2px solid var(--primary); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; color: var(--primary); }
.plan .price { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; letter-spacing: -1px; margin: 14px 0 4px; }
.plan .price small { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 11px; }
.plan li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink-muted); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn { width: 100%; }

.toggle { display: inline-flex; background: var(--surface-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 28px; }
.toggle button {
  border: 0; background: transparent; font-family: var(--font-body); font-size: .9rem;
  font-weight: 600; color: var(--ink-muted); padding: 9px 22px; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 15px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--primary); font-weight: 700; }
.no { color: var(--ink-faint); }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { padding: 0 22px 20px; color: var(--ink-muted); font-size: .95rem; }

/* ---------- legal ---------- */
/* padding-block only: a `padding` shorthand here would reset the horizontal
   padding .wrap sets, and the text would run into the edge of the screen. */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 56px var(--section); }
.legal__toc { position: sticky; top: 96px; }
.legal__toc p { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal__toc a { color: var(--ink-muted); text-decoration: none; font-size: .89rem; line-height: 1.4; display: block; }
.legal__toc a:hover { color: var(--primary); }
.legal__body { max-width: 68ch; }
.legal__body h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal__body h2:first-of-type { margin-top: 8px; }
.legal__body p { color: var(--ink-muted); margin-bottom: 14px; }
.legal__body .updated { font-size: .875rem; color: var(--ink-faint); margin-bottom: 32px; }
@media (max-width: 880px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal__toc { position: static; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.site-foot .cols { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
@media (max-width: 780px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot a { color: var(--ink-muted); text-decoration: none; font-size: .92rem; }
.site-foot a:hover { color: var(--primary); }
.site-foot .tagline { color: var(--ink-muted); font-size: .92rem; margin-top: 10px; max-width: 30ch; }
.site-foot .legal-line { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .85rem; }
