/* ============================================================
   bryndeli — home.css
   Page-specific styles for the landing page (index.html only).
   Loaded after base.css.
   ============================================================ */

/* ============= HERO ============= */
.hero {
  padding: 60px 0 120px;
  position: relative;
}

/* Decorative ring fragments behind the hero — echoes the symbol */
.hero-ring-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.hero-ring-bg.r1 { top: 80px; right: -180px; width: 720px; height: 720px; opacity: 0.5; }
.hero-ring-bg.r2 { top: 200px; right: -60px; width: 480px; height: 480px; opacity: 0.7; }
.hero-ring-bg.r3 { top: 320px; right: 60px; width: 240px; height: 240px; opacity: 0.9; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(47, 93, 78, 0.05);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--terracotta);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.35); }
}

h1 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144;
  font-size: clamp(44px, 5.8vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--pine-deep);
  margin-bottom: 28px;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
h1 .nudge { display: inline-block; transform: translateY(0.04em); }

.hero-sub {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--bark-soft);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-tour-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--bark-soft);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.hero-tour-link:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.hero-tour-link span { margin-left: 4px; transition: transform 0.3s var(--ease); display: inline-block; }
.hero-tour-link:hover span { transform: translateX(3px); }

.trust-row {
  display: flex;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-bottom: 14px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.trust-item:hover {
  background: rgba(47, 93, 78, 0.06);
  border-color: var(--rule);
  transform: translateY(-1px);
}
.trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-security-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bark-soft);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.hero-security-link:hover { color: var(--terracotta); }
.hero-security-link span { transition: transform 0.3s var(--ease); display: inline-block; }
.hero-security-link:hover span { transform: translateX(3px); }

.hero-attribution {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark-soft);
  opacity: 0.65;
  padding-top: 4px;
}


/* ============= PHONE STAGE ============= */
.phone-stage {
  position: relative;
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background terracotta wash */
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 40px;
  background: radial-gradient(ellipse at center, rgba(201, 97, 74, 0.10), transparent 60%);
  pointer-events: none;
}

/* Floating "paper" behind phone — the care plan */
.paper-behind {
  position: absolute;
  width: 240px;
  height: 320px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 18px;
  box-shadow: 0 18px 40px rgba(31, 64, 52, 0.12);
  transform: rotate(-8deg) translateY(40px);
  z-index: 1;
  left: -10px;
  top: 80px;
}
.paper-behind .paper-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.85;
}
.paper-behind h4 {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--pine-deep);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.paper-behind .paper-meta {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--pine);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.7;
}
.paper-behind .paper-line {
  height: 4px;
  background: var(--oat-deep);
  border-radius: 2px;
  margin-bottom: 7px;
}
.paper-behind .paper-line.short { width: 60%; }
.paper-behind .paper-line.med { width: 85%; }
.paper-behind .paper-line.full { width: 100%; }

/* Phone */
.phone {
  width: 320px;
  height: 640px;
  background: var(--bark);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 36px 80px rgba(31, 64, 52, 0.28),
    0 12px 24px rgba(31, 64, 52, 0.14);
  position: relative;
  z-index: 3;
  transform: rotate(-1.5deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--oat);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--bark);
  border-radius: 0 0 14px 14px;
  z-index: 5;
}

.phone-status {
  padding: 28px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--bark);
  font-weight: 500;
}

.phone-header {
  padding: 16px 22px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-greeting {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pine-soft);
}
.phone-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.025em;
  margin-top: 2px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--oat);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}

.ai-bar {
  margin: 4px 18px 14px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bark-soft);
}
.ai-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.visit-list {
  flex: 1;
  padding: 0 14px;
  overflow: hidden;
}

.visit-section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pine);
  padding: 6px 8px 8px;
  opacity: 0.7;
}

.visit-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.visit-card.now {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 97, 74, 0.10);
}

.visit-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.visit-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--pine);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.visit-tag {
  font-size: 9px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--oat);
}
.visit-tag.scheduled { background: var(--oat-deep); color: var(--pine); }

.visit-name {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}
.visit-meta {
  font-size: 10.5px;
  color: var(--bark-soft);
  line-height: 1.5;
}

.visit-prep {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--pine);
}
.visit-prep::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 5px;
  flex-shrink: 0;
}


