/* ---------- Tokens ---------- */
:root {
  --cream: #F7F2EA;
  --cream-2: #F1EADF;
  --paper: #FFFDF9;
  --ink: #2A2520;
  --ink-soft: #5A5249;
  --ink-mute: #8A8278;
  --accent: #2D5F4F;       /* deep forest green */
  --accent-dark: #1F4438;
  --accent-soft: #D8E4DE;
  --border: #E6DECF;
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(60, 40, 20, 0.07);
  --shadow-lg: 0 18px 50px rgba(60, 40, 20, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max: 1140px;
  --max-narrow: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--max-narrow); }
.text-center { text-align: center; }

.section { padding: 110px 0; }
.section-alt { background: var(--cream-2); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 222, 207, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-mark {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}
.brand-logo-footer { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { /* keeps button at right */ }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  background: radial-gradient(ellipse at top, var(--paper) 0%, var(--cream) 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.hero-text { max-width: 560px; }
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 40px;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-fineprint {
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-text { max-width: 640px; margin: 0 auto; }
  .hero-cta { align-items: center; }
  .hero-media {
    margin: 0 auto;
    padding: 0;
  }
}

/* ---------- Cards (What) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.card p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.step h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.step p { color: var(--ink-soft); }

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

/* ---------- Showcase ---------- */
.section-showcase {
  padding: 90px 0;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-text h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 22px;
}
.showcase-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.showcase-text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-media { max-width: 560px; margin: 0 auto; }
}

/* ---------- Why ---------- */
.section-why { padding: 60px 0 90px; }
.why-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto;
}
.why-card .eyebrow { color: var(--accent-soft); }
.why-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.why-text strong { color: #fff; font-weight: 600; }
.why-text .accent { color: var(--accent-soft); display: block; margin-top: 12px; }

@media (max-width: 640px) {
  .why-card { padding: 44px 28px; }
}

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tier-featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.tier-featured:hover { transform: translateY(-11px); }
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier-name {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.tier-price { margin-bottom: 26px; }
.tier-price .amount {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
}
.tier-price .cadence {
  color: var(--ink-mute);
  font-size: 1rem;
  margin-left: 4px;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}
.tier-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.98rem;
  position: relative;
  padding-left: 26px;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}
.tier-features li:last-child { border-bottom: none; }

.pricing-note {
  text-align: center;
  margin-top: 36px;
  color: var(--ink-mute);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier-featured { transform: none; }
  .tier-featured:hover { transform: translateY(-3px); }
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 28px;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease, opacity 0.32s ease;
  opacity: 0;
}
.faq-answer > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0;
}
.faq details.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq summary::after {
  transform: rotate(0deg);
  transition: transform 0.25s ease, content 0s;
}
.faq details.is-open summary::after { content: "−"; }

/* ---------- CTA section ---------- */
.section-cta {
  padding: 110px 0;
  background:
    radial-gradient(ellipse at bottom, var(--accent-soft) 0%, transparent 60%),
    var(--cream);
}
.cta-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.footer-brand .brand-mark { color: var(--accent); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.footer-contact a {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.98rem;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-contact a:hover { color: var(--accent); opacity: 1; }
.footer-meta {
  font-size: 0.88rem;
  color: rgba(247, 242, 234, 0.55);
  margin-top: 4px;
}

/* ---------- Section padding tweaks for small screens ---------- */
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 70px; }
  .section-head { margin-bottom: 48px; }
}

/* =====================================================
   ANIMATIONS & INTERACTIONS
   ===================================================== */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance (staggered fade-up on load) ---------- */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-anim {
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.18s; }
.hero-anim-3 { animation-delay: 0.32s; }
.hero-anim-4 { animation-delay: 0.46s; }
.hero-anim-5 {
  animation: hero-fade-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

/* ---------- Nav scroll state ---------- */
.nav {
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.nav-scrolled {
  background: rgba(247, 242, 234, 0.95);
  box-shadow: 0 4px 24px rgba(60, 40, 20, 0.06);
  border-bottom-color: transparent;
}
.nav-scrolled .nav-inner { height: 64px; }
.nav-inner { transition: height 0.25s ease; }

/* ---------- Hamburger button ---------- */
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
body.menu-open .menu-btn-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .menu-btn-bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-btn-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(86%, 340px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    padding: 32px 28px;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(60, 40, 20, 0.08);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 40;
  }
  .nav-links a {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 18px;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 12px 22px !important;
    color: #fff !important;
    border: 0 !important;
  }
  body.menu-open .nav-links {
    transform: translateX(0);
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* ---------- Hover polish: cards & tiers ---------- */
.card,
.tier,
.step {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
}
.tier:hover {
  border-color: var(--accent-soft);
}
.tier-featured:hover {
  border-color: var(--accent);
}
.step:hover .step-num {
  transform: scale(1.05);
  background: var(--accent);
  color: #fff;
}
.step-num {
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* ---------- Image zoom on hover ---------- */
.showcase-media {
  cursor: zoom-in;
}
.showcase-media img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-media:hover img {
  transform: scale(1.04);
}

/* ---------- Button shine ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::before {
  transform: translateX(120%);
}

/* ---------- Brand logo subtle bob on hover ---------- */
.brand { transition: transform 0.2s ease; }
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}
.brand-logo {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   TIER 1: HERO PHONE MOCKUP + SMS CONVERSATION
   ===================================================== */

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18;
  background: linear-gradient(160deg, #1f1a16 0%, #2a2520 100%);
  border-radius: 38px;
  padding: 14px;
  box-shadow:
    0 30px 60px rgba(40, 28, 18, 0.25),
    0 10px 24px rgba(40, 28, 18, 0.15),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1612;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.phone-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.phone-signal {
  width: 14px; height: 8px;
  background: var(--ink);
  -webkit-mask: linear-gradient(to right, currentColor 33%, transparent 33% 36%, currentColor 36% 66%, transparent 66% 69%, currentColor 69%);
  mask: linear-gradient(to right, currentColor 33%, transparent 33% 36%, currentColor 36% 66%, transparent 66% 69%, currentColor 69%);
}
.phone-wifi {
  width: 10px; height: 8px;
  background: var(--ink);
  border-radius: 50% 50% 0 0;
}
.phone-battery {
  width: 20px; height: 9px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  position: relative;
}
.phone-battery::after {
  content: "";
  position: absolute;
  inset: 1px 6px 1px 1px;
  background: var(--ink);
  border-radius: 1px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-contact {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.phone-status-text {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}
.phone-chat {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.bubble,
.typing {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transform-origin: bottom left;
  word-wrap: break-word;
}
.bubble-in {
  background: var(--cream-2);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.bubble-out {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  transform-origin: bottom right;
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--accent);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Full 14s conversation cycle, infinite loop */
.bubble-anim-1 { animation: bubble-1 14s ease-in-out infinite; }
.bubble-anim-2 { animation: bubble-2 14s ease-in-out infinite; }
.bubble-anim-3 { animation: bubble-3 14s ease-in-out infinite; }
.bubble-anim-4 { animation: bubble-4 14s ease-in-out infinite; }
.typing-anim   { animation: typing-window 14s ease-in-out infinite; }

@keyframes bubble-1 {
  0%, 6%   { opacity: 0; transform: translateY(10px) scale(0.92); }
  10%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}
@keyframes bubble-2 {
  0%, 18%  { opacity: 0; transform: translateY(10px) scale(0.92); }
  22%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}
@keyframes bubble-3 {
  0%, 34%  { opacity: 0; transform: translateY(10px) scale(0.92); }
  38%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}
@keyframes bubble-4 {
  0%, 54%  { opacity: 0; transform: translateY(10px) scale(0.92); }
  58%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}
@keyframes typing-window {
  0%, 44%      { opacity: 0; transform: translateY(10px) scale(0.92); }
  48%, 54%     { opacity: 1; transform: translateY(0) scale(1); }
  56%, 100%    { opacity: 0; transform: translateY(-6px) scale(0.95); }
}

/* =====================================================
   TIER 1: ANIMATED CARD ICONS
   ===================================================== */

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.card-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.icon-stars svg { width: 44px; height: auto; }

/* Phone vibrate */
.icon-phone svg { animation: icon-shake 2.6s ease-in-out infinite; }
@keyframes icon-shake {
  0%, 40%, 100% { transform: rotate(0deg); }
  44%, 56%      { transform: rotate(-7deg); }
  48%, 60%      { transform: rotate(7deg); }
  52%           { transform: rotate(-7deg); }
}
.icon-phone-wave {
  opacity: 0;
  animation: icon-phone-wave 2.6s ease-in-out infinite;
}
.icon-phone-wave-l, .icon-phone-wave-r { animation-delay: 0.1s; }
.icon-phone-wave-l2, .icon-phone-wave-r2 { animation-delay: 0.25s; }
@keyframes icon-phone-wave {
  0%, 35%   { opacity: 0; }
  45%, 60%  { opacity: 1; }
  75%, 100% { opacity: 0; }
}

/* DM pulsing dot */
.icon-dm-dot {
  fill: var(--accent);
  transform-origin: 38px 10px;
  animation: dm-pulse 1.8s ease-in-out infinite;
}
@keyframes dm-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

/* Feed rows appearing */
.icon-feed-row {
  opacity: 0;
  transform-origin: left center;
  transform: scaleX(0);
  animation: feed-row 3s ease-in-out infinite;
}
.icon-feed-row-1 { animation-delay: 0.2s; }
.icon-feed-row-2 { animation-delay: 0.7s; }
.icon-feed-row-3 { animation-delay: 1.2s; }
@keyframes feed-row {
  0%, 6%    { opacity: 0; transform: scaleX(0); }
  12%, 78%  { opacity: 1; transform: scaleX(1); }
  90%, 100% { opacity: 0; transform: scaleX(1); }
}

/* Stars lighting up */
.icon-star {
  fill: var(--border);
  animation: star-light 3s ease-in-out infinite;
}
.icon-star-1 { animation-delay: 0.0s; }
.icon-star-2 { animation-delay: 0.15s; }
.icon-star-3 { animation-delay: 0.3s; }
.icon-star-4 { animation-delay: 0.45s; }
.icon-star-5 { animation-delay: 0.6s; }
@keyframes star-light {
  0%, 10%   { fill: var(--border);      transform: scale(1); }
  15%, 75%  { fill: var(--accent-dark); transform: scale(1.1); }
  85%, 100% { fill: var(--border);      transform: scale(1); }
}
.icon-stars g { transform-origin: center; }
.icon-star { transform-origin: center; transform-box: fill-box; }

/* =====================================================
   TIER 1: DRIFTING HERO BLOBS
   ===================================================== */

.hero { position: relative; }
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 380px; height: 380px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  animation: blob-drift-1 18s ease-in-out infinite;
}
.blob-2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(45, 95, 79, 0.18) 0%, transparent 70%);
  animation: blob-drift-2 22s ease-in-out infinite;
}
.blob-3 {
  width: 260px; height: 260px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(216, 228, 222, 0.7) 0%, transparent 70%);
  animation: blob-drift-3 16s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, 40px) scale(1.08); }
  66%      { transform: translate(20px, 20px) scale(0.96); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -30px) scale(1.1); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-40px, -20px) scale(1.15); }
  70%      { transform: translate(20px, 30px) scale(0.92); }
}

/* Hide the old hero radial gradient since blobs replace it */
.hero::before { display: none; }

/* =====================================================
   ORBIT HERO VISUAL (replaces phone)
   ===================================================== */

.orbit {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 95, 79, 0.22) 0%, transparent 55%),
    linear-gradient(150deg, #0F1A17 0%, #1B2A26 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(15, 30, 25, 0.35),
    0 8px 24px rgba(15, 30, 25, 0.2),
    inset 0 0 0 1px rgba(216, 228, 222, 0.08);
  isolation: isolate;
}

/* Subtle starfield-style background */
.orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(216, 228, 222, 0.4), transparent),
    radial-gradient(1px 1px at 78% 16%, rgba(216, 228, 222, 0.3), transparent),
    radial-gradient(1px 1px at 32% 78%, rgba(216, 228, 222, 0.35), transparent),
    radial-gradient(1px 1px at 85% 64%, rgba(216, 228, 222, 0.25), transparent),
    radial-gradient(1px 1px at 12% 60%, rgba(216, 228, 222, 0.3), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Connecting lines (SVG) ---------- */
.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit-halo {
  fill: rgba(45, 95, 79, 0.25);
  stroke: rgba(216, 228, 222, 0.35);
  stroke-width: 0.3;
  filter: drop-shadow(0 0 4px rgba(120, 180, 150, 0.5));
  animation: orbit-halo-pulse 3.4s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes orbit-halo-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.orbit-line {
  stroke: rgba(180, 220, 200, 0.85);
  stroke-width: 0.35;
  fill: none;
  stroke-dasharray: 1.5 3;
  filter: drop-shadow(0 0 0.6px rgba(180, 220, 200, 0.8))
          drop-shadow(0 0 2px rgba(80, 160, 130, 0.5));
  animation: orbit-flow 2.4s linear infinite;
}
.orbit-line-1 { animation-delay: 0s; }
.orbit-line-2 { animation-delay: 0.25s; }
.orbit-line-3 { animation-delay: 0.5s; }
.orbit-line-4 { animation-delay: 0.75s; }
.orbit-line-5 { animation-delay: 1s; }
.orbit-line-6 { animation-delay: 1.25s; }
@keyframes orbit-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -18; }
}

