/* RotaMuse — brand site.
   Palette and spacing follow the mobile app; the display face and the layered
   hero are specific to the web, where there is room to sell the product. */
:root {
  color-scheme: light;

  --brand: #12657a;
  --brand-deep: #0a3f4e;
  --brand-ink: #071e26;
  --brand-soft: #e4f0f2;
  --accent: #c0603a;
  --accent-soft: #f7e7df;
  --gold: #c99436;

  --bg: #fbf9f5;
  --bg-tint: #f4f1ea;
  --surface: #ffffff;
  --border: #e6e1d7;
  --border-strong: #d3ccbe;

  --text: #14201f;
  --text-muted: #56635f;
  --text-faint: #8a938d;

  --ok: #166534;
  --ok-soft: #dcfce7;
  --danger: #a52a1a;
  --danger-soft: #fde4e0;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px #14201f10;
  --shadow: 0 10px 30px -12px #14201f2e;
  --shadow-lg: 0 40px 80px -32px #071e2647;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
             "Times New Roman", Georgia, serif;

  --measure: 68ch;

  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #5cc0d4;
    --brand-deep: #8ad4e4;
    --brand-ink: #d7eef3;
    --brand-soft: #0e2f38;
    --accent: #e59468;
    --accent-soft: #332016;
    --gold: #e0b463;

    --bg: #0b1114;
    --bg-tint: #101a1e;
    --surface: #141d21;
    --border: #243136;
    --border-strong: #35464c;

    --text: #eaf0f0;
    --text-muted: #a2b0b1;
    --text-faint: #79878a;

    --ok: #86efac;
    --ok-soft: #14351f;
    --danger: #fca5a5;
    --danger-soft: #3d1a17;

    --shadow-sm: 0 1px 2px #0006;
    --shadow: 0 10px 30px -12px #0008;
    --shadow-lg: 0 40px 80px -32px #000b;
  }
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; background: var(--bg); }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
img, svg { max-width: 100%; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--surface);
  padding: 10px 14px; border-radius: var(--radius); z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--brand), var(--accent) 120%);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.logo strong { font-family: var(--display); font-size: 19px; letter-spacing: -0.015em; font-weight: 600; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.header-nav a { color: var(--text-muted); text-decoration: none; font-weight: 550; }
.header-nav a:hover, .header-nav a[aria-current='page'] { color: var(--brand); }
.lang-switch {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-faint); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 4px 9px;
}
.lang-switch:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- shared layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }
main.legal { max-width: 760px; padding-top: 56px; }

.legal h1 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 44px); font-weight: 600; margin-bottom: 12px; }
.legal h2 {
  font-family: var(--display); font-size: 23px; font-weight: 600;
  margin: 48px 0 12px; padding-top: 4px;
}
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { max-width: var(--measure); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--accent); }
.lead { font-size: 18.5px; color: var(--text-muted); max-width: 60ch; }

.doc-meta {
  display: flex; gap: 8px 20px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13.5px; margin: 26px 0 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}

.callout {
  background: var(--brand-soft); border-radius: var(--radius);
  padding: 18px 20px; margin: 26px 0;
  border-left: 3px solid var(--brand);
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--accent-soft); border-left-color: var(--accent); }

