:root {
  --ink: #221819;
  --ink-soft: #6f5d5c;
  --paper: #f7eee6;
  --white: #fff8f0;
  --ivory: #f7eee6;
  --cream: #efd6cc;
  --mist: #f2e2da;
  --blush: #efd6cc;
  --rose: #b33b44;
  --rose-dark: #7a262c;
  --mauve: #d9b4a8;
  --sage: #8e746f;
  --blue: #342a2b;
  --gold: #aa7b66;
  --line: rgba(122, 38, 44, 0.15);
  --shadow: 0 18px 55px rgba(122, 38, 44, 0.1);
  --radius: 8px;
  --handwriting: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(247, 238, 230, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  height: 68px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.nav-links a:hover {
  border-color: var(--rose);
  color: var(--ink);
}

.nav-cta {
  border: 1px solid rgba(122, 38, 44, 0.48);
  border-radius: 999px;
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 180, 168, 0.32), transparent 32%),
    linear-gradient(180deg, #fbf3e9 0%, #f7eee6 68%, #f2e2da 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 84vh;
  overflow: hidden;
  padding: 118px clamp(24px, 6vw, 86px) 70px;
  position: relative;
}

.order-status {
  border-bottom: 1px solid var(--line);
  padding: 96px clamp(22px, 5vw, 70px) 28px;
}

.order-status[hidden] {
  display: none;
}

.order-status-inner {
  background: rgba(255, 248, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(22px, 4vw, 34px);
}

.order-status h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}

.order-status p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 760px;
}

.order-status dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
}

.order-status dl div {
  background: rgba(239, 214, 204, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.order-status dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.order-status dd {
  font-weight: 900;
  margin: 0;
}

.hero::before {
  background: rgba(122, 38, 44, 0.08);
  content: "";
  height: 1px;
  left: clamp(24px, 6vw, 86px);
  position: absolute;
  right: clamp(24px, 6vw, 86px);
  top: 68px;
}

.hero-shell {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  margin: 0 auto;
  max-width: 1220px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-copy {
  color: var(--ink);
  max-width: 710px;
  min-width: 0;
}

.eyebrow {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--rose);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(72px, 9.4vw, 124px);
  line-height: 0.95;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(82px, 10.6vw, 138px);
  font-weight: 700;
  line-height: 0.86;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: var(--ink-soft);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  margin-bottom: 28px;
  max-width: 680px;
  overflow-wrap: break-word;
}

.hero-actions,
.pricing-inner,
.preview-controls,
.input-row {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--rose);
  box-shadow: 0 12px 34px rgba(122, 38, 44, 0.22);
  color: var(--white);
}

.button.primary:hover {
  background: var(--rose-dark);
}

.button.secondary {
  background: rgba(247, 238, 230, 0.9);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.compact {
  min-height: 40px;
  padding: 0 16px;
}

.hero-stationery {
  min-height: 540px;
  position: relative;
}

.hero-envelope {
  background:
    linear-gradient(145deg, rgba(255, 248, 240, 0.86), rgba(239, 214, 204, 0.76)),
    #f7eee6;
  border: 1px solid rgba(122, 38, 44, 0.16);
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(122, 38, 44, 0.12);
  height: 286px;
  left: 8%;
  position: absolute;
  top: 118px;
  transform: rotate(-4deg);
  width: 78%;
}

.hero-envelope::before,
.hero-envelope::after {
  border-color: rgba(122, 38, 44, 0.16);
  border-style: solid;
  content: "";
  position: absolute;
}

.hero-envelope::before {
  border-width: 0 1px 1px 0;
  height: 202px;
  left: 50%;
  top: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 202px;
}

.hero-envelope::after {
  border-width: 1px 1px 0 0;
  bottom: 0;
  height: 180px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  width: 180px;
}

.hero-card {
  background: #fff8f0;
  border: 1px solid rgba(217, 180, 168, 0.64);
  border-radius: 6px;
  box-shadow: 0 22px 64px rgba(34, 24, 25, 0.13);
  display: grid;
  gap: 15px;
  padding: 40px 42px;
  position: absolute;
  right: 0;
  top: 28px;
  transform: rotate(3deg);
  width: min(440px, 88%);
}

.hero-card span,
.hero-address span {
  color: #2c2020;
  display: block;
  font-family: var(--handwriting);
  font-size: clamp(22px, 1.8vw, 29px);
  font-weight: 600;
  line-height: 1.18;
}

.hero-address {
  background: #efd6cc;
  border: 1px solid rgba(122, 38, 44, 0.12);
  border-radius: 6px;
  bottom: 28px;
  box-shadow: 0 18px 45px rgba(122, 38, 44, 0.1);
  left: 0;
  padding: 24px 30px;
  position: absolute;
  transform: rotate(-2deg);
  width: min(340px, 72%);
}

.section-wrap {
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px clamp(22px, 4vw, 48px);
}

.logo-band {
  background: #f2e2da;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
  padding: 26px clamp(20px, 5vw, 70px);
}

.logo-band p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  max-width: 340px;
  text-align: center;
}

.registry-strip {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.registry-strip img {
  display: block;
  filter: saturate(0.86) contrast(1.04);
  height: 42px;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.86;
  width: 150px;
}

.registry-strip img[alt="Target"] {
  height: 54px;
  width: 92px;
}

.registry-strip img[alt="Babylist"] {
  height: 42px;
  width: 142px;
}

.registry-strip img[alt="MyRegistry"] {
  height: 50px;
}

.section-heading {
  margin-bottom: 38px;
  max-width: 820px;
}

.occasion-strip {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
  padding-bottom: 54px;
  padding-top: 60px;
}

.occasion-intro h2 {
  margin-bottom: 0;
}

.occasion-list {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding-left: 34px;
}

.occasion-list p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 0;
}

.occasion-list strong {
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  margin-right: 10px;
}

.workflow .section-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 850px;
  text-align: center;
}

