/* twogether: marketing site
   Brand tokens mirror web/src/styles.css exactly (the product's design system). */

:root {
  --paper: #FBF1E3;
  --card: #FFFDF8;
  --ink: #26160E;
  --ink-soft: #6E594C;
  --line: rgba(38, 22, 14, .14);
  --accent: #E8442E;
  --accent-deep: #B32E14;
  --accent-soft: #FFE0D2;
  --butter: #F6C445;
  --butter-soft: #FCEFC7;
  --sage: #5F8F6E;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --shadow: 5px 6px 0 rgba(38, 22, 14, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 500 17px/1.55 var(--sans);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(246, 196, 69, .35) 0%, transparent 60%),
    radial-gradient(900px 520px at -12% 28%, rgba(232, 68, 46, .12) 0%, transparent 55%),
    var(--paper);
  background-attachment: fixed;
  overflow-x: hidden;
}
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
em { font-family: var(--serif); font-style: italic; }
img { max-width: 100%; }
figure { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- top bar ---------- */
.top {
  max-width: 1060px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.wordmark-mini { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; }
.wordmark-mini em, .hero-title em, h2 em, .foot-line em { color: var(--accent); }
.pill-link {
  text-decoration: none; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 18px;
  font-weight: 700; font-size: 14.5px; box-shadow: 3px 3px 0 rgba(38,22,14,.14);
  transition: transform .12s, box-shadow .12s;
}
.pill-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(38,22,14,.14); }
.pill-link:active { transform: translate(1px, 1px); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  max-width: 1060px; margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 24px 30px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; background: var(--butter); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 5px 15px; font-size: 13.5px; font-weight: 700;
  transform: rotate(-1.5deg); box-shadow: 2px 2px 0 rgba(38,22,14,.18); margin: 0 0 22px;
}
.hero-title {
  margin: 0; font-size: clamp(42px, 6.2vw, 66px); line-height: 1.04;
  letter-spacing: -.02em; text-wrap: balance;
}
.hero-sub {
  color: var(--ink-soft); font-size: clamp(17px, 2vw, 19.5px);
  max-width: 520px; margin: 22px 0 30px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hint { color: var(--ink-soft); font-size: 14.5px; }

/* primary button (matches app .primary, as a link too) */
.primary {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--accent); color: #FFF7EE; border: 1.5px solid var(--accent-deep);
  border-radius: 999px; padding: 15px 30px; font-weight: 700; font-size: 17px;
  font-family: var(--sans); cursor: pointer;
  box-shadow: 3px 4px 0 rgba(179, 46, 20, .35); transition: transform .12s, box-shadow .12s;
}
.primary:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 rgba(179, 46, 20, .35); }
.primary:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(179, 46, 20, .35); }
.primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 3px 4px 0 rgba(179,46,20,.35); }
.primary:disabled { opacity: .55; transform: none; cursor: wait; }
.primary.big { width: 100%; padding: 16px; font-size: 18px; }

/* hero card cluster */
.hero-cards { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 10px 6px 34px; }
.mini-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 14px; display: flex; gap: 14px; align-items: center;
  transition: transform .18s, box-shadow .18s;
}
.mini-card:hover { transform: rotate(0deg) translate(-1px, -2px); box-shadow: 7px 9px 0 rgba(38,22,14,.1); }
.tilt-l { transform: rotate(-1.8deg); }
.tilt-r { transform: rotate(1.4deg); }
.mini-thumb {
  width: 60px; height: 60px; border-radius: 16px; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 27px; flex-shrink: 0;
}
.butterbg { background: var(--butter-soft); }
.accentbg { background: var(--accent-soft); }
.mini-title { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; }
.mini-meta { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; }
.sticker {
  display: inline-block; background: var(--butter); color: var(--ink);
  font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; margin-top: 8px; transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(38,22,14,.18);
}
.sticker.event { background: var(--accent-soft); transform: rotate(1.5deg); }
.nudge-note {
  align-self: flex-end; margin-right: 8px;
  background: var(--butter-soft); border: 1.5px dashed rgba(38,22,14,.3);
  border-radius: 16px; padding: 11px 16px; font-size: 14.5px; font-weight: 600;
  transform: rotate(1.6deg);
}

/* ---------- story steps ---------- */
.story { max-width: 1020px; margin: 0 auto; padding: clamp(30px, 6vh, 70px) 24px 0; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
  padding: clamp(42px, 7vh, 78px) 0;
}
.step + .step { border-top: 1.5px dashed var(--line); }
.step.flip .step-copy { order: 2; }
.step.flip .step-art { order: 1; }
.step-num {
  display: inline-block; font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--accent-deep); border-bottom: 2px solid var(--butter);
  padding-bottom: 2px; margin-bottom: 12px;
}
.step h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.step p { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 460px; }
.step p em { color: var(--ink); }
.quote { font-family: var(--serif); font-style: italic; color: var(--ink); }

