:root {
  color-scheme: light;
  --ink: #20211d;
  --muted: #667085;
  --line: #e2e6f0;
  --paper: #fbfcff;
  --cream: #f1f5ff;
  --sage: #1fa084;
  --sage-dark: #145f78;
  --coral: #6f5cf6;
  --blue: #586fd0;
  --amber: #f0ae4d;
  --mint: #0bb96f;
  --rose: #d88a89;
  --mika-purple: #6f5cf6;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(31, 36, 29, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #eef1ff 0%, #f8fbff 44%, #e9fbf3 100%);
  color: var(--ink);
}

body::selection {
  background: rgba(111, 92, 246, 0.22);
}

.language-switch {
  position: fixed;
  z-index: 80;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.65rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(88, 111, 208, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.8rem 2rem rgba(37, 45, 65, 0.12);
  backdrop-filter: blur(18px);
}

.language-switch button {
  border: 0;
  background: transparent;
  color: #596171;
  font-size: 0.84rem;
  font-weight: 900;
}

.language-switch button.active {
  color: var(--mika-purple);
}

.language-switch span {
  color: #a5adbd;
  font-weight: 900;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: minmax(28rem, 44rem) minmax(20rem, 25rem);
  align-items: start;
  justify-content: center;
  min-height: 100vh;
  gap: 3.2rem;
  padding: 2rem;
}

.brand-panel {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  padding: 1rem 0 3rem;
}

.launch-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(88, 111, 208, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.launch-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #edf8f5;
  color: #137a69;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand-lockup {
  display: grid;
  gap: 0.5rem;
}

.logo-wordmark {
  width: min(52vw, 12rem);
  height: auto;
  mix-blend-mode: multiply;
}

.phone-wordmark {
  width: 9.5rem;
  height: auto;
  mix-blend-mode: multiply;
}

.header-wordmark {
  display: none;
  width: 4.85rem;
  height: auto;
  margin-left: auto;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 43rem;
  color: #17171d;
  font-size: clamp(4.3rem, 9vw, 7.5rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: 1.55rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.brand-copy {
  max-width: 38rem;
  color: #303746;
  font-size: 1.25rem;
  line-height: 1.42;
}

.hero-waitlist {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 18rem);
  gap: 1rem;
  max-width: 38rem;
  align-items: center;
}

.hero-waitlist input {
  min-height: 3.55rem;
  border-color: rgba(88, 111, 208, 0.22);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 800;
  padding-inline: 1.1rem;
}

.hero-waitlist .brand-cta {
  min-height: 3.55rem;
  padding-inline: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

.brand-cta {
  min-height: 3.4rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--mika-purple);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 1rem 2.2rem rgba(111, 92, 246, 0.28);
}

.hero-actions span {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--mika-purple);
  background: transparent;
  color: var(--mika-purple);
  font-size: 1rem;
  font-weight: 950;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signal-row span {
  display: grid;
  min-height: 2.25rem;
  place-items: center;
  padding: 0 0.75rem;
  border: 1px solid rgba(88, 111, 208, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #384153;
  font-size: 0.8rem;
  font-weight: 800;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.flow-card {
  display: grid;
  align-content: start;
  min-height: 10.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(88, 111, 208, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-card.hot {
  background: #fff0f4;
  border-color: rgba(239, 107, 128, 0.28);
}

.flow-card span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--mika-purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
}

.flow-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.94rem;
  line-height: 1.05;
}

.flow-card p {
  margin: 0;
  color: #596171;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.32;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.moment-card {
  position: relative;
  min-height: 18.5rem;
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1.2rem 3rem rgba(37, 45, 65, 0.13);
}

.moment-card h2 {
  max-width: 15rem;
  color: #17171d;
  font-size: 2rem;
  line-height: 0.98;
}

.moment-card.before {
  background:
    linear-gradient(135deg, rgba(111, 92, 246, 0.18), rgba(240, 174, 77, 0.2)),
    #fff;
}

.moment-card.after {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #eef1ff 0%, #e7fbf1 100%);
}

.moment-card.after h2 {
  max-width: 18rem;
  margin-bottom: 1rem;
}

.chaos-stack {
  position: absolute;
  inset: auto 1rem 1rem;
  min-height: 10rem;
}

.mini-note {
  position: absolute;
  display: grid;
  min-height: 3rem;
  place-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  box-shadow: 0 0.85rem 1.6rem rgba(37, 45, 65, 0.14);
}

.mini-note.purple {
  top: 0.2rem;
  left: 0.3rem;
  width: 8.4rem;
  background: #6f5cf6;
  transform: rotate(-8deg);
}

.mini-note.blue {
  top: 2.4rem;
  right: 0.4rem;
  width: 9rem;
  background: #3889b8;
  transform: rotate(6deg);
}

.mini-note.green {
  bottom: 0.9rem;
  left: 1.6rem;
  width: 7.8rem;
  background: #169e86;
  transform: rotate(5deg);
}

.mini-note.coral {
  right: 1rem;
  bottom: 0;
  width: 6.8rem;
  background: #ef6b80;
  transform: rotate(-4deg);
}

.brief-preview {
  position: relative;
  min-height: 0;
  margin-top: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(37, 45, 65, 0.14);
}

.brief-preview::before {
  content: "7:00 AM";
  display: inline-grid;
  min-height: 2rem;
  place-items: center;
  margin-bottom: 0.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #586fd0;
  font-size: 0.74rem;
  font-weight: 950;
}

.brief-preview strong {
  display: block;
  color: #17171d;
  font-size: 1.55rem;
  line-height: 1;
}

.brief-preview p {
  margin: 0.6rem 0 0;
  color: #596171;
  line-height: 1.35;
}

.trust-copy {
  max-width: 38rem;
  color: #596171;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
}

.social-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.social-proof article {
  min-height: 9rem;
  padding: 1rem;
  border-radius: 8px;
  background: #17171d;
  color: #fff;
}

.social-proof p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.22;
}

.social-proof strong {
  display: block;
  color: #bfc8da;
  font-size: 0.75rem;
  line-height: 1.25;
}

.prototype-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 24.5rem);
  height: min(52rem, calc(100vh - 2rem));
  min-height: 43rem;
  border: 0.6rem solid #1c1d19;
  border-radius: 2.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.add-button {
  position: relative;
}

.status-bar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1.25rem 0.45rem;
  color: rgba(32, 33, 29, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 3.5rem 1rem 6.25rem;
}

.screen.active {
  display: block;
}

.app-screen {
  background: var(--paper);
}

#onboarding {
  padding: 4rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, #f0f3ff, var(--paper) 44%),
    var(--paper);
}

.onboarding-hero {
  display: grid;
  gap: 0.75rem;
  min-height: 13.25rem;
  align-content: end;
}

.onboarding-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.progress-dots {
  display: flex;
  gap: 0.45rem;
  margin: 1rem 0;
}

.dot {
  width: 2.3rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: #dad9cf;
}

.dot.active {
  background: var(--mika-purple);
}

.onboarding-card,
.parsed-card,
.detail-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.onboarding-step {
  display: none;
  min-height: 15.2rem;
}

.onboarding-step.active {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

textarea {
  min-height: 7rem;
  resize: none;
  line-height: 1.4;
}

.kid-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: end;
  gap: 0.7rem;
}

.avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.avatar.rose {
  background: var(--rose);
}

.avatar.blue {
  background: var(--blue);
}

.connect-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 8px;
  background: #eef8ff;
}

