:root {
  --bg: #fff9f3;
  --surface: #ffffff;
  --surface-warm: #f8ede3;
  --text: #2f2a28;
  --muted: #6f6660;
  --line: #eaddd2;
  --accent: #e98b6d;
  --accent-dark: #d87458;
  --accent-soft: #f4b6a6;
  --green: #2f765e;
  --red: #b4483e;
  --shadow-soft: 0 14px 34px rgba(121, 83, 64, 0.09);
  --shadow-light: 0 8px 22px rgba(121, 83, 64, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 5.2rem);
  letter-spacing: 0;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.15rem;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 243, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(121, 83, 64, 0.04);
}

.nav,
.admin-nav {
  width: min(1320px, calc(100% - 64px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.admin-header .brand {
  color: white;
}

.nav-links,
.admin-nav div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.admin-nav a {
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.admin-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(233, 139, 109, 0.24);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(216, 116, 88, 0.28);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.button-small {
  min-height: 42px;
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
}

.button-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-light);
}

.button-secondary:hover {
  background: #fff4ee;
  color: var(--accent-dark);
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.admin-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 249, 243, 1) 0%, rgba(255, 249, 243, 0.97) 39%, rgba(255, 249, 243, 0.42) 76%, rgba(255, 249, 243, 0.28) 100%),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?auto=format&fit=crop&w=2200&q=88") 74% center/cover;
}

.hero .container {
  width: min(1360px, calc(100% - 64px));
}

.hero-inner {
  padding: 5.75rem 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-text {
  max-width: 640px;
  font-size: 1.24rem;
  color: #665d58;
}

.micro-trust {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
  box-shadow: var(--shadow-light);
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.centered {
  justify-content: center;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: var(--surface-warm);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.step,
.message-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem;
  box-shadow: var(--shadow-light);
}

.step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(244, 182, 166, 0.32);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 4.5rem;
}

.split > .button {
  justify-self: start;
}

.message-card p {
  font-size: 1.5rem;
  color: var(--text);
}

.message-card span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.public-messages-section {
  background: var(--bg);
}

.public-message-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.public-message-card,
.receive-card,
.empty-public-messages {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
}

.public-message-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.public-message-text,
.receive-message-text {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.55;
}

.message-attribution {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 1.25rem 0 0;
}

.keep-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.keep-link:hover {
  color: var(--accent);
}

.receive-shell {
  width: min(760px, calc(100% - 48px));
}

.receive-card {
  text-align: center;
  padding: 2rem;
}

.receive-prompt {
  margin: 1rem 0 0;
  text-align: center;
}

.receive-prompt p {
  margin-bottom: 0.35rem;
}

.copy-feedback {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  text-align: center;
  color: var(--green);
  font-weight: 800;
}

.receive-message-text {
  font-size: 1.65rem;
}

.empty-public-messages {
  text-align: center;
}

.empty-public-messages p {
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li {
  padding-left: 0.15rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.note-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta {
  text-align: center;
}

.page-hero {
  padding: 5rem 0 2.5rem;
  background: var(--surface-warm);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: 4.5rem;
  align-items: center;
}

.product-visual {
  min-height: 380px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.keychain-shape {
  width: 180px;
  height: 250px;
  border-radius: 48px 48px 8px 8px;
  border: 3px solid #f4d7cb;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.form-shell {
  width: min(680px, calc(100% - 32px));
}

.keep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 1.5rem;
  align-items: start;
  width: min(1040px, calc(100% - 64px));
}

.keep-main {
  display: grid;
  gap: 1rem;
}

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

.keep-message-card {
  text-align: left;
}

.write-hero {
  background:
    radial-gradient(circle at 82% 26%, rgba(244, 182, 166, 0.32), transparent 30%),
    var(--surface-warm);
}

.write-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 1.5rem;
  align-items: start;
  width: min(1040px, calc(100% - 64px));
}

.write-main {
  display: grid;
  gap: 1rem;
}

.writing-intro,
.prompt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
}

.writing-intro p {
  font-size: 1.08rem;
}

.gentle-highlight {
  display: inline-flex;
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: #fff4ee;
  color: var(--accent-dark);
  font-weight: 800;
}

.prompt-card {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
}

.prompt-card h2 {
  font-size: 1.45rem;
}

.prompt-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.prompt-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.72rem;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-light);
}

