:root {
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-soft: #f2f7f5;
  --surface-blue: #edf4ff;
  --surface-rose: #fff3f3;
  --surface-mint: #e8f7f1;
  --ink: #16233a;
  --ink-soft: #7d8798;
  --line: #e6ebf2;
  --green: #1aa34d;
  --green-deep: #148548;
  --teal: #2eb89c;
  --blue: #3d8ad8;
  --blue-soft: #dcecff;
  --orange: #f6a454;
  --shadow: 0 14px 34px rgba(18, 30, 52, 0.06);
  --phone-shadow: 0 18px 42px rgba(13, 34, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: transparent;
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(380px, 430px);
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 40px 24px;
}

.embed-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.embed-stage {
  width: 100%;
  min-height: 100vh;
  align-items: flex-start;
}

.story-copy {
  max-width: 420px;
}

.eyebrow,
.systems-title,
.metric-label,
.sheet-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow,
.sheet-kicker {
  color: var(--teal);
}

.brand-wordmark {
  margin-top: 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 54%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.story-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.control-btn {
  border: 1px solid rgba(26, 163, 77, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-deep);
  border-radius: 18px;
  padding: 12px 18px;
  cursor: pointer;
}

.control-btn.primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 56%, var(--blue) 100%);
  box-shadow: 0 14px 28px rgba(46, 184, 156, 0.2);
}

.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  display: none;
}

.ambient-left {
  width: 180px;
  height: 180px;
  left: -10px;
  top: 40px;
  background: rgba(46, 184, 156, 0.2);
}

.ambient-right {
  width: 220px;
  height: 220px;
  right: -24px;
  bottom: 70px;
  background: rgba(61, 138, 216, 0.14);
}

