/* ============================================================
   Rentae public site
   Design system inspired by premium SaaS, modern real estate and
   minimal fintech interfaces. Static CSS only: fast, indexable,
   easy to maintain and ready for deployment.
   ============================================================ */

:root {
  /* Brand palette */
  --sage: #8f9b8c;
  --sage-dark: #747f71;
  --sage-soft: #edf1eb;
  --taupe: #c7b4a3;
  --taupe-dark: #9d836e;
  --taupe-soft: #f2ebe5;

  /* Neutral palette */
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #fbfaf8;
  --surface-strong: #f0eee9;
  --ink: #2b2b2b;
  --text: #4d4d49;
  --muted: #6f6f6a;
  --line: #e7e3dd;
  --line-strong: #d7d0c7;

  /* Semantic accents kept restrained for calculator states */
  --blue: #667a93;
  --blue-soft: #edf2f7;
  --orange: #9d7a55;
  --orange-soft: #f5eee6;
  --red: #a36356;
  --red-soft: #f5e9e6;

  /* Components */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 44px rgba(43, 43, 43, .07);
  --shadow-soft: 0 10px 28px rgba(43, 43, 43, .045);
  --font-sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Backward-compatible aliases for existing inline styles. */
  --green: var(--sage);
  --green-dark: var(--sage-dark);
  --green-soft: var(--sage-soft);
  --green-dk: var(--sage-dark);
  --surf: var(--surface);
  --surf2: var(--surface-soft);
  --surf3: var(--surface-strong);
  --bdr: var(--line);
  --bdr2: var(--line-strong);
  --tx: var(--ink);
  --tx2: var(--text);
  --tx3: var(--muted);
  --r: var(--radius);
  --r2: var(--radius-sm);
  --r3: 10px;
  --sh: var(--shadow-soft);
  --sh2: var(--shadow);
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding-top: 72px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: var(--sage-soft);
  color: var(--ink);
}

.temporarily-hidden {
  display: none !important;
}

.public-container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.public-narrow {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   Brand and navigation
   ============================================================ */

.pub-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(231, 227, 221, .82);
  background: rgba(247, 246, 243, .92);
  backdrop-filter: blur(12px);
}

.pub-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 1;
  text-decoration: none;
}

.pub-logo {
  flex: 0 0 auto;
  margin-right: 28px;
}

.pub-logo img {
  display: block;
  width: 116px;
  height: auto;
}

.footer-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.pub-links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.mobile-menu {
  display: block;
}

.mobile-menu-toggle {
  display: none;
}

.pub-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .24s ease, border-color .24s ease, color .24s ease, transform .24s ease;
}

.pub-link.active {
  border-color: transparent;
  background: transparent;
  color: var(--sage-dark);
}

.pub-link.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--taupe);
}

.pub-link:hover {
  border-color: transparent;
  background: transparent;
  color: var(--sage-dark);
  transform: none;
}

.pub-link:hover::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 4px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(199, 180, 163, .48);
}

.pub-nav-ctas {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ============================================================
   Buttons and shared components
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease, color .24s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-p {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(143, 155, 140, .24);
}

.btn-p:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}

.btn-s {
  background: transparent;
  border-color: var(--taupe);
  color: var(--ink);
}