/* ============= ANIMATED PHONE DEMO ============= */
.demo-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.demo-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.demo-state.s0 { animation-name: demoS0; opacity: 1; }
.demo-state.s1 { animation-name: demoS1; }
.demo-state.s2 { animation-name: demoS2; }
.demo-state.s3 { animation-name: demoS3; }

@keyframes demoS0 {
  0%, 22% { opacity: 1; }
  26%, 92% { opacity: 0; }
  96%, 100% { opacity: 1; }
}
@keyframes demoS1 {
  0%, 24% { opacity: 0; }
  28%, 38% { opacity: 1; }
  42%, 100% { opacity: 0; }
}
@keyframes demoS2 {
  0%, 40% { opacity: 0; }
  44%, 53% { opacity: 1; }
  57%, 100% { opacity: 0; }
}
@keyframes demoS3 {
  0%, 55% { opacity: 0; }
  59%, 90% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

/* Active prompt bar (states 1–3) */
.ai-bar.active {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 97, 74, 0.10);
  color: var(--bark);
}
.ai-bar.active .ai-bar-text { color: var(--bark); }

/* s1 — typewriter */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.5px solid var(--terracotta);
  animation: typewriter 12s steps(37, end) infinite, cursorBlink 0.85s steps(2, end) infinite;
  vertical-align: bottom;
  max-width: 100%;
}
@keyframes typewriter {
  0%, 25% { width: 0; }
  37%, 100% { width: 37ch; }
}
@keyframes cursorBlink {
  50% { border-color: transparent; }
}
.visit-list.dim {
  opacity: 0.32;
  filter: saturate(0.6);
  transition: opacity 0.4s var(--ease);
}

/* s2 — thinking + sources */
.thinking-block {
  padding: 4px 18px 0;
}
.thinking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  padding: 14px 4px 18px;
}
.thinking-row em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.think-dots {
  display: inline-flex;
  gap: 4px;
}
.think-dots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: thinkBounce 1s ease-in-out infinite;
}
.think-dots i:nth-child(2) { animation-delay: 0.18s; }
.think-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes thinkBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.source-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--pine);
  letter-spacing: 0.04em;
  align-self: flex-start;
  opacity: 0;
  transform: translateX(-12px);
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease);
}
.source-pill svg { color: var(--terracotta); flex-shrink: 0; }
.source-pill.p1 { animation-name: pillSlide1; }
.source-pill.p2 { animation-name: pillSlide2; }
@keyframes pillSlide1 {
  0%, 43% { opacity: 0; transform: translateX(-12px); }
  47%, 53% { opacity: 1; transform: translateX(0); }
  57%, 100% { opacity: 0; transform: translateX(-12px); }
}
@keyframes pillSlide2 {
  0%, 47% { opacity: 0; transform: translateX(-12px); }
  51%, 53% { opacity: 1; transform: translateX(0); }
  57%, 100% { opacity: 0; transform: translateX(-12px); }
}

/* s3 — answer card */
.answer-card {
  margin: 4px 18px 18px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}
.answer-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.answer-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.answer-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--bark);
  color: var(--pine-deep);
}
.answer-bullets svg { color: var(--terracotta); margin-top: 2px; flex-shrink: 0; }
.answer-bullets strong { font-weight: 600; color: var(--pine-deep); }
.answer-grounding {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  opacity: 0.75;
}

/* Pause demo on hover */
.phone-stage:hover .demo-state,
.phone-stage:hover .typewriter,
.phone-stage:hover .source-pill,
.phone-stage:hover .think-dots i,
.phone-stage:hover .ai-bar .dot {
  animation-play-state: paused;
}

/* Reduced-motion: show only the answer (the most informative state) */
@media (prefers-reduced-motion: reduce) {
  .demo-state { animation: none; opacity: 0; }
  .demo-state.s3 { opacity: 1; }
  .demo-state.s0 { opacity: 0; }
  .typewriter { animation: none; width: auto; border-right: none; }
  .source-pill { animation: none; opacity: 1; transform: none; }
  .think-dots i { animation: none; opacity: 0.7; }
}


/* ============= SECTIONS ============= */
section {
  padding: 110px 0;
  position: relative;
  scroll-margin-top: 80px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

h2 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 100;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--pine-deep);
  margin-bottom: 26px;
  max-width: 820px;
}
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.lead {
  font-size: 18.5px;
  color: var(--bark-soft);
  max-width: 640px;
  line-height: 1.6;
}


