/* ═══════════════════════════════════════════════════════════════════════════
   DinnIA · Design System v2.0 — "Editorial Proptech Luxury"
   Updated: 2026-04-09
   Direction: Financial Times longform × Loro Piana lookbook × B2B SaaS
   Palette:   Ink · Parchment · Sanguine · Antique Gold · Mist
   Type:      Fraunces (display serif) · Bricolage Grotesque (body sans)
   Stack:     100% static HTML+CSS, no build, no framework
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,0..100,0..1;1,9..144,300..900,0..100,0..1&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Palette — warm, editorial, ownable */
  --ink:            #0E0F12;   /* primary dark surface */
  --ink-soft:       #16171B;   /* elevated dark */
  --ink-90:         rgba(14,15,18,0.90);
  --ink-70:         rgba(14,15,18,0.70);
  --ink-55:         rgba(14,15,18,0.55);
  --ink-12:         rgba(14,15,18,0.12);
  --ink-06:         rgba(14,15,18,0.06);

  --parchment:      #F4EEE4;   /* primary light surface */
  --parchment-soft: #EDE4D5;   /* recessed light */
  --parchment-90:   rgba(244,238,228,0.90);
  --parchment-70:   rgba(244,238,228,0.70);
  --parchment-55:   rgba(244,238,228,0.55);
  --parchment-12:   rgba(244,238,228,0.12);
  --parchment-06:   rgba(244,238,228,0.06);

  --sanguine:       #6B1F22;   /* signature accent */
  --sanguine-deep:  #4E1416;   /* hover */
  --sanguine-soft:  #8A3538;   /* disabled/light */

  --gold:           #C8A96B;   /* metallic accent */
  --gold-deep:      #A88947;

  --mist:           #6B6962;   /* neutral mid */
  --mist-light:     #A39E93;

  /* Semantic tokens */
  --bg:             var(--parchment);
  --bg-dark:        var(--ink);
  --text:           var(--ink);
  --text-muted:     var(--mist);
  --text-on-dark:   var(--parchment);
  --text-on-dark-muted: rgba(244,238,228,0.62);
  --border:         var(--ink-12);
  --border-dark:    var(--parchment-12);
  --accent:         var(--sanguine);
  --accent-2:       var(--gold);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale — editorial hierarchy */
  --fs-micro:    0.75rem;                               /* 12 */
  --fs-eyebrow:  0.75rem;                               /* 12 uppercase tracked */
  --fs-small:    0.875rem;                              /* 14 */
  --fs-body:     clamp(1rem, 0.95rem + 0.25vw, 1.125rem);/* 16-18 */
  --fs-lead:     clamp(1.125rem, 1rem + 0.6vw, 1.375rem);/* 18-22 */
  --fs-h4:       clamp(1.125rem, 1rem + 0.9vw, 1.5rem); /* 18-24 */
  --fs-h3:       clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem);/* 22-30 */
  --fs-h2:       clamp(1.75rem, 1.2rem + 2.8vw, 3.25rem);/* 28-52 */
  --fs-h1:       clamp(2.5rem, 1.4rem + 5.5vw, 6rem);   /* 40-96 */
  --fs-display:  clamp(3rem, 1.5rem + 8vw, 8rem);       /* 48-128 (stats pull quotes) */

  /* Leading */
  --lh-display: 0.95;
  --lh-heading: 1.08;
  --lh-body:    1.55;
  --lh-lead:    1.45;

  /* Tracking */
  --tr-display: -0.025em;
  --tr-heading: -0.02em;
  --tr-body:    0;
  --tr-eyebrow: 0.14em;

  /* Spacing — base 8 */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --section-y-lg: clamp(5rem, 3.5rem + 7vw, 10rem);
  --container: min(100% - 2rem, 1280px);
  --container-narrow: min(100% - 2rem, 900px);
  --container-wide: min(100% - 2rem, 1440px);

  /* Radii — minimal, never pill */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-xl: 12px;

  /* Shadows — warm, subtle */
  --shadow-sm: 0 1px 2px rgba(30,12,5,0.04), 0 1px 1px rgba(30,12,5,0.03);
  --shadow-md: 0 4px 16px rgba(30,12,5,0.06), 0 2px 4px rgba(30,12,5,0.04);
  --shadow-lg: 0 12px 40px rgba(30,12,5,0.10), 0 4px 12px rgba(30,12,5,0.06);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 240ms;
  --dur-3: 400ms;
  --dur-4: 640ms;

  /* Z-index scale */
  --z-nav: 50;
  --z-menu: 100;
  --z-modal: 200;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "ss01";
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video, canvas, picture { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--tr-heading); color: var(--text); }
table { border-collapse: collapse; width: 100%; }