.btn-s:hover {
  background: var(--taupe-soft);
  border-color: var(--taupe-dark);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 13px;
  font-size: .78rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card-h {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--sage-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============================================================
   Home page
   ============================================================ */

.landing-page {
  background: var(--bg);
}

.home-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 90px 0 102px;
  overflow: hidden;
  text-align: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 18% 10% auto;
  height: 280px;
  border: 1px solid rgba(199, 180, 163, .26);
  border-radius: 999px;
  opacity: .7;
  transform: rotate(-4deg);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.content-kicker,
.article-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--sage-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-hero h1 {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 24px;
  color: var(--ink);
  text-wrap: balance;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.home-hero h1 .accent,
.brand-word {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--sage-dark);
  font-style: normal;
  white-space: nowrap;
}

.home-hero h1 .accent::after,
.brand-word::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .08em;
  left: 0;
  z-index: -1;
  height: .18em;
  border-radius: 999px;
  background: rgba(199, 180, 163, .38);
}

.h1-accent {
  color: var(--sage-dark);
  background-image: linear-gradient(rgba(199, 180, 163, .38), rgba(199, 180, 163, .38));
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-hero p {
  max-width: 730px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.82;
}

.hero-cta,
.section-cta,
.final-actions,
.article-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-section {
  padding: 96px 0;
}

.home-available,
.home-guides {
  background: var(--surface);
}

.home-why {
  background: var(--bg);
}

.section-head,
.guide-public-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  margin-bottom: 12px;
  color: var(--sage-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head h2,
.guide-public-head h2,
.tools-intro h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.section-head h2,
.guide-public-head h2,
.tools-intro h2,
.split-layout h2,
.home-final h2,
.article-content h2,
.roadmap-intro h2 {
  position: relative;
  color: var(--ink);
  overflow: visible;
}

.section-head h2::after,
.guide-public-head h2::after,
.tools-intro h2::after,
.split-layout h2::after,
.home-final h2::after,
.article-content h2::after,
.roadmap-intro h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--taupe));
}

.section-head h2::after,
.guide-public-head h2::after,
.tools-intro h2::after,
.home-final h2::after {
  margin-right: auto;
  margin-left: auto;
}

.section-head p,
.guide-public-head p,
.tools-intro p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.78;
}

.feature-grid,
.guide-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.guide-grid a,
.blog-card,
.risk-list div,
.roadmap-module,
.roadmap-intro,
.article-link-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.feature-card:hover,
.guide-grid a:hover,
.blog-card:hover,
.article-link-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 155, 140, .55);
  box-shadow: var(--shadow);
}

.feature-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.feature-index {
  margin-bottom: 22px;
  color: var(--taupe-dark);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.16rem;
  letter-spacing: -.02em;
  line-height: 1.28;
}

.feature-card p,
.guide-grid span,
.blog-card p,
.risk-list span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.72;
}

.feature-card p {
  margin: 0 0 22px;
}

.text-link {
  margin-top: auto;
  color: var(--sage-dark);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 56px;
  align-items: start;
}

.split-layout h2 {
  margin: 8px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.split-layout p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}

.split-layout .btn {
  margin-top: 22px;
}

.risk-list {
  display: grid;
  gap: 14px;
}

.risk-list div {
  padding: 24px;
}

.risk-list b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .98rem;
}

.guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-grid a {
  padding: 22px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.guide-grid b,
.article-link-grid b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.section-cta {
  margin-top: 32px;
}

.home-final {
  padding: 86px 0;
  background: #242522;
  color: #ffffff;
  text-align: center;
}

.home-final h2 {
  max-width: 790px;
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.home-final h2::after {
  background: linear-gradient(90deg, var(--sage), var(--taupe));
}

.home-final p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.75;
}

.home-final .btn-s {
  border-color: rgba(199, 180, 163, .55);
  color: #ffffff;
}

.home-final .btn-s:hover {
  background: rgba(255, 255, 255, .08);
}

/* ============================================================
   Simulators
   ============================================================ */

.tools-intro {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.simulators-tools-section {
  padding-bottom: 82px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

.iw {
  position: relative;
  display: flex;
  align-items: center;
}

.iw input {
  width: 100%;
  min-height: 46px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .9rem;
  outline: none;
  transition: border-color .24s ease, box-shadow .24s ease;
  appearance: textfield;
}

.iw input::-webkit-outer-spin-button,
.iw input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.iw input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(143, 155, 140, .14);
}

.unit {
  position: absolute;
  right: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  pointer-events: none;
}

.tool-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.tool-result.green {
  border-color: rgba(143, 155, 140, .42);
  background: var(--sage-soft);
}

.tool-result.sage {
  border-color: rgba(143, 155, 140, .42);
  background: var(--sage-soft);
}

.tool-result.taupe {
  border-color: rgba(199, 180, 163, .45);
  background: var(--taupe-soft);
}

.tool-result.red {
  border-color: rgba(163, 99, 86, .3);
  background: var(--red-soft);
}

.tr-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tr-val {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.tool-result.green .tr-val {
  color: var(--sage-dark);
}

.tool-result.sage .tr-val {
  color: var(--sage-dark);
}

.tool-result.taupe .tr-val {
  color: var(--taupe-dark);
}

.tool-result.red .tr-val {
  color: var(--red);
}

.tr-go {
  margin-top: 9px;
  font-weight: 800;
}

.tool-guide-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-guide-cta p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.68;
}

/* ============================================================
   Guide index
   ============================================================ */

.guide-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.guide-filter button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .24s ease, border-color .24s ease, color .24s ease, transform .24s ease;
}

.guide-filter button:hover,
.guide-filter button.active {
  border-color: rgba(143, 155, 140, .5);
  background: var(--sage-soft);
  color: var(--ink);
}

.guide-filter button:hover {
  transform: translateY(-1px);
}

.blog-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.blog-card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.blog-card p {
  margin: 0;
}

.pill-note {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(199, 180, 163, .45);
  border-radius: 999px;
  background: var(--taupe-soft);
  color: var(--taupe-dark);
  font-size: .7rem;
  font-weight: 800;
}

/* ============================================================
   Articles and legal pages
   ============================================================ */

.article-page {
  background: var(--bg);
}

.article-hero {
  padding: 82px 0 50px;
  text-align: center;
}

.article-hero h1,
.roadmap-hero h1 {
  position: relative;
  max-width: 1060px;
  margin: 0 auto 22px;
  color: var(--ink);
  font-size: clamp(2.7rem, 5.5vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.article-hero p,
.roadmap-hero p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.84;
}

.article-meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.article-wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.article-content {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.article-content h2 {
  margin: 52px 0 18px;
  font-size: clamp(1.72rem, 3vw, 2.32rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.article-content p,
.article-content li {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.9;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content a {
  color: var(--sage-dark);
  font-weight: 800;
}

.article-content .btn-p,
.article-cta .btn-p {
  color: #ffffff;
}

.article-content .btn-p:hover,
.article-cta .btn-p:hover {
  color: #ffffff;
}

.article-leadbox,
.article-formula,
.article-example {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.article-leadbox strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.article-formula {
  border-color: rgba(143, 155, 140, .36);
  border-left: 4px solid var(--sage);
  background: var(--sage-soft);
  box-shadow: none;
}

.article-formula p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.68;
}

.article-formula strong {
  color: var(--sage-dark);
}

.article-table {
  width: 100%;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
}

.article-table th,
.article-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: .82rem;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-cta {
  margin: 30px 0;
}

.article-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.article-link-grid a {
  display: block;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.article-link-grid span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.article-faq details {
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.article-faq summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.article-faq p {
  margin-top: 12px;
}

.article-disclaimer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

/* ============================================================
   Roadmap / evolutions
   ============================================================ */

.roadmap-page {
  min-height: 65vh;
  background: var(--bg);
}

.roadmap-hero {
  padding: 88px 0 46px;
  text-align: center;
}

.roadmap-body {
  padding: 18px 0 90px;
}

.roadmap-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
  margin-bottom: 78px;
  padding: 32px;
}

.roadmap-intro h2 {
  margin: 0 0 14px;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -.035em;
}

.roadmap-intro p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.82;
}

.roadmap-intro aside {
  padding: 22px;
  border: 1px solid rgba(199, 180, 163, .5);
  border-radius: var(--radius);
  background: var(--taupe-soft);
  color: var(--ink);
}

.roadmap-intro aside b,
.roadmap-intro aside span {
  display: block;
}

.roadmap-intro aside b {
  margin-bottom: 8px;
}

.roadmap-intro aside span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.68;
}

.roadmap-detail {
  margin-top: 76px;
}

.roadmap-module {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 18px;
  padding: 30px;
}

.roadmap-module span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--taupe-dark);
  font-family: var(--font-mono);
  font-weight: 700;
}

.roadmap-module h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  letter-spacing: -.025em;
  line-height: 1.24;
}

.roadmap-module p,
.roadmap-module li {
  color: var(--muted);
  line-height: 1.75;
}

.roadmap-module p {
  margin: 0 0 12px;
}

.roadmap-module ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* ============================================================
   Footer
   ============================================================ */

.public-footer {
  padding: 58px 0 36px;
  background: #242522;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-seo {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .86rem;
  line-height: 1.72;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, .66);
  font-size: .84rem;
  text-decoration: none;
  transition: color .24s ease, transform .24s ease;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .52);
  font-size: .78rem;
}

