:root {
  --bg: #fff6e9;
  --ink: #241b33;
  --ink-soft: #5e526c;
  --grape: #6c4bf6;
  --lemon: #ffd447;
  --bubble: #fff;
  --mint: #37d9a0;
  --coral: #c83d61;
  --line: #e7dccb;
  --paper: #fffdf6;
  --paper-edge: #d8c8af;
  --paper-tape: rgb(255 232 154 / 80%);
  --pad: 20px;
  --radius: 24px;
  color-scheme: light;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgb(255 212 71 / 20%), transparent 23rem),
    radial-gradient(circle at 85% 78%, rgb(108 75 246 / 12%), transparent 27rem),
    var(--bg);
  color: var(--ink);
}
button, input, textarea { font: inherit; }
button { color: inherit; }
a, button, input, textarea, summary { -webkit-tap-highlight-color: rgb(108 75 246 / 16%); }
a, button, input, textarea, summary { touch-action: manipulation; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgb(108 75 246 / 16%);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  transform: translateY(calc(-100% - 16px));
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  position: relative;
  width: min(100%, 390px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
.screen { display: none; min-height: 100dvh; }
.screen.is-active { display: flex; flex-direction: column; }

.content {
  width: 100%;
  padding: 20px 20px calc(44px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.display {
  margin: 0;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
}
.muted { color: var(--ink-soft); }
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.brand-row, .brand, .nav, .ready-row, .says-row, .like-button,
.url-preview, .button, .chip { display: flex; align-items: center; }
.brand-row { justify-content: space-between; }
.brand { gap: 9px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grape);
  color: white;
}
.brand-mark .material-symbols-rounded { font-size: 23px; }
a.brand { min-height: 44px; color: inherit; text-decoration: none; }
a.brand:focus-visible { border-radius: 12px; }
.brand-name { font-size: 22px; }
.chip {
  width: max-content;
  min-height: 30px;
  padding: 7px 12px;
  gap: 6px;
  border-radius: 999px;
  background: rgb(55 217 160 / 13%);
  color: #176a50;
  font-size: 12px;
  font-weight: 700;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.headline { font-size: 42px; line-height: 1.02; letter-spacing: -1.1px; }
.hero-copy { width: min(100%, 320px); margin: 0; font-size: 16px; line-height: 1.45; }

.button {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--grape);
  color: white;
  font: 600 18px/1.2 "Fredoka", ui-rounded, sans-serif;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.button:hover { filter: brightness(1.04); box-shadow: 0 7px 18px rgb(108 75 246 / 20%); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.secondary { border: 2px solid var(--line); background: var(--bubble); color: var(--ink); }
.button.secondary .icon-coral { color: var(--coral); }
.button.secondary .icon-grape { color: var(--grape); }
.button.coral { background: var(--coral); }
.button:disabled { cursor: not-allowed; opacity: .66; transform: none; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.steps-heading { font-size: 24px; }
.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 144px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 24px 24px 24px 8px;
  background: var(--bubble);
  box-shadow: 0 2px 3px rgb(36 27 51 / 4%), 0 8px 18px rgb(36 27 51 / 5%);
}
.step-visual {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
}
.step-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.step-label { color: var(--grape); font: 700 11px/1.2 "Fredoka", ui-rounded, sans-serif; letter-spacing: 1px; }
.step-title { font-size: 20px; line-height: 1.05; }
.step-text { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.step-icon, .benefit-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.step-named-qr { gap: 3px; background: var(--lemon); }
.step-qr { display: grid; place-items: center; }
.step-qr svg { width: 70px; height: 70px; border-radius: 4px; }
.step-qr-name { font: 700 11px/1 "Fredoka", ui-rounded, sans-serif; }

.step-printed { gap: 5px; background: rgb(108 75 246 / 8%); color: var(--grape); }
.step-icon { width: 30px; height: 30px; }
.step-mini-qr { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--bubble); }
.step-mini-qr .material-symbols-rounded { color: var(--ink); font-size: 42px; }

.step-app-preview { justify-content: flex-start; align-items: stretch; gap: 4px; padding: 7px 8px; border: 2px solid var(--line); background: var(--bubble); }
.app-preview-name { font: 600 10px/1.2 "Fredoka", ui-rounded, sans-serif; }
.app-preview-says { display: flex; align-items: center; gap: 3px; }
.app-preview-avatar { width: 14px; height: 14px; flex: 0 0 14px; display: grid; place-items: center; border-radius: 50%; background: var(--grape); color: white; font: 700 7px/1 "Fredoka", ui-rounded, sans-serif; }
.app-preview-author { flex: 1; font: 800 7px/1 "Nunito", ui-rounded, sans-serif; }
.app-preview-menu { color: var(--ink-soft); font-size: 9px; }
.app-preview-note { position: relative; height: 70px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--paper-edge); border-radius: 2px 3px 2px 1px; background: var(--paper); box-shadow: 0 1px 2px rgb(36 27 51 / 8%), 0 4px 8px rgb(36 27 51 / 10%); }
.app-preview-note::before { content: ""; position: absolute; z-index: 2; top: -5px; left: 50%; width: 24px; height: 7px; transform: translateX(-50%) rotate(-2deg); border: 1px solid rgb(216 200 175 / 40%); border-radius: 1px; background: var(--paper-tape); }
.app-preview-text { display: block; flex: 1; font-size: 7px; font-weight: 700; line-height: 1.15; }
.app-preview-footer { display: flex; align-items: center; justify-content: space-between; }
.app-preview-like { display: flex; align-items: center; gap: 2px; padding: 2px 4px; transform: rotate(-2deg); border: 1px solid var(--coral); border-radius: 3px; background: #ffe4ea; color: var(--coral); font: 700 7px/1 "Nunito", ui-rounded, sans-serif; }
.app-preview-time { color: var(--ink-soft); font-size: 6px; font-weight: 700; }
.app-preview-heart { width: 8px; height: 8px; fill: currentColor; }

.benefit-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgb(108 75 246 / 8%); }
.benefit-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--grape); }
.benefit-note p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }

.nav { gap: 12px; }
.nav.spread { justify-content: space-between; }
.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.nav-label { color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.title-block { display: flex; flex-direction: column; gap: 8px; }
.page-title { font-size: 38px; line-height: 1.05; letter-spacing: -.5px; }
.page-subtitle { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  color: var(--ink-soft);
  font: 600 12px/1.2 "Fredoka", sans-serif;
  letter-spacing: 1.2px;
}
.field-control {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}
.field-control:focus { border-color: var(--grape); }
.field-control[aria-invalid="true"] { border-color: var(--coral); }
.field-control::placeholder { color: var(--ink-soft); opacity: 1; }
textarea.field-control { height: 148px; resize: none; }
.field-hint { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.field-error { display: flex; align-items: flex-start; gap: 7px; color: var(--coral); font-size: 13px; font-weight: 700; line-height: 1.4; }
.field-error::before {
  content: "!";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 800 11px/1 system-ui, sans-serif;
}
.counter { margin: -2px 0 0; color: var(--ink-soft); text-align: right; font-size: 13px; font-weight: 600; }
.url-preview {
  min-height: 44px;
  gap: 8px;
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(108 75 246 / 7%);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.url-preview .material-symbols-rounded { flex: 0 0 auto; color: var(--grape); font-size: 18px; }
.url-preview span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live-preview {
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: white;
}
.preview-qr { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 18px; background: var(--lemon); }
.preview-qr svg { width: 78px; height: 78px; }
.preview-name { max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
.preview-note { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.result-content { align-items: center; gap: 26px; }
.result-content .title-block { align-items: center; text-align: center; width: 100%; }
.result-content .page-subtitle { width: min(100%, 310px); }
.result-card {
  width: 100%;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 6px 12px rgb(36 27 51 / 6%);
}
.result-qr { width: 228px; height: 228px; display: grid; place-items: center; border-radius: 26px; background: var(--lemon); }
.result-qr .qr-plate { width: 190px; height: 190px; border-radius: 18px; }
.result-qr svg { width: 162px; height: 162px; }
.page-details { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.details-label { color: var(--ink-soft); font: 700 11px/1.2 "Fredoka", sans-serif; letter-spacing: 1.2px; }
.result-name { width: 100%; overflow-wrap: anywhere; font-size: 26px; }
.result-url { max-width: 100%; overflow: hidden; color: var(--grape); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.button-stack { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.result-hint { width: min(100%, 310px); margin: 0; color: var(--ink-soft); text-align: center; font-size: 13px; line-height: 1.4; }

.board-content { gap: 26px; padding-bottom: 28px; }
.board-brand .brand { gap: 8px; }
.board-brand .brand-mark { width: auto; height: auto; background: transparent; color: var(--grape); }
.board-brand .brand-name { font-size: 19px; }
.welcome { margin: 0; color: var(--ink-soft); font-size: 20px; font-weight: 600; }
.site-title { margin-top: 6px; font-size: 38px; line-height: 1.1; overflow-wrap: anywhere; }
.note-section { display: flex; flex-direction: column; gap: 12px; }
.says-row { min-height: 34px; display: flex; align-items: center; gap: 8px; padding-right: 34px; }
.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grape);
  color: white;
  font: 800 12px/1 "Nunito", sans-serif;
}
.says { flex: 1; min-width: 0; overflow: hidden; font-family: "Nunito", sans-serif; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.message-time { position: absolute; z-index: 2; right: 14px; bottom: 18px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.message-card {
  position: relative;
  width: 100%;
  height: var(--message-card-height, 258px);
  padding: 14px 14px 58px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #d8c8af;
  border-radius: 6px 10px 8px 5px;
  background: var(--paper);
  box-shadow: 0 3px 6px rgb(36 27 51 / 8%), 0 12px 24px rgb(36 27 51 / 13%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: default;
}
.message-card[role="button"] { cursor: pointer; touch-action: manipulation; }
.message-card.is-expanded { height: auto; min-height: 258px; padding-bottom: 58px; }
.message-image {
  width: 100%;
  max-height: 260px;
  display: block;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
}
.message-body { margin: 0; white-space: pre-wrap; font-size: 15px; font-weight: 700; line-height: 1.35; }
.message-size-medium .message-body { font-size: 18px; line-height: 1.3; }
.message-size-short .message-body { font-size: 24px; line-height: 1.24; }
.message-size-hero .message-body { font-size: 32px; line-height: 1.16; }
.message-fade { position: absolute; inset: auto 0 0; height: 118px; background: linear-gradient(to bottom, transparent, var(--paper) 62%); }
.message-card.is-expanded .message-fade { display: none; }
.expand-pill {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid rgb(108 75 246 / 20%);
  background: rgb(108 75 246 / 7%);
  color: var(--grape);
  font: 700 14px/1 "Nunito", sans-serif;
  white-space: nowrap;
}
.expand-pill .material-symbols-rounded { font-size: 18px; transition: transform 150ms ease; }
.message-card.is-expanded .expand-pill .material-symbols-rounded { transform: rotate(180deg); }
.like-row { min-height: 44px; display: flex; justify-content: flex-end; align-items: center; }
.like-button {
  min-width: 55px;
  height: 30px;
  gap: 5px;
  padding: 6px 9px;
  transform: rotate(-2deg);
  border: 1.5px solid var(--coral);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.like-button::before { content: ""; position: absolute; inset: -7px; }
.like-button .heart { color: var(--coral); font-size: 20px; font-variation-settings: "FILL" 0; }
.like-button.is-liked .heart { font-variation-settings: "FILL" 1; }
.like-button.is-liked { background: #ffe4ea; }
.like-count { min-width: 30px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 999px; background: rgb(200 61 97 / 10%); color: var(--coral); font-size: 13px; }
.message-card.empty-card {
  height: var(--message-card-height, 270px);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--bubble);
  box-shadow: none;
}
.empty-message-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.empty-message-icon { width: 72px; height: 72px; color: var(--lemon); font-size: 72px; }
.empty-message-title { font-size: 25px; line-height: 1.2; }
.empty-message-description { width: 100%; color: var(--ink-soft); font-size: 16px; font-weight: 600; line-height: 1.35; }

/* The composer runs the full height of the screen so the message field can
   take every row the other elements do not need. */
.composer-content { flex: 1; gap: 26px; padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
.composer-content .form-stack { flex: 1; min-height: 0; gap: 20px; }
.composer-content .field-grow { flex: 1; min-height: 0; }
.composer-content .field-grow .message-input-shell { flex: 1; min-height: 148px; }
.message-input-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.message-input-shell:focus-within { border-color: var(--grape); }
.message-input-shell:has(.message-textarea[aria-invalid="true"]) { border-color: var(--coral); }
.message-textarea.field-control {
  order: 2;
  flex: 1;
  height: auto;
  min-height: 148px;
  padding: 16px 62px 16px 18px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  resize: none;
}
.photo-add-button,
.photo-remove-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.photo-add-button {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  background: rgb(108 75 246 / 8%);
  color: var(--grape);
}
.photo-add-button .material-symbols-rounded { font-size: 22px; }
.photo-add-button.is-unavailable { background: rgb(94 82 108 / 7%); color: var(--ink-soft); opacity: .72; }
.photo-preview {
  position: relative;
  order: 1;
  margin: 12px 12px 0;
}
.photo-preview img {
  width: 100%;
  max-height: 230px;
  display: block;
  border-radius: 17px 17px 17px 6px;
  object-fit: cover;
}
.photo-remove-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgb(36 27 51 / 78%);
  color: white;
  box-shadow: 0 2px 10px rgb(36 27 51 / 25%);
}
.photo-remove-button .material-symbols-rounded { font-size: 21px; }
.field-help { color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 1.4; }
.field-help.is-error { color: var(--coral); }
.photo-add-button.is-welcomed { animation: photo-welcome 1250ms ease-out both; }
@keyframes photo-welcome {
  0%, 100% { background: rgb(108 75 246 / 8%); box-shadow: none; transform: none; }
  30% { background: rgb(108 75 246 / 22%); box-shadow: 0 0 0 8px rgb(108 75 246 / 11%); transform: scale(1.08); }
}

/* Exact layout and component treatments from design.pen. */
body { background: var(--bg); }
.headline { font-size: 40px; }
.landing-content { gap: 24px; padding: 20px 20px calc(44px + env(safe-area-inset-bottom)); }
.landing-content .hero-copy { width: min(100%, 334px); }
.desktop-header-actions, .landing-kicker, .conversation-preview, .hero-actions, .steps-note { display: none; }
.early-mobile-cta, .landing-bottom-cta { display: flex; }

.steps-header { display: flex; align-items: center; justify-content: space-between; }

.conversation-preview {
  border: 1px solid #d7c8f8;
  border-radius: 32px 32px 32px 10px;
  background: rgb(108 75 246 / 7%);
}
.conversation-preview-tag {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 80%);
  color: var(--grape);
  font: 700 13px/1.2 "Fredoka", ui-rounded, sans-serif;
}
.conversation-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--paper-edge);
  border-radius: 6px 10px 8px 5px;
  background: var(--paper);
  box-shadow: 0 3px 6px rgb(36 27 51 / 8%), 0 12px 24px rgb(36 27 51 / 13%);
}
.conversation-bubble::before { content: ""; position: absolute; z-index: 2; top: -10px; left: 50%; width: 82px; height: 24px; transform: translateX(-50%) rotate(-2deg); border: 1px solid rgb(216 200 175 / 40%); border-radius: 3px; background: var(--paper-tape); }
.conversation-meta { display: flex; align-items: center; gap: 8px; }
.conversation-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: var(--grape); color: white; font: 800 12px/1 "Nunito", ui-rounded, sans-serif; }
.conversation-author { flex: 1; font: 800 13px/1.2 "Nunito", ui-rounded, sans-serif; }
.conversation-menu-icon { color: var(--ink-soft); font-size: 18px; }
.conversation-bubble p { margin: 0; font: 700 21px/1.17 "Nunito", ui-rounded, sans-serif; }
.conversation-footer { display: flex; align-items: center; justify-content: space-between; }
.conversation-like {
  width: max-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  transform: rotate(-2deg);
  border: 1.5px solid var(--coral);
  border-radius: 8px;
  background: #ffe4ea;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}
.conversation-like .material-symbols-rounded { font-size: 18px; font-variation-settings: "FILL" 1; }
.conversation-time { color: var(--ink-soft); font-size: 10px; font-weight: 700; }

.flow-header, .create-kicker, .create-description, .preview-eyebrow, .policy-header-home, .privacy-kicker { display: none; }
.policy-header { padding: 20px 20px 0; }
.policy-content { gap: 28px; }
.privacy-layout, .privacy-overview { display: flex; flex-direction: column; }
.privacy-layout { gap: 28px; }
.privacy-overview { gap: 14px; }
.privacy-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid #d7c8f8;
  border-radius: 26px 26px 26px 8px;
  background: rgb(108 75 246 / 7%);
}
.privacy-summary .prose-heading { margin: 0; font-size: 21px; }
.privacy-summary p { margin: 0; font-size: 15px; line-height: 1.5; }
.policy-body { gap: 10px; }

@media (min-width: 768px) {
  body.flow-active, body.policy-active { padding: 0; }
  .landing-shell.is-flow-active, .app-shell.policy-shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .landing-shell.is-flow-active .screen, .app-shell.policy-shell .screen { min-height: 100dvh; }
  .landing-shell.is-landing-active .landing-content { gap: 0; padding: 0; }
  .landing-header, .landing-hero, .landing-content > .steps, .flow-header, .policy-header {
    width: calc(100% - 64px);
    margin-inline: auto;
  }
  .landing-header, .flow-header, .policy-header { height: 78px; }
  .landing-header .brand-mark, .flow-header .brand-mark, .policy-header .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .landing-header .brand-name, .flow-header .brand-name, .policy-header .brand-name { font-size: 18px; }
  .landing-beta, .early-mobile-cta, .benefit-note, .landing-bottom-cta, .landing-content > .page-footer { display: none; }
  .desktop-header-actions { display: flex; align-items: center; gap: 12px; }
  .landing-privacy-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  .landing-header-cta { width: auto; min-height: 58px; padding-inline: 26px; font-size: 16px; }
  .landing-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 390px) minmax(218px, 1fr);
    gap: 56px;
    padding: 42px 20px;
  }
  .landing-hero .hero { align-items: flex-start; gap: 18px; text-align: left; }
  .landing-kicker { display: block; margin: 0; color: var(--grape); font-size: 15px; font-weight: 700; }
  .landing-hero .headline { font-size: 46px; line-height: 1.2; letter-spacing: -1px; }
  .landing-hero .hero-copy { width: 100%; max-width: 590px; font-size: 18px; line-height: 1.22; }
  .hero-actions { width: 456px; max-width: 100%; display: flex; align-items: center; gap: 12px; }
  .hero-actions .button { width: auto; min-width: 0; padding-inline: 26px; font-size: 16px; white-space: nowrap; }
  .hero-assurance { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 700; white-space: nowrap; }
  .hero-assurance .material-symbols-rounded { color: var(--grape); font-size: 19px; }
  .conversation-preview { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; }
  .landing-content > .steps { gap: 22px; padding: 36px 0 60px; }
  .steps-heading { font-size: 32px; }
  .steps-note { display: block; margin: 0; color: var(--ink-soft); font-size: 16px; font-weight: 600; }
  .steps { flex-direction: row; flex-wrap: wrap; }
  .steps-header { width: 100%; }
  .step-card {
    min-width: 0;
    min-height: 218px;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #ded0bc;
    box-shadow: 0 2px 3px rgb(36 27 51 / 5%), 0 10px 22px rgb(36 27 51 / 7%);
  }
  .step-card:nth-of-type(2) .step-visual { order: -1; }
  .step-visual { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
  .step-copy { gap: 7px; }
  .step-label { font-size: 12px; }
  .step-title { font-size: 20px; line-height: 1.15; }
  .step-text { font-size: 15px; line-height: 1.35; }
  .step-qr svg { width: 32px; height: 32px; }
  .step-qr-name { display: none; }
  .step-icon { width: 22px; height: 22px; }
  .step-mini-qr { display: none; }
  .step-app-preview { justify-content: center; align-items: center; padding: 0; border: 0; background: rgb(55 217 160 / 12%); }
  .step-app-preview::before { content: "chat"; color: #187a58; font-family: "Material Symbols Rounded"; font-size: 22px; }
  .step-app-preview > * { display: none; }

  .flow-header { display: flex; }
  .flow-header-actions { display: flex; align-items: center; gap: 12px; }
  .flow-header-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  .flow-header-home, .policy-header-home { width: auto; min-height: 58px; padding-inline: 22px; font-size: 16px; }
  .policy-header { padding: 0; }
  .policy-header-home { display: flex; }

  #createScreen .create-content {
    width: calc(100% - 64px);
    min-height: calc(100dvh - 78px);
    margin-inline: auto;
    padding: 54px 20px 60px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
      "title preview"
      "form preview"
      "action preview";
    align-content: center;
    align-items: start;
    column-gap: 36px;
    row-gap: 22px;
  }
  .create-content > .nav { display: none; }
  .create-content > .title-block { grid-area: title; align-items: flex-start; text-align: left; }
  .create-content > .form-stack { grid-area: form; }
  .create-content > .live-preview { grid-area: preview; align-self: center; }
  .create-content > #createButton { grid-area: action; }
  .create-kicker { display: block; margin: 0 0 4px; color: var(--grape); font-size: 13px; font-weight: 800; letter-spacing: 1.2px; }
  .create-description { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; }
  .create-content .page-title { font-size: 46px; }
  .create-content .live-preview { height: 500px; border-radius: 32px; }
  .preview-eyebrow { display: block; color: var(--grape); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
  .landing-shell.is-flow-active #resultScreen { align-items: center; }
  #resultScreen .result-content { width: 390px; min-height: 100dvh; justify-content: center; }

  .policy-content { width: 620px; margin-inline: auto; padding: 50px 0 80px; }
  .privacy-overview { gap: 14px; }
  .policy-content .page-title { font-size: 52px; }
  .privacy-summary { padding: 24px; }
  .privacy-summary .prose-heading { font-size: 24px; }
  .privacy-summary p, .policy-body { font-size: 16px; }
  .policy-body { gap: 12px; }
  .policy-body .prose-heading { margin-top: 12px; font-size: 22px; }
  .policy-footer-action { width: 210px; }
}

@media (min-width: 900px) {
  .landing-header, .landing-hero, .landing-content > .steps, .flow-header, .policy-header { width: min(calc(100% - 120px), 1400px); }
  .landing-hero { min-height: 440px; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); padding: 54px 0; }
  .landing-hero .headline { font-size: 60px; line-height: 1.02; }
  .conversation-preview { min-height: 350px; }

  #createScreen .create-content {
    width: min(calc(100% - 120px), 1400px);
    grid-template-columns: 460px minmax(0, 1fr);
    column-gap: 80px;
    padding-inline: 0;
  }
  .create-content .page-title { font-size: 60px; }
  .create-content .create-description { font-size: 18px; }
  .create-content > #createButton { width: 260px; }
  .create-content .live-preview { height: 560px; }

  .policy-content { width: min(calc(100% - 120px), 1160px); padding: 54px 0 80px; }
  .privacy-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 80px; align-items: start; }
  .privacy-overview { position: sticky; top: 32px; gap: 24px; }
  .privacy-kicker { display: block; margin: 0; color: var(--grape); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
  .policy-content .page-title { font-size: 60px; }
  .policy-footer-action { display: none; }
}

@media (min-width: 1500px) {
  .landing-header, .landing-hero, .landing-content > .steps, .flow-header, .policy-header { width: min(calc(100% - 320px), 1400px); }
  .landing-hero { grid-template-columns: 680px minmax(0, 1fr); gap: 96px; }
  .landing-hero .headline { font-size: 70px; }
  .conversation-bubble p { font-size: 24px; }

  #createScreen .create-content { width: min(calc(100% - 320px), 1400px); grid-template-columns: 520px minmax(0, 1fr); column-gap: 120px; }
  .create-content .page-title { font-size: 64px; }
  .create-content .create-description { font-size: 19px; }
  .create-content > #createButton { width: 280px; }
  .create-content .live-preview { height: 580px; }

  .policy-content { width: min(calc(100% - 320px), 1400px); }
  .privacy-layout { grid-template-columns: 380px minmax(0, 900px); gap: 120px; }
  .policy-content .page-title { font-size: 64px; }
}

.create-content { gap: 32px; padding: 30px 20px calc(44px + env(safe-area-inset-bottom)); }
.create-content .title-block { align-items: center; text-align: center; }
.create-content .form-stack { gap: 0; }
.create-content .field-control { border-color: var(--grape); }
.live-preview, .result-preview { width: 100%; height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px solid #dccfbd; border-radius: 28px; background: white; box-shadow: 0 2px 3px rgb(36 27 51 / 5%), 0 10px 24px rgb(36 27 51 / 7%); }
.preview-qr { width: 176px; height: 204px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border-radius: 24px; background: var(--lemon); }
.preview-qr svg { width: 144px; height: 144px; }
.qr-brand { display: flex; align-items: center; gap: 4px; opacity: .5; color: var(--ink); font: 700 11px/1 "Fredoka", sans-serif; }
.qr-brand .qr-brand-mark { width: 15px; height: 15px; flex: 0 0 15px; color: var(--grape); }
.preview-name { width: 100%; max-width: 100%; font-size: 30px; font-weight: 700; line-height: 1; text-align: center; }
.preview-cta { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .5px; }

.result-content { gap: 26px; padding: 20px 20px calc(44px + env(safe-area-inset-bottom)); }
.result-content .title-block { gap: 8px; }
.result-content .page-subtitle { width: min(100%, 310px); }
.return-home { width: auto; min-height: 44px; display: inline-flex; align-items: center; padding: 12px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }

.page-footer { display: flex; justify-content: center; }
.page-footer a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 12px; color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.page-footer a:hover { color: var(--grape); text-decoration: underline; }
.page-footer a:focus-visible { border-radius: 6px; }

.prose { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.prose p, .prose ul { margin: 0; }
.prose a { color: var(--grape); font-weight: 700; }
.prose-stamp { color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.prose-heading { margin-top: 10px; font-size: 19px; }
.prose-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }

.board-content { gap: 26px; padding: 20px 20px calc(44px + env(safe-area-inset-bottom)); }
.board-title-block { display: flex; flex-direction: column; gap: 6px; }
.site-title { margin-top: 0; }
.message-card-wrap { position: relative; }
.message-tape { position: absolute; z-index: 3; top: -10px; left: 50%; width: 82px; height: 24px; transform: translateX(-50%) rotate(-2deg); border: 1px solid rgb(216 200 175 / 40%); border-radius: 3px; background: var(--paper-tape); pointer-events: none; }
.message-card { display: flex; }
.post-menu-control { position: absolute; z-index: 4; top: 7px; right: 6px; }
.post-menu-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.post-menu-button:hover { background: rgb(108 75 246 / 7%); color: var(--grape); }
.post-menu-button .material-symbols-rounded { font-size: 18px; }
.post-menu { position: absolute; top: 38px; right: 4px; width: 158px; padding: 6px; border: 1px solid var(--paper-edge); border-radius: 12px; background: white; box-shadow: 0 4px 10px rgb(36 27 51 / 10%), 0 14px 28px rgb(36 27 51 / 14%); }
.report-button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.report-button:hover { background: rgb(200 61 97 / 8%); color: var(--coral); }
.report-button .material-symbols-rounded { color: var(--coral); font-size: 18px; }
.report-button.is-reported { background: rgb(200 61 97 / 10%); color: var(--coral); }
.report-button:disabled, .report-button[aria-disabled="true"] { cursor: default; }
.like-button { position: absolute; z-index: 2; left: 14px; right: auto; bottom: 14px; width: auto; justify-content: center; }
.like-button .heart { width: 16px; height: 16px; fill: none; stroke: var(--coral); stroke-width: 1.8; }
.like-button.is-liked .heart { fill: var(--coral); }
.like-button:disabled { cursor: default; }
.like-count { min-width: 0; height: auto; padding: 0; border-radius: 0; background: transparent; font-size: 12px; }
.composer-content .field:first-child .field-control { border-color: var(--grape); }

/* Account controls from the signed-out and signed-in board headers. */
.account-control { position: relative; flex: 0 0 auto; }
.profile-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--grape);
  cursor: pointer;
  text-decoration: none;
}
.profile-button.is-authenticated { border: 3px solid white; background: var(--grape); color: white; }
.profile-guest-icon { font-size: 23px; }
.profile-initial { font: 700 18px/1 "Fredoka", ui-rounded, sans-serif; }
.profile-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--mint);
}
.account-menu {
  position: absolute;
  z-index: 8;
  top: 54px;
  right: 0;
  width: 228px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 2px 3px rgb(36 27 51 / 6%), 0 12px 26px rgb(36 27 51 / 14%);
}
.account-summary { display: flex; align-items: center; gap: 10px; padding: 8px; }
.account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grape);
  color: white;
  font: 700 16px/1 "Fredoka", ui-rounded, sans-serif;
}
.account-identity { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-identity strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity > span { overflow: hidden; color: var(--ink-soft); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-divider { display: block; height: 1px; margin: 4px 0; background: var(--line); }
.account-sign-out {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 0;
  border-radius: 14px;
  background: rgb(200 61 97 / 7%);
  color: #c83d61;
  font: 600 15px/1.2 "Fredoka", ui-rounded, sans-serif;
  cursor: pointer;
}
.account-sign-out:hover { background: rgb(200 61 97 / 13%); }
.account-sign-out:disabled { cursor: wait; opacity: .7; }

/* Passwordless email and OTP flow from design.pen. */
.auth-content { gap: 24px; padding: 26px 20px calc(34px + env(safe-area-inset-bottom)); }
.auth-brand { gap: 8px; }
.auth-brand > .material-symbols-rounded { color: var(--grape); font-size: 26px; }
.auth-brand .brand-name { font-size: 20px; }
.auth-help { width: 44px; height: 44px; flex-basis: 44px; color: var(--ink-soft); }
.auth-help .material-symbols-rounded { font-size: 20px; }
.auth-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.auth-intro .page-title { letter-spacing: 0; }
.auth-intro > p { width: 100%; margin: 0; color: var(--ink-soft); font-size: 16px; font-weight: 600; line-height: 1.35; }
.auth-hero-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lemon);
}
.auth-hero-icon .material-symbols-rounded { font-size: 38px; }
.auth-switch { height: 52px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #ede4d8; }
.auth-switch button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 16px/1 "Fredoka", ui-rounded, sans-serif;
  cursor: pointer;
}
.auth-switch button.is-active { background: white; color: var(--ink); box-shadow: 0 2px 4px rgb(36 27 51 / 7%); }
.auth-form { gap: 14px; }
.auth-security-note, .auth-expiry-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; }
.auth-security-note { background: rgb(55 217 160 / 9%); }
.auth-security-note .material-symbols-rounded { flex: 0 0 auto; color: #1e9c71; font-size: 22px; }
.auth-security-note p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.auth-terms { margin: 0; color: var(--ink-soft); text-align: center; font-size: 12px; font-weight: 600; line-height: 1.35; }
.auth-terms a { color: inherit; }

.otp-content { gap: 28px; padding: 26px 20px calc(36px + env(safe-area-inset-bottom)); }
.auth-otp-nav { display: flex; align-items: center; justify-content: space-between; }
.auth-mini-brand { gap: 7px; font-size: 17px; }
.auth-mini-brand > .material-symbols-rounded { color: var(--grape); font-size: 22px; }
.otp-intro p strong { color: inherit; }
.otp-hero-icon { width: 82px; height: 82px; }
.otp-hero-icon .material-symbols-rounded { font-size: 42px; }
.otp-form { display: flex; flex-direction: column; gap: 18px; }
.otp-boxes { position: relative; display: flex; justify-content: center; gap: 8px; cursor: text; }
.otp-boxes input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 60px;
  border: 0;
  opacity: .01;
  color: transparent;
  caret-color: transparent;
}
.otp-boxes input:focus { outline: none; }
.otp-boxes:focus-within { border-radius: 18px; outline: 3px solid var(--grape); outline-offset: 3px; box-shadow: 0 0 0 7px rgb(108 75 246 / 16%); }
.otp-box {
  width: 48px;
  height: 60px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: white;
  font: 600 26px/1 "Fredoka", ui-rounded, sans-serif;
}
.otp-box.is-current { border-color: var(--grape); box-shadow: 0 0 0 3px rgb(108 75 246 / 10%); }
.otp-box.is-filled { color: var(--ink); }
.otp-error { margin-top: -8px; text-align: center; }
.auth-resend-row { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.auth-resend-row button, .auth-change-email { min-height: 44px; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.auth-resend-row button { color: var(--grape); font: 600 14px/1.2 "Fredoka", ui-rounded, sans-serif; }
.auth-resend-row button:disabled { color: var(--ink-soft); cursor: wait; }
.auth-change-email { display: flex; align-items: center; align-self: center; gap: 7px; font: 600 15px/1.2 "Fredoka", ui-rounded, sans-serif; }
.auth-change-email .material-symbols-rounded { color: var(--coral); font-size: 17px; }
.auth-expiry-note { background: rgb(108 75 246 / 6%); font-size: 14px; font-weight: 700; }
.auth-expiry-note .material-symbols-rounded { color: var(--grape); font-size: 21px; }

@media (max-width: 370px) {
  .otp-boxes { gap: 6px; }
  .otp-box { width: 44px; flex-basis: 44px; }
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 358px);
  padding: 12px 16px;
  transform: translate(-50%, 14px);
  border-radius: 15px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 24px rgb(36 27 51 / 20%);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #a52f4c; }

.safety-dialog {
  width: min(calc(100% - 32px), 540px);
  padding: 0;
  overflow: visible;
  border: 1px solid #dccfbd;
  border-radius: 24px;
  background: #fff9f2;
  color: var(--ink);
  box-shadow: 0 3px 8px rgb(36 27 51 / 10%), 0 24px 64px rgb(36 27 51 / 20%);
}
.safety-dialog::backdrop { background: rgb(36 27 51 / 38%); backdrop-filter: blur(2px); }
.safety-dialog-content {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}
.safety-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 16px;
  background: rgb(255 212 71 / 34%);
  font-size: 24px;
}
.safety-dialog-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.safety-dialog-copy h2 { font-size: 20px; line-height: 1.2; }
.safety-dialog-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; font-weight: 600; line-height: 1.35; }
.safety-dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.safety-dialog-actions .button { width: auto; min-height: 48px; padding: 13px 18px; font-size: 15px; }
.report-dialog .safety-dialog-icon { background: rgb(200 61 97 / 12%); color: var(--coral); }