/* Selection */
::selection { background: var(--sanguine); color: var(--parchment); }

/* Focus-visible */
:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── BACKGROUND TEXTURES (grain) ──────────────────────────────────────── */
.grain,
.grain-dark {
  position: relative;
  isolation: isolate;
}
.grain::before,
.grain-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}
.grain-dark::before {
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.grain > *,
.grain-dark > * { position: relative; z-index: 1; }

/* Warm parchment radial wash */
.warm-wash {
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(200,169,107,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(107,31,34,0.08) 0%, transparent 60%),
    var(--parchment);
}
.ink-wash {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,169,107,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(107,31,34,0.14) 0%, transparent 60%),
    var(--ink);
}

/* ─── LAYOUT PRIMITIVES ─────────────────────────────────────────────────── */
.container        { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }
.container-wide   { width: var(--container-wide); margin-inline: auto; }

.section       { padding-block: var(--section-y); position: relative; }
.section-lg    { padding-block: var(--section-y-lg); position: relative; }
.section-dark  { background: var(--ink); color: var(--text-on-dark); }
.section-light { background: var(--parchment); color: var(--text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-on-dark); }

/* ─── TYPOGRAPHY UTILITIES ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-dark .eyebrow { color: var(--gold); }

.display-1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  text-wrap: balance;
}
.display-1 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--sanguine);
}
.section-dark .display-1 em { color: var(--gold); }

.display-2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}
.display-2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sanguine);
}
.section-dark .display-2 em { color: var(--gold); }

.display-stat {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  color: var(--sanguine);
}
.section-dark .display-stat { color: var(--gold); }

.lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--mist);
  max-width: 62ch;
  text-wrap: pretty;
}
.section-dark .lead { color: var(--text-on-dark-muted); }

.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: var(--s-4); }

/* Editorial index number */
.index-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  color: var(--sanguine);
  line-height: 1;
}
.section-dark .index-num { color: var(--gold); }

/* ─── LINKS ─────────────────────────────────────────────────────────────── */
a.link,
.prose a {
  color: inherit;
  border-bottom: 1px solid var(--sanguine);
  text-underline-offset: 4px;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
a.link:hover,
.prose a:hover {
  color: var(--sanguine);
  border-color: var(--sanguine-deep);
}
.section-dark a.link {
  border-color: var(--gold);
}
.section-dark a.link:hover {
  color: var(--gold);
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--sanguine);
  --btn-fg: var(--parchment);
  --btn-border: var(--sanguine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 0 var(--s-8);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--sanguine-deep);
  border-color: var(--sanguine-deep);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink-12);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--parchment);
  --btn-border: var(--ink);
}

.section-dark .btn--ghost {
  --btn-fg: var(--parchment);
  --btn-border: var(--parchment-12);
}
.section-dark .btn--ghost:hover {
  --btn-bg: var(--parchment);
  --btn-fg: var(--ink);
  --btn-border: var(--parchment);
}

.btn--link {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--ink);
  padding: 0;
  min-height: auto;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  min-height: 44px;
}
.btn--link:hover {
  background: transparent;
  color: var(--sanguine);
  transform: none;
}
.section-dark .btn--link { --btn-fg: var(--parchment); }
.section-dark .btn--link:hover { color: var(--gold); }