.prompt-chips button:hover {
  border-color: var(--accent-soft);
  background: #fff4ee;
}

.prompt-closing {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 800;
}

.kind-form {
  display: grid;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.kind-form label {
  font-weight: 800;
}

.kind-form label span {
  color: var(--muted);
  font-weight: 400;
}

.kind-form input,
.kind-form textarea,
.actions-cell input,
.actions-cell textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  color: var(--text);
  background: #fffdfb;
}

.field-help {
  margin-top: -0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.message-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.message-guidance span:first-child {
  font-weight: 800;
}

.message-guidance [data-state="ready"] {
  color: var(--green);
}

.message-guidance [data-state="long"] {
  color: #9f684d;
}

.risk-hints {
  display: grid;
  gap: 0.4rem;
}

.risk-hints p {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #efd6c9;
  border-radius: 12px;
  background: #fff4ee;
  color: #8d5d45;
  font-size: 0.9rem;
  font-weight: 800;
}

.message-preview {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 0.35rem;
}

.message-preview h2 {
  margin: 0;
  font-size: 1rem;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfb;
  padding: 1rem;
  box-shadow: var(--shadow-light);
}

.preview-card p {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.preview-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.selected-prompt {
  padding: 0.75rem 0.85rem;
  border: 1px solid #efd6c9;
  border-radius: 14px;
  background: #fff4ee;
  color: var(--accent-dark);
  font-weight: 800;
}

.checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--muted);
}

.checkbox-label input {
  width: auto;
  margin-top: 0.35rem;
}

