/* ==========================================================================
   Ribbonnote — landing page
   Tokens come from the Figma file (variables on the "waitlist" frame).
   ========================================================================== */

/* Freight Big Pro comes from the Adobe Fonts web project "Ribbonnote" (kit cwa2zyn, linked in each page). */
:root {
  --bg-page: #f0eee9;
  --bg-section: #e6e2da;
  --bg-card: #ffffff;
  --bg-inverse: #1a1f2c;
  --border-subtle: #d9d3c9;
  --border-default: #c2bbb0;
  --text-primary: #1a1f2c;
  --text-secondary: #2b3244;
  --text-muted: #4a5368;
  --text-on-brand: #f0eee9;
  --ink-300: #8c93a3;
  --ink-700: #2b3244;
  --scarlet-50: #f8ebed;
  --scarlet-100: #f0d3d7;
  --scarlet-300: #d47a87;
  --scarlet-700: #82192a;
  --action-primary: #9f2436;
  --action-primary-hover: #82192a;
  --sakura-600: #f55d83;
  --focus-ring: #d47a87;

  --shadow-card: 0 .53px .53px rgba(94, 49, 54, .12), 0 5.3px 6.4px rgba(94, 49, 54, .14);
  --shadow-soft: 0 .53px 1.06px rgba(94, 49, 54, .12), 0 5.3px 12.8px rgba(94, 49, 54, .14);

  --font-display: "freight-big-pro", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "La Belle Aurore", cursive;
  --font-caption: "Caveat", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 64px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 16px/24px var(--font-body);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-inverse);
  color: var(--text-on-brand);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display,
.h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text-primary);
}
.display .b, .h2 .b { display: block; font-weight: 700; }
.display .i, .h2 .i { display: block; font-style: italic; font-weight: 400; }

.display {
  font-size: 48px;
  line-height: 50px;
  letter-spacing: -.01em;
}
.display .i { line-height: 46px; margin-top: 2px; }

.h2 {
  font-size: 38px;
  line-height: 40px;
  letter-spacing: -.01em;
}

.eyebrow {
  color: var(--scarlet-700);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/20px var(--font-body);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 14px; line-height: 18px; }
.btn-nav { position: relative; min-height: 30px; padding: 7px 12px; font-size: 13px; line-height: 16px; }
/* Looks 30px tall as in Figma, but the tappable area is 44px. */
.btn-nav::before { content: ""; position: absolute; inset: -7px -4px; }

.btn-primary { background: var(--scarlet-700); color: var(--text-on-brand); }
.btn-primary:hover { background: #6b1322; }
.btn-action { background: var(--action-primary); color: var(--text-on-brand); }
.btn-action:hover { background: var(--action-primary-hover); }
.btn-ink { background: var(--bg-inverse); color: var(--text-on-brand); }
.btn-ink:hover { background: var(--ink-700); }
.btn-ghost {
  background: transparent;
  color: var(--scarlet-700);
  box-shadow: inset 0 0 0 1.5px var(--scarlet-700);
}
.btn-ghost:hover { background: var(--scarlet-700); color: var(--text-on-brand); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--scarlet-700);
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 15.17px;
  line-height: 1;
  letter-spacing: 0;
}

/* ==========================================================================
   Hero
   The art is drawn in Figma units; --u scales one Figma pixel.
   ========================================================================== */

.hero {
  --u: calc(min(100vw, 480px) / 390);
  position: relative;
  padding-top: calc(338 * var(--u));
  padding-bottom: 50px;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(390 * var(--u));
  height: calc(440 * var(--u));
  pointer-events: none;
  user-select: none;
}
.hero-art > * { position: absolute; }

.rot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rot > div { flex: none; transform: rotate(var(--r)); }