.connect-card svg {
  width: 1.7rem;
  min-width: 1.7rem;
  stroke: var(--sage-dark);
  stroke-width: 1.8;
  fill: none;
}

.connect-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  color: var(--ink);
  font-weight: 800;
}

.toggle {
  position: relative;
  width: 3.2rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: #d5d6cf;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 0.23rem;
  left: 0.25rem;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.toggle.on {
  background: var(--mika-purple);
}

.toggle.on::after {
  transform: translateX(1.28rem);
}

.onboarding-actions,
.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.icon-labeled {
  min-height: 3rem;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--mika-purple);
  color: var(--paper);
  box-shadow: 0 0.55rem 1.2rem rgba(111, 92, 246, 0.18);
}

.primary-button:disabled,
.brand-cta:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-button.full {
  width: 100%;
  margin-top: 1rem;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: #fffefb;
  color: var(--ink);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--sage-dark);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.icon-button {
  display: grid;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
}

svg {
  width: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  fill: none;
}

.brief-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #145f78, #169e86);
  color: var(--paper);
}

.brief-hero .eyebrow {
  color: #cde1d5;
}

.brief-hero strong {
  display: block;
  line-height: 1.3;
}

.brief-time {
  display: grid;
  width: 3.4rem;
  min-width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.brief-section {
  margin-bottom: 0.75rem;
  padding: 1rem;
  border-left: 0.3rem solid var(--sage);
  border-radius: 8px;
  background: #fffefb;
}

.brief-section p {
  margin: 0;
  color: #4d534d;
  line-height: 1.45;
}

.brief-section.alert {
  border-color: var(--coral);
  background: #fff5f1;
}

.brief-section.calm {
  border-color: var(--blue);
  background: #f4f6ff;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border-radius: 8px;
  background: #e8e7dd;
}

.tabs button {
  min-height: 2.45rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.tabs button.active {
  background: #fffefb;
  color: var(--ink);
}

.task-list {
  display: grid;
  gap: 0.65rem;
}

.task-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 4.9rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  text-align: left;
}

.task-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.task-item em {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #e9f0ea;
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.task-item.overdue {
  border-color: #efc8be;
}

.check-circle {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--sage);
  border-radius: 50%;
}

.toast {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 5.7rem;
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.toast.show {
  display: block;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 18rem;
  margin-bottom: 1rem;
}

.day-col {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
}

.day-col.today {
  border-color: var(--sage-dark);
  background: #eff5f0;
}

.day-col strong {
  font-size: 0.8rem;
}

.event-pill {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.45rem 0.35rem;
  border-radius: 7px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.event-pill.rose {
  background: var(--rose);
}

.event-pill.blue {
  background: var(--blue);
}

.event-pill.mint {
  background: var(--sage);
}

.event-pill.amber {
  background: var(--amber);
  color: #2b2518;
}

.detail-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.meal-list,
.settings-list,
.parsed-card {
  display: grid;
  gap: 0.65rem;
}

.meal-list label {
  grid-template-columns: 3rem 1fr;
  align-items: center;
}

.meal-list span {
  color: var(--sage-dark);
  font-weight: 900;
}

.settings-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
}

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

.settings-list strong {
  text-align: right;
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  grid-template-columns: 1fr 1fr 4.2rem 1fr 1fr;
  align-items: center;
  min-height: 5.1rem;
  padding: 0.55rem 0.7rem 0.75rem;
  border-top: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.96);
  backdrop-filter: blur(16px);
}

.phone.app-ready .bottom-nav {
  display: grid;
}

.nav-button {
  display: grid;
  gap: 0.2rem;
  place-items: center;
  min-height: 3.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-button svg {
  width: 1.2rem;
}

.nav-button.active {
  color: var(--sage-dark);
}

.add-button {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f5cf6, #169e86);
  color: #fff;
  box-shadow: 0 0.6rem 1.4rem rgba(220, 111, 94, 0.36);
}

.add-button svg {
  position: relative;
  z-index: 1;
  width: 1.55rem;
}

.cta-pulse {
  position: relative;
  isolation: isolate;
}

.cta-pulse::after {
  content: "";
  position: absolute;
  inset: -0.38rem;
  z-index: -1;
  border: 2px solid rgba(111, 92, 246, 0.32);
  border-radius: 11px;
  animation: ctaPulse 2.2s ease-out infinite;
}

.feedback-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 24.5rem);
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(88, 111, 208, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1.2rem 3rem rgba(37, 45, 65, 0.12);
}

.feedback-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
  line-height: 1.06;
}