.btn svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ─── NAVIGATION ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(244,238,228,0.88);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--ink-12);
}
.nav__inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-8);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  color: var(--ink);
}
.nav__brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--sanguine);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav__links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  transition: color var(--dur-2) var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 1px;
  background: var(--sanguine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav__links a:hover { color: var(--sanguine); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  min-height: 44px;
  background: var(--sanguine);
  color: var(--parchment);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background var(--dur-2) var(--ease);
}
.nav__cta:hover { background: var(--sanguine-deep); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-12);
  border-radius: var(--r-sm);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--parchment);
  z-index: var(--z-menu);
  padding: var(--s-12) var(--s-8);
  flex-direction: column;
  gap: var(--s-8);
  border-top: 1px solid var(--ink-12);
  overflow-y: auto;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 0;
  color: var(--ink);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--ink-12);
  min-height: 56px;
  display: flex;
  align-items: center;
}
.nav__mobile a em {
  font-style: italic;
  color: var(--sanguine);
  margin-left: var(--s-2);
}
.nav__mobile .btn {
  margin-top: var(--s-4);
  width: 100%;
}

body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: var(--s-20) var(--s-10);
  border-top: 1px solid var(--parchment-12);
  position: relative;
}
.footer__inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--s-16);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: var(--s-12);
  align-items: start;
}
.footer__brand .nav__brand { color: var(--parchment); font-size: 2rem; }
.footer__brand .nav__brand em { color: var(--gold); }
.footer__tagline {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 50, "WONK" 0;
  color: var(--text-on-dark-muted);
  max-width: 32ch;
  line-height: 1.45;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-5);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  transition: color var(--dur-2) var(--ease);
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}
.footer__col a:hover { color: var(--parchment); }

.footer__bottom {
  padding-top: var(--s-8);
  border-top: 1px solid var(--parchment-12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}
.footer__bottom a {
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid var(--parchment-12);
  padding-bottom: 1px;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.footer__bottom a:hover { color: var(--parchment); border-color: var(--gold); }
.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding-bottom: clamp(5rem, 3rem + 6vw, 9rem);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.28fr);
  gap: var(--s-16);
  align-items: end;
  position: relative;
  z-index: 1;
}
.hero__main { min-width: 0; }
.hero__h1 {
  margin-top: var(--s-8);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  color: var(--parchment);
  text-wrap: balance;
  max-width: 16ch;
}
.hero__h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  display: inline-block;
  animation: soft-reveal 1.2s var(--ease) 0.4s both;
}
.hero__sub {
  margin-top: var(--s-8);
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions {
  margin-top: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.hero__meta {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-left: 1px solid var(--parchment-12);
  padding-left: var(--s-6);
}
.hero__meta dt {
  font-size: 0.6875rem;
  color: var(--gold);
  margin-bottom: var(--s-1);
}
.hero__meta dd {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--parchment);
  font-variation-settings: "opsz" 48, "SOFT" 40, "WONK" 0;
}
.hero__meta dd em { font-style: italic; color: var(--gold); }

@keyframes soft-reveal {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero rule: decorative horizontal line */
.hero__rule {
  margin-top: var(--s-16);
  border: 0;
  border-top: 1px solid var(--parchment-12);
  position: relative;
}
.hero__rule::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-6) var(--s-10);
    border-left: none;
    border-top: 1px solid var(--parchment-12);
    padding-left: 0;
    padding-top: var(--s-6);
  }
}

/* ─── MARQUEE (proof line) ─────────────────────────────────────────────── */
.marquee {
  background: var(--parchment);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  overflow: hidden;
  padding-block: var(--s-6);
}
.marquee__track {
  display: flex;
  gap: var(--s-16);
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--s-16);
}
.marquee__item::after {
  content: "◆";
  color: var(--gold);
  font-size: 0.75em;
}
.marquee__item em {
  font-style: italic;
  color: var(--sanguine);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ─── EDITORIAL INDEX (services) ───────────────────────────────────────── */
.ed-index {
  display: grid;
  gap: 0;
  margin-top: var(--s-12);
}
.ed-index__row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr auto;
  gap: var(--s-8);
  align-items: start;
  padding: var(--s-10) 0;
  border-top: 1px solid var(--ink-12);
  transition: background var(--dur-3) var(--ease);
}
.ed-index__row:last-child { border-bottom: 1px solid var(--ink-12); }
.ed-index__row:hover { background: rgba(107,31,34,0.03); }