.undo-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 358px);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: var(--ink);
  color: white;
  box-shadow: 0 3px 8px rgb(36 27 51 / 12%), 0 18px 42px rgb(36 27 51 / 22%);
  font-size: 15px;
  font-weight: 700;
}
.undo-toast > .material-symbols-rounded { flex: 0 0 auto; color: var(--mint); font-size: 20px; }
.undo-toast > span:nth-child(2) { flex: 1; }
.undo-toast button {
  min-width: 71px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.busy-progress { color: rgb(255 255 255 / 78%); font-size: .86em; white-space: nowrap; }
.button.secondary .busy-progress { color: var(--ink-soft); }

/* Motion: screens slide past each other, a fresh note lands, buttons spin. */
.screen.is-entering, .screen.is-leaving { background: var(--bg); }
.screen.is-entering {
  position: relative;
  z-index: 2;
  animation: screen-in 280ms cubic-bezier(.22, .8, .3, 1) both;
}
.screen.is-leaving {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  animation: screen-out 280ms cubic-bezier(.22, .8, .3, 1) both;
}
/* Going back reverses the stack, so the screen being dismissed slides off over
   the one it uncovers rather than vanishing behind it. */
.screen.is-entering.is-back { z-index: 1; animation-name: screen-in-back; }
.screen.is-leaving.is-back { z-index: 2; animation-name: screen-out-back; }

/* X only: the note card measures its own height against the viewport, and a
   vertical offset here would poison that reading mid-transition. */
@keyframes screen-in { from { transform: translateX(100%); } }
@keyframes screen-out { to { transform: translateX(-26%); opacity: .3; } }
@keyframes screen-in-back { from { transform: translateX(-26%); opacity: .3; } }
@keyframes screen-out-back { to { transform: translateX(100%); } }

/* Each step card slides in as it scrolls into view, from alternating sides.
   Hidden here and revealed by landing.js, which also sets the stagger delay on
   cards that arrive together and honours reduced motion. */
.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, -34px), 0, 0);
  transition: opacity 520ms cubic-bezier(.22, .8, .3, 1), transform 520ms cubic-bezier(.22, .8, .3, 1);
}
.reveal.is-revealed { opacity: 1; transform: none; }
.step-card:nth-of-type(even) { --reveal-x: 34px; }