.feedback-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: #596171;
  line-height: 1.38;
}

.footer-waitlist {
  display: grid;
  justify-items: center;
  padding: 4rem 1rem 4.5rem;
  border-top: 1px solid rgba(88, 111, 208, 0.12);
  background: linear-gradient(135deg, #eef8ff, #effbf5);
  text-align: center;
}

.footer-waitlist h2 {
  max-width: 48rem;
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.footer-waitlist p:not(.eyebrow) {
  max-width: 37rem;
  margin-bottom: 1.4rem;
  color: #3a4354;
  line-height: 1.4;
}

.footer-waitlist-form {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(10rem, 14rem);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-waitlist-form input {
  min-height: 3rem;
  background: #fff;
  padding-inline: 1rem;
}

.footer-waitlist-form .brand-cta {
  min-height: 3rem;
}

.footer-waitlist > strong {
  color: #384153;
  font-size: 0.9rem;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.waitlist-form textarea {
  min-height: 8.5rem;
}

.rating-field,
.keyword-field {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-field legend,
.keyword-field legend {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.18rem;
}

.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(88, 111, 208, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #c5cad8;
  font-size: 1.35rem;
  cursor: pointer;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--mika-purple);
  border-color: rgba(111, 92, 246, 0.36);
  background: #f3f0ff;
}

.keyword-field {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.keyword-field legend {
  grid-column: 1 / -1;
}

.keyword-field label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(88, 111, 208, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #384153;
  font-size: 0.82rem;
}

.keyword-field input {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--mika-purple);
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.9rem;
}

.form-footer .brand-cta {
  width: 100%;
}

#waitlist-status {
  margin: 0;
  color: #596171;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.28;
}

#waitlist-status.success {
  color: #137a69;
}

#waitlist-status.error {
  color: #b42318;
}

@keyframes ctaPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.capture-sheet {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: none;
  align-items: end;
  background: rgba(32, 33, 29, 0.32);
}

.capture-sheet.open {
  display: flex;
}

.sheet-panel {
  width: 100%;
  padding: 0.8rem 1rem 1rem;
  border-radius: 1.1rem 1.1rem 0 0;
  background: var(--paper);
}

.sheet-handle {
  width: 2.5rem;
  height: 0.28rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #c9cbc2;
}

.sheet-panel p {
  color: var(--muted);
  line-height: 1.4;
}

.icon-labeled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffefb;
  color: var(--ink);
}

