/* ===================================================================
   Resital Homes — Design System
   Archetype: Warm Print (light) | Surface: Flat Hairline | Shape: Sharp
   Palette: Lilac & Graphite
   =================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Tokens --- */
:root {
  --ink: #F4F1F7;
  --ink-warm: #EDE9F3;
  --ink-deep: #E4DFED;
  --text: #2D2B3A;
  --text-heading: #1F1D2B;
  --muted: #6E6A7A;
  --line: #D0CCD8;
  --line-2: #E3DFE9;

  --accent: #6B4FA0;
  --accent-light: #8B72B8;
  --accent-bg: #EDE7F5;
  --accent-ink: #FFFFFF;
  --lemon: #C9B83A;
  --lemon-bg: #F7F4DC;

  --ok: #4A8C6F;
  --warn: #C49A3A;
  --risk: #B85450;

  --display: 'Playfair Display', 'Georgia', serif;
  --body: 'Source Serif 4', 'Georgia', serif;

  --maxw: 1140px;
  --section-pad: clamp(56px, 8vw, 96px);
  --gap: 24px;
  --side-pad: clamp(20px, 4vw, 40px);

  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-dramatic: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Base --- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 1000;
  transition: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--text-heading);
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p { max-width: 65ch; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-light); }
strong { font-weight: 600; color: var(--text-heading); }
em { font-style: italic; font-family: var(--display); }

/* Drop-cap (editorial gesture) */
.drop-cap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.6em;
  line-height: 0.8;
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
  margin-top: 4px;
}

/* Pull-quote (editorial gesture) */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--text-heading);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
  max-width: 50ch;
  line-height: 1.4;
}

/* --- Inline SVG icon guard --- */
li > svg, p > svg, a > svg, button > svg, span > svg, td > svg, label > svg {
  width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em;
}

/* --- Container --- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--side-pad); }

/* --- Section --- */
section { padding: var(--section-pad) 0; }
section.alt-bg { background: var(--ink-warm); }
section.deep-bg { background: var(--ink-deep); }

/* Hairline rule between sections */
.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--maxw);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 241, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 241, 247, 0.97);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-heading);
}
.nav-logo svg { width: 32px; height: 32px; flex: none; }
.nav-logo span {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo:hover span { color: var(--accent); }
.nav-logo:hover svg { transform: translateY(-1px); }
.nav-logo svg, .nav-logo span { transition: all 0.3s var(--ease); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-heading); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.nav-cta:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-ink);
}
.nav-cta:active { transform: scale(0.97); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  transition: all 0.35s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Full-screen mobile menu overlay */
.nav-menu {
  display: none;
}
.nav-menu.open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-menu a {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s var(--ease);
}
.nav-menu.open a { opacity: 1; transform: translateY(0); }
.nav-menu a:hover { color: var(--accent); }
.nav-menu .nav-cta {
  font-family: var(--body);
  font-size: 1rem;
  padding: 14px 36px;
}

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
}

/* --- Hero (Editorial Narrative: asymmetric, headline left, visual right) --- */
.hero {
  padding-top: calc(72px + var(--section-pad));
  padding-bottom: var(--section-pad);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.hero-copy { max-width: 520px; }
.hero-eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 20px;
}
.hero h1 i {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 44ch;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .hero { min-height: auto; padding-top: calc(72px + 40px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-ink);
}
/* Sheen sweep on primary CTA */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease);
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleOut 0.5s var(--ease-out);
  pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(3); opacity: 0; } }

/* --- Tabbed Console (Hero Device) --- */
.console-mock {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: visible;
  position: relative;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.console-tag {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}
.console-tabs {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--ink-warm);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}
.console-tabs button {
  border: 0;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font: 600 0.78rem var(--body);
  color: var(--muted);
  background: transparent;
  transition: all 0.25s var(--ease);
}
.console-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.console-tabs button:hover:not([aria-selected="true"]) {
  color: var(--text-heading);
}
.console-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 280px;
}
.console-list {
  padding: 12px 0;
  border-right: 1px solid var(--line-2);
}
.console-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 18px;
  font: inherit;
  color: inherit;
  transition: background 0.2s var(--ease);
}
.console-list-item:hover { background: var(--ink); }
.console-list-item.sel { background: var(--accent-bg); }
.console-list-item .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.console-list-item .item-info { flex: 1; min-width: 0; }
.console-list-item .item-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.console-list-item .item-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.console-list-item .item-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 600;
}

