/* =========================================================================
   Caden — design system + landing page styles
   A warm, editorial productivity brand. Email + calendar, with an AI core.
   Palette: cream base · terracotta accent · sage · deep navy.
   Type: Fraunces (editorial serif display) + Inter (UI / body).
   ========================================================================= */

/* ----------------------------- Design tokens ---------------------------- */
:root {
  /* Surfaces */
  --bg: #fbf7f0;
  --bg-2: #fffdf9;
  --panel: rgba(255, 252, 247, 0.72);
  --panel-solid: #fffaf4;
  --ink: #16181d;
  --ink-soft: #3b3a36;
  --muted: #79736b;
  --muted-2: #a8a094;
  --hairline: rgba(120, 92, 56, 0.14);
  --hairline-strong: rgba(120, 92, 56, 0.22);

  /* Brand */
  --terracotta: #d9583f;
  --terracotta-deep: #b8412c;
  --terracotta-soft: #fbe7df;
  --sage: #7f8f6a;
  --sage-soft: #ecf0e6;
  --navy: #071d3a;
  --navy-2: #0a2546;
  --gold: #e8a33d;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(83, 58, 27, 0.06);
  --shadow-md: 0 16px 40px rgba(83, 58, 27, 0.10);
  --shadow-lg: 0 34px 80px rgba(83, 58, 27, 0.16);
  --shadow-glow: 0 20px 60px rgba(217, 88, 63, 0.28);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-serif: "Frank Ruhl Libre", "Fraunces", Georgia, serif;
  --font-sans: "Heebo", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 60rem at 82% -10%, rgba(217, 88, 63, 0.10), transparent 60%),
    radial-gradient(50rem 50rem at -10% 12%, rgba(127, 143, 106, 0.14), transparent 55%),
    radial-gradient(70rem 50rem at 50% 120%, rgba(232, 163, 61, 0.10), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film-grain texture overlay for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----------------------------- Typography ------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-optical-sizing: auto;
}

p {
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--terracotta);
  opacity: 0.6;
}

.eyebrow.center::before {
  display: none;
}

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 2;
}

.section-pad {
  padding: clamp(64px, 9vw, 130px) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin: 16px 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e2664c 0%, var(--terracotta) 55%, var(--terracotta-deep) 100%);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(217, 88, 63, 0.38);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--hairline-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn-dark {
  color: #fff;
  background: var(--navy);
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.02rem;
}

/* ------------------------------- Navbar --------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
  padding: 18px 0;
}

.nav.scrolled {
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav.scrolled .nav-inner {
  background: rgba(255, 251, 245, 0.82);
  border-color: var(--hairline);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--terracotta);
  background: rgba(217, 88, 63, 0.07);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ------------------------------- Hero ----------------------------------- */
.hero {
  padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 110px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #5d6e48;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  margin: 22px 0 0;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero-sub {
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 30ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  margin-inline-start: -10px;
  background-size: cover;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.avatars span:first-child {
  margin-inline-start: 0;
}

.hero-meta small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hero-meta b {
  color: var(--ink);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* Hero visual — floating glass app preview */
.hero-visual {
  position: relative;
  perspective: 1600px;
}

.glass-stack {
  position: relative;
  transform-style: preserve-3d;
  animation: floaty 7s var(--ease) infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-4deg); }
  50% { transform: translateY(-14px) rotateX(0deg) rotateY(-2deg); }
}

.preview-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(150%);
  overflow: hidden;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.45);
}

.preview-top i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-r { background: #f0938a; }
.dot-y { background: #f3c879; }
.dot-g { background: #a7c694; }

.preview-url {
  margin-inline-start: 12px;
  font-size: 0.74rem;
  color: var(--muted-2);
  font-family: var(--font-sans);
}

.preview-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.mini-greet {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.mini-greet span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

.mini-ai {
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.mini-ai .mini-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
}

.mini-ai-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.84rem;
}

.mini-ai-row .ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}

.mini-ai-row small {
  display: block;
  opacity: 0.6;
  font-size: 0.72rem;
}

.mini-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-tile {
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.6);
  padding: 13px;
}

.mini-tile h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.mini-mail {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 0;
}

.mini-mail i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
}

.mini-mail b {
  font-size: 0.76rem;
  display: block;
}