.ed-index__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: 2rem;
  color: var(--sanguine);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ed-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  color: var(--ink);
  text-wrap: balance;
}
.ed-index__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--mist);
  text-wrap: pretty;
}
.ed-index__status {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--mist);
  padding: 6px var(--s-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-sm);
  white-space: nowrap;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.ed-index__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.ed-index__status--live { color: var(--ink); border-color: var(--ink); }
.ed-index__status--live::before { background: var(--sanguine); }
.ed-index__status--soon { opacity: 0.6; }

@media (max-width: 860px) {
  .ed-index__row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--s-3) var(--s-5);
    padding: var(--s-8) 0;
  }
  .ed-index__num { grid-row: span 3; font-size: 1.5rem; }
  .ed-index__status {
    grid-column: 2;
    justify-self: start;
    margin-top: var(--s-2);
  }
}

/* ─── PRICING TABLE (editorial) ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-12);
}
.plan {
  padding: var(--s-10) var(--s-8);
  background: var(--parchment);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.plan:hover { border-color: var(--ink); transform: translateY(-2px); }
.plan--featured {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--ink);
}
.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__features li { color: var(--parchment); }
.plan--featured .plan__tag { color: var(--gold); border-color: var(--gold); }
.plan--soon {
  opacity: 0.6;
  background: transparent;
  border-style: dashed;
}
.plan__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--sanguine);
  border: 1px solid currentColor;
  padding: 4px var(--s-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-6);
}
.plan__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
  color: var(--ink);
  line-height: 1;
}
.plan__name em { font-style: italic; color: var(--sanguine); font-weight: 400; }
.plan--featured .plan__name em { color: var(--gold); }

.plan__tagline {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 50, "WONK" 0;
  font-size: 1.0625rem;
  color: var(--mist);
  font-weight: 400;
  line-height: 1.3;
}
.plan--featured .plan__tagline { color: var(--text-on-dark-muted); }

.plan__price {
  margin-top: var(--s-8);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
.plan__price span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mist);
  margin-left: var(--s-2);
}
.plan--featured .plan__price span { color: var(--text-on-dark-muted); }
.plan__setup {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--mist);
}
.plan--featured .plan__setup { color: var(--text-on-dark-muted); }
.plan__divider {
  margin: var(--s-8) 0 var(--s-6);
  border: 0;
  border-top: 1px solid var(--ink-12);
}
.plan--featured .plan__divider { border-color: var(--parchment-12); }
.plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
  margin-bottom: var(--s-8);
}
.plan__features li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: var(--s-6);
  position: relative;
  color: var(--ink);
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: var(--sanguine);
}
.plan--featured .plan__features li::before { background: var(--gold); }
.plan__features li.is-soon {
  color: var(--mist);
}
.plan__features li.is-soon::after {
  content: "Próximo Q2 2026";
  display: inline;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin-left: var(--s-2);
}
.plan--featured .plan__features li.is-soon { color: var(--text-on-dark-muted); }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ─── FAQ (minimal accordion) ───────────────────────────────────────────── */
.faq {
  display: grid;
  margin-top: var(--s-12);
}
.faq__item {
  border-top: 1px solid var(--ink-12);
}
.faq__item:last-child { border-bottom: 1px solid var(--ink-12); }
.faq__q {
  width: 100%;
  text-align: left;
  padding: var(--s-8) 0;
  padding-right: var(--s-10);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  color: var(--ink);
  position: relative;
  min-height: 56px;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
  line-height: 1.25;
  text-wrap: balance;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 16px 1.5px, 1.5px 16px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform var(--dur-3) var(--ease);
}
.faq__item.is-open .faq__q::after {
  background-size: 16px 1.5px, 0 0;
}
.faq__q:hover { color: var(--sanguine); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-3) var(--ease);
}
.faq__a > div {
  overflow: hidden;
  color: var(--mist);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 62ch;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { padding-bottom: var(--s-8); }

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.field label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--mist);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--s-4) var(--s-5);
  min-height: 52px;
  background: var(--parchment);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: var(--s-4);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mist-light); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sanguine);
  background: var(--parchment-soft);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--sanguine-soft);
}