.tag-paper { left: calc(107 * var(--u)); top: calc(20 * var(--u)); width: calc(239.34 * var(--u)); height: calc(176.85 * var(--u)); z-index: 1; }
.tag-paper img {
  width: calc(214.24 * var(--u));
  height: calc(126.84 * var(--u));
  object-fit: cover;
  filter: drop-shadow(0 .5px 1px rgba(94, 49, 54, .12)) drop-shadow(0 5px 6px rgba(94, 49, 54, .14));
}
.tag-for { left: calc(63.46 * var(--u)); top: calc(39.07 * var(--u)); width: calc(126.28 * var(--u)); height: calc(74.83 * var(--u)); z-index: 1; }
.tag-for > div { position: relative; width: calc(118.48 * var(--u)); height: calc(45.73 * var(--u)); }
.tag-for span {
  position: absolute;
  left: calc(101.3 * var(--u));
  top: calc(12.52 * var(--u));
  width: calc(180.7 * var(--u));
  transform: translate(-50%, -50%) rotate(-6.54deg);
  text-align: center;
  font: calc(20.52 * var(--u)) / calc(24.14 * var(--u)) var(--font-hand);
  color: var(--text-primary);
}
.tag-name { left: calc(189.72 * var(--u)); top: calc(81.14 * var(--u)); width: calc(110.71 * var(--u)); height: calc(71.52 * var(--u)); z-index: 1; }
.tag-name span {
  display: block;
  width: calc(104.46 * var(--u));
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(29 * var(--u));
  line-height: calc(28.6 * var(--u));
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.postmark { left: calc(48 * var(--u)); top: calc(78.78 * var(--u)); width: calc(128.8 * var(--u)); height: calc(75.76 * var(--u)); z-index: 1; }

.ribbon-group { inset: 0; z-index: 2; }
.ribbon-group > img { position: absolute; }
.hero-ribbon {
  left: 0;
  top: calc(-2 * var(--u));
  width: calc(390 * var(--u));
  height: calc(392 * var(--u));
  z-index: 2;
}
.wax-seal { left: calc(269 * var(--u)); top: calc(148 * var(--u)); width: calc(67 * var(--u)); height: calc(67 * var(--u)); z-index: 3; }

.hero-polaroid { left: calc(45.39 * var(--u)); top: calc(156.5 * var(--u)); width: calc(131.64 * var(--u)); height: calc(152.5 * var(--u)); z-index: 4; }

.polaroid {
  display: flex;
  flex-direction: column;
  gap: calc(3.633 * var(--u));
  width: calc(101.62 * var(--u));
  padding: calc(5.185 * var(--u)) calc(5.185 * var(--u)) calc(6.222 * var(--u));
  border-radius: calc(2.07 * var(--u));
  background: var(--bg-card);
  filter: drop-shadow(0 .5px .5px rgba(94, 49, 54, .12)) drop-shadow(0 5.2px 6.2px rgba(94, 49, 54, .14));
}
.polaroid > img { width: 100%; height: calc(103.69 * var(--u)); object-fit: cover; }
.polaroid figcaption {
  text-align: center;
  font: calc(10.36 * var(--u)) / calc(12.19 * var(--u)) var(--font-caption);
  color: var(--text-primary);
  letter-spacing: 0;
}

/* Wider phones: the band would end in mid-air, so it fades in from the left. */
@media (min-width: 400px) {
  .hero-ribbon {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 calc(56 * var(--u)));
            mask-image: linear-gradient(to right, transparent 0, #000 calc(56 * var(--u)));
  }
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lead { color: var(--text-secondary); }

.cta-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12px;
}

.scarcity {
  --fill: .37;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scarcity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
}
.scarcity-row strong { font-weight: 600; }
.scarcity-row .left { font-weight: 500; color: var(--scarlet-700); white-space: nowrap; }
.bar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--border-default);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: calc(var(--fill) * 100%);
  border-radius: 2px;
  background: var(--scarlet-700);
}
.bar-envelope {
  position: absolute;
  top: 15px;
  left: calc(var(--fill) * 100% - 17px);
  width: 34px;
  height: 21px;
  object-fit: contain;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how { padding: 72px 0; }
.how .section-head { margin-bottom: 15px; }

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 25px 0;
}
.step-text { display: flex; flex-direction: column; gap: 8px; }
.step-text p { color: var(--text-secondary); }