/* ---------- Center "AI" node ---------- */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(216, 228, 222, 0.4),
    0 0 20px rgba(70, 160, 120, 0.55),
    0 0 50px rgba(45, 95, 79, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  animation: orbit-center-glow 3.4s ease-in-out infinite;
}
@keyframes orbit-center-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(216, 228, 222, 0.4),
      0 0 20px rgba(70, 160, 120, 0.55),
      0 0 50px rgba(45, 95, 79, 0.5),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(216, 228, 222, 0.6),
      0 0 28px rgba(90, 180, 140, 0.7),
      0 0 70px rgba(45, 95, 79, 0.7),
      inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }
}

/* ---------- Pulse rings ---------- */
.orbit-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 200, 160, 0.7);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  z-index: 2;
  animation: orbit-pulse-out 3s ease-out infinite;
  pointer-events: none;
}
.orbit-pulse-1 { animation-delay: 0s; }
.orbit-pulse-2 { animation-delay: 1s; }
.orbit-pulse-3 { animation-delay: 2s; }
@keyframes orbit-pulse-out {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(3.4);  opacity: 0; }
}

/* ---------- Orbiting nodes ---------- */
.orbit-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}
.orbit-node-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 30, 25, 0.9);
  border: 1.2px solid rgba(180, 220, 200, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(216, 228, 222, 0.95);
  box-shadow:
    0 0 12px rgba(70, 160, 120, 0.45),
    0 0 24px rgba(45, 95, 79, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  animation: orbit-node-pulse 3s ease-in-out infinite;
}
.orbit-node-circle svg {
  width: 22px;
  height: 22px;
}
.orbit-node-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(216, 228, 222, 0.85);
  line-height: 1.25;
  text-shadow: 0 0 6px rgba(45, 95, 79, 0.6);
}