.success-message,
.error-message {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.success-message {
  color: var(--green);
  background: #e9f5ee;
  border: 1px solid #b9ddc8;
}

.success-next {
  margin-top: 0.85rem;
}

.success-next p {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-weight: 800;
}

.error-message {
  color: var(--red);
  background: #fbebe8;
  border: 1px solid #e7beb8;
}

.story-copy p {
  font-size: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-light);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.footer-brand span:first-child {
  color: var(--text);
  font-weight: 800;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.legal-copy {
  display: grid;
  gap: 1rem;
}

.legal-copy h2 {
  margin: 1rem 0 0;
  font-size: 1.35rem;
}

.legal-copy p {
  font-size: 1.05rem;
}

.legal-note,
.lead-copy {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-light);
}

.lead-copy {
  color: var(--text);
  font-weight: 800;
}

.admin-body {
  background: #f6f6f2;
}

.admin-header {
  background: #25221f;
  color: white;
}

.admin-nav a {
  color: white;
}

.admin-session {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

.admin-session form {
  margin: 0;
}

.admin-link-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.admin-link-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.admin-login-card {
  width: min(420px, 100%);
}

.admin-login-card h1 {
  font-size: 2rem;
}

.admin-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2rem 0;
}

.admin-page h1 {
  font-size: 2rem;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-section-title {
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid.expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card span {
  color: var(--muted);
  display: block;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.45rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(260px, 1fr) auto auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filter-bar label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
  color: var(--text);
  background: #fffefa;
}

.admin-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #eee5d7;
  white-space: nowrap;
}

.message-cell {
  max-width: 260px;
}

.actions-cell {
  width: 260px;
}

.actions-cell.compact {
  width: 210px;
}

.actions-cell form {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.admin-button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.admin-button.danger {
  background: var(--red);
}

.admin-button.muted {
  background: #746b62;
}

.risk-row {
  background: #fff8ed;
}

.risk-cell {
  min-width: 180px;
}

.risk-tag,
.risk-clear {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  margin: 0 0.25rem 0.25rem 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.risk-tag {
  color: #8d3c1f;
  background: #fde8d7;
  border: 1px solid #f0bf97;
}

.risk-clear {
  color: var(--green);
  background: #e9f5ee;
  border: 1px solid #b9ddc8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.detail-panel,
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.detail-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  word-break: break-word;
}

.review-actions {
  display: grid;
  gap: 1rem;
}

.review-card form {
  display: grid;
  gap: 0.65rem;
}

.review-card label {
  font-weight: 800;
}

.review-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fffefa;
  color: var(--text);
}

.review-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fffefa;
  color: var(--text);
}

.orders-table {
  min-width: 1500px;
}

.cancelled-row {
  background: #f1eeeb;
  color: #7a746f;
}

.cancelled-row .message-cell {
  color: #7a746f;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  background: #f5efe8;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-pending,
.fulfillment-not_started {
  background: #fff5df;
  color: #8a5d12;
  border-color: #ecd29a;
}

.status-confirmed,
.fulfillment-printed {
  background: #e9f5ee;
  color: var(--green);
  border-color: #b9ddc8;
}

.status-cancelled {
  background: #ede9e5;
  color: #77716b;
  border-color: #d8d1cb;
}

.fulfillment-shipped {
  background: #e8f0fb;
  color: #315c8f;
  border-color: #b8cde6;
}

.muted-note {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.system-check-table {
  min-width: 1000px;
}

.waitlist-table {
  min-width: 1200px;
}

.waitlist-popular-table {
  min-width: 760px;
}

.danger-card {
  border-color: #e7beb8;
}

.quick-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.reason-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #fffefa;
  color: var(--text);
  cursor: pointer;
}

.reason-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

@media (max-width: 768px) {
  .container,
  .narrow,
  .hero .container,
  .form-shell,
  .admin-main {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 2.55rem);
    line-height: 1.08;
  }

  h2 {
    font-size: 1.7rem;
  }

  p {
    font-size: 1rem;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    width: 100%;
    min-height: 64px;
    padding: 0.75rem 20px;
    align-items: center;
  }

  .brand {
    font-size: 1.18rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    z-index: 50;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #fff4ee;
  }

  .nav-links .button {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 249, 243, 0.98) 0%, rgba(255, 249, 243, 0.94) 100%),
      url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?auto=format&fit=crop&w=1200&q=80") center/cover;
  }

  .hero-inner {
    padding: 3.25rem 0 3rem;
  }

  .hero-copy,
  .hero-text {
    max-width: 100%;
  }

  .hero-text {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .button-row {
    width: 100%;
    gap: 0.75rem;
  }

  .button,
  .button-secondary {
    width: 100%;
    min-height: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .steps,
  .public-message-grid,
  .write-layout,
  .keep-layout,
  .split,
  .product-layout {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .step,
  .message-card {
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
  }

  .split > .button {
    justify-self: stretch;
  }

  .message-card p {
    font-size: 1.2rem;
  }

  .public-message-card {
    min-height: auto;
    padding: 1.2rem;
  }

  .receive-shell {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .receive-message-text {
    font-size: 1.25rem;
  }

  .page-hero {
    padding: 3.25rem 0 2rem;
  }

  .product-visual {
    min-height: 280px;
    order: 2;
  }

  .keychain-shape {
    width: 150px;
    height: 210px;
  }

  .kind-form {
    width: 100%;
    padding: 1.1rem;
  }

  .write-layout {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .keep-layout {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .prompt-card {
    position: static;
  }

  .kind-form input,
  .kind-form textarea,
  .kind-form button {
    width: 100%;
    font-size: 16px;
  }

  .checkbox-label {
    grid-template-columns: 22px 1fr;
    gap: 0.55rem;
  }

  .checkbox-label input {
    width: 18px;
    height: 18px;
  }

  .faq-list {
    gap: 0.7rem;
  }

  .faq-list details {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav,
  .admin-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav {
    width: 100%;
    padding: 1rem 20px;
  }

  .admin-nav div {
    flex-wrap: wrap;
  }

  .stats-grid,
  .stats-grid.expanded,
  .admin-filter-bar,
  .detail-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container,
  .narrow,
  .hero .container,
  .form-shell,
  .admin-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    left: 18px;
    right: 18px;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 2.35rem);
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-inner {
    padding: 2.6rem 0 2.7rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .button {
    min-height: 48px;
  }

  .step,
  .message-card,
  .public-message-card,
  .receive-card,
  .empty-public-messages,
  .writing-intro,
  .prompt-card,
  .kind-form {
    padding: 1rem;
  }
}