.step-title {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0;
}
.step-num {
  position: relative;
  flex: none;
  width: 27px;
  padding-bottom: 1px;
  text-align: center;
  font: 400 16px/27px var(--font-body);
  letter-spacing: -.01em;
  color: var(--scarlet-700);
}
.step-num::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: .5px;
  background: var(--scarlet-700);
}

.card {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* 01 · form mock */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}
.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.status img { width: 6px; height: 6px; }
.mock-field { display: flex; flex-direction: column; gap: 5px; }
.mock-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.mock-label.split { display: flex; justify-content: space-between; }
.mock-label .muted { font-weight: 500; }
.mock-input {
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-page);
}
.mock-textarea {
  min-height: 92px;
  padding: 10px 12px;
  border: 1.5px solid var(--scarlet-700);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(159, 36, 54, .12);
  line-height: 23px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 19px;
  margin-left: 1px;
  vertical-align: -4px;
  border-radius: 1px;
  background: var(--scarlet-700);
  animation: blink 1s step-end infinite;
}
.is-typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

.uploader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.uploader > .muted { flex: 1; text-align: right; }
.thumb {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
}
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.thumb i {
  position: absolute;
  left: 23px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--text-primary);
}
.thumb i img { width: 7.9px; height: 7.9px; }
.thumb.add {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-default);
}
.thumb.add img { width: 14px; height: 14px; }

/* 02 · phone preview + gift box */
.step:nth-child(2) { align-items: center; }
.step:nth-child(2) .step-text { align-self: stretch; }

.phone {
  position: relative;
  width: 306px;
  height: 327px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-page);
}
.phone-screen {
  position: absolute;
  left: 31.09px;
  top: 11.3px;
  width: 243.7px;
  height: 529.85px;
  border-radius: 38.19px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-page);
}
.phone-page {
  position: absolute;
  left: 0;
  top: 19.57px;
  width: 243.7px;
  padding: 73.5px 18.12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10.64px;
}
.gift-title { display: flex; flex-direction: column; align-items: center; gap: 11.6px; min-height: 99.6px; text-align: center; }
.gift-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 29px;
  line-height: 27.08px;
  letter-spacing: -.01em;
  color: var(--scarlet-700);
}
.gift-sub {
  font: 13.75px/16.25px var(--font-hand);
  letter-spacing: 0;
  color: var(--ink-700);
}
.gift {
  position: relative;
  width: 208.1px;
  height: 162.47px;
}
.gift .g { position: absolute; max-width: none; }
.gift .mul { mix-blend-mode: multiply; }
.gift .ovl { mix-blend-mode: overlay; }
.gift-front, .gift-lid, .gift-bow, .loop { position: absolute; inset: 0; }
.gift-front { z-index: 3; }
.gift-lid { z-index: 4; }
.gift-bow { z-index: 5; }

