:root {
  color-scheme: light;
  --paper: #f4eee5;
  --paper-bright: #fffaf3;
  --ink: #1d2928;
  --muted: #6a706c;
  --line: #cdc4b7;
  --teal: #1f625d;
  --teal-dark: #164b47;
  --coral: #d14f3f;
  --coral-dark: #a6382d;
  --butter: #f3c96a;
  --night: #172729;
  --night-soft: #253c3d;
  --white: #fffaf3;
  --error: #9f3029;
  --focus: #226f9e;
  --sans: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(29, 41, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 238, 229, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.header-action {
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.local-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid #c79d49;
  background: var(--butter);
  color: #372b17;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.local-strip::before {
  content: "●";
  color: var(--teal-dark);
}

.storefront {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(18px, 4vw, 64px) 80px;
}

.storefront-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.storefront-intro h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
}

.intro-copy {
  max-width: 480px;
  margin: 0 0 7px;
  color: #4d5652;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.template-list {
  border-top: 1px solid var(--ink);
}

.template-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr) minmax(300px, 0.7fr);
  min-height: 570px;
  border-bottom: 1px solid var(--ink);
}

.template-row > * {
  min-width: 0;
}

.template-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px) clamp(20px, 4vw, 54px) clamp(28px, 4vw, 58px) 0;
}