.mini-mail small {
  font-size: 0.68rem;
  color: var(--muted);
}

.mini-event {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 0.74rem;
}

.mini-event b {
  font-size: 0.68rem;
  color: var(--muted);
  flex: none;
  width: 42px;
}

.mini-event span {
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.7rem;
  flex: 1;
}

.ev-green { background: var(--sage-soft); color: #51663f; }
.ev-red { background: var(--terracotta-soft); color: #a8412c; }
.ev-blue { background: #e8f0f8; color: #2c5d8c; }

/* Floating chips around the preview */
.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 3;
}

.chip-float .pic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}

.chip-float small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.7rem;
}

.chip-1 { top: 8%; left: -7%; animation: floaty 6s var(--ease) infinite; }
.chip-2 { bottom: 14%; right: -6%; animation: floaty 7.5s var(--ease) infinite reverse; }
.chip-3 { bottom: -4%; left: 12%; animation: floaty 6.8s var(--ease) 0.4s infinite; }

/* ----------------------------- Logo strip ------------------------------- */
.logos {
  padding: 18px 0 6px;
}

.logos p {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 5vw, 58px);
  opacity: 0.62;
}

.logo-row span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------- Feature grid ----------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.feature {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}

.feature.col-3 { grid-column: span 3; }
.feature.col-2 { grid-column: span 2; }
.feature.col-4 { grid-column: span 4; }
.feature.col-6 { grid-column: span 6; }