.preview-pill {
  position: absolute;
  left: 85.12px;
  top: 68.04px;
  display: inline-flex;
  align-items: center;
  gap: 5.87px;
  padding: 3.91px 9.78px;
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 10.76px;
  line-height: 13.7px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.preview-pill img { width: 5.87px; height: 5.87px; }

.phone-frame {
  position: absolute;
  left: calc(50% + .13px);
  top: -.45px;
  width: 267.11px;
  height: 342.45px;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}
.phone-fade {
  position: absolute;
  left: 19.43px;
  top: 295.55px;
  width: 267.34px;
  height: 37.93px;
  background: linear-gradient(to bottom, rgba(240, 238, 233, 0), var(--bg-page) 55%, var(--bg-page));
  pointer-events: none;
}

/* 03 · chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.msg { display: flex; }
.msg.out { justify-content: flex-end; }
.bubble {
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -.01em;
}
.link-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 238px;
  max-width: 100%;
  padding: 6px;
  border-radius: 16px 16px 4px 16px;
  background: var(--scarlet-50);
}
.link-bubble p { padding: 0 2px 2px; }
.link-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  background: var(--bg-card);
}
.link-preview strong, .link-preview em { display: block; font-style: normal; }
.link-preview strong { font-size: 13px; line-height: 17px; font-weight: 600; }
.link-preview em { font-size: 11px; line-height: 14px; font-weight: 500; color: var(--scarlet-700); letter-spacing: 0; }
.link-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-page);
}
.link-thumb img { width: 42px; height: 34px; max-width: none; object-fit: cover; filter: drop-shadow(0 2px 4px rgba(94, 49, 54, .18)); }
.qr-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 16px 4px 16px 16px;
  background: var(--scarlet-50);
  white-space: nowrap;
}
.qr-tile { padding: 5px; border-radius: 8px; background: var(--bg-card); }
.qr-tile img { width: 54px; height: 54px; }
.qr-bubble strong, .qr-bubble em { display: block; font-style: normal; font-weight: 500; letter-spacing: 0; }
.qr-bubble strong { font-size: 18px; line-height: 22px; color: var(--scarlet-700); }
.qr-bubble em { font-size: 11px; line-height: 16px; color: var(--text-muted); }
.delivered {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.delivered img { width: 7px; height: 7px; }
.delivered img + img { margin-left: -6px; }

.reply-slot {
  position: relative;
  align-items: flex-end;
  gap: 6px;
}
.avatar {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--scarlet-100);
}
.avatar img { position: absolute; left: -24px; top: 0; width: 57px; height: 38px; max-width: none; object-fit: cover; }
.reply {
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-section);
}
.typing {
  position: absolute;
  left: 28px;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-section);
  opacity: 0;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: hop 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }

/* 04 · reveal */
.reveal-visual {
  position: relative;
  width: 330px;
  max-width: 100%;
  height: 306px;
}
.reveal-visual > * { position: absolute; }
/* The ribbon bleeds past the side margins to the screen edges, as in Figma. */
.swirl { left: calc(-1 * var(--gutter)); top: -23px; width: min(100vw, 560px); max-width: none; height: 297.5px; object-fit: cover; }
.keys-group, .note-group { inset: 0; }
.keys-group > *, .note-group > * { position: absolute; }
.keys-group { transform-origin: 117px 153px; }
.keys-polaroid { left: 25.47px; top: 41.34px; width: 183.04px; height: 227.21px; }
.polaroid-lg {
  --u: 1.641px; /* 166.75 / 101.62 */
  gap: 5.96px;
  width: 166.75px;
  padding: 8.51px 8.51px 10.21px;
  border-radius: 3.4px;
}
.polaroid-lg .photo { position: relative; height: 170.15px; overflow: hidden; }
.polaroid-lg .photo img { position: absolute; left: -50.1%; top: -.4%; width: 170.59%; height: 100%; max-width: none; object-fit: cover; }
.polaroid-lg figcaption { font-size: 17px; line-height: 20px; }
.keys-clip { left: 120.79px; top: 37.6px; width: 9.54px; height: 20.56px; }
.clip {
  position: relative;
  display: block;
  width: 8px;
  height: 20px;
  border: .75px solid var(--focus-ring);
  border-radius: 2px;
  background: var(--scarlet-700);
  box-shadow: 0 1.5px 3px rgba(94, 49, 54, .18);
}
.clip::after { content: ""; position: absolute; left: -.75px; top: 7.5px; width: 8px; height: 1px; background: var(--sakura-600); }
.note-paper { left: 125.38px; top: 114.47px; width: 199.05px; height: 139.59px; }
.note-paper img { width: 182.33px; height: 107.95px; object-fit: cover; filter: drop-shadow(0 .4px .9px rgba(94, 49, 54, .12)) drop-shadow(0 4.4px 5px rgba(94, 49, 54, .14)); }
.note-text { left: 163.95px; top: 153.8px; width: 131.67px; height: 46.38px; }
.note-text span { display: block; width: 129.95px; font: 15.04px/18.66px var(--font-hand); letter-spacing: 0; }
.note-sign { left: 155.89px; top: 188.01px; width: 149.61px; height: 44.97px; }
.note-sign span { display: block; width: 147.4px; font: 18px/1.2 var(--font-hand); color: var(--scarlet-700); letter-spacing: 0; }
.stamp-wrap { left: 207px; top: -1px; width: 115.39px; height: 84.1px; }
.stamp { position: relative; width: 105.51px; height: 46.76px; }
.stamp img { width: 100%; height: 100%; }
.stamp span {
  position: absolute;
  font-family: "Courier Prime", ui-monospace, monospace;
  font-weight: 700;
  color: var(--scarlet-700);
  white-space: nowrap;
  line-height: 1.1;
}
.stamp .s1 { left: 33.87px; top: 12.89px; font-size: 8.99px; letter-spacing: 1.08px; }
.stamp .s2 { left: 31.17px; top: 26.38px; font-size: 6.59px; letter-spacing: .92px; }
.plane { left: 217px; top: 217px; width: 48px; height: 32px; object-fit: contain; }

.example-cta { padding-top: 0; }

/* ==========================================================================
   Moments
   ========================================================================== */

.moments { padding: 72px 0; }
.moments .section-head { margin-bottom: 40px; }

.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(26, 31, 43, .06);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.theme:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26, 31, 43, .1); }
a.theme:hover .arrow { background: var(--scarlet-50); }
a.theme:hover .arrow img { transform: translateX(2px); }
.theme-valentine { grid-column: 1 / -1; }
.theme-preview {
  position: relative;
  display: block;
  height: 128px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--scarlet-50);
}
.theme-valentine .theme-preview { height: 172px; }
.theme-preview img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Crops match the photo frames in Figma (percent of the preview box). */
.theme-anniversary .theme-preview img { inset: auto; left: -30.57%; top: -4.69%; width: 128.66%; height: 104.69%; }
.theme-distance .theme-preview img { inset: auto; left: -61.78%; top: -17.97%; width: 188.54%; height: 153.91%; }
.theme-mothers .theme-preview img { inset: auto; left: -38.71%; top: 0; width: 132.26%; height: 100%; opacity: .5; }
.theme-birthday .theme-preview img { inset: auto; left: -30.32%; top: 0; width: 154.84%; height: 102.34%; opacity: .5; }
.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.theme-valentine .badge { left: 10px; top: 10px; }
.badge-free { background: var(--scarlet-700); color: var(--text-on-brand); }
.badge-plus { background: var(--bg-card); color: var(--text-secondary); }
.badge-soon { background: var(--bg-section); color: var(--text-secondary); }
.theme-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
}
.theme-foot > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.theme-foot strong { font-size: 15px; line-height: 20px; font-weight: 600; }
.theme-foot small { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.theme-valentine small { font-weight: 300; }
.theme-foot small b { font-weight: 600; }
.arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-page);
  transition: background-color .2s ease;
}
.arrow img { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.theme-soon {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-default);
}
.theme-soon .theme-preview { background: var(--bg-page); }
.theme-soon strong { color: var(--text-muted); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing { padding: 72px 0; background: var(--bg-section); }
.pricing .section-head { margin-bottom: 40px; }
.pricing-grid { display: flex; flex-direction: column; gap: 40px; }

.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--scarlet-50);
  color: var(--scarlet-700);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.offer-title { font-size: 20px; line-height: 26px; font-weight: 600; }