.iphone-frame {
  position: relative;
  width: 390px;
  height: 844px;
  padding: 14px;
  border-radius: 52px;
  background: linear-gradient(160deg, #1a2735 0%, #0f1720 100%);
  box-shadow: var(--phone-shadow);
  transform: scale(0.84);
  transform-origin: top center;
}

.iphone-notch {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 148px;
  height: 34px;
  border-radius: 0 0 22px 22px;
  background: #0d1118;
  z-index: 20;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #fbfcff;
}

.launch-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, #24b36b 0%, #2eb89c 48%, #4594dc 100%);
  opacity: 1;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.launch-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.launch-content {
  text-align: center;
  color: #ffffff;
}

.launch-wordmark {
  font-family: "Quicksand", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.launch-tagline {
  margin-top: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 14px 14px 82px;
  font-family: "Manrope", sans-serif;
}

.view-frame {
  position: relative;
  height: calc(100% - 24px);
  margin-top: 6px;
}

.app-view {
  position: absolute;
  inset: 0 0 0 0;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.app-view.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.app-view::-webkit-scrollbar {
  display: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.status-time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f1720;
}

.cellular-icon {
  width: 15px;
  height: 11px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.cellular-icon span {
  width: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.cellular-icon span:nth-child(1) {
  height: 4px;
  opacity: 0.72;
}

.cellular-icon span:nth-child(2) {
  height: 6px;
  opacity: 0.82;
}

.cellular-icon span:nth-child(3) {
  height: 8px;
  opacity: 0.92;
}

.cellular-icon span:nth-child(4) {
  height: 10px;
}

.wifi-icon {
  position: relative;
  width: 15px;
  height: 11px;
  display: inline-block;
}

.wifi-arc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.6px solid currentColor;
  border-top-color: currentColor;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom: none;
  border-radius: 999px 999px 0 0;
}

.wifi-outer {
  top: 0;
  width: 15px;
  height: 8px;
  opacity: 0.82;
}

.wifi-mid {
  top: 3px;
  width: 10px;
  height: 5px;
  opacity: 0.92;
}

.wifi-inner {
  top: 6px;
  width: 5px;
  height: 2px;
}

.wifi-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.battery {
  width: 24px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.5px;
}

.battery::before {
  content: "";
  position: absolute;
  top: 2.7px;
  right: -3px;
  width: 1.8px;
  height: 4.6px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.battery-level {
  width: 76%;
  height: 100%;
  border-radius: 1.6px;
  background: currentColor;
}

.family-switcher {
  margin-top: 10px;
}

.switcher-row {
  display: flex;
  align-items: start;
  gap: 10px;
}

.person-tab {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8b95a5;
  cursor: pointer;
}

.person-tab span {
  font-size: 12px;
  font-weight: 700;
}

.person-tab.is-active span {
  color: var(--green-deep);
}

.portrait-ring {
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ring-green {
  border: 3px solid var(--teal);
}

.ring-blue {
  border: 2px solid #d6dfeb;
}

.person-tab.is-active .ring-green {
  box-shadow: 0 0 0 3px rgba(46, 184, 156, 0.12);
}

.ring-add {
  border: 2px dashed #d6dee8;
  display: grid;
  place-items: center;
  background: #fbfcfe;
}

.add-plus {
  font-size: 24px;
  line-height: 1;
  color: #b2bcc9;
}

.switcher-caption {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
  padding-left: 2px;
}

.switcher-caption strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
}

.switcher-caption span {
  font-size: 11px;
  color: #9aa5b5;
  white-space: nowrap;
}

.dashboard-section {
  margin-top: 16px;
}

.records-header-card {
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ask-thread {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
}

.ask-segment {
  display: none;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ask-segment.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.ask-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.user-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 56%, var(--blue) 100%);
  color: #fff;
}

.ask-answer-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ask-answer-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.ask-answer-card h3 {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  min-height: 18px;
}

.ask-answer-card p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #5c697d;
  min-height: 48px;
}

.ask-points,
.trend-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ask-point,
.trend-item {
  padding: 10px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #e8edf3;
}

.ask-point strong,
.trend-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  min-height: 16px;
}

.ask-point span,
.trend-item span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
  color: #7b8798;
  min-height: 14px;
}

.trend-label {
  margin-top: 0;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}

.type-target.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: blinkCaret 0.8s steps(1) infinite;
}

.ask-alert-pill,
.ask-followup {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.45;
}

.ask-alert-pill {
  color: var(--green-deep);
  background: linear-gradient(180deg, #e9faf2 0%, #dff6ec 100%);
  box-shadow: inset 0 0 0 1px rgba(46, 184, 156, 0.18);
}

.ask-followup {
  color: var(--green-deep);
  background: linear-gradient(180deg, #e9faf2 0%, #dff6ec 100%);
  box-shadow: inset 0 0 0 1px rgba(46, 184, 156, 0.18);
}

.ask-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@keyframes blinkCaret {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.record-range-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f7f1;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.record-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8fb;
  border: 1px solid #e5ebf2;
  color: #99a4b4;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.record-search span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-search-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.record-search-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.record-search-icon::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 5px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.timeline {
  position: relative;
  margin-top: 14px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(46, 184, 156, 0.28) 0%, rgba(61, 138, 216, 0.18) 100%);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 10px;
}

.timeline-dot {
  position: absolute;
  left: -15px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 32, 0.06);
}

.visit-dot {
  background: var(--green);
}

.med-dot {
  background: var(--blue);
}

.lab-dot {
  background: var(--orange);
}

.timeline-card {
  width: 100%;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.timeline-date {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #93a0af;
}

.timeline-title-row {
  margin-top: 6px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.timeline-title-row strong {
  font-size: 13px;
  line-height: 1.28;
}

.timeline-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eff4ff;
  color: #5b83d6;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.timeline-card p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #5b677b;
}

.timeline-summary {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-summary span,
.mini-note {
  font-size: 10px;
  color: #7b8899;
  padding: 5px 7px;
  border-radius: 999px;
  background: #f4f7fa;
}

.mini-note {
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
}

.timeline-summary .ai-highlight-pill,
.mini-note.ai-highlight-pill {
  color: var(--green-deep);
  background: linear-gradient(180deg, #e9faf2 0%, #dff6ec 100%);
  box-shadow: inset 0 0 0 1px rgba(46, 184, 156, 0.18);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green) 0%, var(--teal) 100%);
}

.section-meta {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

.muted {
  color: #a2aab8;
}

.insight-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card,
.appointment-card,
.med-card,
.question-sheet,
.embedded-note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card {
  border-radius: 18px;
  padding: 12px;
}

.alert-card {
  background: var(--surface-rose);
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-emoji {
  font-size: 16px;
}

.metric-label {
  color: #ff6161;
  font-size: 10px;
}

.metric-value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.embedded-note-card {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  border-style: dashed;
  border-color: #e3dada;
}

.ai-note-icon,
.banner-dot {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-mint);
  color: var(--green-deep);
  font-weight: 800;
}

.inline-banner-copy strong {
  font-size: 11px;
  color: var(--green-deep);
}

.inline-banner-copy span {
  color: #9aa5b5;
  font-size: 11px;
}

.days-pill {
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #5996ff;
  font-size: 12px;
  font-weight: 800;
}

.appointment-card {
  border-radius: 18px;
  padding: 12px;
}

.appointment-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.appointment-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  font-size: 22px;
}

.appointment-copy {
  flex: 1;
}

.appointment-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}

.appointment-copy span {
  display: block;
  margin-top: 2px;
  color: #98a2b1;
  font-size: 11px;
}

.share-box {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #22a06b 0%, #1c8b60 100%);
  color: #fff;
  font-size: 16px;
}

.inline-banner {
  margin-top: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1.5px dashed #cdd9d1;
}

.is-interactive {
  cursor: pointer;
}

.inline-banner-copy {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.med-card {
  border-radius: 16px;
  padding: 11px 11px 10px;
}

.med-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 6px;
}

.med-head strong {
  display: block;
  font-size: 13px;
  line-height: 1.12;
}

.med-head span,
.med-sub {
  color: #98a2b1;
  font-size: 10px;
}

.med-sub {
  margin-top: -2px;
  text-align: right;
}

.med-count {
  font-size: 15px;
  font-weight: 800;
}

.green-count {
  color: #1aa36f;
}

.orange-count {
  color: var(--orange);
}

.progress {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf1f4;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24a57a 0%, #1d996f 100%);
}

.progress .orange-bar {
  background: linear-gradient(90deg, #ffb26c 0%, #f49d46 100%);
}

.tab-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(19, 35, 58, 0.06);
  backdrop-filter: blur(10px);
}

.tab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #bcc4d0;
  font-size: 9px;
  font-weight: 700;
}