.section-dark .field label { color: var(--gold); }
.section-dark .field input,
.section-dark .field textarea,
.section-dark .field select {
  background: rgba(244,238,228,0.04);
  border-color: var(--parchment-12);
  color: var(--parchment);
}
.section-dark .field input::placeholder { color: rgba(244,238,228,0.35); }
.section-dark .field input:focus,
.section-dark .field textarea:focus {
  border-color: var(--gold);
  background: rgba(244,238,228,0.06);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-4) var(--ease), transform var(--dur-4) var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__h1 em { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── UTILITIES ─────────────────────────────────────────────────────────── */
.center        { text-align: center; }
.cluster       { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.stack         { display: flex; flex-direction: column; }
.stack-4       { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-6       { display: flex; flex-direction: column; gap: var(--s-6); }
.stack-8       { display: flex; flex-direction: column; gap: var(--s-8); }
.stack-12      { display: flex; flex-direction: column; gap: var(--s-12); }
.divider       { border: 0; border-top: 1px solid var(--ink-12); }
.divider-dark  { border: 0; border-top: 1px solid var(--parchment-12); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Editorial numbered list */
.ed-list {
  display: grid;
  gap: 0;
  counter-reset: ed;
}
.ed-list__item {
  counter-increment: ed;
  padding: var(--s-8) 0;
  border-top: 1px solid var(--ink-12);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-6);
  align-items: start;
}
.ed-list__item:last-child { border-bottom: 1px solid var(--ink-12); }
.ed-list__item::before {
  content: counter(ed, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: 1.75rem;
  color: var(--sanguine);
  line-height: 1;
}
.section-dark .ed-list__item { border-color: var(--parchment-12); }
.section-dark .ed-list__item::before { color: var(--gold); }
.ed-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-2);
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
}
.ed-list__desc {
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 60ch;
}
.section-dark .ed-list__desc { color: var(--text-on-dark-muted); }
@media (max-width: 640px) {
  .ed-list__item { grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-6) 0; }
  .ed-list__item::before { font-size: 1.25rem; }
}

/* Pull quote stat (hero metrics / problem section) */
.pull-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.pull-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  color: var(--sanguine);
}
.pull-stat__value em { font-style: italic; }
.section-dark .pull-stat__value { color: var(--gold); }
.pull-stat__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--mist);
}
.section-dark .pull-stat__label { color: var(--text-on-dark-muted); }
.pull-stat__source {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--mist);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 0;
}
.section-dark .pull-stat__source { color: var(--text-on-dark-muted); }

/* Two column editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--s-10); }
}

/* Three-column grid for feature lists etc */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: var(--s-8); }
  .grid-2 { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* CTA full-bleed band */
.cta-band {
  background: var(--parchment-soft);
  padding-block: var(--section-y);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.cta-band--dark {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--parchment-12);
}
.cta-band__inner {
  width: var(--container-narrow);
  margin-inline: auto;
  text-align: center;
}
.cta-band__actions {
  margin-top: var(--s-10);
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CROSS-BROWSER FIXES ──────────────────────────────────────────────── */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: auto; }
}
input, textarea, select, button {
  -webkit-appearance: none;
  appearance: none;
}

/* ─── MOBILE REFINEMENTS ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .btn { width: 100%; }
  .hero__actions .btn--link { width: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn--link { align-self: flex-start; }
}