/* ============= PROBLEM SECTION ============= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.problem-card {
  background: var(--oat-warm);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--terracotta), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: var(--rule-strong);
}
.problem-card:hover::before { transform: scaleX(1); }

.problem-card .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--terracotta);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.problem-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--pine-deep);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.problem-card p {
  font-size: 14.5px;
  color: var(--bark-soft);
  line-height: 1.6;
}


/* ============= SARAH'S DAY ============= */
.day {
  margin: 0 calc(-1 * var(--gutter));
  padding: 110px var(--gutter);
  background: var(--oat-deep);
  position: relative;
}
.day::before, .day::after {
  content: '';
  position: absolute;
  height: 1px;
  left: var(--gutter);
  right: var(--gutter);
  background: var(--rule);
}
.day::before { top: 0; }
.day::after { bottom: 0; }

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

.day-card {
  position: relative;
  padding: 0;
}

.day-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.day-time .time-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  text-transform: none;
}

.day-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.day-card p {
  font-size: 14.5px;
  color: var(--bark-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.day-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--pine);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 2px solid var(--terracotta);
  letter-spacing: -0.005em;
}


/* ============= HOW IT WORKS — DARK PINE SECTION ============= */
.how {
  background: var(--pine-deep);
  color: var(--oat);
  margin: 0 calc(-1 * var(--gutter));
  padding: 120px var(--gutter);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.how::before, .how::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(248, 237, 224, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
.how::before { top: -160px; right: -160px; width: 480px; height: 480px; }
.how::after { top: -80px; right: -80px; width: 320px; height: 320px; }

.how .section-eyebrow { color: var(--terracotta-soft); }
.how .section-eyebrow::before { background: var(--terracotta); }
.how h2 { color: var(--oat); }
.how h2 em { color: var(--honey); }
.how .lead { color: rgba(248, 237, 224, 0.72); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 80px;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(248, 237, 224, 0.18), transparent);
  z-index: 0;
}

.step { position: relative; z-index: 1; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pine-deep);
  border: 1.5px solid rgba(248, 237, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--terracotta-soft);
  line-height: 1;
  margin-bottom: 28px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--oat);
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  line-height: 1.18;
}
.step p {
  font-size: 14.5px;
  color: rgba(248, 237, 224, 0.72);
  line-height: 1.65;
}


/* ============= INTEGRATIONS STRIP ============= */
.integrations {
  padding: 80px 0 60px;
  text-align: left;
}
.integrations-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--pine-deep);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 640px;
}
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 16px 10px 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.integration-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.integration-pill .name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--pine-deep);
  font-weight: 500;
}
.integration-pill .dot,
.integration-key .key-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.integration-pill .dot.live,
.integration-key .key-dot.live {
  background: #4FA46A;
  box-shadow: 0 0 0 3px rgba(79, 164, 106, 0.15);
}
.integration-pill .dot.beta,
.integration-key .key-dot.beta {
  background: var(--honey);
  box-shadow: 0 0 0 3px rgba(224, 180, 105, 0.20);
}
.integration-pill .dot.soon,
.integration-key .key-dot.soon {
  background: var(--rule-strong);
}
.integration-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark-soft);
}
.integration-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ============= ANSWERS GRID — "What Bryndeli answers" ============= */
.answers {
  padding-top: 100px;
}
.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin-top: 64px;
}
.answer-pair {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.q-bubble {
  align-self: flex-start;
  background: var(--oat-warm);
  border: 1px solid var(--rule);
  border-radius: 18px 18px 18px 4px;
  padding: 16px 20px 18px;
  max-width: 90%;
}
.q-bubble .q-label,
.a-card .a-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  opacity: 0.7;
  margin-bottom: 6px;
  font-weight: 500;
}
.q-bubble p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--pine-deep);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.a-card {
  align-self: stretch;
  margin-left: 24px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px 18px 18px 18px;
  padding: 18px 22px 18px;
  box-shadow: var(--shadow-card);
}
.a-card .a-label { color: var(--terracotta); opacity: 1; }
.a-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.a-card ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bark);
}
.a-card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 9px;
  flex-shrink: 0;
}
.a-card ul li strong { color: var(--pine-deep); font-weight: 600; }
.a-card .a-prose {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bark);
}
.a-sources {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.src-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgba(47, 93, 78, 0.06);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 500;
}