.console-detail {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.console-detail-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
}
.console-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.console-kpi {
  padding: 12px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}
.console-kpi b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.console-kpi span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Float-chips (Tabbed Console only) */
.float-chip {
  position: absolute;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  animation: chipFloat 3.5s ease-in-out infinite;
  z-index: 2;
}
.float-chip-1 { top: -16px; right: -12px; animation-delay: 0s; }
.float-chip-2 { bottom: -16px; left: -12px; animation-delay: 1.6s; }
.float-chip .chip-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 720px) {
  .console-body { grid-template-columns: 1fr; }
  .console-list { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .float-chip { display: none; }
}

/* --- Manifesto Section --- */
.manifesto {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.manifesto h2 { margin-bottom: 20px; }
.manifesto p {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
}

/* --- Feature Rows (Zigzag) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line-2);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse .feature-row-copy { order: 2; }
.feature-row.reverse .feature-row-visual { order: 1; }

.feature-row-copy h3 { margin-bottom: 14px; }
.feature-row-copy p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.feature-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--accent);
  margin-bottom: 14px;
  transition: transform 0.3s var(--ease);
}
.feature-row:hover .feature-row-icon { transform: scale(1.08); }

.feature-row-visual {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
}

@media (max-width: 1000px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-copy { order: 1; }
  .feature-row.reverse .feature-row-visual { order: 2; }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  transition: border-color 0.3s var(--ease);
}
.step:hover { border-color: var(--accent); }
.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  background: var(--ink-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p {
  margin: 0 auto 28px;
  color: var(--muted);
  max-width: 44ch;
}
.cta-band .btn-primary {
  padding: 16px 48px;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
  position: relative;
}
.footer-col a:hover { color: var(--accent); }
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.footer-col a:hover::after { width: 100%; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- Forms (themed by element selector) --- */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(107, 79, 160, 0.1);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6A7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

/* Form success */
.form-success { display: none; }
.form-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}
.form-success svg { width: 48px; height: 48px; color: var(--ok); }
.form-success h3 { margin-bottom: 4px; }
.form-success p { color: var(--muted); }

/* --- Slider / Carousel --- */
[data-slider] { position: relative; }
[data-slider-track] {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
[data-slider-track]::-webkit-scrollbar { display: none; }
[data-slider-track] > * {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - var(--gap) * 2 / 3);
  min-width: 280px;
  grid-column: auto !important;
  height: auto;
}
[data-slider-track] > * > * { height: 100%; }

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.slider-nav {
  display: flex; gap: 8px;
}
.slider-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.slider-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.slider-nav button:disabled { opacity: 0.35; cursor: default; }
.slider-nav button svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  [data-slider-track] > * { flex: 0 0 calc(85vw - var(--side-pad)); min-width: 0; }
}

/* --- Cards (generic flat-hairline) --- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { border-color: var(--accent); }
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(2deg); }
.card h4 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.card-grid .card { align-items: stretch; }

/* --- Prose content --- */
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.prose li { position: relative; padding-left: 22px; line-height: 1.55; color: var(--muted); }
.prose li::before {
  content: '';
  position: absolute; left: 3px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose li strong { color: var(--text); }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding-top: calc(72px + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(32px, 4vw, 56px);
  text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { margin: 0 auto; color: var(--muted); max-width: 52ch; }

/* --- Scroll Reveal --- */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.sr.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Focus visible (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Feature row mini-mocks --- */
.mini-mock {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.mini-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
}
.mini-mock-row .m-label { font-weight: 600; color: var(--text-heading); min-width: 0; }
.mini-mock-row .m-value { flex: none; font-weight: 500; }
.mini-mock-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}
.mini-mock-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sr { opacity: 1; transform: none; }
  .float-chip { animation: none; }
  .scroll-progress { display: none; }
  .btn-primary::before { display: none; }
}

/* --- Print --- */
@media print {
  .nav, .nav-menu, .scroll-progress, .cta-band, .float-chip { display: none; }
  section { padding: 24px 0; }
  body { background: #fff; color: #000; }
}