/* Only while space.js is walking the card between its two heights, so the
   card is never fighting a transition during a resize or a re-render. */
.message-card.is-resizing { transition: height 320ms cubic-bezier(.22, .8, .3, 1); }

.message-card.is-fresh { animation: note-land 560ms cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes note-land {
  0% { transform: translateY(-12px) scale(.95) rotate(-1.2deg); opacity: 0; }
  45% { transform: translateY(5px) scale(1.015) rotate(.5deg); opacity: 1; }
  72% { transform: translateY(-2px) scale(.998) rotate(-.15deg); }
  100% { transform: none; opacity: 1; }
}

.spinner { animation: spin 950ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.button.is-busy:disabled { cursor: wait; opacity: 1; }
.button.secondary .spinner { color: var(--coral); }
.like-button.is-busy { cursor: wait; }
.like-button .spinner { font-size: 18px; color: var(--coral); }

@media (min-width: 600px) {
  body { padding: 28px 0; }
  .app-shell { min-height: calc(100dvh - 56px); border: 1px solid rgb(36 27 51 / 8%); border-radius: 30px; box-shadow: 0 22px 60px rgb(36 27 51 / 12%); }
  .screen { min-height: calc(100dvh - 58px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  /* The spinner is the loading state, not decoration, so it keeps turning. */
  .spinner { animation-duration: 1900ms !important; animation-iteration-count: infinite !important; }
}

a.button { text-decoration: none; }