/* ============= FEATURES ============= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.feature {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  transition: border-color 0.4s var(--ease), transform 0.45s var(--ease);
  position: relative;
}
.feature:hover {
  border-color: var(--rule-strong);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--oat-warm);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: transform 0.4s var(--ease);
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-5deg); }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--pine); }

.feature h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.18;
}
.feature p {
  font-size: 15px;
  color: var(--bark-soft);
  line-height: 1.6;
}


/* ============= TESTIMONIAL — pull quote spread ============= */
.testimonial {
  padding: 120px 0;
  position: relative;
}
.testimonial-quote-mark {
  font-family: var(--serif);
  font-size: 240px;
  line-height: 0.6;
  color: var(--terracotta);
  opacity: 0.16;
  position: absolute;
  top: 80px;
  left: -16px;
  pointer-events: none;
  user-select: none;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--pine-deep);
  max-width: 920px;
  margin: 0 0 44px;
  position: relative;
  z-index: 2;
}
.testimonial blockquote em {
  font-weight: 500;
  color: var(--terracotta);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--oat);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  font-family: var(--serif);
}
.testimonial-author .name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--pine-deep);
  font-size: 17px;
  letter-spacing: -0.005em;
}
.testimonial-author .role {
  font-size: 13px;
  color: var(--bark-soft);
  margin-top: 2px;
}


/* ============= FAQ ============= */
.faq {
  padding: 100px 0 80px;
}
.faq h2 { max-width: 720px; margin-bottom: 56px; }
.faq-list {
  border-top: 1px solid var(--rule);
  margin-bottom: 32px;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 500;
  color: var(--pine-deep);
  letter-spacing: -0.012em;
  line-height: 1.35;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta); }
.faq-icon {
  flex-shrink: 0;
  color: var(--terracotta);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] > summary .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 8px 26px 0;
  max-width: 720px;
}
.faq-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--bark-soft);
}
.faq-body p + p { margin-top: 12px; }
.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pine);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s;
}
.faq-more:hover { color: var(--terracotta); }
.faq-more span { transition: transform 0.3s var(--ease); display: inline-block; }
.faq-more:hover span { transform: translateX(3px); }


