/* UsTwo web — the same Love letter language as the app: a blush page, one raspberry rose,
   a studio-lit poster, real paper (tape, folds, wax seals) and New York serif for the
   personal words. Colors follow light/dark; paper keeps its own colors. */

:root {
  color-scheme: light dark;
  --page: #fbf6f3;
  --surface: #fffcfb;
  --ink: #241a20;
  --muted: #75666e;
  --line: #efe3de;
  --brand: #c92e5e;
  --on-brand: #fff8fa;
  --accent: #b8265a;
  --accent-wash: #fbe3ea;
  --shadow: rgba(107, 36, 64, 0.14);
  --shade: rgba(18, 11, 16, 0.16);
  --poster-1: #be3460;
  --poster-2: #dc5f84;
  --poster-3: #f3a3b8;
  /* Paper keeps its color in both modes. */
  --paper: #fffdf8;
  --paper-blush: #ffd9e2;
  --paper-blush-edge: #f5b9c8;
  --pen: #3b2a22;
  --pen-muted: #6e5647;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #17121a;
    --surface: #241c27;
    --ink: #f6eef2;
    --muted: #b3a6b0;
    --line: #3a2f40;
    --brand: #d23a6c;
    --accent: #ff7da3;
    --accent-wash: #40263a;
    --shadow: rgba(0, 0, 0, 0.45);
    --shade: rgba(0, 0, 0, 0.4);
    --poster-1: #1f1b4d;
    --poster-2: #43306e;
    --poster-3: #7a4c86;
  }
}

:root[data-theme="dark"] {
  --page: #17121a;
  --surface: #241c27;
  --ink: #f6eef2;
  --muted: #b3a6b0;
  --line: #3a2f40;
  --brand: #d23a6c;
  --accent: #ff7da3;
  --accent-wash: #40263a;
  --shadow: rgba(0, 0, 0, 0.45);
  --shade: rgba(0, 0, 0, 0.4);
  --poster-1: #1f1b4d;
  --poster-2: #43306e;
  --poster-3: #7a4c86;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  overflow-x: hidden;
}

/* Poster: a studio sweep with a soft key light, white type. */
.poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 22px 22px 84px;
  min-height: 300px;
  color: #fff8fa;
  background: linear-gradient(170deg, var(--poster-1) 0%, var(--poster-2) 55%, var(--poster-3) 100%);
  box-shadow: 0 18px 40px -18px var(--poster-1);
}

.poster-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(260px 220px at 76% 42%, rgba(255, 255, 255, 0.32), transparent 70%),
    linear-gradient(to bottom, transparent 58%, rgba(18, 11, 16, 0.12));
  pointer-events: none;
}

.poster > * { position: relative; }

.brand {
  margin: 0 0 40px;
  font: 600 15px/1.2 var(--sans);
  opacity: 0.88;
}

.duo {
  margin: 0;
  font: 600 38px/1.08 var(--serif);
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.headline {
  margin: 12px 0 0;
  font: 400 17px/1.4 var(--sans);
  opacity: 0.92;
  max-width: 30ch;
}

/* The question on a paper card, resting over the poster's edge. */
.question-card {
  position: relative;
  margin: -64px 8px 0;
  padding: 24px 24px 28px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--pen);
  transform: rotate(-0.6deg);
  box-shadow: 0 1px 2px var(--shade), 0 14px 30px -12px var(--shadow);
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid color-mix(in srgb, var(--paper-blush-edge) 70%, transparent);
  border-radius: 14px;
  pointer-events: none;
}

.question-card::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 0 0 1px rgba(18, 11, 16, 0.06);
  transform: rotate(-4deg);
}

.question-label {
  margin: 0 0 8px;
  font: 600 13px/1.2 var(--sans);
  color: #c92e5e;
}

.question {
  margin: 0;
  font: 500 24px/1.25 var(--serif);
  overflow-wrap: anywhere;
}

/* A closed envelope seen from the back: side flaps, a V-cut pocket, the top flap, a wax seal. */
.envelope-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 36px 0 8px;
}

.envelope {
  position: relative;
  width: 214px;
  height: 140px;
  border-radius: 4px;
  background: var(--paper-blush-edge);
  box-shadow: 0 1px 2px var(--shade), 0 16px 28px -14px var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--paper);
  clip-path: polygon(0 40%, 50% 70%, 100% 40%, 100% 100%, 0 100%);
  z-index: 1;
}

.envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: var(--paper-blush);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 2px rgba(18, 11, 16, 0.1));
  z-index: 2;
}

.seal {
  position: absolute;
  left: 50%;
  top: calc(60% - 25px);
  width: 50px;
  height: 50px;
  margin-left: -25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff8fa;
  background: radial-gradient(circle at 35% 30%, #e0507c, #c92e5e 60%, #a8234c);
  box-shadow: 0 2px 4px rgba(18, 11, 16, 0.3), inset 0 0 0 3px rgba(255, 248, 250, 0.18);
  z-index: 3;
}

.envelope-caption {
  margin: 22px 0 4px;
  font: 600 18px/1.3 var(--rounded);
}

.envelope-hint {
  margin: 0;
  max-width: 32ch;
  font: 400 15px/1.45 var(--sans);
  color: var(--muted);
}

/* Actions */
.actions {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.button:active { transform: scale(0.97); }

.button.primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 22px -12px var(--brand);
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 6px 16px -10px var(--shadow);
}

/* The code on a cream ticket with a perforation. */
.ticket {
  position: relative;
  margin: 28px 4px 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--pen);
  text-align: center;
  transform: rotate(0.6deg);
  box-shadow: 0 1px 2px var(--shade), 0 12px 24px -14px var(--shadow);
}