.section-heading.split {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
  gap: 20px;
}

.section-heading p:not(.eyebrow),
.app-copy p,
.pricing-inner p,
.trust p,
.faq p,
.step-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.step-card,
.connector-panel,
.note-table,
.note-card-preview,
.trust article,
.faq details {
  background: rgba(247, 238, 230, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card {
  min-height: 218px;
  padding: 28px;
}

.step-number {
  color: var(--gold);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 38px;
}

.app-shell {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 42px;
  grid-template-columns: 0.85fr 1.15fr;
}

.connector-panel {
  padding: 24px;
}

.provider-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.provider {
  background: #fbf0e8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  min-height: 86px;
  padding: 14px;
  text-align: left;
}

.provider span {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.provider small {
  color: var(--ink-soft);
}

.provider.active {
  background: #efd6cc;
  border-color: rgba(122, 38, 44, 0.42);
  box-shadow: inset 0 0 0 1px rgba(122, 38, 44, 0.18);
}

.connect-form label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.file-import {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.file-import input {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  max-width: 100%;
  padding: 10px 14px;
}

.file-import span {
  color: var(--ink-soft);
  font-size: 13px;
}

.checkout-form {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.checkout-form label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.input-row {
  align-items: stretch;
}

.input-row input,
.connect-form input[type="url"],
.connect-form textarea {
  border: 1px solid var(--line);
  flex: 1 1 260px;
  min-width: 0;
}

.input-row input,
.connect-form input[type="url"] {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
}

.connect-form input[type="url"] {
  background: #fff8f0;
  color: var(--ink);
  display: block;
  margin-bottom: 16px;
  width: 100%;
}

.connect-form textarea {
  background: #fff8f0;
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  line-height: 1.5;
  min-height: 148px;
  padding: 16px 18px;
  resize: vertical;
  width: 100%;
}

.input-row input:focus,
.connect-form input[type="url"]:focus,
.connect-form textarea:focus {
  border-color: rgba(122, 38, 44, 0.42);
  box-shadow: 0 0 0 4px rgba(179, 59, 68, 0.1);
  outline: none;
}

.form-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 12px 0 0;
}

.preview {
  border-top: 1px solid var(--line);
  padding-top: 74px;
}

.preview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 0.9fr;
}

.note-table {
  overflow: hidden;
}

.table-head,
.gift-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr 120px;
}

.table-head {
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 16px 18px;
}

.gift-row {
  align-items: center;
  appearance: none;
  background: rgba(247, 238, 230, 0.74);
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  padding: 16px 18px;
  text-align: left;
  width: 100%;
}

.gift-row:hover,
.gift-row.active {
  background: #efd6cc;
}

.gift-row strong {
  display: block;
}

.gift-row small {
  color: var(--ink-soft);
}

.status-pill {
  background: rgba(179, 59, 68, 0.12);
  border-radius: 999px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-align: center;
}

.note-card-preview {
  background:
    linear-gradient(135deg, rgba(179, 59, 68, 0.09), rgba(217, 180, 168, 0.24)),
    var(--ivory);
  min-height: 520px;
  padding: 26px;
}

.note-editor {
  background: rgba(255, 248, 240, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

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

.note-editor label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.note-editor input,
.note-editor textarea {
  background: #fff8f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  min-width: 0;
  padding: 11px 13px;
  resize: vertical;
}

.note-editor input:focus,
.note-editor textarea:focus {
  border-color: rgba(122, 38, 44, 0.42);
  box-shadow: 0 0 0 4px rgba(179, 59, 68, 0.1);
  outline: none;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-card {
  background: #fbf3e9;
  border: 1px solid rgba(217, 180, 168, 0.54);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
  min-height: 330px;
  padding: 34px;
  transform: rotate(-1deg);
}

.paper-card p {
  color: #2c2020;
  font-family: var(--handwriting);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.28;
}

.signature {
  color: var(--blue);
  margin-top: 24px;
}

.envelope-preview {
  background: #efd6cc;
  border: 1px solid rgba(122, 38, 44, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  margin: 30px auto 0;
  max-width: 390px;
  padding: 30px 34px;
}

.envelope-preview span {
  color: #2c2020;
  font-family: var(--handwriting);
  font-size: 23px;
  font-weight: 600;
}

.pricing-band {
  background: #f2e2da;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 58px clamp(20px, 6vw, 90px);
}

.pricing-inner {
  background: rgba(255, 248, 240, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(26px, 4vw, 42px);
}

.pricing-inner h2 {
  margin-bottom: 8px;
}

.pricing-inner p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: 650px;
}

.trust-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust article {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq details {
  padding: 20px 22px;
}

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

.faq p {
  margin: 14px 0 0;
}

.footer {
  align-items: center;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 40px clamp(20px, 5vw, 70px);
}

.footer p {
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.admin-body {
  background:
    radial-gradient(circle at top right, rgba(217, 180, 168, 0.34), transparent 34%),
    var(--ivory);
}

.admin-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(28px, 5vw, 70px);
}

.admin-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: 220px 1fr;
  padding-bottom: 34px;
}

.admin-header h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.9;
  margin-bottom: 18px;
}

.admin-header p:not(.eyebrow),
.admin-empty {
  color: var(--ink-soft);
}

.admin-panel,
.admin-batch,
.admin-health,
.admin-empty {
  background: rgba(247, 238, 230, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-panel {
  margin: 28px 0;
  padding: 22px;
}

.admin-panel label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.admin-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-controls input,
.admin-controls select,
.admin-status select {
  background: #fff8f0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 16px;
}

.admin-controls input {
  flex: 1 1 320px;
}

.admin-results {
  display: grid;
  gap: 16px;
}

.admin-health {
  margin: 0 0 28px;
  padding: 22px;
}

.admin-health[hidden] {
  display: none;
}

.admin-health-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-health h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 0;
}

.health-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.health-pill.ready,
.health-card.ok strong {
  color: #286545;
}

.health-pill.ready {
  background: rgba(40, 101, 69, 0.12);
}

.health-pill.attention,
.health-card.warn strong {
  color: var(--rose-dark);
}

.health-pill.attention {
  background: rgba(179, 59, 68, 0.12);
}

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

.health-card {
  background: #fff8f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.health-card span,
.health-card strong,
.health-card small {
  display: block;
}

.health-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.health-card small {
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.admin-empty {
  padding: 28px;
}

.admin-batch {
  overflow: hidden;
}

.admin-batch-head {
  align-items: center;
  background: rgba(239, 214, 204, 0.58);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.admin-batch-head strong,
.admin-batch-head span,
.admin-batch-head small {
  display: block;
}

.admin-batch-head span,
.admin-batch-head small {
  color: var(--ink-soft);
  margin-top: 5px;
}

.admin-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-gifts {
  display: grid;
}

.admin-gift {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 0.8fr 0.8fr 1fr;
  padding: 16px 20px;
}

.admin-gift p {
  color: var(--ink-soft);
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 104px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-stationery {
    min-height: 430px;
    order: -1;
  }

  .registry-strip,
  .order-status dl,
  .occasion-strip,
  .steps-grid,
  .provider-grid,
  .editor-grid,
  .health-grid,
  .preview-grid,
  .trust-grid,
  .faq-list,
  .app-shell,
  .admin-header,
  .admin-gift {
    grid-template-columns: 1fr;
  }

  .occasion-list {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .table-head,
  .gift-row {
    grid-template-columns: 1fr;
  }

  .note-card-preview {
    min-height: auto;
  }

  .footer {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .admin-batch-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-health-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-status {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar {
    height: 62px;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    min-height: auto;
    padding: 92px 30px 48px;
  }

  .hero-copy {
    max-width: 330px;
    min-width: 0;
    width: 100%;
  }

  .hero .eyebrow {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(50px, 15vw, 58px);
  }

  .hero h1 {
    font-size: clamp(62px, 18vw, 78px);
    line-height: 0.9;
  }

  .hero-subtitle {
    font-size: 19px;
    max-width: 330px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-stationery {
    min-height: 300px;
    margin: 0 auto;
    max-width: 330px;
    width: 100%;
  }

  .hero-envelope {
    height: 170px;
    left: 9%;
    top: 72px;
    width: 78%;
  }

  .hero-envelope::before {
    height: 118px;
    width: 118px;
  }

  .hero-envelope::after {
    height: 110px;
    width: 110px;
  }

  .hero-card {
    gap: 9px;
    left: 18px;
    padding: 22px 24px;
    right: auto;
    top: 12px;
    width: min(268px, calc(100vw - 76px));
  }

  .hero-card span,
  .hero-address span {
    font-size: 19px;
    line-height: 1.08;
  }

  .hero-address {
    bottom: 10px;
    left: 8px;
    padding: 18px 20px;
    width: min(292px, calc(100vw - 70px));
  }

  .nav-cta {
    display: none;
  }

  .hero-actions .button,
  .input-row .button,
  .pricing-inner .button,
  .footer .button {
    width: 100%;
  }

  .paper-card {
    padding: 24px;
  }
}