.template-index {
  margin: 0 0 30px;
  color: var(--coral-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.template-copy h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.template-copy p {
  max-width: 420px;
  margin: 0 0 26px;
  color: #4d5652;
  line-height: 1.55;
}

.feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.feature-line li::before {
  content: "↗";
  margin-right: 6px;
  color: var(--coral);
}

.template-stage {
  display: grid;
  place-items: center;
  min-height: 570px;
  overflow: hidden;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.template-stage--card {
  background: #cfded9;
}

.template-stage--date {
  background: var(--night);
}

.template-phone {
  width: min(72%, 325px);
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.template-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 4vw, 54px);
}

.template-actions p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button--primary {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.button--primary:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.button--dark {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}

.button--ghost {
  background: var(--paper-bright);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.process-strip {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-strip > * {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.process-strip > :last-child {
  border-right: 0;
}

.process-strip h2,
.process-strip h3,
.process-strip p {
  margin: 0;
}

.process-strip h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.process-strip h3 {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.process-strip p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.honesty-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-top: 54px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}

.honesty-note h2,
.honesty-note p {
  margin: 0;
}

.honesty-note h2 {
  font-size: 0.94rem;
}

.honesty-note p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.editor-shell {
  min-height: calc(100vh - 111px);
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.progress-step {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px clamp(10px, 2vw, 28px);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.progress-step:last-child {
  border-right: 0;
}

.progress-step span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.progress-step.is-current {
  background: var(--butter);
  color: #352b1c;
}

.progress-step.is-done {
  color: var(--teal-dark);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(440px, 1.22fr);
  min-height: calc(100vh - 180px);
}

.editor-panel {
  padding: clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--ink);
  background: var(--paper-bright);
}

.editor-panel h1 {
  max-width: 570px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.editor-lead {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  line-height: 1.55;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.upload-label {
  font-size: 0.83rem;
  font-weight: 800;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #7f837f;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 2px;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.5;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom: 2px solid var(--error);
}

.field-error {
  min-height: 1em;
  color: var(--error);
  font-size: 0.74rem;
  font-weight: 760;
}

.counter {
  justify-self: end;
  margin-top: -1.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  pointer-events: none;
}

.upload-zone {
  grid-column: 1 / -1;
  padding-top: 8px;
}

.upload-drop {
  position: relative;
  display: grid;
  min-height: 126px;
  place-items: center;
  margin-top: 8px;
  padding: 20px;
  border: 1px dashed #7c817c;
  background: #f7f1e9;
  text-align: center;
}

.upload-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-drop strong,
.upload-drop small {
  display: block;
}

.upload-drop strong {
  margin-bottom: 5px;
}

.upload-drop small {
  color: var(--muted);
}

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.photo-chip {
  position: relative;
  width: 78px;
  height: 88px;
}

.photo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-chip button {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--night);
  color: white;
}

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

.preview-panel {
  position: sticky;
  top: 0;
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  overflow: hidden;
  padding: 30px;
  background: #d7dfd9;
}

.preview-panel[data-template="date"] {
  background: var(--night-soft);
}

.preview-caption {
  position: absolute;
  top: 18px;
  left: 22px;
  margin: 0;
  color: rgba(29, 41, 40, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-panel[data-template="date"] .preview-caption {
  color: rgba(255, 250, 243, 0.75);
}

.preview-device {
  width: min(360px, 75%);
  aspect-ratio: 9 / 18.4;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(16, 33, 32, 0.24);
}

.preview-device .gift {
  font-size: 0.7rem;
}

.preview-device .gift h1 {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
}

.preview-device .gift-message {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.template-phone .gift-cover,
.preview-device .gift-cover {
  min-height: 100%;
  grid-template-rows: 58% 42%;
}

.template-phone .gift-photo-hero,
.preview-device .gift-photo-hero,
.template-phone .gift-photo-hero img,
.preview-device .gift-photo-hero img {
  min-height: 0;
  height: 100%;
}

.template-phone .gift-cover-copy,
.preview-device .gift-cover-copy {
  padding: 18px 17px;
}

.template-phone .gift-kicker,
.preview-device .gift-kicker {
  margin-bottom: 6px;
  font-size: 0.62rem;
}

.template-phone .gift-open,
.preview-device .gift-open {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.66rem;
}

.template-phone .date-cover,
.preview-device .date-cover {
  min-height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 53% 47%;
}

.template-phone .date-visual,
.preview-device .date-visual,
.template-phone .date-visual img,
.preview-device .date-visual img {
  min-height: 0;
  height: 100%;
}

.template-phone .date-visual::after,
.preview-device .date-visual::after {
  background: linear-gradient(transparent 62%, var(--night));
}

.template-phone .date-cover-copy,
.preview-device .date-cover-copy {
  min-height: 0;
  padding: 16px 18px;
}

.template-phone .date-cover-copy::before,
.preview-device .date-cover-copy::before {
  display: none;
}

.template-phone .date-cover-copy h1,
.preview-device .date-cover-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
}

.template-phone .date-cover-copy .gift-message,
.preview-device .date-cover-copy .gift-message {
  margin-bottom: 12px;
  font-size: 0.65rem;
  line-height: 1.4;
  -webkit-line-clamp: 3;
}

.full-preview {
  min-height: 100vh;
  background: #cfded9;
}

.full-preview[data-template="date"] {
  background: var(--night);
}

.preview-toolbar {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 40;
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--ink);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: var(--shadow);
}

.preview-toolbar .button {
  flex: 1;
}

.result-page {
  min-height: calc(100vh - 111px);
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 80px);
}

.result-wrap {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: 1fr 0.8fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.result-copy,
.result-links {
  padding: clamp(28px, 5vw, 58px);
}

.result-copy {
  border-right: 1px solid var(--ink);
}

.result-copy h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
}

.result-copy p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.result-links h2 {
  margin: 0 0 22px;
  font-size: 1rem;
}

.share-block {
  margin-bottom: 26px;
}

.share-block label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.share-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.share-line input {
  min-width: 0;
  border: 1px solid #747a76;
  border-right: 0;
  background: white;
  padding: 12px;
}

.share-line button {
  border-radius: 0;
}

.share-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.payment-boundary {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.payment-boundary strong {
  display: block;
  margin-bottom: 8px;
}

.payment-boundary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.gift-view {
  min-height: 100vh;
}

.gift {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.gift button {
  font-family: var(--sans);
}

.gift-cover,
.gift-inside,
.date-cover,
.date-journey {
  min-height: 100%;
}

.gift--immersive {
  min-height: 100vh;
}

.gift--card {
  background: #e7eee8;
  color: #253331;
}

.gift-cover {
  position: relative;
  z-index: 6;
  display: grid;
  min-height: 100vh;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #d8e3de;
  transition: transform 700ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.gift-photo-hero {
  position: relative;
  min-height: 58vh;
  overflow: hidden;
}

.gift-photo-hero img {
  width: 100%;
  height: 100%;
  min-height: 58vh;
  object-fit: cover;
}

.gift-photo-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(25, 45, 42, 0.42));
  content: "";
}

.gift-cover-copy {
  position: relative;
  padding: clamp(26px, 7vw, 68px);
  background: #fff8ef;
}

.gift-kicker {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-size: 0.75em;
  font-weight: 850;
  text-transform: uppercase;
}

.gift h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
}

.gift-open {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.gift-open::after {
  margin-left: 18px;
  content: "↘";
}

.gift-inside {
  display: none;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  background: #fff8ef;
}

.gift.is-open .gift-cover {
  display: none;
}

.gift.is-open .gift-inside {
  display: grid;
  animation: reveal-in 620ms ease both;
}

.gift-collage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: #c7d8d2;
}

.gift-collage img {
  width: min(78%, 600px);
  max-height: 74vh;
  border: 13px solid #fffaf3;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.gift-collage img:nth-child(2) {
  position: absolute;
  right: 8%;
  bottom: 7%;
  width: 34%;
  max-height: 32vh;
  transform: rotate(5deg);
}

.gift-collage img:nth-child(3) {
  position: absolute;
  top: 7%;
  left: 8%;
  width: 29%;
  max-height: 27vh;
  transform: rotate(-7deg);
}

.gift-letter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 100px);
}

.gift-letter h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
}

.gift-message {
  margin: 0;
  white-space: pre-wrap;
  color: #45504c;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.62;
}

.gift-signature {
  margin: 40px 0 0;
  font-size: 0.86rem;
  font-weight: 850;
}

.gift--date {
  background: var(--night);
  color: var(--white);
}

.date-cover {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.date-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.date-visual img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}

.date-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 56%, rgba(23, 39, 41, 0.84));
  content: "";
}

.date-cover-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 100px);
  background: var(--night);
}

.date-cover-copy::before {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 32px;
  border: 1px solid var(--butter);
  border-radius: 50%;
  color: var(--butter);
  content: "☾";
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 48px;
  text-align: center;
}

.date-cover-copy .gift-kicker {
  color: var(--butter);
}

.date-cover-copy h1 {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.date-cover-copy .gift-message {
  max-width: 540px;
  margin-bottom: 32px;
  color: #d9e1dc;
}

.gift--date .gift-open {
  align-self: flex-start;
  border-color: var(--butter);
  background: var(--butter);
  color: #2c2518;
}

.date-journey {
  display: none;
  min-height: 100vh;
  padding: clamp(28px, 7vw, 94px);
  background: var(--night);
}

.gift.is-open .date-cover {
  display: none;
}

.gift.is-open .date-journey {
  display: block;
  animation: reveal-in 500ms ease both;
}

.journey-header {
  display: flex;
  max-width: 1000px;
  margin: 0 auto clamp(34px, 7vw, 76px);
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.journey-header h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
}

.journey-header p {
  max-width: 290px;
  margin: 0;
  color: #b8c6c0;
  line-height: 1.5;
}

.journey-stops {
  position: relative;
  display: grid;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #7a8b84;
}

.journey-stop {
  position: relative;
  min-height: 260px;
  padding: 32px 26px;
  border: 0;
  border-right: 1px solid #586966;
  background: transparent;
  color: white;
  text-align: left;
}

.journey-stop:last-child {
  border-right: 0;
}

.journey-stop::before {
  position: absolute;
  top: -8px;
  left: 24px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--butter);
  content: "";
}

.stop-number {
  display: block;
  margin-bottom: 55px;
  color: var(--butter);
  font-size: 0.75rem;
  font-weight: 850;
}

.stop-label {
  display: block;
  margin-bottom: 10px;
  color: #9eaaa5;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stop-value {
  display: block;
  filter: blur(8px);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.15;
  opacity: 0.35;
  transition: filter 320ms ease, opacity 320ms ease;
}

.journey-stop.is-revealed .stop-value {
  filter: none;
  opacity: 1;
}

.journey-stop:disabled {
  cursor: wait;
  opacity: 0.55;
}

.journey-finale {
  display: none;
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 32px 0;
  border-top: 1px solid #7a8b84;
  animation: reveal-in 440ms ease both;
}

.journey-finale.is-visible {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.journey-finale h3,
.journey-finale p {
  margin: 0;
}

.journey-finale h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
}

.journey-finale p {
  color: #b8c6c0;
}

.answer-buttons {
  display: flex;
  gap: 8px;
}

.answer-buttons button {
  min-height: 50px;
  padding: 11px 18px;
  border: 1px solid var(--butter);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-weight: 800;
}

.answer-buttons button:first-child {
  background: var(--butter);
  color: #2c2518;
}

.final-message {
  display: none;
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 34px;
  border: 1px solid var(--butter);
  color: var(--butter);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-align: center;
}

.final-message.is-visible {
  display: block;
  animation: reveal-in 500ms ease both;
}

.spark {
  position: fixed;
  z-index: 60;
  width: 8px;
  height: 15px;
  background: var(--butter);
  pointer-events: none;
  animation: spark-fall 900ms ease-out forwards;
}

.error-screen,
.loading-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 28px;
  background: var(--paper);
  text-align: center;
}

