/* MeraEA — calm, editorial, premium */

:root {
  --bg: #ffffff;
  --bg-elev: #FBF7F0;
  --bg-deep: #EBE3D5;
  --ink: #1A1F1B;
  --ink-soft: #3A3F3B;
  --ink-mute: #6B6F6A;
  --accent: #2F4A3A;
  --accent-soft: #DCE4DA;
  --brass: #B8924A;
  --brass-soft: #E8D9B8;
  --line: #D9D2C2;
  --line-soft: #E8E2D4;
  --whatsapp: #25D366;
  --whatsapp-bg: #E8F5E5;
  --danger: #B84A3A;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --pad-sm: 16px;
  --pad: 24px;
  --pad-lg: 48px;
  --section-y: 90px;
}

[data-palette="forest"] {
  --bg: #004D40;
  --bg-elev: #FAF7EE;
  --bg-deep: #E5E0D2;
  --ink: #14201A;
  --accent: #2F4A3A;
  --brass: #B8924A;
  --line: #D5CFBE;
}

[data-palette="navy"] {
  --bg: #F4EFE6;
  --bg-elev: #FBF6EC;
  --bg-deep: #EAE2D2;
  --ink: #11203A;
  --ink-soft: #2A3A55;
  --accent: #1F3A66;
  --accent-soft: #DCE4F0;
  --brass: #B8924A;
  --line: #D9D2C2;
}

[data-palette="saffron"] {
  --bg: #FAF6EE;
  --bg-elev: #FFFCF4;
  --bg-deep: #F0E8D6;
  --ink: #1A1815;
  --ink-soft: #3A3530;
  --accent: #C25A1F;
  --accent-soft: #F2D9C5;
  --brass: #8C6A2E;
  --line: #E0D6BE;
}

[data-palette="maroon"] {
  --bg: #F5EFE7;
  --bg-elev: #FBF6EE;
  --bg-deep: #ECE3D2;
  --ink: #1F1614;
  --ink-soft: #3F2E2A;
  --accent: #6B1F2A;
  --accent-soft: #ECD4D2;
  --brass: #B8924A;
  --line: #D9CEBE;
}

[data-palette="b2b"] {
  --bg: #F7F9FB;
  --bg-elev: #FFFFFF;
  --bg-deep: #E8EEF4;
  --ink: #1F2933;
  --ink-soft: #3A4654;
  --ink-mute: #6B7785;
  --accent: #0F2A44;
  --accent-soft: #DCE6F2;
  --brass: #2BB3A3;
  --brass-soft: #C8ECE7;
  --line: #D8E0E8;
  --line-soft: #E8EDF3;
}

[data-palette="emerald"] {
  --bg: #F1F4F8;
  --bg-elev: #FAFBFD;
  --bg-deep: #E2E8EF;
  --line: #D6DDE5;
  --line-soft: #E8ECF1;

  /* --bg: #F1F4F8;
  --bg-elev: #FFFFFF;
  --bg-deep: #F2EEDF; */
  --ink: #24323D;
  --ink-soft: #3F4E59;
  --ink-mute: #6B7682;
  --accent: #1F7A63;
  --accent-soft: #D5E8E0;
  --brass: #C9A227;
  --brass-soft: #F1E4B0;
  /* --line: #E2DCC4; */
  /* --line-soft: #EFEAD8; */
}

[data-palette="terracotta"] {
  --bg: #FFF6E9;
  --bg-elev: #FFFBF0;
  --bg-deep: #F4E5CA;
  --ink: #2A1D14;
  --ink-soft: #4A372A;
  --ink-mute: #7A6552;
  --accent: #C65D3B;
  --accent-soft: #F4D8CB;
  --brass: #E0A106;
  --brass-soft: #F4E1AE;
  --line: #E5D2B0;
  --line-soft: #EFE0C2;
}

[data-palette="prosperity"] {
  --bg: #F9F7F2;
  --bg-elev: #FFFFFF;
  --bg-deep: #EFEADC;
  --ink: #1A2B4C;
  --ink-soft: #2F3F5C;
  --ink-mute: #6B7585;
  --accent: #1A2B4C;
  --accent-soft: #DDE3EE;
  --brass: #F5A623;
  --brass-soft: #FCE3B5;
  --line: #E2DDCC;
  --line-soft: #EDE9DC;
  --whatsapp: #27AE60;
  --whatsapp-bg: #DCEFE0;
}