/* ============= CTA ============= */
.cta {
  background: var(--terracotta);
  color: var(--oat);
  margin: 80px calc(-1 * var(--gutter)) 0;
  padding: 110px var(--gutter);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(248, 237, 224, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.cta::before { width: 380px; height: 380px; bottom: -160px; left: -100px; }
.cta::after { width: 260px; height: 260px; bottom: -80px; left: -20px; }

.cta h2 {
  color: var(--oat);
  margin: 0 auto 28px;
  max-width: 800px;
}
.cta h2 em { color: var(--honey); }

.cta p {
  color: rgba(248, 237, 224, 0.88);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 44px;
}

.cta .btn {
  background: var(--oat);
  color: var(--pine-deep);
}
.cta .btn:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


/* ============= ENTRANCE ANIMATIONS ============= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero-sub, .hero-cta, .trust-row, .hero-eyebrow {
  animation: fadeUp 0.95s var(--ease) both;
}
.hero-eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.05s; }
.hero-sub { animation-delay: 0.13s; }
.hero-cta { animation-delay: 0.21s; }
.trust-row { animation-delay: 0.29s; }

.phone-stage {
  animation: fadeUp 1.1s var(--ease) 0.35s both;
}


/* ============= RESPONSIVE ============= */
@media (max-width: 980px) {
  .hero { padding: 32px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-stage { height: 600px; }
  .paper-behind { left: 8%; }
  .problem-grid, .features-grid, .steps, .day-grid, .answers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .answers-grid { gap: 28px; }
  .steps::before { display: none; }
  .testimonial-quote-mark { font-size: 160px; top: 60px; }
  .integrations { padding: 60px 0 40px; }
  /* Answers: drop the offset on the answer card so it can use full column width */
  .a-card { margin-left: 0; }
  .q-bubble { max-width: 100%; }
}

/* Tablet-portrait & large-phone landscape */
@media (max-width: 720px) {
  .trust-row { gap: 8px 14px; }
  .trust-item { font-size: 10px; padding: 5px 10px 5px 9px; gap: 7px; }
  .integration-pill { padding: 9px 13px 9px 12px; }
  .integration-pill .name { font-size: 10px; letter-spacing: 0.08em; }
  .integration-key { font-size: 10px; gap: 14px; }
  .features-grid .feature { padding: 32px 28px; }
  .testimonial-quote-mark { font-size: 130px; left: -4px; top: 50px; }
}

/* Phone */
@media (max-width: 580px) {
  section { padding: 72px 0; }
  .day, .how, .cta {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-top: 80px;
    padding-bottom: 80px;
    border-radius: 24px;
  }

  /* Hero — hide decorative rings on mobile (they extend off-canvas and waste paint) */
  .hero-ring-bg { display: none; }
  .hero { padding: 24px 0 56px; }
  .hero-grid { gap: 36px; }
  .hero-eyebrow { font-size: 10px; padding: 7px 12px; margin-bottom: 24px; }
  .hero-sub { font-size: 16.5px; margin-bottom: 28px; line-height: 1.55; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 16px 24px; }
  .hero-tour-link { text-align: center; padding: 10px 4px; }
  .trust-row { padding-top: 20px; gap: 8px; margin-bottom: 12px; }
  .trust-item { font-size: 9.5px; padding: 5px 9px 5px 8px; }
  .hero-security-link { font-size: 10px; margin-bottom: 14px; }
  .hero-attribution { font-size: 9.5px; line-height: 1.5; }

  /* Phone scales down to keep proportions on small screens */
  .phone-stage { height: 560px; }
  .phone { width: 290px; height: 580px; transform: rotate(-1deg); }
  .phone-screen { border-radius: 28px; }
  .paper-behind { width: 200px; height: 260px; left: 6%; top: 50px; }
  .demo-state.s3 .answer-card { margin: 4px 14px 14px; padding: 14px; }
  .answer-bullets li { font-size: 11px; }

  /* Problem + Day */
  .problem-grid, .day-grid { margin-top: 40px; }
  .problem-card { padding: 28px 24px; }

  /* Integrations */
  .integrations { padding: 56px 0 36px; }
  .integrations-lead { font-size: 18px; margin-bottom: 24px; }
  .integration-grid { gap: 8px; margin-bottom: 18px; }
  .integration-pill { padding: 8px 12px 8px 11px; gap: 8px; }
  .integration-pill .name { font-size: 9.5px; letter-spacing: 0.06em; }
  .integration-key { font-size: 9.5px; gap: 12px 14px; }

  /* Answers */
  .answers { padding-top: 72px; }
  .answers-grid { gap: 24px; margin-top: 40px; }
  .q-bubble { padding: 14px 16px 16px; }
  .q-bubble p { font-size: 15.5px; }
  .a-card { padding: 16px 18px 16px; }
  .a-card ul li, .a-card .a-prose { font-size: 14px; }
  .a-card ul { gap: 7px; }
  .src-pill { font-size: 9px; padding: 3px 8px; }

  /* Features */
  .features-grid .feature { padding: 28px 24px; }

  /* Testimonial */
  .testimonial { padding: 64px 0; }
  .testimonial-quote-mark { font-size: 100px; top: 30px; left: -4px; }
  .testimonial blockquote { font-size: 22px; line-height: 1.3; margin-bottom: 28px; }
  .avatar-large { width: 48px; height: 48px; font-size: 15px; }
  .testimonial-author .name { font-size: 16px; }
  .testimonial-author .role { font-size: 12px; }

  /* FAQ */
  .faq { padding: 64px 0 48px; }
  .faq h2 { margin-bottom: 32px; }
  .faq-item summary { padding: 18px 4px 18px 0; gap: 14px; font-size: 16.5px; line-height: 1.3; }
  .faq-icon { width: 14px; height: 14px; }
  .faq-body { padding-bottom: 22px; }
  .faq-body p { font-size: 14.5px; line-height: 1.6; }

  /* CTA */
  .cta { margin-top: 56px; }
  .cta h2 { font-size: clamp(28px, 7vw, 36px); margin-bottom: 20px; }
  .cta p { font-size: 16px; margin-bottom: 32px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .phone { width: 260px; height: 520px; }
  .phone-stage { height: 510px; }
  .typewriter { font-size: 12px; }
  h1 { font-size: 38px; line-height: 1.02; }
}