.error-screen h1,
.loading-screen h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 500;
}

.error-screen p,
.loading-screen p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spark-fall {
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(360deg);
  }
}

@media (max-width: 980px) {
  .header-note {
    display: none;
  }

  .storefront-intro {
    grid-template-columns: 1fr;
  }

  .template-row {
    grid-template-columns: 0.75fr 1fr;
  }

  .template-copy {
    padding-left: 0;
  }

  .template-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 0;
  }

  .template-actions p {
    grid-column: 1 / -1;
  }

  .process-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-strip h2 {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    border-right: 0;
  }

  .preview-panel {
    position: relative;
    min-height: 760px;
  }

  .result-wrap {
    grid-template-columns: 1fr;
  }

  .result-copy {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .date-cover {
    grid-template-columns: 1fr;
  }

  .date-visual {
    min-height: 54vh;
  }

  .date-visual img {
    min-height: 54vh;
  }

  .date-visual::after {
    background: linear-gradient(transparent 55%, var(--night));
  }

  .date-cover-copy {
    min-height: 46vh;
  }

  .gift-inside {
    grid-template-columns: 1fr;
  }

  .gift-collage {
    min-height: 58vh;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-action {
    font-size: 0.78rem;
  }

  .local-strip {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .storefront {
    padding: 36px 16px 60px;
  }

  .storefront-intro {
    gap: 20px;
    margin-bottom: 38px;
  }

  .storefront-intro h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .template-row {
    grid-template-columns: 1fr;
  }

  .template-copy {
    padding: 32px 0 28px;
  }

  .template-index {
    margin-bottom: 20px;
  }

  .template-stage {
    min-height: 520px;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .template-phone {
    width: min(76%, 290px);
  }

  .template-actions {
    display: flex;
    padding: 24px 0 32px;
  }

  .process-strip {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .process-strip h2,
  .process-strip > * {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-strip > :last-child {
    border-bottom: 0;
  }

  .honesty-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress-rail {
    overflow-x: auto;
  }

  .progress-step {
    min-width: 116px;
    padding: 12px;
  }

  .progress-step span {
    flex: 0 0 auto;
  }

  .editor-panel {
    padding: 30px 16px 38px;
  }

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

  .field--wide,
  .upload-zone {
    grid-column: auto;
  }

  .editor-actions .button {
    width: 100%;
  }

  .preview-panel {
    min-height: 650px;
    padding: 54px 14px 24px;
  }

  .preview-device {
    width: min(330px, 94%);
  }

  .preview-toolbar {
    flex-direction: column;
  }

  .preview-toolbar--demo {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: none;
  }

  .result-page {
    padding: 28px 16px;
  }

  .result-copy,
  .result-links {
    padding: 30px 0;
  }

  .result-copy {
    padding-right: 2px;
    padding-left: 2px;
  }

  .share-line {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .share-line input {
    border-right: 1px solid #747a76;
  }

  .gift-cover-copy,
  .gift-letter,
  .date-cover-copy {
    padding: 28px 22px;
  }

  .gift-collage {
    padding: 24px 14px;
  }

  .gift-collage img {
    border-width: 8px;
  }

  .date-cover-copy::before {
    width: 45px;
    height: 45px;
    margin-bottom: 22px;
    font-size: 1.8rem;
    line-height: 40px;
  }

  .date-journey {
    padding: 34px 18px 60px;
  }

  .journey-header {
    display: block;
  }

  .journey-header h2 {
    margin-bottom: 18px;
  }

  .journey-stops {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid #7a8b84;
  }

  .journey-stop {
    min-height: 160px;
    padding: 24px 24px 24px 34px;
    border-right: 0;
    border-bottom: 1px solid #586966;
  }

  .journey-stop::before {
    top: 25px;
    left: -8px;
  }

  .stop-number {
    margin-bottom: 25px;
  }

  .journey-finale.is-visible {
    grid-template-columns: 1fr;
  }

  .answer-buttons {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