table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); margin: 26px 0;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15px; }
.contact-card dt { color: var(--text-faint); font-weight: 600; }
.contact-card dd { margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-art {
  position: absolute; inset: -10% -30% auto -35%; z-index: -1;
  pointer-events: none; color: var(--brand);
  opacity: .16;
}
@media (prefers-color-scheme: dark) { .hero-art { opacity: .22; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: currentColor; display: block;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-copy > p { font-size: 19px; color: var(--text-muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge-soft {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.badge-soft b { color: var(--text); font-weight: 650; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* phone preview */
.device {
  justify-self: center;
  width: min(300px, 76vw);
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, var(--brand-deep), var(--brand-ink));
  box-shadow: var(--shadow-lg);
}
.device-screen {
  background: var(--surface); border-radius: 32px; overflow: hidden;
  display: grid; gap: 12px; padding: 20px 16px 22px;
}
.device-bar { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-faint); }
.device-title { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.device-chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
.device-chip {
  font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px;
  background: var(--bg-tint); color: var(--text-muted);
}
.device-chip.on { background: var(--brand); color: #fff; }
.device-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; display: grid; gap: 7px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.device-card h4 { margin: 0; font-size: 14.5px; letter-spacing: -0.01em; }
.device-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-faint); flex-wrap: wrap; }
.device-stops { display: grid; gap: 9px; margin-top: 2px; }
.device-stop { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.device-stop span {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.device-cost {
  margin-top: 2px; font-size: 12.5px; font-weight: 650; color: var(--brand);
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 58ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px;
}
.section-head p { font-size: 17.5px; color: var(--text-muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.012em; }
.feature p { color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 30px; font-weight: 600;
  color: var(--accent); line-height: 1; min-width: 52px;
}
.step h3 { font-size: 19px; margin-bottom: 7px; }
.step p { color: var(--text-muted); margin: 0; max-width: 56ch; }

/* regions */
.region-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm); display: grid;
}
.region-cover { height: 132px; position: relative; }
.region-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.region-card:nth-child(1) .region-cover { background: linear-gradient(135deg, #12657a, #1d8ea6); }
.region-card:nth-child(2) .region-cover { background: linear-gradient(135deg, #c0603a, #d98a55); }
.region-card:nth-child(3) .region-cover { background: linear-gradient(135deg, #0a3f4e, #2b7f7a); }
.region-body { padding: 20px 22px 24px; }
.region-body h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 7px; }
.region-body p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* trust strip */
.trust {
  background: var(--brand-ink); color: #eaf4f6; border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 56px); margin-top: clamp(56px, 8vw, 92px);
}
.trust h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; color: #fff; }
.trust > p { color: #a9c6cd; max-width: 56ch; font-size: 17px; margin-bottom: 32px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.trust-item h3 { font-size: 16px; margin-bottom: 7px; color: #fff; }
.trust-item p { color: #9db8bf; font-size: 14.5px; margin: 0; }
.trust a { color: #7fd3e6; }

/* legal index list */
.link-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a {
  display: grid; gap: 4px; padding: 18px 2px; text-decoration: none;
  color: inherit; transition: padding-left .2s ease;
}
.link-list a:hover { padding-left: 8px; }
.link-list strong { font-size: 16.5px; font-weight: 600; color: var(--brand); }
.link-list span { color: var(--text-muted); font-size: 14.5px; }

/* ---------- forms ---------- */
form.stack { display: grid; gap: 18px; max-width: 540px; }
label.field { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
input, textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px;
}
input:hover, textarea:hover, select:hover { border-color: var(--brand); }
textarea { resize: vertical; }
.hint { color: var(--text-faint); font-size: 13px; font-weight: 400; }
button {
  font: inherit; font-weight: 600; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; padding: 13px 22px; cursor: pointer;
  justify-self: start; box-shadow: var(--shadow-sm);
  transition: background .2s ease, transform .2s ease;
}
button:hover:not(:disabled) { background: var(--brand-deep); transform: translateY(-1px); }
button:disabled { opacity: .6; cursor: not-allowed; }
.form-status { border-radius: var(--radius); padding: 13px 16px; font-size: 14.5px; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.error { background: var(--danger-soft); color: var(--danger); }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-tint); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 52px;
  display: flex; gap: 20px 40px; flex-wrap: wrap; font-size: 14.5px; color: var(--text-muted);
}
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--brand); }
.footer-legal { width: 100%; color: var(--text-faint); font-size: 13.5px; }

/* ---------- motion ---------- */
/* Content is visible by default: the reveal is additive, so a blocked or failed
   script can never leave a section invisible. */
.reveal.in { animation: rise .55s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .device { order: -1; }
  .hero-art { inset: -6% -40% auto -40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal.in { animation: none; }
}