.feature .f-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.f-icon.terra { background: linear-gradient(140deg, #e2664c, var(--terracotta-deep)); }
.f-icon.sage { background: linear-gradient(140deg, #94a47d, #6b7c54); }
.f-icon.navy { background: linear-gradient(140deg, #0d2c52, var(--navy)); }
.f-icon.gold { background: linear-gradient(140deg, #f0b85a, #d98c20); }

.feature h3 {
  font-size: 1.42rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.feature .f-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.f-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}

/* Dark spotlight feature (AI) */
.feature.dark {
  background: linear-gradient(155deg, #08213f 0%, #0b2a4f 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feature.dark h3 { color: #fff; }
.feature.dark p { color: rgba(255, 255, 255, 0.72); }

.feature.dark .glowline {
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 18rem at 80% -10%, rgba(217, 88, 63, 0.4), transparent 60%);
  pointer-events: none;
}

.feature.dark .f-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

/* AI demo chat inside dark feature */
.ai-chat {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  max-width: 86%;
  line-height: 1.5;
}

.bubble.you {
  background: rgba(255, 255, 255, 0.12);
  justify-self: end;
  border-bottom-right-radius: 5px;
}

.bubble.ai {
  background: linear-gradient(135deg, #e2664c, var(--terracotta-deep));
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-glow);
}

.bubble.ai small {
  display: block;
  opacity: 0.78;
  font-size: 0.74rem;
  margin-top: 5px;
}

/* ----------------------------- Workflow steps --------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--terracotta);
  opacity: 0.28;
  font-style: italic;
}

.step h3 {
  font-size: 1.28rem;
  margin: 6px 0 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------ Showcase -------------------------------- */
.showcase {
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
}

.showcase-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  margin: 0 auto 34px;
}

.showcase-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.showcase-tabs button.active {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.showcase-panels {
  position: relative;
}

.showcase-panel {
  display: none;
  animation: fadeUp 0.5s var(--ease);
}

.showcase-panel.active {
  display: block;
}

.showcase-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.showcase-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.showcase-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 22px;
}

.checklist {
  display: grid;
  gap: 13px;
  margin-bottom: 26px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  list-style: none;
}

.checklist .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: #5d6e48;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

.checklist b {
  font-weight: 600;
}

.checklist span {
  color: var(--muted);
}

/* Inline mock screens for showcase */
.mock {
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}

.mock-head b {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.mock-head .pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.mock-list {
  padding: 8px 18px 18px;
}

.mock-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.mock-item:last-child {
  border-bottom: 0;
}

.mock-item .av {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.mock-item b {
  font-size: 0.9rem;
  display: block;
}

.mock-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mock-item .t {
  color: var(--muted-2);
  font-size: 0.74rem;
}

/* Calendar mock */
.cal-mock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 18px;
}

.cal-col {
  display: grid;
  gap: 6px;
}

.cal-col .d {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 4px;
}

.cal-col .d b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.cal-block {
  border-radius: 9px;
  padding: 9px;
  font-size: 0.7rem;
  line-height: 1.3;
  min-height: 30px;
}

.cal-block small {
  opacity: 0.7;
  display: block;
}

/* ------------------------------- Metrics -------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.metric-card .num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--terracotta);
  line-height: 1;
  direction: ltr;
}

.metric-card .lbl {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ----------------------------- Testimonial ------------------------------ */
.quote-band {
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: clamp(40px, 6vw, 78px);
  position: relative;
  overflow: hidden;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 30rem at 90% 110%, rgba(217, 88, 63, 0.35), transparent 60%);
  pointer-events: none;
}

.quote-band .qmark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--terracotta);
  font-style: italic;
}

.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.32;
  margin: 22px 0 28px;
  max-width: 20ch;
  font-weight: 450;
  position: relative;
  z-index: 2;
}

.quote-band .who {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.quote-band .who .pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(140deg, #e2664c, var(--terracotta-deep));
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}

.quote-band .who b {
  display: block;
}

.quote-band .who small {
  opacity: 0.65;
}

/* ------------------------------- Pricing -------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  background: linear-gradient(160deg, #0a2546, var(--navy));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.price-card .tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
}

.price-card .tier .tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  letter-spacing: 0.03em;
}

.price-card .amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 18px 0 4px;
  line-height: 1;
}

.price-card .amount span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card.featured .amount span {
  color: rgba(255, 255, 255, 0.6);
}

.price-card .desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.price-card.featured .desc {
  color: rgba(255, 255, 255, 0.7);
}

.price-card .feats {
  display: grid;
  gap: 12px;
  margin: 6px 0 26px;
  flex: 1;
}

.price-card .feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-size: 0.92rem;
}

.price-card .feats .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: #5d6e48;
  display: grid;
  place-items: center;
  flex: none;
}

.price-card.featured .feats .tick {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* -------------------------------- CTA ----------------------------------- */
.cta-band {
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: var(--panel);
  backdrop-filter: blur(18px);
  padding: clamp(46px, 7vw, 88px) 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}

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

.cta-band p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted-2);
}

/* ------------------------------- Footer --------------------------------- */
.footer {
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 36px;
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 16px 0 20px;
  max-width: 34ch;
}

.footer h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.footer ul a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer ul a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.86rem;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.socials a:hover {
  transform: translateY(-3px);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* ---------------------------- Scroll reveal ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-stack,
  .chip-float { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; max-width: 460px; }
  .hero-sub { max-width: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature.col-3, .feature.col-2, .feature.col-4 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .showcase-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .feature.col-3, .feature.col-2, .feature.col-4 { grid-column: span 1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .chip-float { display: none; }
}

/* ------------------------- Mobile nav drawer ---------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(251, 247, 240, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu .mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu .mm-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: #fff;
  font-size: 1.3rem;
}

.mobile-menu nav {
  display: grid;
  gap: 6px;
  margin-top: 40px;
}

.mobile-menu nav a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu .mm-actions {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.mobile-menu .mm-actions .btn {
  width: 100%;
}

/* ============================ RTL / Hebrew ============================== */
[dir="rtl"] body { letter-spacing: 0; }

/* Hebrew has no true italics — neutralise the slanted accents */
[dir="rtl"] .hero h1 .accent,
[dir="rtl"] .cta-band h2 .accent { font-style: normal; }

/* Eyebrow: drop the wide Latin tracking for Hebrew */
[dir="rtl"] .eyebrow { letter-spacing: 0.02em; text-transform: none; }

/* Keep Latin words / numerals / times rendering left-to-right inside RTL */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* The brand wordmark stays a Latin logotype, reading LTR */
[dir="rtl"] .brand { direction: ltr; }

/* Decorative quote marks read better mirrored off the inline-start edge */
[dir="rtl"] .quote-band .qmark,
[dir="rtl"] .quote-card .qm { font-style: normal; }

/* Mirror the floating hero chips so they frame the (now left-side) preview */
[dir="rtl"] .chip-1 { left: auto; right: -6%; }
[dir="rtl"] .chip-2 { right: auto; left: -6%; }
[dir="rtl"] .chip-3 { left: auto; right: 12%; }