@keyframes orbit-node-pulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(70, 160, 120, 0.45),
      0 0 24px rgba(45, 95, 79, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 18px rgba(90, 180, 140, 0.65),
      0 0 40px rgba(45, 95, 79, 0.45),
      inset 0 1px 1px rgba(255, 255, 255, 0.12);
  }
}

/* Position each node at its orbit point, with staggered pulse delays */
.n-top { top: 14%; left: 50%; animation-delay: 0s; }
.n-tr  { top: 32%; left: 81%; animation-delay: 0.4s; }
.n-br  { top: 68%; left: 81%; animation-delay: 0.8s; }
.n-bot { top: 86%; left: 50%; animation-delay: 1.2s; }
.n-bl  { top: 68%; left: 19%; animation-delay: 1.6s; }
.n-tl  { top: 32%; left: 19%; animation-delay: 2s; }

/* Slight tilt the labels for side nodes so they tuck better */
.n-tr, .n-br { transform: translate(-50%, -50%) translateX(4px); }
.n-tl, .n-bl { transform: translate(-50%, -50%) translateX(-4px); }

.orbit-node .orbit-node-circle {
  animation-delay: inherit;
}

/* Pulse delay overrides per node */
.n-top .orbit-node-circle { animation-delay: 0s; }
.n-tr  .orbit-node-circle { animation-delay: 0.4s; }
.n-br  .orbit-node-circle { animation-delay: 0.8s; }
.n-bot .orbit-node-circle { animation-delay: 1.2s; }
.n-bl  .orbit-node-circle { animation-delay: 1.6s; }
.n-tl  .orbit-node-circle { animation-delay: 2s; }