[data-palette="heritage"] {
  --bg: #F8F4EC;
  --bg-elev: #FFFCF3;
  --bg-deep: #ECE3CF;
  --ink: #333333;
  --ink-soft: #4A4A4A;
  --ink-mute: #777777;
  --accent: #004D40;
  --accent-soft: #CFE1DD;
  --brass: #D4AF37;
  --brass-soft: #F1E5B0;
  --line: #DCD3BD;
  --line-soft: #ECE4CF;
}

[data-palette="bharat"] {
  --bg: #FFFFFF;
  --bg-elev: #FAFBFE;
  --bg-deep: #ECEFF7;
  --ink: #1A1F2E;
  --ink-soft: #2F3645;
  --ink-mute: #6B7385;
  --accent: #3F51B5;
  --accent-soft: #DCE1F4;
  --brass: #00BCD4;
  --brass-soft: #C2EDF3;
  --danger: #C0392B;
  --line: #DCE1EB;
  --line-soft: #EBEEF4;
}

[data-density="compact"] {
  --section-y: 80px;
  --pad-lg: 32px;
}

/* Background overrides — independent of palette */
[data-bg="cream"] {
  --bg: #F5F0E8;
  --bg-elev: #FBF7F0;
  --bg-deep: #EBE3D5;
  --line: #D9D2C2;
  --line-soft: #E8E2D4;
}

[data-bg="paper"] {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-deep: #EFEEE8;
  --line: #E2E1DA;
  --line-soft: #EFEEE8;
}

[data-bg="white"] {
  --bg: #FFFFFF;
  --bg-elev: #FAFAFA;
  --bg-deep: #F0F0F0;
  --line: #E5E5E5;
  --line-soft: #F0F0F0;
}

[data-bg="cool-gray"] {
  --bg: #F4F6F8;
  --bg-elev: #FFFFFF;
  --bg-deep: #E5EAEF;
  --line: #DCE2E8;
  --line-soft: #ECEFF3;
}

[data-bg="warm-gray"] {
  --bg: #F2F0EE;
  --bg-elev: #FAF9F7;
  --bg-deep: #E5E2DE;
  --line: #D9D6D2;
  --line-soft: #E8E5E1;
}

[data-bg="mint"] {
  --bg: #F1F5F1;
  --bg-elev: #FAFCF9;
  --bg-deep: #E2E9E2;
  --line: #D5DDD5;
  --line-soft: #E5ECE5;
}

[data-bg="sky"] {
  --bg: #F1F4F8;
  --bg-elev: #FAFBFD;
  --bg-deep: #E2E8EF;
  --line: #D6DDE5;
  --line-soft: #E8ECF1;
}

[data-bg="blush"] {
  --bg: #F7F2EE;
  --bg-elev: #FCF8F4;
  --bg-deep: #ECE3DC;
  --line: #DDD3CB;
  --line-soft: #ECE3DC;
}

[data-bg="dark"] {
  --bg: #14171A;
  --bg-elev: #1C2024;
  --bg-deep: #0E1114;
  --ink: #F2EFE8;
  --ink-soft: #C8C4BA;
  --ink-mute: #8B887F;
  --line: #2A2F35;
  --line-soft: #1F2328;
}

[data-bg="midnight"] {
  --bg: #0F1A24;
  --bg-elev: #14202D;
  --bg-deep: #0A1320;
  --ink: #EBEEF2;
  --ink-soft: #B8C0CB;
  --ink-mute: #7A8593;
  --line: #1F2C3A;
  --line-soft: #16212E;
}

[data-font-pair="instrument-inter"] {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", sans-serif;
}

[data-font-pair="fraunces-inter"] {
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", sans-serif;
}

[data-font-pair="dm-serif-grotesk"] {
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Space Grotesk", sans-serif;
}

[data-font-pair="cormorant-inter"] {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-feature-settings: "liga", "dlig";
}