.tab.active {
  color: var(--green-deep);
}

.tab-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.insights-icon::before,
.records-icon::before,
.ask-icon::before,
.insights-icon::after,
.records-icon::after,
.ask-icon::after {
  content: "";
  position: absolute;
}

.insights-icon::before {
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 13px;
  border-radius: 4px;
  border: 1.8px solid currentColor;
}

.insights-icon::after {
  left: 3px;
  right: 3px;
  top: 1px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 3px no-repeat;
}

.records-icon::before {
  inset: 2px 1px 1px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.records-icon::after {
  left: 4px;
  top: 4px;
  width: 8px;
  height: 1.8px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.ask-icon::before {
  left: 1px;
  top: 1px;
  width: 14px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-radius: 7px;
}

.ask-icon::after {
  left: 6px;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: skewX(-22deg);
}

.tap-indicator {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(46, 184, 156, 0.35);
  background: rgba(46, 184, 156, 0.12);
  right: 34px;
  top: 240px;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.tap-indicator.is-visible {
  animation: tapPulse 1.25s ease-in-out;
}

.question-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 18px;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(102%);
  transition: transform 420ms ease;
  z-index: 15;
}

.question-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d6dde6;
}

.sheet-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-header h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f2f5f8;
  color: #8190a3;
  cursor: pointer;
}

.sheet-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5faf8;
  color: #556277;
  line-height: 1.5;
  font-size: 12px;
}

.question-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-item {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.question-index {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-mint);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
}

.question-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #35445b;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.primary-btn,
.secondary-btn {
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.primary-btn {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 56%, var(--blue) 100%);
}

.secondary-btn {
  border: 1px solid rgba(26, 163, 77, 0.18);
  color: var(--green-deep);
  background: #fff;
}

@keyframes tapPulse {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 16px 40px;
  }

  .story-copy {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
  }

  .controls {
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .iphone-frame {
    width: min(100vw - 18px, 390px);
    height: min(calc((100vw - 18px) * 2.164), 844px);
  }
}
