/*
 * Retoma — public pitch site (retoma.app / :4310/site/retoma).
 * Vanilla CSS, no framework, no build. Single warm light identity — no dark-mode
 * toggle (this is a marketing page, not the operator app). Mobile-first.
 */

:root {
  /* brand palette — brand/color-psychology/palettes.registry.json → "retoma" */
  --rt-primary: #C24A34;      /* terracotta — appetite, warmth, retake */
  --rt-primary-dark: #9E3B29; /* hover/active */
  --rt-ground: #241A17;       /* espresso — dark/premium */
  --rt-surface: #F7EFE4;      /* cream — light/hospitality */
  --rt-accent: #2F8F7A;       /* herb teal — fresh, trust */
  --rt-support: #E6D4BE;      /* sand — warm, calm */
  --rt-white: #FFFFFF;

  --rt-good: #2F8F7A;
  --rt-bad: #9E4A34;

  /* mapped for the shared i18n.js toggle (injectStyles uses var(--panel-2,var(--panel)) etc.) */
  --panel: var(--rt-white);
  --panel-2: var(--rt-support);
  --border: rgba(36, 26, 23, 0.14);
  --text: var(--rt-ground);
  --muted: rgba(36, 26, 23, 0.62);
  --accent: var(--rt-primary);

  --rt-font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --rt-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --rt-radius: 16px;
  --rt-radius-sm: 10px;
  --rt-container: 1120px;
  --rt-shadow: 0 12px 32px rgba(36, 26, 23, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rt-surface);
  color: var(--rt-ground);
  font-family: var(--rt-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.rt-container {
  width: 100%;
  max-width: var(--rt-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- nav */
.rt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 228, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.rt-nav-inner {
  max-width: var(--rt-container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rt-wordmark {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--rt-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.rt-nav-links {
  display: none;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.rt-nav-links a {
  text-decoration: none;
  color: var(--rt-ground);
  opacity: 0.78;
}
.rt-nav-links a:hover { opacity: 1; color: var(--rt-primary); }

.rt-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .rt-nav-links { display: flex; }
}

/* ---------------------------------------------------------------- buttons */
.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.rt-btn--sm { padding: 8px 16px; font-size: 13px; }
.rt-btn--lg { padding: 14px 26px; font-size: 15.5px; }

.rt-btn--primary {
  background: var(--rt-primary);
  color: var(--rt-white);
  box-shadow: 0 6px 18px rgba(194, 74, 52, 0.30);
}
.rt-btn--primary:hover { background: var(--rt-primary-dark); transform: translateY(-1px); }

.rt-btn--ghost {
  background: transparent;
  color: var(--rt-ground);
  border-color: var(--border);
}
.rt-btn--ghost:hover { border-color: var(--rt-primary); color: var(--rt-primary); }

/* ---------------------------------------------------------------- hero */
.rt-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(47, 143, 122, 0.14), transparent 60%),
    var(--rt-surface);
}

.rt-hero-grid {
  display: grid;
  gap: 40px;
}

.rt-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-accent);
  margin: 0 0 12px;
}
.rt-eyebrow--on-dark { color: #8fd6c4; }

.rt-hero-title {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--rt-ground);
}

.rt-hero-sub {
  font-size: clamp(16px, 3vw, 19px);
  color: rgba(36, 26, 23, 0.78);
  max-width: 46ch;
  margin: 0 0 28px;
}

.rt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rt-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .rt-hero-stats { grid-template-columns: 1fr; }
}

.rt-stat {
  background: var(--rt-white);
  border: 1px solid var(--border);
  border-radius: var(--rt-radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rt-stat-num {
  font-family: var(--rt-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--rt-primary);
}

.rt-stat-label {
  font-size: 12.5px;
  color: rgba(36, 26, 23, 0.68);
  line-height: 1.35;
}

@media (min-width: 860px) {
  .rt-hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .rt-hero-stats { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- sections */
.rt-section { padding: 64px 0; }
.rt-section--tint { background: var(--rt-support); }
.rt-section--dark { background: var(--rt-ground); color: var(--rt-surface); }

.rt-h2 {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.rt-h2--on-dark { color: var(--rt-surface); }

.rt-lead {
  font-size: 16.5px;
  color: rgba(36, 26, 23, 0.78);
  max-width: 70ch;
  margin: 0 0 32px;
}
.rt-lead--on-dark { color: rgba(247, 239, 228, 0.78); }

.rt-sources {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: rgba(36, 26, 23, 0.55);
}

/* ---------------------------------------------------------------- fact cards */
.rt-cardgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rt-cardgrid--3 { grid-template-columns: repeat(3, 1fr); }
}

.rt-fact-card {
  background: var(--rt-white);
  border: 1px solid var(--border);
  border-radius: var(--rt-radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rt-fact-num {
  font-family: var(--rt-font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--rt-primary);
}

.rt-fact-label {
  font-size: 14px;
  color: rgba(36, 26, 23, 0.72);
  line-height: 1.4;
}

/* ---------------------------------------------------------------- calculator */
.rt-calc {
  display: grid;
  gap: 22px;
  background: var(--rt-white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--rt-shadow);
}

@media (min-width: 820px) {
  .rt-calc { grid-template-columns: 1fr 1fr; padding: 28px; gap: 32px; }
}

.rt-calc-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.rt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(36, 26, 23, 0.82);
}

.rt-field input,
.rt-field select {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--rt-radius-sm);
  border: 1.5px solid var(--border);
  background: var(--rt-surface);
  color: var(--rt-ground);
}

.rt-field input:focus,
.rt-field select:focus {
  outline: none;
  border-color: var(--rt-primary);
  box-shadow: 0 0 0 3px rgba(194, 74, 52, 0.16);
}

.rt-calc-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start;
}

.rt-calc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rt-calc-compare-col {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rt-calc-compare-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(36, 26, 23, 0.58);
}

.rt-calc-compare-value {
  font-family: var(--rt-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--rt-ground);
}

.rt-verdict {
  border-radius: var(--rt-radius);
  padding: 20px;
  transition: background-color .15s ease;
}

.rt-verdict[data-state="win"] {
  background: rgba(47, 143, 122, 0.14);
  border: 1.5px solid rgba(47, 143, 122, 0.4);
}
.rt-verdict[data-state="lose"] {
  background: rgba(36, 26, 23, 0.05);
  border: 1.5px solid var(--border);
}
.rt-verdict[data-state="loading"] {
  background: rgba(36, 26, 23, 0.04);
  border: 1.5px dashed var(--border);
}

.rt-verdict-title {
  margin: 0 0 6px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.rt-verdict[data-state="win"] .rt-verdict-title { color: var(--rt-good); }
.rt-verdict[data-state="lose"] .rt-verdict-title { color: var(--rt-ground); }

.rt-verdict-body {
  margin: 0;
  font-size: 14.5px;
  color: rgba(36, 26, 23, 0.75);
}

.rt-calc-note {
  margin: 0;
  font-size: 12px;
  color: rgba(36, 26, 23, 0.55);
}

/* ---------------------------------------------------------------- scenarios */
.rt-scn-card {
  background: var(--rt-white);
  border: 1.5px solid var(--border);
  border-radius: var(--rt-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rt-scn-card--yes { border-color: rgba(47, 143, 122, 0.4); }

.rt-scn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rt-scn-head h3 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-size: 20px;
}

.rt-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.rt-badge--no { background: rgba(158, 74, 52, 0.14); color: var(--rt-bad); }
.rt-badge--yes { background: rgba(47, 143, 122, 0.16); color: var(--rt-good); }

.rt-scn-volume {
  margin: 0;
  font-size: 13px;
  color: rgba(36, 26, 23, 0.6);
}

.rt-scn-rows {
  margin: 4px 0 0;
  display: grid;
  gap: 6px;
}
.rt-scn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.rt-scn-row dt { margin: 0; color: rgba(36, 26, 23, 0.6); }
.rt-scn-row dd { margin: 0; font-weight: 700; }

.rt-scn-result {
  margin: 6px 0 0;
  font-family: var(--rt-font-display);
  font-size: 24px;
  font-weight: 700;
}
.rt-scn-result--no { color: var(--rt-bad); }
.rt-scn-result--yes { color: var(--rt-good); }

.rt-scn-extra {
  display: block;
  font-family: var(--rt-font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(36, 26, 23, 0.5);
  margin-top: 2px;
}

.rt-scn-payback {
  margin: 0;
  font-size: 13px;
  color: rgba(36, 26, 23, 0.7);
}

.rt-scn-verdict {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(36, 26, 23, 0.85);
}

/* ---------------------------------------------------------------- brand protection */
.rt-compare {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .rt-compare { grid-template-columns: 1fr 1fr; }
}

.rt-compare-col {
  border-radius: var(--rt-radius);
  padding: 22px 20px;
}
.rt-compare-col--app {
  background: rgba(247, 239, 228, 0.06);
  border: 1.5px solid rgba(247, 239, 228, 0.18);
}
.rt-compare-col--retoma {
  background: rgba(47, 143, 122, 0.14);
  border: 1.5px solid rgba(47, 143, 122, 0.4);
}

.rt-compare-col h3 {
  margin: 0 0 12px;
  font-family: var(--rt-font-display);
  font-size: 18px;
}
.rt-compare-col--app h3 { color: rgba(247, 239, 228, 0.85); }
.rt-compare-col--retoma h3 { color: #b7ecdd; }

.rt-compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.rt-compare-col--app ul { color: rgba(247, 239, 228, 0.65); }
.rt-compare-col--retoma ul { color: rgba(247, 239, 228, 0.92); }

.rt-compare-col li { padding-left: 18px; position: relative; }
.rt-compare-col--app li::before {
  content: '–'; position: absolute; left: 0; color: rgba(247, 239, 228, 0.4);
}
.rt-compare-col--retoma li::before {
  content: '+'; position: absolute; left: 0; color: #6fcdb6; font-weight: 800;
}

.rt-brand-footer {
  font-family: var(--rt-font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--rt-surface);
  margin: 0;
}

/* ---------------------------------------------------------------- pricing */
.rt-price-card {
  background: var(--rt-white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 36px 28px;
  max-width: 460px;
  box-shadow: var(--rt-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rt-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rt-price-amount {
  font-family: var(--rt-font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--rt-primary);
}
.rt-price-suffix {
  font-size: 16px;
  font-weight: 600;
  color: rgba(36, 26, 23, 0.6);
}

.rt-price-commission {
  margin: 0;
  font-weight: 700;
  color: var(--rt-good);
}

.rt-price-vs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--rt-radius-sm);
  background: var(--rt-surface);
  font-size: 13.5px;
  color: rgba(36, 26, 23, 0.7);
}
.rt-price-vs strong { color: var(--rt-bad); }

.rt-price-note {
  margin: 0;
  font-size: 13.5px;
  color: rgba(36, 26, 23, 0.68);
  line-height: 1.5;
}

.rt-price-card .rt-btn { margin-top: 6px; align-self: flex-start; }

/* ---------------------------------------------------------------- footer */
.rt-footer {
  background: var(--rt-ground);
  color: var(--rt-surface);
  padding: 60px 0 40px;
  text-align: center;
}

.rt-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.rt-footer-title {
  font-family: var(--rt-font-display);
  font-size: clamp(24px, 5vw, 32px);
  margin: 0;
  max-width: 20ch;
}

.rt-footer-family {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(247, 239, 228, 0.55);
}