/* Smaller orbit on narrow screens */
@media (max-width: 520px) {
  .orbit { width: min(360px, 92vw); }
  .orbit-center { width: 64px; height: 64px; font-size: 1.15rem; }
  .orbit-pulse { width: 64px; height: 64px; }
  .orbit-node { width: 80px; gap: 4px; }
  .orbit-node-circle { width: 44px; height: 44px; }
  .orbit-node-circle svg { width: 18px; height: 18px; }
  .orbit-node-label { font-size: 0.62rem; }
}

/* =====================================================
   CONTACT MODAL + FORM
   ===================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.25s ease forwards;
  cursor: pointer;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 44px 40px 36px;
  box-shadow: 0 30px 80px rgba(20, 14, 8, 0.3);
  animation: modal-pop-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes modal-pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--cream-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.modal-content { padding-top: 4px; }
.modal-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}
.modal-sub {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(45, 95, 79, 0.12);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5249' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-submit {
  margin-top: 8px;
  position: relative;
}
.form-submit-loading {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.form-submit.is-loading .form-submit-text { display: none; }
.form-submit.is-loading .form-submit-loading { display: inline-block; }

.form-fineprint {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 4px;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 12px 0 4px;
}
.modal-success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 20px;
  animation: success-pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1) backwards;
}
.modal-success-check svg { width: 30px; height: 30px; }
@keyframes success-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-success h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.modal-success p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Error message */
.form-error {
  background: #FBEDE6;
  border: 1px solid #E5A789;
  color: #8B3A1A;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* Mobile */
@media (max-width: 560px) {
  .modal-panel { padding: 40px 24px 28px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Body locked when modal open */
body.modal-open { overflow: hidden; }

/* ---------- Reduced motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-anim { opacity: 1 !important; transform: none !important; }
  .bubble, .typing { opacity: 1 !important; transform: none !important; }
  .typing { display: none !important; }
  .icon-feed-row, .icon-star, .icon-phone-wave {
    opacity: 1 !important;
    transform: none !important;
  }
  .icon-star { fill: var(--accent-dark) !important; }
}
