/* Frankie design tokens — from mobile/constants/colors.ts & typography.ts */

:root {
  --primary: #6b8f84;
  --primary-muted: #8fa89f;
  --secondary: #f0ebe3;
  --accent: #a66a4a;
  --text-primary: #3a3a38;
  --text-secondary: #6f6e6b;
  --text-tertiary: #94938f;
  --background: #f7f5f2;
  --chat-background: #f7f7f5;
  --screen-cream: #f9f8f4;
  --surface: #ffffff;
  --white: #ffffff;
  --user-bubble: #c7d7c9;
  --user-bubble-border: #b5c9b7;
  --user-bubble-text: #3a3a38;
  --assistant-bubble: #ffffff;
  --assistant-bubble-border: #e5e0d8;
  --border: #e5e0d8;
  --border-light: #ede9e2;
  --sage-muted: #e8f0ed;
  --accent-deep: #8b5539;
  --accent-muted: #f5eae6;
  --terracotta-muted: #f5eae6;
  --error: #9e4e42;
  --error-surface: #f5edeb;
  --success: #4a6b62;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.53;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

/* Intentional navigation links only */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-md);
}

.container {
  width: min(100% - 2 * var(--space-lg), var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(58, 58, 56, 0.04), 0 4px 16px rgba(58, 58, 56, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: background 0.15s ease;
}

.header-cta:hover {
  background: #557568;
  color: var(--white);
}

/* Body copy and mocks — never inherit link styling */
.feature-copy,
.feature-copy p,
.chat-mock,
.chat-mock-messages,
.prep-question-card,
.prep-screen-intro,
.chat-bubble,
.hero-chat-thread,
.au-card p,
.not-card p,
.doc-summary,
.doc-summary p,
.appt-summary,
.appt-summary p,
.appt-transcript-body,
.appt-transcript-body p {
  color: var(--text-primary);
}

.feature-copy a,
.chat-mock a,
.prep-question-card a,
.chat-bubble a,
.feature-copy a[x-apple-data-detectors],
.chat-mock a[x-apple-data-detectors] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: text;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-primary:hover {
  background: #557568;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  color: var(--primary);
  background: var(--sage-muted);
}

.btn-secondary:hover {
  background: #dce8e3;
}

/* Hero */

.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 272px);
  gap: var(--space-3xl);
  align-items: center;
}

.hero-copy {
  max-width: 40rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-chat {
  margin: 0;
  width: min(100%, 272px);
}

.hero-phone {
  width: 100%;
}

.hero-phone-device {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 44px;
  padding: 8px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(58, 58, 56, 0.1),
    0 8px 20px rgba(58, 58, 56, 0.05);
}

.hero-phone-display {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 19.5;
  min-height: 520px;
  background: var(--white);
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
}

.hero-phone-status {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px 6px;
  background: var(--white);
}

.hero-phone-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 16px;
  background: var(--text-primary);
  border-radius: 999px;
  opacity: 0.92;
}

.hero-phone-status-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  flex-shrink: 1;
  color: var(--text-primary);
}

.hero-status-icon {
  display: block;
  flex-shrink: 0;
}

.hero-phone-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  padding: 10px var(--space-md);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-phone-header:has(.hero-phone-brand) .hero-phone-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: none;
  width: max-content;
  max-width: calc(100% - 72px);
  pointer-events: none;
}

.hero-phone-header:has(.hero-phone-brand) .hero-phone-back {
  position: relative;
  z-index: 1;
}

.hero-phone-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  margin-left: calc(-1 * var(--space-xs));
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  cursor: default;
}

.hero-phone-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: var(--text-primary);
  text-align: center;
}

.hero-phone-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-phone-meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-secondary);
}

.chat-message-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  align-self: stretch;
  padding-left: 20%;
  box-sizing: border-box;
}

.chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 86%;
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--user-bubble-border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.chat-attachment-icon {
  flex-shrink: 0;
  color: var(--primary-muted);
}

.chat-attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-push-highlight {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 6px;
}

.chat-message-frankie .chat-push-pill,
.chat-message-frankie .chat-push-highlight {
  margin-left: 0;
}

.chat-push-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 14px);
  aspect-ratio: 3 / 1;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  color: var(--primary);
  pointer-events: none;
  overflow: visible;
}

.chat-push-ring path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-push-ring path:first-child {
  stroke-width: 2.2;
  opacity: 0.92;
}

.chat-push-ring path:nth-child(2) {
  stroke-width: 1.5;
  opacity: 0.45;
}

.chat-push-ring-faint {
  stroke-width: 1.6;
  opacity: 0.3;
}

.chat-push-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--sage-muted);
  border: 1px solid #cddad5;
  border-radius: var(--radius-pill, 999px);
  cursor: default;
}

.chat-message-frankie > .chat-push-pill {
  margin-top: 6px;
  margin-left: 0;
}

.partner-visual {
  gap: var(--space-lg);
}

.partner-visual .hero-chat {
  margin: 0;
  width: min(100%, 252px);
}

.partner-visual .hero-chat-send {
  background: transparent;
}

/* Partner share demo — animated chat + share flow */
.hero-chat--partner-share .hero-phone-display {
  position: relative;
}

.hero-phone-header:has(.hero-phone-share) .hero-phone-brand {
  max-width: calc(100% - 88px);
}

.hero-phone-share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  margin-right: calc(-1 * var(--space-xs));
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  cursor: default;
  position: relative;
  z-index: 1;
}

.hero-chat--partner-share .partner-share-screen {
  overflow: hidden;
  padding: 6px 10px 4px;
}

.partner-share-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.partner-share-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(to bottom, transparent, var(--chat-background));
  pointer-events: none;
  z-index: 1;
}

.partner-share-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}

.hero-chat--partner-share .partner-share-response {
  max-width: 92%;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transform: translateY(6px);
}