.icon-labeled svg {
  width: 1.1rem;
}

.capture-actions {
  grid-template-columns: 1fr 1fr 1.25fr;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .brand-panel {
    max-width: none;
  }

  h1 {
    font-size: clamp(3.3rem, 15vw, 5.6rem);
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .moment-card {
    min-height: 18rem;
  }

  .phone {
    top: 0;
    position: relative;
    justify-self: center;
  }

  .prototype-column {
    justify-items: center;
  }

  .demo-flow,
  .social-proof {
    grid-template-columns: 1fr 1fr;
  }

  .hero-waitlist {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .feedback-card {
    width: min(100%, 24.5rem);
    margin-top: 0;
  }

}

@media (max-width: 430px) {
  body {
    background: var(--paper);
  }

  .shell {
    display: grid;
    gap: 0;
    min-height: 100vh;
    padding: 0;
  }

  .brand-panel {
    min-height: 100vh;
    padding: 4.8rem 1rem 1rem;
    align-content: center;
    background: linear-gradient(135deg, #eef1ff, #e9fbf3);
  }

  .phone {
    position: relative;
    transform: none;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.demo-open .phone {
    transform: none;
  }

  .launch-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-wordmark {
    width: 10rem;
  }

  .brand-copy {
    font-size: 1.08rem;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .demo-flow,
  .social-proof {
    grid-template-columns: 1fr;
  }

  .footer-waitlist-form {
    grid-template-columns: 1fr;
    width: min(100%, 24rem);
  }

  .language-switch {
    top: 0.75rem;
    left: 0.75rem;
    min-height: 2.35rem;
    padding: 0 0.65rem;
  }

  .language-switch button {
    font-size: 0.78rem;
  }

  .form-grid,
  .form-footer {
    grid-template-columns: 1fr;
  }

  .keyword-field {
    grid-template-columns: 1fr;
  }
}