.price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  height: 98px;
  font-family: var(--font-display);
  white-space: nowrap;
}
.price-now { display: inline-block; font-size: 88px; line-height: 75.7px; font-weight: 500; letter-spacing: -.02em; }
.price-was {
  position: relative;
  display: inline-block;
  font-size: 34px;
  line-height: 34px;
  color: var(--text-muted);
  text-decoration: none;
}
.price-was::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.5px;
  background: currentColor;
  transform-origin: left center;
}
.perks { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.perks li { display: flex; align-items: flex-start; gap: 12px; }
.perks img { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.offer .btn { margin-top: 0; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 16px;
  min-height: 211px;
}
.plan ul { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 21px; color: var(--ink-700); }
.plan li img { width: 16px; height: 16px; flex: none; }
.plan-name { font-weight: 600; }
.plan-free { background: var(--bg-page); box-shadow: inset 0 0 0 1px var(--border-default); }
.plan-plus { background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--scarlet-300); }
.plan-plus > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tag-soon {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--scarlet-50);
  color: var(--scarlet-700);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 72px 0; }
.faq .section-head { margin-bottom: 40px; }
.faq .h2 .b, .faq .h2 .i { display: inline; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item h3 { font: inherit; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}
.faq-q:hover { color: var(--scarlet-700); }
.pm {
  position: relative;
  flex: none;
  width: 28px;
  height: 22px;
}
.pm::before, .pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  border-radius: 1px;
  background: var(--text-muted);
  transition: transform .3s var(--ease);
}
.pm::after { transform: rotate(90deg); }
.is-open .pm::after { transform: rotate(0deg) scaleX(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .4s; }
.faq-a p { padding: 0 44px 22px 0; color: var(--text-secondary); }
.is-open .faq-a { grid-template-rows: 1fr; }
.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }

/* ==========================================================================
   Final CTA + waitlist form
   ========================================================================== */

.final {
  --u: 1px;
  position: relative;
  overflow: hidden;
  padding: 300px 0 72px;
  background: var(--action-primary-hover);
  color: var(--text-on-brand);
}
.final-art {
  position: absolute;
  left: 50%;
  top: -15px;
  width: calc(390 * var(--u));
  height: calc(312 * var(--u));
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.final-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(251 * var(--u));
  height: 80px;
  background: linear-gradient(to bottom, rgba(130, 25, 42, 0), var(--action-primary-hover));
  pointer-events: none;
}
.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.final .h2 { color: var(--text-on-brand); }
.final-lead { margin-bottom: 20px; }

.form-wrap {
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(26, 31, 43, .08);
  color: var(--text-primary);
  text-align: left;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
/* A legend isn't a flex item, so the fieldset gap never applied to it. */
fieldset.field > legend { margin-bottom: 10px; }
.label {
  padding: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.optional {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}
.input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 16px/24px var(--font-body);
  letter-spacing: -.01em;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none;
          appearance: none;
}
.input::placeholder { color: var(--ink-300); }
.input:focus {
  outline: none;
  border-color: var(--scarlet-700);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(159, 36, 54, .12);
}
.input[aria-invalid="true"] { border-color: var(--action-primary); background: var(--scarlet-50); }
.field-error:empty, .form-error:empty { display: none; }
.field-error, .form-error {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--action-primary);
}
.form-error { text-align: center; }
.field-error { margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border-default);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, padding .25s var(--ease), gap .25s var(--ease);
}
.chip span img {
  width: 0;
  height: 14px;
  opacity: 0;
  transition: width .25s var(--ease), opacity .2s ease;
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--text-muted); }
.chip input:checked + span {
  gap: 6px;
  padding-left: 12px;
  background: var(--scarlet-50);
  box-shadow: inset 0 0 0 1.5px var(--scarlet-700);
  color: var(--scarlet-700);
}
.chip input:checked + span img { width: 14px; opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.form-note { font-size: 14px; line-height: 21px; color: var(--text-muted); }
.form-legal { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.form-legal a { text-underline-offset: 2px; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(240, 238, 233, .35);
  border-top-color: var(--text-on-brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 4px 10px;
  text-align: center;
  outline: none;
}
.form-success[hidden] { display: none; }
.form-success p { color: var(--text-secondary); }
.form-success strong { color: var(--text-primary); word-break: break-all; }
.form-success .caption { color: var(--scarlet-700); }
.success-check { width: 64px; height: 64px; margin-bottom: 6px; }
.success-check circle { fill: var(--scarlet-50); stroke: var(--scarlet-700); stroke-width: 1.5; }
.success-check path {
  fill: none;
  stroke: var(--scarlet-700);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
}
.success-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ==========================================================================
   Legal pages (privacy.html, terms.html) — mirrors the "privacy / terms — mobile" frames
   ========================================================================== */

.legal-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 72px;
  color: var(--text-secondary);
}
.legal-head { display: flex; flex-direction: column; gap: 12px; }
.legal-title {
  font: 500 38px/42px var(--font-display);
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.legal-inner .legal-tagline {
  font: italic 400 24px/32px var(--font-display);
  color: var(--text-primary);
}
.legal-inner .legal-updated { font-size: 14px; line-height: 21px; color: var(--text-muted); }
.legal-inner p { font-size: 16px; line-height: 24px; }
.legal-inner strong { font-weight: 600; color: var(--text-primary); }
.legal-inner a { color: var(--action-primary); font-weight: 500; text-underline-offset: 2px; }
/* In Figma, emails inside the text read as plain text; only the contact box styles it as a link. */
.legal-head a, .legal-section a { color: inherit; font-weight: inherit; text-decoration: none; }
.placeholder { color: var(--action-primary); }

.legal-short {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(26, 31, 43, .06);
}
.legal-short-title { font-weight: 600; color: var(--text-primary); }
.legal-short ul { display: flex; flex-direction: column; gap: 14px; }
.legal-short li { display: flex; gap: 10px; font-size: 16px; line-height: 24px; }
.legal-short li img { flex: none; margin-top: 4px; }

.legal-section { display: flex; flex-direction: column; gap: 10px; }
.legal-h {
  font: 600 24px/30px var(--font-display);
  letter-spacing: 0;
  color: var(--text-primary);
}

.legal-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(26, 31, 43, .06);
}

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 96px; padding-bottom: 96px; min-height: calc(100svh - 52px); }
.notfound p:not(.eyebrow) { color: var(--text-secondary); font-size: 16px; line-height: 24px; max-width: 32ch; }
.notfound .btn { margin-top: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 32px 0;
  background: var(--bg-inverse);
  color: var(--text-on-brand);
}
.footer .container { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; }
.logo-light { color: var(--text-on-brand); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-700);
  transition: background-color .2s ease;
}
.socials a:hover { background: #3a4359; }
.socials img { width: 18px; height: 18px; }
.footer-mail { text-underline-offset: 3px; justify-self: start; align-self: flex-start; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 21px;
}
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a { color: var(--border-subtle); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom p { color: var(--ink-300); }

/* ==========================================================================
   Wider screens
   Desktop layout is still to be designed, so for now the mobile layout is
   shown as a centered column.
   ========================================================================== */

.hero { max-width: 560px; margin: 0 auto; }

/* ==========================================================================
   Motion
   Hidden "before" states only exist when JS has added .motion and the user
   has not asked for reduced motion, so the page never ships blank.
   ========================================================================== */

.motion [data-reveal] {
  transition:
    opacity .6s var(--ease) var(--d, 0s),
    transform .6s var(--ease) var(--d, 0s);
}
.motion [data-scene]:not(.in) [data-reveal],
.motion [data-reveal][data-scene]:not(.in) {
  opacity: 0;
  transform: translate(var(--rx, 0), var(--ry, 12px));
}

/* Headings fade in letter by letter (Figma: per-character opacity, ~45ms stagger) */
[data-chars] .w { display: inline-block; white-space: nowrap; }
.motion [data-chars] .c {
  transition: opacity .45s linear calc(var(--cd, 0s) + var(--i) * 24ms);
}
.motion [data-scene]:not(.in) [data-chars] .c { opacity: 0; }

/* Hero: ribbon ties itself from the bow outward, the seal is stamped, polaroid lands */
.motion .hero:not(.in) .ribbon-group,
.motion .hero:not(.in) .hero-polaroid { opacity: 0; }
.motion .hero.in .ribbon-group { animation: ribbon-tie 1.15s cubic-bezier(.65, 0, .35, 1) both; }
.motion .hero.in .hero-polaroid { animation: polaroid-in .7s var(--ease) .3s both; }
.motion .bar-fill { transition: width 1.3s var(--ease); }
.motion .bar-envelope { transition: left 1.3s var(--ease), opacity .3s ease; }
.motion .scarcity.is-empty .bar-envelope { opacity: 0; }

/* Unfurls outward from the seal, so ribbon and seal read as one piece */
@keyframes ribbon-tie {
  from { opacity: 0; clip-path: circle(0% at 77.6% 41%); }
  15% { opacity: 1; }
  to { opacity: 1; clip-path: circle(110% at 77.6% 41%); }
}
@keyframes polaroid-in {
  from { opacity: 0; transform: translateX(calc(-48 * var(--u))) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}

/* 01 · typing caret is solid while typing (handled in JS) */

/* 03 · chat plays like a real conversation */
.motion [data-chat] {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.motion [data-chat]:not(.show) { opacity: 0; transform: translateY(10px); }
.motion [data-chat="3"]:not(.show) { transform: none; }
.typing.show { opacity: 1; }
.motion .typing.show { transform: none; }

/* 04 · swirl draws across, polaroid and note land, stamp thumps */
.motion .reveal-visual .swirl,
.motion .reveal-visual .keys-group,
.motion .reveal-visual .note-group,
.motion .reveal-visual .stamp-wrap,
.motion .reveal-visual .plane { opacity: 0; }
.motion [data-scene].in .swirl { animation: swirl-draw 1.2s cubic-bezier(.65, 0, .35, 1) .1s both; }
.motion [data-scene].in .keys-group { animation: keys-in .75s var(--ease) .3s both; }
.motion [data-scene].in .note-group { animation: note-in .65s var(--ease) .6s both; }
.motion [data-scene].in .stamp-wrap { animation: stamp-in .5s cubic-bezier(.34, 1.56, .64, 1) .75s both; }
.motion [data-scene].in .plane { animation: plane-in .75s var(--ease) .95s both; }
@keyframes swirl-draw {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes keys-in {
  from { opacity: 0; transform: translateY(18px) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes note-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.5); }
  to { opacity: 1; transform: none; }
}
@keyframes plane-in {
  from { opacity: 0; transform: translate(-30px, 12px) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

/* Pricing: $15 is struck through, then $9 rises */
.motion .price-was { transition: opacity .4s var(--ease) .3s; }
.motion .price-was::after { transition: transform .4s cubic-bezier(.65, 0, .35, 1) .55s; }
.motion .price-now { transition: opacity .5s var(--ease) .75s, transform .5s var(--ease) .75s; }
.motion [data-scene="price"]:not(.in) .price-was { opacity: 0; }
.motion [data-scene="price"]:not(.in) .price-was::after { transform: scaleX(0); }
.motion [data-scene="price"]:not(.in) .price-now { opacity: 0; transform: translateY(10px); }

/* Final CTA: the dark ribbon ties itself too */
.motion .final:not(.in) .final-art { opacity: 0; }
.motion .final.in .final-art { animation: final-tie 1.3s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes final-tie {
  from { opacity: 0; clip-path: circle(0% at 63% 42%); }
  15% { opacity: 1; }
  to { opacity: 1; clip-path: circle(120% at 63% 42%); }
}

/* Form success */
.motion .form-success:not([hidden]) { animation: rise .5s var(--ease) both; }
.motion .form-success:not([hidden]) .success-check path { animation: draw .5s ease .25s both; }
.motion .form-success:not([hidden]) .success-check circle { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; transform-origin: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

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