.step-art { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.art-caption {
  font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: 15.5px; text-align: right; padding-right: 8px;
}

/* step one: paste pill */
.paste-pill {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 13px 8px 13px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); transform: rotate(-1deg); font-size: 15.5px;
}
.paste-text {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-soft); font-weight: 600;
}
.paste-text::after { content: "▍"; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.paste-btn {
  width: 40px; height: 40px; border-radius: 999px; background: var(--accent);
  color: #FFF7EE; display: grid; place-items: center; font-size: 21px;
  border: 1.5px solid var(--accent-deep); box-shadow: 2px 3px 0 rgba(179,46,20,.35); flex-shrink: 0;
}
.paste-sources { display: flex; gap: 9px; flex-wrap: wrap; padding: 4px 6px; }
.chip {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 14px; font-weight: 600;
}

/* step two: enriched place card */
.place-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg);
  transition: transform .18s;
}
.place-card:hover { transform: rotate(0deg); }
.place-banner {
  position: relative; height: 130px; display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(135deg, var(--butter-soft), var(--accent-soft));
  border-bottom: 1.5px solid var(--line);
}
.chip-sticker {
  position: absolute; bottom: 10px; background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700;
  box-shadow: 2px 2px 0 rgba(38,22,14,.3);
}
.chip-sticker.c1 { left: 10px; }
.chip-sticker.c2 { left: 86px; }
.chip-sticker.c3 { left: 152px; }
.place-body { padding: 14px 18px 16px; }
.place-title { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.place-meta { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.place-note, .memory-card .place-note {
  color: var(--ink-soft); font-family: var(--serif); font-style: italic;
  font-size: 16px; margin: 7px 0 0;
}

/* step three: plan card */
.plan-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 18px 20px; transform: rotate(-1deg);
  transition: transform .18s;
}
.plan-card:hover { transform: rotate(0deg); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-head b { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.plan-date { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; }
.plan-card ol { margin: 12px 0 14px; padding-left: 24px; font-weight: 600; font-size: 16.5px; }
.plan-card li { margin: 5px 0; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-ghost {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 14px; font-weight: 700;
  box-shadow: 2px 2px 0 rgba(38,22,14,.1);
}

/* step four: memory card */
.memory-card {
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 20px;
  box-shadow: 5px 6px 0 rgba(232, 68, 46, .22); padding: 16px 18px;
  transform: rotate(1.2deg); transition: transform .18s;
}
.memory-card:hover { transform: rotate(0deg); }
.memory-count {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  border-bottom: 1.5px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px;
}
.memory-count em { color: var(--accent); font-size: 17px; }
.memory-row { display: flex; gap: 14px; align-items: center; }
.memory-hearts { font-size: 15px; letter-spacing: 2px; margin-top: 2px; }

/* ---------- little things ---------- */
.littles { padding: clamp(40px, 7vh, 70px) 0 10px; border-top: 1.5px dashed var(--line); text-align: center; }
.littles-head { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin: 0 0 26px; }
.littles-head em { color: var(--accent); }
.littles-row { display: flex; gap: 14px 16px; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 0 auto; }
.little {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 10px 19px; font-size: 15px; font-weight: 600;
  box-shadow: 3px 3px 0 rgba(38,22,14,.14); transition: transform .15s;
}
.little:hover { transform: rotate(0deg) translate(-1px, -1px); }
.little b { color: var(--accent-deep); }

/* ---------- waitlist ---------- */
.waitlist { display: grid; place-items: center; padding: clamp(56px, 9vh, 100px) 0 30px; }
.waitlist-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 28px;
  padding: 42px 32px 34px; max-width: 460px; width: 100%; text-align: center;
  box-shadow: var(--shadow);
}
.logo { font-size: 50px; animation: sway 3.2s ease-in-out infinite; display: inline-block; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
.waitlist-card h2 { font-size: clamp(30px, 4vw, 36px); margin: 12px 0 8px; line-height: 1.1; }
.waitlist-card h2 em { color: var(--accent); }
.waitlist-sub { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 22px; }
.waitlist-card form { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.waitlist-card input {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%;
  text-align: center; transition: border-color .15s, box-shadow .15s;
}
.waitlist-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: #B4A093; }
.error { color: var(--accent-deep); font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.waitlist-card .hint { display: block; margin-top: 4px; }
.waitlist-card.success .sticker { margin-top: 16px; font-size: 14.5px; }
.waitlist-card.success { animation: pop .45s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes pop { from { transform: translateY(22px) scale(.96); opacity: 0; } }

/* submitting: the button beats like the app's loader heart */
.primary.beating { animation: beat .75s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.04); } 60% { transform: scale(1.01); } }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 40px 24px 46px; border-top: 1.5px dashed var(--line); margin-top: 40px; }
.foot-line { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); margin: 10px 0 4px; }
.foot-copy { color: var(--ink-soft); font-size: 13.5px; margin: 0; opacity: .8; }

/* ---------- motion: entrances ---------- */
.rise { animation: riseIn .7s cubic-bezier(.2, .8, .3, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
.d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .logo, .primary.beating, .paste-text::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-cards { max-width: 420px; }
  .step, .step.flip { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .step.flip .step-copy { order: 1; }
  .step.flip .step-art { order: 2; }
  .step-art { max-width: 430px; }
}
@media (max-width: 480px) {
  .top { padding: 18px 18px 0; }
  .hero, .story { padding-left: 18px; padding-right: 18px; }
  .hero-cta { gap: 12px; }
  .hero-cta .primary { width: 100%; }
  .chip-sticker.c2 { left: 82px; }
  .chip-sticker.c3 { left: 144px; }
  .waitlist-card { padding: 34px 22px 28px; }
}