.mono {
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
  display: inline-block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
}

h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-mute);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg-elev);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  filter: brightness(0.95);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.logo .ea-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-block;
}

.logo .ea-mark .bubble-fill {
  fill: var(--accent);
}

.logo .ea-mark .ea-letters {
  fill: var(--bg-elev);
}

.logo .ea-mark .tick-stroke {
  stroke: var(--brass);
}

.logo .wordmark {
  line-height: 1;
  font-weight: 500;
}

.logo .wordmark .ea {
  font-style: italic;
  color: var(--accent);
  margin-left: 0.06em;
}

footer .logo .wordmark .ea {
  color: var(--brass);
}

footer .logo .ea-mark .bubble-fill {
  fill: var(--brass);
}

footer .logo .ea-mark .ea-letters {
  fill: var(--ink);
}

footer .logo .ea-mark .tick-stroke {
  stroke: var(--bg-elev);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  z-index: 51;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 49;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta .nav-signin {
    display: none;
  }
}

/* HERO */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--whatsapp) 25%, transparent);
}

.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}

.hero h1 .brass {
  color: var(--brass);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

/* Hero variant A — split chaos / sorted */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

/* Phone-like frame for chat */
.phone-frame {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(20, 30, 25, 0.25),
    0 8px 20px -8px rgba(20, 30, 25, 0.1);
  overflow: hidden;
}

.phone-frame.chaos {
  top: 0;
  left: 0;
  width: 56%;
  height: 78%;
  transform: rotate(-3deg);
  z-index: 1;
}

.phone-frame.sorted {
  top: 25%;
  right: 0;
  width: 60%;
  height: 82%;
  transform: rotate(2deg);
  z-index: 2;
}

.phone-header {
  background: var(--bg-deep);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.phone-header .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
}

.phone-header .title {
  font-weight: 500;
  color: var(--ink);
}

.phone-header .subtitle {
  font-size: 10px;
  color: var(--ink-mute);
}

.phone-body {
  padding: 14px 12px;
  height: calc(100% - 53px);
  overflow: hidden;
}

/* Chat bubbles */
.chat-msg {
  display: flex;
  margin-bottom: 8px;
  animation: fadeUp 0.5s ease both;
}

.chat-msg.them {
  justify-content: flex-start;
}

.chat-msg.me {
  justify-content: flex-end;
}

.bubble {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  position: relative;
  white-space: pre-wrap;
}

.chat-msg.me .bubble {
  background: #DCF8C6;
  border-color: #C8EBB0;
}

.bubble .name {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.bubble .time {
  font-size: 9px;
  color: var(--ink-mute);
  margin-left: 6px;
}

/* Sorted cards */
.sorted-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100% - 53px);
}

.sorted-section {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
  margin-bottom: 2px;
}

.sorted-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeUp 0.5s ease both;
}