.hero-chat--partner-share .partner-share-typing {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.partner-scan-summary {
  font-size: 11px;
  line-height: 1.42;
}

.partner-scan-summary p,
.partner-scan-summary ul {
  margin: 0 0 0.55em;
}

.partner-scan-summary p:last-child {
  margin-bottom: 0;
}

.partner-scan-lead {
  margin-bottom: 0.65em !important;
}

.partner-scan-title {
  margin-bottom: 0.45em !important;
}

.partner-scan-heading {
  font-weight: 600;
  margin-top: 0.15em !important;
  margin-bottom: 0.35em !important;
}

.partner-scan-list {
  padding-left: 1.1em;
  margin-bottom: 0.55em !important;
}

.partner-scan-list li {
  margin-bottom: 0.28em;
}

.partner-scan-list li:last-child {
  margin-bottom: 0;
}

.partner-share-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 52px;
  background: rgba(58, 58, 56, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.partner-share-sheet {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(58, 58, 56, 0.14);
  transform: translateY(12px);
}

.partner-share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: default;
}

.partner-share-option--alex {
  position: relative;
  color: var(--primary);
  background: var(--sage-muted);
  border-color: #cddad5;
}

.partner-share-option-sent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.partner-share-tap {
  position: absolute;
  z-index: 30;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(107, 143, 132, 0.55);
  box-shadow: 0 2px 8px rgba(58, 58, 56, 0.18);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.partner-share-tap::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(107, 143, 132, 0.35);
}

/* Choreography — 7.25s loop (starts 1.5s before modal; intro trimmed) */
.hero-chat--partner-share .partner-share-typing {
  animation: partnerShareTyping 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-response {
  animation: partnerShareResponse 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-thread {
  animation: partnerShareScroll 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-btn {
  animation: partnerShareBtn 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-modal {
  animation: partnerShareModal 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-sheet {
  animation: partnerShareSheet 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-option--alex {
  animation: partnerShareAlex 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-tap {
  animation: partnerShareTap 7.25s ease-in-out infinite;
}

@keyframes partnerShareTyping {
  0%, 100% {
    opacity: 0;
    max-height: 0;
  }
}

@keyframes partnerShareResponse {
  0%, 76.7% {
    opacity: 1;
    max-height: 520px;
    transform: translateY(0);
  }
  90.3%, 100% {
    opacity: 0;
    max-height: 0;
    transform: translateY(6px);
  }
}

@keyframes partnerShareScroll {
  0% { transform: translateY(0); }
  11%, 14% { transform: translateY(-210px); }
  76.7%, 100% { transform: translateY(0); }
}

@keyframes partnerShareBtn {
  0%, 9.1% {
    background: transparent;
    color: var(--text-primary);
    transform: scale(1);
  }
  13%, 16.8% {
    background: var(--sage-muted);
    color: var(--primary);
    transform: scale(0.92);
  }
  20.7%, 76.7% {
    background: var(--sage-muted);
    color: var(--primary);
    transform: scale(1);
  }
  90.3%, 100% {
    background: transparent;
    color: var(--text-primary);
    transform: scale(1);
  }
}

@keyframes partnerShareModal {
  0%, 16.8% {
    opacity: 0;
    visibility: hidden;
  }
  20.7%, 76.7% {
    opacity: 1;
    visibility: visible;
  }
  90.3%, 100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes partnerShareSheet {
  0%, 16.8% { transform: translateY(12px); }
  20.7%, 76.7% { transform: translateY(0); }
  90.3%, 100% { transform: translateY(12px); }
}

@keyframes partnerShareAlex {
  0%, 45.8% {
    background: var(--sage-muted);
    border-color: #cddad5;
    color: var(--primary);
    transform: scale(1);
  }
  49.7%, 53.5% {
    background: #dfeae5;
    border-color: var(--primary-muted);
    color: var(--primary);
    transform: scale(0.97);
  }
  57.4%, 76.7% {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
    transform: scale(1);
  }
  90.3%, 100% {
    background: var(--sage-muted);
    border-color: #cddad5;
    color: var(--primary);
    transform: scale(1);
  }
}

.hero-chat--partner-share .partner-share-option-default {
  animation: partnerShareAlexLabel 7.25s ease-in-out infinite;
}

.hero-chat--partner-share .partner-share-option-sent {
  animation: partnerShareSentLabel 7.25s ease-in-out infinite;
}

@keyframes partnerShareAlexLabel {
  0%, 53.5% { opacity: 1; }
  57.4%, 100% { opacity: 0; }
}

@keyframes partnerShareSentLabel {
  0%, 53.5% { opacity: 0; }
  57.4%, 100% { opacity: 1; }
}

@keyframes partnerShareTap {
  0%, 9.1% {
    opacity: 0;
    transform: translate(198px, 52px) scale(0.6);
  }
  11%, 13% {
    opacity: 1;
    transform: translate(198px, 52px) scale(1);
  }
  16.8%, 18.7% {
    opacity: 0;
    transform: translate(198px, 52px) scale(0.6);
  }
  42%, 43% {
    opacity: 1;
    transform: translate(126px, 318px) scale(1);
  }
  45.8%, 53.5% {
    opacity: 1;
    transform: translate(126px, 318px) scale(0.85);
  }
  57.4%, 100% {
    opacity: 0;
    transform: translate(126px, 318px) scale(0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chat--partner-share .partner-share-typing,
  .hero-chat--partner-share .partner-share-response,
  .hero-chat--partner-share .partner-share-thread,
  .hero-chat--partner-share .partner-share-btn,
  .hero-chat--partner-share .partner-share-modal,
  .hero-chat--partner-share .partner-share-sheet,
  .hero-chat--partner-share .partner-share-option--alex,
  .hero-chat--partner-share .partner-share-option-default,
  .hero-chat--partner-share .partner-share-option-sent,
  .hero-chat--partner-share .partner-share-tap {
    animation: none !important;
  }

  .hero-chat--partner-share .partner-share-typing {
    opacity: 0;
  }

  .hero-chat--partner-share .partner-share-response {
    opacity: 1;
    max-height: none;
    transform: none;
  }

  .hero-chat--partner-share .partner-share-thread {
    transform: translateY(-120px);
  }

  .hero-chat--partner-share .partner-share-modal {
    opacity: 1;
    visibility: visible;
  }

  .hero-chat--partner-share .partner-share-sheet {
    transform: none;
  }

  .hero-chat--partner-share .partner-share-option--alex {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
  }

  .hero-chat--partner-share .partner-share-option-default {
    opacity: 0;
  }

  .hero-chat--partner-share .partner-share-option-sent {
    opacity: 1;
  }

  .hero-chat--partner-share .partner-share-tap {
    opacity: 0;
  }
}

/* Partner mock — standard phone ratio, no min/max height fights */
.partner-visual .hero-chat--fit:not(.hero-chat--appts) .hero-phone-display {
  aspect-ratio: 9 / 17;
  min-height: 0;
  max-height: none;
}

.hero-phone-display--compact {
  min-height: 420px;
  aspect-ratio: 9 / 17;
}

.hero-phone-screen {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--chat-background);
  overflow: hidden;
}

.hero-chat-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  margin: 0;
}

.chat-message-user + .chat-typing {
  margin-top: calc(-1 * var(--space-xs));
}

.hero-chat-thread > .chat-bubble-frankie {
  max-width: 80%;
}

.hero-phone-screen-chat {
  padding: 16px;
  justify-content: flex-start;
  overflow: hidden;
  align-items: stretch;
  background: var(--chat-background);
}

/* Birth-plan mock — full thread visible, no scroll */
.hero-chat--fit:not(.hero-chat--appts) .hero-phone-display {
  aspect-ratio: 9 / 20.5;
  min-height: 556px;
}

.hero-chat--fit:not(.hero-chat--appts) .hero-phone-status {
  height: 32px;
  padding-bottom: 4px;
}

.hero-chat--fit .hero-phone-screen-chat {
  overflow: hidden;
  padding: 6px 10px 4px;
}

.hero-chat--fit .hero-chat-thread {
  gap: 10px;
  overflow: visible;
}

.hero-chat--fit .chat-message-user {
  padding-left: 8%;
  gap: 0;
}

.hero-chat--fit .chat-bubble {
  padding: 8px 10px;
  font-size: 12.65px;
  line-height: 1.4;
}

.hero-chat--fit .chat-attachment {
  padding: 4px 7px;
  font-size: 10.925px;
}

.hero-chat--fit .hero-chat-thread > .chat-bubble-frankie {
  max-width: 88%;
}

.hero-chat--fit .hero-phone-header {
  padding: 7px 10px 5px;
}

.hero-chat--fit .hero-phone-name {
  font-size: 16.1px;
}

.hero-chat--fit .hero-phone-meta {
  font-size: 12.075px;
}

.hero-chat--fit .hero-phone-dock {
  padding: 5px 10px 3px;
}

.hero-chat--fit .hero-phone-dock .hero-chat-compose {
  min-height: 32px;
  padding: 4px 4px 4px 9px;
}

.hero-chat--fit .hero-chat-compose-text {
  font-size: 12.65px;
}

.hero-chat--fit .hero-chat-send {
  width: 28px;
  height: 28px;
}

.hero-chat--fit .hero-chat-send img,
.hero-chat--fit .hero-chat-send svg {
  width: 16px;
  height: 16px;
}

.hero-chat--fit .hero-phone-home-indicator {
  margin: 5px auto 4px;
}

.chat-message-frankie {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 82%;
  align-self: flex-start;
}

.chat-message-frankie .chat-bubble-frankie {
  max-width: 100%;
  align-self: stretch;
}

.chat-timestamp {
  display: none;
}

.chat-typing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.chat-bubble-typing {
  padding: 12px 14px;
  min-width: 52px;
}

.chat-typing-label {
  display: none;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--user-bubble);
  border: none;
  color: var(--user-bubble-text);
  box-shadow: none;
}

.chat-bubble-frankie {
  align-self: flex-start;
  background: var(--assistant-bubble);
  border: none;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-phone-dock {
  flex-shrink: 0;
  padding: 8px var(--space-md) var(--space-xs);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hero-phone-dock .hero-chat-compose {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 5px 5px 14px;
  background: var(--chat-background);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.hero-chat-compose-text {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  background: transparent;
  border-radius: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-tertiary);
}

.hero-chat-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: default;
}

.hero-chat-send img,
.hero-chat-send svg {
  display: block;
  width: 22px;
  height: 22px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 8px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* 24/7 Support feature — user message static, then typing + Frankie's reply */
.hero-chat--support-reply .support-reply-typing {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  animation: supportReplyTyping 7.5s ease-in-out infinite;
}

.hero-chat--support-reply .support-reply-response {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  animation: supportReplyResponse 7.5s ease-in-out infinite;
}

@keyframes supportReplyTyping {
  0%, 6% {
    opacity: 0;
    max-height: 0;
    margin: 0;
  }
  10%, 22% {
    opacity: 1;
    max-height: 40px;
    margin: 0;
  }
  26%, 100% {
    opacity: 0;
    max-height: 0;
    margin: 0;
  }
}

@keyframes supportReplyResponse {
  0%, 23% {
    opacity: 0;
    max-height: 0;
    transform: translateY(6px);
  }
  26%, 90% {
    opacity: 1;
    max-height: 240px;
    transform: translateY(0);
  }
  95%, 100% {
    opacity: 0;
    max-height: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chat--support-reply .support-reply-typing {
    animation: none;
    opacity: 0;
    max-height: 0;
  }

  .hero-chat--support-reply .support-reply-response {
    animation: none;
    opacity: 1;
    max-height: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dots span {
    animation: none;
    opacity: 0.7;
  }
}

.chat-bubble-list {
  margin: 8px 0 0;
  padding-left: 1.1em;
}

.chat-bubble-list li {
  margin-bottom: 4px;
}

.chat-bubble-list li:last-child {
  margin-bottom: 0;
}

.hero-phone-home-indicator {
  width: 108px;
  height: 4px;
  margin: 10px auto 6px;
  background: var(--text-primary);
  border-radius: 999px;
  opacity: 0.16;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-visual {
    order: 1;
  }

  .hero-copy {
    order: 0;
    max-width: none;
  }

  .hero-chat {
    width: min(72vw, 272px);
    max-width: 272px;
    margin-inline: auto;
  }

  .hero-phone-display {
    min-height: 0;
    aspect-ratio: 9 / 17.5;
  }
}

.hero-block {
  max-width: 40rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

.hero-title-line {
  display: block;
}

.hero-cycle {
  display: block;
  min-height: 1.1em;
  margin-top: 0.05em;
}

.hero-cycle-word {
  display: inline-block;
  color: var(--accent);
  transition: opacity 0.231s ease;
}

.hero-cycle-word.is-fading {
  opacity: 0;
}

.hero-tagline {
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.1875rem, 2.5vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-tagline-accent {
  color: var(--accent);
}

.hero-tagline-sub {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-lg);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-cta {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
}

.hero-copy .eyebrow {
  margin-bottom: var(--space-lg);
}

.hero-solution {
  margin: 0 0 var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  font-size: clamp(1.1875rem, 2.5vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.hero-pains {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-2xl);
  max-width: 56rem;
}

.hero-pains li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero-pains li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--accent);
}

#features,
.section-features {
  padding: 0;
}

.features-stack {
  display: flex;
  flex-direction: column;
}

.feature-block {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.feature-block--alt {
  background: var(--background);
}

.feature-block-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-copy {
  max-width: 34rem;
}

.feature-copy h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 2.125rem);
  line-height: 1.22;
  margin-bottom: var(--space-lg);
}

.features-stack > .feature-block:first-child .feature-copy h3 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.18;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  padding: 9px 16px 9px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-pill, 999px);
}

.feature-tag-icon {
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.92;
}

.feature-tag--live {
  color: var(--white);
  background: var(--primary);
}

.feature-tag-icon--live {
  color: var(--white);
  opacity: 1;
  animation: live-icon-pulse 2s ease-in-out infinite;
}

@keyframes live-icon-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-tag-icon--live {
    animation: none;
  }
}

.feature-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
}

.feature-visual .hero-chat {
  margin: 0;
}

.feature-mock-note {
  max-width: 272px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
  text-align: right;
}

/* Appointment prep mock — appointment plan + key questions + share */

.prep-visual .hero-chat--fit:not(.hero-chat--appts) .hero-phone-display {
  aspect-ratio: 9 / 19;
  min-height: 0;
  max-height: none;
}

.hero-chat--prep-share .hero-phone-display {
  position: relative;
}

.hero-phone-screen-prep {
  flex: 1;
  min-height: 0;
  padding: 8px 10px 10px;
  background: var(--background);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.hero-phone-screen-prep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
}

.prep-screen-intro {
  margin-bottom: 2px;
}

.prep-screen-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.prep-screen-meta {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.prep-section-label {
  margin: 2px 0 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.prep-question-card {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 7px 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 11px;
  font-size: 10.25px;
  line-height: 1.38;
  color: var(--text-primary);
}

.prep-question-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prep-tap-hint {
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-tertiary);
}

.hero-phone-screen-prep .prep-check {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.prep-question-card--done .prep-question-copy > span:first-child {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.prep-share-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  padding: 0 10px 28px;
  background: rgba(58, 58, 56, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.prep-share-sheet {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(58, 58, 56, 0.14);
  transform: translateY(12px);
}

.prep-share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: default;
}

.prep-share-option--clinician {
  position: relative;
  color: var(--primary);
  background: var(--sage-muted);
  border-color: #cddad5;
}

.prep-share-option-sent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.prep-share-tap {
  position: absolute;
  z-index: 30;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(107, 143, 132, 0.22);
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
}

.prep-share-tap::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* Prep share choreography — 6.5s loop */
.hero-chat--prep-share .prep-question-card--active {
  animation: prepQuestionActive 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-modal {
  animation: prepShareModal 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-sheet {
  animation: prepShareSheet 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-option--clinician {
  animation: prepShareClinician 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-option-default {
  animation: prepShareClinicianLabel 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-option-sent {
  animation: prepShareSentLabel 6.5s ease-in-out infinite;
}

.hero-chat--prep-share .prep-share-tap {
  animation: prepShareTap 6.5s ease-in-out infinite;
}

@keyframes prepQuestionActive {
  0%, 18% {
    border-color: var(--border-light);
    box-shadow: none;
  }
  22%, 34% {
    border-color: var(--primary-muted);
    box-shadow: 0 0 0 2px rgba(107, 143, 132, 0.16);
  }
  38%, 100% {
    border-color: var(--border-light);
    box-shadow: none;
  }
}

@keyframes prepShareModal {
  0%, 32% {
    opacity: 0;
    visibility: hidden;
  }
  36%, 72% {
    opacity: 1;
    visibility: visible;
  }
  78%, 100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes prepShareSheet {
  0%, 32% {
    transform: translateY(12px);
  }
  36%, 72% {
    transform: translateY(0);
  }
  78%, 100% {
    transform: translateY(12px);
  }
}

@keyframes prepShareClinician {
  0%, 62% {
    background: var(--sage-muted);
    border-color: #cddad5;
    color: var(--primary);
  }
  66%, 76% {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
  }
  80%, 100% {
    background: var(--sage-muted);
    border-color: #cddad5;
    color: var(--primary);
  }
}

@keyframes prepShareClinicianLabel {
  0%, 62% { opacity: 1; }
  66%, 76% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

@keyframes prepShareSentLabel {
  0%, 62% { opacity: 0; }
  66%, 76% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes prepShareTap {
  0%, 56% {
    opacity: 0;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
  }
  60%, 66% {
    opacity: 1;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
  70%, 100% {
    opacity: 0;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chat--prep-share .prep-question-card--active,
  .hero-chat--prep-share .prep-share-modal,
  .hero-chat--prep-share .prep-share-sheet,
  .hero-chat--prep-share .prep-share-option--clinician,
  .hero-chat--prep-share .prep-share-option-default,
  .hero-chat--prep-share .prep-share-option-sent,
  .hero-chat--prep-share .prep-share-tap {
    animation: none !important;
  }

  .hero-chat--prep-share .prep-share-modal {
    opacity: 1;
    visibility: visible;
  }

  .hero-chat--prep-share .prep-share-sheet {
    transform: none;
  }

  .hero-chat--prep-share .prep-share-option--clinician {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
  }

  .hero-chat--prep-share .prep-share-option-default {
    opacity: 0;
  }

  .hero-chat--prep-share .prep-share-option-sent {
    opacity: 1;
  }
}

.prep-check--done {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}

.prep-check--done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Summary, partner, docs mocks */

.summary-mock,
.partner-mock {
  width: 100%;
  max-width: 320px;
}

.docs-mock {
  width: 100%;
  max-width: 340px;
}

.hero-phone-display--docs {
  aspect-ratio: 9 / 19;
  min-height: 0;
}

.hero-phone-header--docs {
  justify-content: flex-start;
}

.hero-phone-doc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-phone-screen-docs {
  padding: 12px 14px 16px;
  justify-content: flex-start;
  overflow-y: auto;
}

.hero-phone-screen-docs:has(> .doc-summary) {
  position: relative;
  padding: 11px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 58, 56, 0.18) transparent;
}

.hero-phone-screen-docs:has(> .doc-summary)::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 20px;
  margin-top: -20px;
  background: linear-gradient(to bottom, transparent, var(--chat-background));
  pointer-events: none;
}

.hero-phone-screen-docs:has(> .doc-summary)::-webkit-scrollbar {
  width: 3px;
}

.hero-phone-screen-docs:has(> .doc-summary)::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 56, 0.18);
  border-radius: 999px;
}

.hero-phone-dock--minimal {
  padding-top: 4px;
  padding-bottom: 2px;
}

/* Document summary mock */

.doc-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-summary-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-summary-badge {
  align-self: flex-start;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary-muted);
  border-radius: var(--radius-sm);
}

.doc-summary-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.doc-summary-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.doc-summary-card {
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(58, 58, 56, 0.04);
}

.doc-summary-card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.doc-summary-card-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

.doc-summary-attribution {
  margin: 8px 0 0;
  font-size: 10px;
  font-style: italic;
  color: var(--text-tertiary);
}

.doc-summary-findings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-summary-findings li {
  position: relative;
  padding: 0 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-primary);
}

.doc-summary-findings li + li {
  margin-top: 6px;
}

.doc-summary-findings li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.doc-summary-alert {
  padding: 12px;
  background: var(--terracotta-muted);
  border: 1px solid rgba(166, 106, 74, 0.35);
  border-radius: var(--radius-md);
}

.doc-summary-alert-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
}

.doc-summary-alert-heading svg {
  flex-shrink: 0;
  color: var(--accent);
}

.doc-summary-alert-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent-deep);
}

.doc-summary-actions {
  display: flex;
}

.doc-summary-btn {
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
}

.doc-summary-btn--primary {
  color: var(--white);
  background: var(--primary);
}

.doc-summary-btn--full {
  flex: 1;
  width: 100%;
}

.doc-summary-disclaimer {
  margin: 0;
  font-size: 10px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  color: var(--text-tertiary);
}

/* Documents phone mock — 12% smaller to fit screen */
.hero-phone-screen-docs > .doc-summary {
  gap: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-header {
  gap: 5px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-badge {
  padding: 3px 7px;
  font-size: 8px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-title {
  font-size: 18px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-meta {
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-card {
  padding: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-card-title {
  margin-bottom: 5px;
  font-size: 12px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-card-body {
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-attribution {
  margin-top: 7px;
  font-size: 9px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-findings li {
  padding: 0 0 0 14px;
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-findings li::before {
  top: 0.5em;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-alert {
  padding: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-alert-heading {
  gap: 5px;
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-alert-body {
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-btn {
  padding: 10px 11px;
  font-size: 11px;
}

.hero-phone-screen-docs > .doc-summary .doc-summary-disclaimer {
  font-size: 9px;
}

/* Appointment session summary mock */

.appt-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.appt-summary .doc-summary-card {
  padding: 12px 13px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(58, 58, 56, 0.07);
  min-width: 0;
}

.appt-summary .doc-summary-card-title {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.appt-summary .doc-summary-card-body {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow-wrap: break-word;
}

.appt-summary .doc-summary-findings li {
  padding: 0 0 0 15px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-primary);
  overflow-wrap: break-word;
  border-bottom: none;
}

.appt-summary .doc-summary-findings li + li {
  margin-top: 6px;
}

.appt-summary .doc-summary-findings li::before {
  top: 0.5em;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--primary);
}

.appt-summary-actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.appt-summary-actions li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.appt-summary-actions li > span:last-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.appt-summary-actions li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.appt-summary-actions li:first-child {
  padding-top: 0;
}

.appt-summary-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 1.5px solid var(--primary-muted);
  border-radius: 4px;
  background: var(--white);
}

.hero-phone-display--docs:has(.appt-summary) .hero-phone-dock--minimal {
  background: var(--background);
  border-top: none;
  padding-bottom: 4px;
}

.hero-phone-screen-docs:has(.appt-summary) {
  position: relative;
  padding: 4px 12px 12px;
  min-width: 0;
  overflow-x: hidden;
  background: var(--background);
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 58, 56, 0.18) transparent;
}

.hero-phone-display--docs:has(.hero-phone-header--session) {
  background: var(--white);
}

.hero-phone-display--docs:has(.hero-phone-header--session) .hero-phone-status,
.hero-phone-display--docs:has(.hero-phone-header--session) .hero-phone-header--session {
  background: var(--screen-cream);
}

.hero-phone-display--docs:has(.hero-phone-header--session):has(.appt-transcript-body) .hero-phone-dock--minimal {
  background: var(--white);
  border-top: none;
  padding-bottom: 4px;
}

.hero-phone-display--docs:has(.hero-phone-header--session):has(.appt-transcript-body) .hero-phone-screen-docs {
  border-radius: 0;
}

.hero-phone-screen-docs:has(.appt-transcript-body) {
  padding: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.hero-phone-screen-docs:has(.appt-summary)::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 20px;
  margin-top: -20px;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
}

.hero-phone-screen-docs:has(.appt-summary)::-webkit-scrollbar,
.hero-phone-screen-docs:has(.appt-transcript-body)::-webkit-scrollbar {
  width: 3px;
}

.hero-phone-screen-docs:has(.appt-summary)::-webkit-scrollbar-thumb,
.hero-phone-screen-docs:has(.appt-transcript-body)::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 56, 0.18);
  border-radius: 999px;
}

.hero-phone-display--docs:has(.appt-summary) .hero-phone-back svg,
.hero-phone-display--docs:has(.hero-phone-header--session) .hero-phone-back svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

/* Session dual mock — summary + transcript */

.session-dual-mock {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--space-lg);
  width: 100%;
  max-width: calc(var(--session-mock-width, 240px) * 2 + var(--space-lg) + 2rem);
}

.session-mock-pair {
  --session-mock-width: 240px;
  --session-mock-design-width: 268px;
  --session-mock-scale: calc(var(--session-mock-width) / var(--session-mock-design-width));
  --session-mock-design-height: calc(var(--session-mock-design-width) * 19 / 9 + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
  width: var(--session-mock-width);
  overflow: hidden;
}

.session-mock-pair.hero-chat {
  width: var(--session-mock-width);
}

.session-mock-pair > .hero-phone {
  align-self: flex-start;
  width: var(--session-mock-design-width);
  max-width: none;
  transform: scale(var(--session-mock-scale));
  transform-origin: top left;
  margin-bottom: calc(var(--session-mock-design-height) * (var(--session-mock-scale) - 1));
}

.session-mock-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.session-mock-arrow {
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 24px;
  padding: 0 var(--space-xs);
  font-size: 16px;
  line-height: 1;
  color: var(--primary-muted);
}

/* Appointment session header — summary + transcript */

.hero-phone-header--session {
  align-items: stretch;
  padding: 8px 12px 10px;
  background: var(--screen-cream);
  border-bottom: none;
}

.appt-session-header {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.appt-session-title-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.hero-phone-header--session .hero-phone-back {
  flex-shrink: 0;
  align-self: flex-start;
  width: 26px;
  height: 26px;
  margin: 2px 0 0 -5px;
  color: var(--text-primary);
}

.appt-session-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.15px;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.appt-session-meta {
  margin: 0;
  padding-left: 21px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.appt-segment {
  position: relative;
  display: flex;
  gap: 2px;
  margin-top: 12px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 11px;
}

.appt-segment::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(58, 58, 56, 0.08);
}

.appt-segment-tab {
  flex: 1;
  padding: 7px 8px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--text-secondary);
  border-radius: 8px;
}

.appt-segment-tab--active {
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
}

/* Appointment transcript mock */

.appt-transcript-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 14px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 58, 56, 0.12) transparent;
}

.appt-transcript-body::-webkit-scrollbar {
  width: 3px;
}

.appt-transcript-body::-webkit-scrollbar-thumb {
  background: rgba(58, 58, 56, 0.18);
  border-radius: 999px;
}

.appt-transcript-line {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.appt-transcript-speaker {
  font-weight: 600;
}

.appt-transcript-speaker--provider {
  color: var(--primary);
}

.appt-transcript-speaker--user {
  color: var(--accent-deep);
}

@media (max-width: 900px) {
  .session-dual-mock {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
    max-width: none;
  }

  .session-mock-arrow {
    display: none;
  }

  .session-mock-pair,
  .session-mock-pair.hero-chat {
    --session-mock-width: min(72vw, 240px);
    width: var(--session-mock-width);
  }
}

.mini-mock {
  width: 100%;
  max-width: 340px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.mini-mock-quiet .mock-bubble.assistant {
  background: var(--white);
}

.mock-bubble {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 100%;
}

.mock-bubble + .mock-bubble {
  margin-top: 6px;
}

.mock-bubble.user {
  background: var(--user-bubble);
  border: 1px solid var(--user-bubble-border);
  color: var(--text-primary);
}

.mock-bubble.assistant {
  background: var(--assistant-bubble);
  border: none;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 700px) {
  .hero-pains {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
  padding: 9px 16px 9px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-pill, 999px);
}

.eyebrow-icon {
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.92;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

h2,
h3,
.feature-copy h3,
.section-header h2,
.signup-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
}

.hero-note {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Pain points */

.pain-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pain-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-secondary);
}

.pain-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta-muted);
  color: var(--accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

/* Phone mockup */

.phone-mockup {
  justify-self: center;
  width: min(100%, 300px);
}

.phone-frame {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 24px 48px rgba(58, 58, 56, 0.08),
    0 4px 12px rgba(58, 58, 56, 0.04);
}

.phone-notch {
  width: 80px;
  height: 6px;
  margin: 4px auto 12px;
  background: var(--border);
  border-radius: 999px;
}

.phone-screen {
  background: var(--background);
  border-radius: 26px;
  overflow: hidden;
  min-height: 420px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.mock-mark {
  width: 24px;
  height: 24px;
}

.mock-week {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.mock-greeting {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.mock-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.mock-bubble {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
  max-width: 92%;
}

.mock-bubble.user {
  align-self: flex-end;
  background: var(--user-bubble);
  border: 1px solid var(--user-bubble-border);
  color: var(--text-primary);
}

.mock-bubble.assistant {
  align-self: flex-start;
  background: var(--assistant-bubble);
  border: none;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mock-input {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Sections */

section {
  padding: var(--space-4xl) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-header.centered {
  text-align: center;
  margin-inline: auto;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin: 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border-light);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.step-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--sage-muted);
  border-radius: 50%;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Features — legacy row selectors removed; see .feature-block */

.feature-copy p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.features-stack > .feature-block:first-child .feature-copy p {
  font-size: 1.1875rem;
}

.feature-note {
  font-size: 14px !important;
  color: var(--text-tertiary) !important;
  font-style: italic;
}

.mini-mock-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.mini-mock-quiet {
  background: transparent;
}

.summary-block {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}

.summary-block:first-child {
  border-top: none;
  padding-top: 0;
}

.mock-footnote {
  margin: var(--space-md) 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.prep-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.summary-block strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.summary-block p {
  margin: 0;
  color: var(--text-secondary);
}

.partner-push {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}

.partner-push:last-child {
  border-bottom: none;
}

.partner-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent-deep);
  border-radius: 50%;
}

.appointment-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--background);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.appointment-bar {
  width: 3px;
  border-radius: 999px;
  background: #a66a4a;
  flex-shrink: 0;
}

.appointment-item.planned .appointment-bar {
  background: var(--text-tertiary);
}

.appointment-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.appointment-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.planning-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.planning-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-muted);
  border-radius: 6px;
  flex-shrink: 0;
}

.planning-check.done {
  background: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.planning-check.done::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* AU differentiation */

.au-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.au-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}

.au-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Not section */

.not-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.not-card {
  padding: var(--space-xl);
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.not-card h3 {
  font-size: 16px;
}

.not-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.emergency-note {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--error-surface);
  border: 1px solid #e8d5d1;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--error);
}

.emergency-note strong {
  display: block;
  margin-bottom: var(--space-xs);
}

/* Signup form */

.signup-section {
  background: linear-gradient(180deg, var(--sage-muted) 0%, var(--background) 100%);
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.signup-copy p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.signup-form-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(58, 58, 56, 0.06);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.hidden {
  display: none;
}

label,
.label-like {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.label-optional {
  font-weight: 400;
  color: var(--text-tertiary);
}

input[type="email"],
input[type="date"],
select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-muted);
  box-shadow: 0 0 0 3px rgba(107, 143, 132, 0.15);
}

input.error,
select.error {
  border-color: var(--error);
}

.field-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--error);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--sage-muted);
}

.radio-option input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.radio-label {
  font-size: 15px;
  font-weight: 500;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.checkbox-option input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.checkbox-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.form-submit {
  width: 100%;
  margin-top: 0;
}

.turnstile-wrap {
  margin-top: var(--space-md);
}

.turnstile-wrap:empty {
  display: none;
}

.turnstile-wrap:not(:empty) {
  min-height: 65px;
  margin-bottom: var(--space-md);
}

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: var(--sage-muted);
  color: var(--success);
}

.form-message.error {
  background: var(--error-surface);
  color: var(--error);
}

.form-privacy {
  margin-top: var(--space-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* Footer */

.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

.footer-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Responsive */

@media (max-width: 900px) {
  .feature-block-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-visual {
    align-items: flex-start;
  }

  .feature-mock-note {
    text-align: left;
  }

  .signup-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps,
  .au-grid,
  .not-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--space-2xl);
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 14px;
  }

  section {
    padding: var(--space-3xl) 0;
  }

  .signup-form-card {
    padding: var(--space-lg);
  }
}


/* Session recording sequence embed */
:root{
    --sage:#6B8F84;
    --sage-dark:#4F6E64;
    --ink:#22261F;
    --grey:#9AA0987A;
    --grey-text:#8B9089;
    --frame-w: 240px;
    --frame-h: 497px;
  }

  .frankie-embed-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    width:min(100%, 272px);
    padding:24px 0;
    background:transparent;
  }

  .frankie-embed-wrap figure{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin:0;
  }

  .phone{
    position:relative;
    width:var(--frame-w);
    height:var(--frame-h);
    border-radius:28px;
    background:transparent;
    box-shadow:0 12px 40px rgba(20,30,25,0.14), 0 2px 8px rgba(20,30,25,0.08);
    overflow:hidden;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  }

  .layer-record{
    background:#fff;
  }

  .layer-summary,
  .layer-transcript{
    background:#F9F8F3;
  }

  /* ---------- shared layers ---------- */
  .layer{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
  }

  /* ---------- record screen (built, not a screenshot) ---------- */
  .status-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 18px 4px 18px;
    font-size:11px;
    font-weight:600;
    color:var(--ink);
  }
  .notch{
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    width:70px;
    height:16px;
    background:#1b1d1a;
    border-radius:10px;
  }
  .status-icons{ display:flex; gap:4px; align-items:center; }
  .status-icons svg{ display:block; }

  .header-row{
    padding:10px 18px 8px 18px;
    border-bottom:1px solid #ECEAE3;
  }
  .header-top{ display:flex; align-items:center; gap:8px; }
  .chevron{ font-size:18px; color:var(--ink); font-weight:400; }
  .header-title{
    font-family:Georgia,'Times New Roman',serif;
    font-weight:700;
    font-size:15px;
    color:var(--ink);
    line-height:1.2;
  }
  .header-sub{
    margin:2px 0 0 20px;
    font-size:10.5px;
    color:var(--grey-text);
  }

  .record-body{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding-bottom:12px;
  }

  .record-btn-wrap{
    position:relative;
    width:76px;
    height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .pulse-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px solid var(--sage);
    opacity:0.55;
    animation:pulse 2.2s ease-out infinite;
  }
  .pulse-ring.delay{
    animation-delay:1.1s;
  }
  @keyframes pulse{
    0%{ transform:scale(0.8); opacity:0.55; }
    100%{ transform:scale(1.7); opacity:0; }
  }
  .record-btn{
    width:58px;
    height:58px;
    border-radius:50%;
    background:var(--sage);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 16px rgba(107,143,132,0.4);
  }

  .record-label{
    font-size:12px;
    color:var(--grey-text);
    letter-spacing:0.2px;
  }

  .waveform{
    display:flex;
    align-items:flex-end;
    gap:3px;
    height:16px;
  }
  .waveform span{
    width:3px;
    background:#D8DCD5;
    border-radius:2px;
  }

  /* ---------- summary & transcript screens ---------- */
  .session-tabs{
    display:flex;
    margin:10px 14px 8px;
    padding:2px;
    border:1px solid #E5E3DC;
    border-radius:9px;
    background:#fff;
  }
  .session-tab{
    flex:1;
    padding:5px 0;
    border-radius:7px;
    font-size:9.5px;
    font-weight:600;
    text-align:center;
    color:var(--ink);
    line-height:1.2;
  }
  .session-tab--active{
    background:var(--sage);
    color:#fff;
  }

  .session-scroll{
    flex:1;
    overflow:hidden;
    padding:0 14px 6px;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .session-scroll--transcript{
    gap:10px;
  }

  .session-card{
    background:#fff;
    border-radius:10px;
    padding:10px 11px;
    box-shadow:0 1px 4px rgba(20,30,25,0.06);
  }
  .session-card-title{
    font-size:10.5px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:5px;
  }
  .session-card-body{
    margin:0;
    font-size:9px;
    line-height:1.45;
    color:var(--grey-text);
  }

  .session-key-points{
    margin:0;
    padding:0;
    list-style:none;
  }
  .session-key-points li{
    position:relative;
    padding-left:10px;
    font-size:9px;
    line-height:1.4;
    color:var(--grey-text);
  }
  .session-key-points li + li{
    margin-top:5px;
  }
  .session-key-points li::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:4px;
    height:4px;
    border-radius:50%;
    background:var(--sage);
  }

  .transcript-block{
    margin:0;
  }
  .transcript-speaker{
    display:block;
    font-size:9px;
    font-weight:700;
    color:var(--sage-dark);
    margin-bottom:2px;
  }
  .transcript-block p{
    margin:0;
    font-size:9px;
    line-height:1.45;
    color:var(--grey-text);
  }

  .home-indicator{
    flex-shrink:0;
    width:52px;
    height:3px;
    margin:4px auto 8px;
    border-radius:2px;
    background:#D8DCD5;
  }

  /* ---------- crossfade choreography ---------- */
  .layer{
    animation-duration:6.78s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
  }
  .layer-record{ animation-name:showRecord; }
  .layer-summary{ animation-name:showSummary; }
  .layer-transcript{ animation-name:showTranscript; }

  @keyframes showRecord{
    0%{ opacity:1; }
    19.17%{ opacity:1; }
    25.66%{ opacity:0; }
    93.51%{ opacity:0; }
    100%{ opacity:1; }
  }
  @keyframes showSummary{
    0%{ opacity:0; }
    19.17%{ opacity:0; }
    25.66%{ opacity:1; }
    56.88%{ opacity:1; }
    63.38%{ opacity:0; }
    100%{ opacity:0; }
  }
  @keyframes showTranscript{
    0%{ opacity:0; }
    56.88%{ opacity:0; }
    63.38%{ opacity:1; }
    93.51%{ opacity:1; }
    100%{ opacity:0; }
  }

  /* ---------- progress dots ---------- */
  .dots{
    display:flex;
    justify-content:center;
    gap:7px;
    margin-top:16px;
  }
  .dots span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#D8DCD5;
    animation-duration:6.78s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
  }
  .dot-record{ animation-name:dotRecord; }
  .dot-summary{ animation-name:dotSummary; }
  .dot-transcript{ animation-name:dotTranscript; }
  @keyframes dotRecord{
    0%{ background:var(--sage); }
    19.17%{ background:var(--sage); }
    25.66%{ background:#D8DCD5; }
    93.51%{ background:#D8DCD5; }
    100%{ background:var(--sage); }
  }
  @keyframes dotSummary{
    0%{ background:#D8DCD5; }
    19.17%{ background:#D8DCD5; }
    25.66%{ background:var(--sage); }
    56.88%{ background:var(--sage); }
    63.38%{ background:#D8DCD5; }
    100%{ background:#D8DCD5; }
  }
  @keyframes dotTranscript{
    0%{ background:#D8DCD5; }
    56.88%{ background:#D8DCD5; }
    63.38%{ background:var(--sage); }
    93.51%{ background:var(--sage); }
    100%{ background:#D8DCD5; }
  }

  @media (prefers-reduced-motion: reduce){
    .layer, .dots span, .pulse-ring{ animation:none !important; }
    .layer-record{ opacity:1; }
    .layer-summary, .layer-transcript{ opacity:0; }
  }