.ticket-label {
  margin: 0;
  font: 600 13px/1.2 var(--sans);
  color: #c92e5e;
}

.ticket-code {
  margin: 8px 0 14px;
  font: 600 40px/1 var(--serif);
  letter-spacing: 6px;
  padding-left: 6px;
}

.ticket-copy {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 2px dotted color-mix(in srgb, var(--pen-muted) 50%, transparent);
  background: none;
  padding-top: 12px;
  font: 600 15px/1 var(--sans);
  color: #c92e5e;
  cursor: pointer;
}

/* Steps */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font: 400 15px/1.45 var(--sans);
  color: var(--ink);
}

.step-number {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent);
  font: 600 13px/1 var(--rounded);
}

.footer {
  margin-top: 44px;
  text-align: center;
  color: var(--muted);
  font: 400 13px/1.5 var(--sans);
}
.footer .tagline { margin: 0 0 6px; font: italic 400 15px/1.4 var(--serif); }
.footer nav { display: flex; gap: 8px; justify-content: center; }
.footer a { color: var(--muted); }

/* Legal pages */
.document {
  margin-top: 24px;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 6px 16px -10px var(--shadow);
  font: 400 16px/1.6 var(--sans);
}
.document h1 { font: 600 30px/1.15 var(--serif); margin: 0 0 16px; }
.document h2 { font: 600 20px/1.3 var(--rounded); margin: 28px 0 8px; }
.document p, .document li { color: var(--ink); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .envelope { animation: none; }
  .button { transition: none; }
}

/* Marketing and document pages share the app's paper and rose palette. */
.site-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0 30px; }
.wordmark { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:650; font-size:21px; letter-spacing:-.6px; }
.wordmark img { border-radius:10px; }
.site-nav nav { display:flex; gap:22px; font-size:14px; }
.site-nav a:not(.wordmark) { text-underline-offset:5px; }
.home-page { max-width:1080px; padding:12px 32px 32px; }
.home-hero { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:64px; padding:42px 0 74px; }
.eyebrow { color:var(--brand); font-size:13px; font-weight:650; letter-spacing:1.3px; text-transform:uppercase; }
.home-intro h1 { font:500 clamp(44px,5.8vw,70px)/1.04 var(--serif); letter-spacing:-2.5px; margin:18px 0 24px; max-width:9ch; }
.home-description { color:var(--muted); font-size:19px; line-height:1.65; max-width:34ch; }
.release-note { display:flex; flex-direction:column; gap:5px; margin:24px 0; font-size:13px; color:var(--muted); }
.release-note span:first-child { color:var(--ink); font-weight:600; }
.home-intro .button { display:inline-flex; width:auto; padding-inline:25px; }
.home-paper { padding:18px 0 40px; }
.home-paper .poster { min-height:300px; padding:26px 28px 92px; transform:rotate(2deg); }
.home-paper .brand { margin-bottom:25px; }
.home-paper .duo { font-size:36px; max-width:10ch; }
.home-paper .question-card { padding:34px 30px 22px; margin-top:-70px; transform:rotate(-3deg); }
.home-paper .question { padding-bottom:14px; }
.paper-seal { border-radius:50%; width:48px; height:48px; margin:16px auto 0; background:#c92e5e; color:#fff8fa; font-size:30px; display:grid; place-items:center; box-shadow:0 3px 0 #a82650; }
.paper-caption { color:var(--pen-muted); text-align:center; font-size:12px; margin-top:14px; }
.features { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; padding:36px 0 40px; border-top:1px solid var(--line); }
.feature-number { font:500 12px var(--sans); color:var(--brand); letter-spacing:2px; }
.feature h2 { font:500 24px/1.2 var(--serif); margin:16px 0 12px; }
.feature p { color:var(--muted); font-size:15px; line-height:1.75; margin:0; }
.privacy-promise { text-align:center; padding:26px 10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; line-height:1.7; }
.home-page .footer { padding-top:24px; }
.footer nav { display:flex; flex-wrap:wrap; justify-content:center; column-gap:18px; row-gap:10px; line-height:1.8; }
.footer > p:last-child { color:var(--muted); font-size:11px; margin-top:22px; }
.document h1 { overflow-wrap:anywhere; }
.document p, .document li { line-height:1.75; overflow-wrap:anywhere; }
.document h2 { margin-top:32px; }
:focus-visible { outline:3px solid var(--brand); outline-offset:5px; border-radius:3px; }
@media(max-width:700px) {
 .home-page { padding:8px 22px 24px; }
 .site-nav { padding-bottom:20px; }
 .site-nav nav { gap:16px; font-size:13px; }
 .home-hero { grid-template-columns:1fr; gap:28px; padding:24px 0 34px; }
 .home-intro h1 { font-size:52px; max-width:10ch; letter-spacing:-1.6px; }
 .home-description { font-size:17px; }
 .home-paper { max-width:400px; width:100%; margin:0 auto; padding:10px 7px 30px; }
 .home-paper .poster { min-height:250px; }
 .features { grid-template-columns:1fr; gap:28px; padding:30px 0; }
 .feature { display:grid; grid-template-columns:28px 1fr; column-gap:12px; }
 .feature-number { margin-top:5px; }
 .feature h2 { margin:0 0 10px; }
 .feature p { grid-column:2; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