.sorted-card .pin {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.sorted-card.brass .pin {
  background: var(--brass);
}

.sorted-card.danger .pin {
  background: var(--danger);
}

.sorted-card .card-title {
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.sorted-card .card-meta {
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 2px;
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero variant B — single thread */
/* .hero-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-single {
    grid-template-columns: 1fr;
  }
}

.hero-thread {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(20, 30, 25, 0.25);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
}

.hero-thread .phone-body {
  padding: 18px 14px;
  height: 480px;
  overflow-y: auto;
}

.hero-thread .bubble {
  font-size: 13px;
  padding: 9px 13px;
} */

/* Hero variant C — editorial */
/* .hero-editorial {
  text-align: left;
}

.hero-editorial h1 {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  margin-bottom: 0;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: end;
}

@media (max-width: 760px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }
}

.hero-editorial-preview {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 40px -20px rgba(20, 30, 25, 0.18);
} */

/* CHAOS section */
.chaos-section {
  background: var(--ink);
  color: var(--bg);
  padding: var(--section-y) 0;
}

.chaos-section h2 {
  color: var(--bg);
}

.chaos-section p {
  color: color-mix(in oklab, var(--bg) 75%, transparent);
}

.chaos-section .section-tag {
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}

.chaos-section .section-tag::before {
  background: color-mix(in oklab, var(--bg) 60%, transparent);
}

.chaos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

@media (max-width: 880px) {
  .chaos-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.chaos-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chaos-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}

.chaos-item:last-child {
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}

.chaos-item .num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brass);
  font-style: italic;
  flex-shrink: 0;
  width: 44px;
}

.chaos-item h4 {
  color: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.chaos-item p {
  font-size: 14px;
}

/* Chaotic chat preview (right side of chaos) */
.chaos-preview {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 540px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.chaos-preview .stack-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.chaos-preview .chat-row {
  display: flex;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.chaos-preview .chat-row .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.chaos-preview .chat-row .meta {
  flex: 1;
  min-width: 0;
}

.chaos-preview .chat-row .name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.chaos-preview .chat-row .preview {
  font-size: 12px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chaos-preview .chat-row .chat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.chaos-preview .chat-row .time {
  font-size: 11px;
  color: var(--ink-mute);
}

.chaos-preview .chat-row .badge {
  background: var(--whatsapp);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOW IT WORKS */
.how-it-works {
  background: var(--bg-deep);
  padding: var(--section-y) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
}

.step-card .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  color: var(--brass);
  line-height: 1;
}

.step-card h3 {
  font-family: var(--serif);
  font-size: 28px;
}

.step-card p {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
}

.step-card .step-visual {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink-soft);
}

/* FEATURES grid */
.features-section {
  padding: var(--section-y) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.feature-card .feature-demo {
  margin-top: auto;
  padding-top: 16px;
}

/* feature span helpers */
.fc-span-3 {
  grid-column: span 3;
}

.fc-span-2 {
  grid-column: span 2;
}

.fc-span-4 {
  grid-column: span 4;
}

.fc-span-6 {
  grid-column: span 6;
}

.daily-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

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

  .fc-span-3,
  .fc-span-2,
  .fc-span-4,
  .fc-span-6 {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .fc-span-3,
  .fc-span-2,
  .fc-span-4,
  .fc-span-6 {
    grid-column: span 1;
  }

  .daily-brief-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Live preview / interactive demo */
.demo-section {
  background: var(--ink);
  color: var(--bg);
  padding: var(--section-y) 0;
}

.demo-section h2 {
  color: var(--bg);
}

.demo-section .section-tag {
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}

.demo-section .section-tag::before {
  background: color-mix(in oklab, var(--bg) 60%, transparent);
}

.demo-section p {
  color: color-mix(in oklab, var(--bg) 75%, transparent);
}

.demo-frame {
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 24px;
  padding: 16px;
  margin-top: 56px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  min-height: 560px;
}

@media (max-width: 880px) {
  .demo-frame {
    grid-template-columns: 1fr;
  }
}

.demo-chat {
  background: var(--bg-deep);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-chat-header {
  padding: 14px 16px;
  background: var(--accent);
  color: var(--bg-elev);
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-chat-header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.demo-chat-header .title {
  font-weight: 500;
  font-size: 15px;
}

.demo-chat-header .status {
  font-size: 11px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-chat-header .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6FE67A;
}

.demo-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-chat-body .bubble {
  max-width: 85%;
  font-size: 13px;
  padding: 9px 12px;
}

.demo-chat-input {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.demo-chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.demo-chat-input input:focus {
  border-color: var(--accent);
}

.demo-chat-input button {
  background: var(--accent);
  color: var(--bg-elev);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.demo-dashboard {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  gap: 6px;
}

.demo-tab {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  border: 1px solid transparent;
}

.demo-tab.active {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.demo-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}

.demo-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.demo-card .demo-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.demo-card.brass .demo-card-icon {
  background: var(--brass-soft);
  color: var(--brass);
}

.demo-card.danger .demo-card-icon {
  background: #F2DBD7;
  color: var(--danger);
}

.demo-card .demo-card-content {
  flex: 1;
  min-width: 0;
}

.demo-card .demo-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.demo-card .demo-card-meta {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-card .demo-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.demo-card.new {
  animation: cardPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  60% {
    transform: translateY(0) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Testimonials */
.testimonials-section {
  padding: var(--section-y) 0;
  background-color: var(--ink);
}

.testimonials-section h2 {
  color: var(--bg);
}

.testimonials-section .section-tag {
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

@media (max-width: 880px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.testimonial-author .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}

.testimonial-author .author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-author .author-role {
  font-size: 12px;
  color: var(--ink-mute);
}

/* Pricing */
.pricing-section {
  background: var(--bg-deep);
  padding: var(--section-y) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.price-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.price-card.featured h3,
.price-card.featured .price-amount,
.price-card.featured li {
  color: var(--bg);
}

.price-card.featured .price-period,
.price-card.featured .price-desc {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}

.price-card.featured .badge {
  position: absolute;
  top: 28px;
  right: 28px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: 28px;
}

.price-card .price-desc {
  font-size: 13px;
  color: var(--ink-mute);
}

.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-amount .price-period {
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink-mute);
  margin-left: 6px;
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-card li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-card li::before {
  content: "→";
  color: var(--brass);
  flex-shrink: 0;
  font-family: var(--serif);
}

.price-card.featured li::before {
  color: var(--brass);
}

.price-card .btn {
  justify-content: center;
  width: 100%;
}

.price-card.featured .btn-primary {
  background: var(--brass);
  color: var(--ink);
}

/* FAQ */
.faq-section {
  padding: var(--section-y) 0;
}

.faq-list {
  margin-top: 56px;
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq-q .toggle {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.3s;
  margin-top: 4px;
}

.faq-item[data-open="true"] .toggle {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 680px;
}

.faq-item[data-open="true"] .faq-a {
  max-height: 200px;
  margin-top: 16px;
}

/* Final CTA */
.final-cta {
  padding: calc(var(--section-y) + 10px) 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.final-cta .container {
  position: relative;
}

.final-cta h2 {
  font-size: clamp(48px, 7vw, 96px);
  margin-bottom: 32px;
}

.final-cta h2 .accent {
  color: var(--accent);
  font-style: italic;
}

.final-cta p {
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 40px;
}

.final-cta .hero-cta {
  justify-content: center;
}

/* Footer */
footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  padding: 64px 0 40px;
}

footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

footer .footer-brand .logo {
  color: var(--bg);
}

footer .footer-brand p {
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  margin-top: 16px;
  max-width: 280px;
  font-size: 14px;
}

footer h5 {
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer li {
  font-size: 14px;
}

footer li a:hover {
  color: var(--bg);
}

footer .footer-bottom {
  margin-top: 56px;
  padding: 24px 32px 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}

/* Subtle running line decoration */
.running-line {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.running-line span {
  flex-shrink: 0;
}

.running-line .dot {
  color: var(--brass);
}

/* Visual bits */
.serif-italic {
  font-style: italic;
  font-family: var(--serif);
}

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 20px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 0;
}

/* Mobile responsive adjustments for mockups and demo */
@media (max-width: 600px) {
  :root {
    --section-y: 64px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-eyebrow {
    display: none;
  }

  .step-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .feature-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .phone-header {
    padding: 8px 12px;
    font-size: 10px;
  }

  .phone-header .avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .phone-frame.chaos {
    height: 95%;
  }

  .phone-frame.sorted {
    height: 95%;
  }

  .phone-body {
    padding: 10px 8px;
  }

  .bubble {
    font-size: 10px;
    padding: 6px 9px;
  }

  .sorted-card {
    font-size: 9px;
    padding: 8px 10px;
  }

  .chaos-preview {
    padding: 14px;
    max-height: 400px;
  }

  .chaos-preview .chat-row .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .chaos-preview .chat-row .name {
    font-size: 12px;
  }

  .chaos-preview .chat-row .time {
    font-size: 10px;
  }

  .demo-frame {
    padding: 12px;
    min-height: 480px;
  }

  .demo-chat-header {
    padding: 10px 12px;
  }

  .demo-chat-header .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .demo-chat-header .title {
    font-size: 13px;
  }

  .demo-tabs {
    flex-wrap: wrap;
  }

  .demo-tab {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-visual {
    width: 100%;
    margin: 0 auto;
    /* Optional: slightly shrink if it's still too big */
    transform: scale(0.95);
    transform-origin: top center;
  }
}