/* ============================================================
   Motion
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .home-hero-inner,
  .article-hero,
  .roadmap-hero,
  .section-head,
  .guide-public-head,
  .tools-intro,
  .feature-card,
  .blog-card,
  .card,
  .article-content,
  .roadmap-intro,
  .roadmap-module {
    animation: fade-up .42s ease both;
  }

  .feature-card:nth-child(2),
  .blog-card:nth-child(2),
  .roadmap-module:nth-child(2) {
    animation-delay: .04s;
  }

  .feature-card:nth-child(3),
  .blog-card:nth-child(3),
  .roadmap-module:nth-child(3) {
    animation-delay: .08s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  body {
    padding-top: 124px;
  }

  .pub-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    min-height: 64px;
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .pub-logo {
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
  }

  .pub-links {
    position: static;
    order: 3;
    justify-content: center;
    width: 100%;
    padding-top: 12px;
    overflow: visible;
    flex-wrap: wrap;
    transform: none;
  }

  .public-container,
  .public-narrow {
    width: min(100% - 32px, 1160px);
  }

  .home-hero {
    min-height: auto;
    padding: 74px 0 80px;
  }

  .home-hero::before {
    display: none;
  }

  .home-section {
    padding: 66px 0;
  }

  .feature-grid,
  .guide-grid,
  .blog-grid,
  .split-layout,
  .tools-grid,
  .roadmap-intro,
  .roadmap-module,
  .article-link-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .blog-card {
    min-height: 0;
  }

  .article-content {
    padding: 28px;
  }

  .section-head h2,
  .guide-public-head h2,
  .tools-intro h2,
  .split-layout h2,
  .home-final h2,
  .article-content h2,
  .roadmap-intro h2 {
    text-align: center;
  }

  .split-layout h2::after,
  .article-content h2::after,
  .roadmap-intro h2::after {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 64px;
    padding-bottom: 0;
    font-size: 14px;
  }

  /* Mobile uses a compact burger menu to preserve vertical space. */
  .pub-nav {
    top: 0;
    bottom: auto;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 16px;
    flex-wrap: nowrap;
    border-top: 0;
    border-bottom: 1px solid rgba(231, 227, 221, .9);
    background: rgba(247, 246, 243, .96);
  }

  .pub-logo {
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
    margin: 0;
  }

  .pub-logo img {
    width: 102px;
  }

  .pub-nav > .pub-links {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    list-style: none;
    transition: background .22s ease, border-color .22s ease, transform .22s ease;
  }

  .mobile-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-toggle svg {
    grid-area: 1 / 1;
    display: block;
    width: 27px;
    height: 27px;
    transition: opacity .2s ease, transform .22s ease;
  }

  .mobile-menu-toggle .menu-icon-close {
    opacity: 0;
    transform: rotate(-35deg) scale(.72);
  }

  .mobile-menu-toggle:hover {
    border-color: rgba(143, 155, 140, .35);
    background: var(--sage-soft);
    transform: translateY(-1px);
  }

  .mobile-menu[open] .mobile-menu-toggle .menu-icon-open {
    opacity: 0;
    transform: rotate(35deg) scale(.72);
  }

  .mobile-menu[open] .mobile-menu-toggle .menu-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  .mobile-menu .pub-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    display: none;
    width: min(260px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid rgba(231, 227, 221, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 40px rgba(43, 43, 43, .1);
    transform: none;
  }

  .mobile-menu:not([open]) > .mobile-links {
    display: none;
  }

  .mobile-menu[open] .mobile-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pub-link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px;
    border-color: transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: .82rem;
    line-height: 1.12;
    text-align: left;
    box-shadow: none;
  }

  .pub-link:hover {
    transform: none;
  }

  .pub-link.active {
    border-color: rgba(143, 155, 140, .38);
    background: var(--sage-soft);
    color: var(--sage-dark);
  }

  .pub-link.active::after,
  .pub-link:hover::after {
    display: none;
  }

  .content-kicker,
  .article-kicker {
    display: block;
    width: auto;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sage-dark);
    font-size: .64rem;
    line-height: 1.35;
  }

  .home-hero {
    padding: 54px 0 60px;
  }

  .article-hero {
    padding: 42px 16px 28px;
  }

  .roadmap-hero {
    padding-top: 42px;
  }

  .home-hero h1,
  .article-hero h1,
  .roadmap-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.62rem);
    letter-spacing: -.035em;
    line-height: 1.14;
  }

  .home-hero p,
  .article-hero p,
  .roadmap-hero p {
    font-size: .98rem;
    line-height: 1.58;
  }

  .section-head h2,
  .guide-public-head h2,
  .tools-intro h2,
  .split-layout h2,
  .home-final h2,
  .article-content h2,
  .roadmap-intro h2 {
    text-align: center;
  }

  .section-head h2::after,
  .guide-public-head h2::after,
  .tools-intro h2::after,
  .split-layout h2::after,
  .home-final h2::after,
  .article-content h2::after,
  .roadmap-intro h2::after {
    margin-right: auto;
    margin-left: auto;
  }

  .btn,
  .text-link {
    width: 100%;
    min-height: 46px;
    border-radius: var(--radius-sm);
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid rgba(199, 180, 163, .55);
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
  }

  .btn-s,
  .home-final .btn-s {
    background: var(--surface);
    color: var(--ink);
  }

  .final-actions,
  .hero-cta,
  .section-cta,
  .article-cta {
    width: 100%;
  }

  .fg {
    grid-template-columns: 1fr;
  }

  .simulators-page .article-hero {
    padding: 26px 16px 10px;
  }

  .simulators-page .article-kicker {
    margin-bottom: 8px;
    font-size: .62rem;
  }

  .simulators-page .article-hero h1 {
    max-width: 480px;
    margin-bottom: 10px;
    font-size: clamp(1.56rem, 7.4vw, 2.05rem);
    line-height: 1.12;
  }

  .simulators-page .article-hero p {
    max-width: 480px;
    font-size: .86rem;
    line-height: 1.48;
  }

  .simulators-page .article-meta {
    display: none;
  }

  .simulators-page .simulators-tools-section {
    padding-bottom: 64px;
  }

  .simulators-page .tools-intro {
    margin-bottom: 12px;
  }

  .simulators-page .tools-intro h2 {
    margin-bottom: 8px;
    font-size: 1.24rem;
    line-height: 1.18;
  }

  .simulators-page .tools-intro h2::after {
    display: none;
  }

  .simulators-page .tools-intro p {
    display: none;
  }

  .simulators-page .tools-grid {
    gap: 18px;
  }

  .card,
  .article-content,
  .roadmap-intro,
  .roadmap-module {
    padding: 22px;
  }

  .article-table {
    display: table;
    table-layout: fixed;
    overflow: visible;
    font-size: .78rem;
    word-break: break-word;
  }

  .article-table th,
  .article-table td {
    padding: 10px 8px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}
