/* wrapchatapp.com. The look is the app's and the reel's: whole pages of colour with ink printed on them,
   Figtree Black headlines, spaced mono labels, chat bubbles, and WrapChat itself joining in as a friend.

   The ink. The app's indigo is #1F184E (raised #2B2368, night #120E2E). The website uses a bluer one, the user's
   choice on 2026-10-13 ("Clearly Bluer for now, if it's necessary we can bring the purple back later"). To bring
   the purple back: put the app's three values here and set SHIFT = 0 in dev/images.py, then run it and build. */
:root {
  --ink: #181F4E;
  --ink-raised: #232D68;
  --night: #0E132E;
  --ink-rgb: 24, 31, 78;
  --cream: #EDE8DC;
  --cream-raised: #F8F5EE;
  --cream-rgb: 237, 232, 220;
  --periwinkle: #7A90FF;
  --lavender: #B8C4FF;
  --coral: #FF7A59;
  --lime: #C2DC3A;
  --amber: #F5A84C;
  --teal: #3DC4BF;
  --pink: #F7A1C4;
  --lap: 44px;
  --gutter: clamp(20px, 5vw, 56px);
}

@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(/fonts/Figtree-Medium.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/Figtree-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/Figtree-Bold.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/Figtree-ExtraBold.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 900; font-display: swap; src: url(/fonts/Figtree-Black.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/JetBrainsMono-Medium.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/fonts/JetBrainsMono-Bold.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 500 18px/1.5 Figtree, -apple-system, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; }

.mono, .kicker { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* MARK: the top bar */
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -0.035em; }
.wordmark .av { width: 44px; height: 44px; }
.nav nav { display: flex; gap: 6px; }
.nav nav a { white-space: nowrap; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; }
.nav nav a:hover, .nav nav a[aria-current] { background: rgba(var(--ink-rgb), 0.1); }
.av { flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.av img { width: 62%; }

/* MARK: a scene is one page of colour; each lies on the one before it, like the cards of a read */
.scene { position: relative; padding: calc(var(--lap) + clamp(56px, 9vw, 120px)) 0 calc(var(--lap) + clamp(64px, 10vw, 130px)); margin-top: calc(var(--lap) * -1); border-radius: var(--lap) var(--lap) 0 0; overflow: hidden; background: var(--page, var(--cream)); }
.scene:first-of-type { margin-top: 0; border-radius: 0; padding-top: clamp(130px, 16vw, 190px); }
.scene > .wrap { position: relative; z-index: 2; }
.scene--cream { --page: var(--cream); }
.scene--coral { --page: var(--coral); }
.scene--periwinkle { --page: var(--periwinkle); }
.scene--lime { --page: var(--lime); }
.scene--lavender { --page: var(--lavender); }
.scene--amber { --page: var(--amber); }
.scene--teal { --page: var(--teal); }
.scene--pink { --page: var(--pink); }
.scene--night { --page: var(--night); color: var(--cream); }
.scene--ink { --page: var(--ink); color: var(--cream); }
.waves { position: absolute; left: 0; bottom: 0; width: 100%; height: min(100%, 760px); z-index: 1; pointer-events: none; }

/* The counter a card of a read carries: the segments and "THE WRAPPED · 2 / 19". */
.story { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.segs { display: flex; gap: 6px; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.2); }
.segs i.on { background: var(--ink); }
.scene--night .segs i, .scene--ink .segs i { background: rgba(var(--cream-rgb), 0.2); }
.scene--night .segs i.on, .scene--ink .segs i.on { background: var(--cream); }
.story .mono b { font-weight: 700; }
.scene--night .story .dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--coral); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split--flip > :first-child { order: 2; }
.split--hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.hero { font-weight: 900; font-size: clamp(52px, 7.2vw, 104px); letter-spacing: -0.045em; line-height: 0.9; text-wrap: balance; }
.head { font-weight: 900; font-size: clamp(42px, 6.2vw, 84px); letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
.sub { margin-top: 18px; font-weight: 800; font-size: clamp(21px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.lede + .lede { margin-top: 14px; }
.kicker + .hero, .kicker + .head { margin-top: 16px; }

.soon, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 30px; border-radius: 999px; text-decoration: none; }
.btn { background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--periwinkle { background: var(--periwinkle); color: var(--ink); }
.soon { border: 2px solid currentColor; text-transform: uppercase; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 36px; }
.cta .mono a { text-underline-offset: 4px; }

/* MARK: messages (Bubbles.swift): round everywhere except one tight corner on the sender's side */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 14px 20px 15px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.25; letter-spacing: -0.005em; }
.msg.them { align-self: flex-start; background: #fff; color: var(--ink); border-radius: 26px 26px 26px 9px; }
.msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 26px 26px 9px 26px; }
.scene--night .msg.them { background: var(--cream); }
.note { align-self: flex-end; margin-top: -4px; opacity: 0.75; font-size: 11px; }
.note.them { align-self: flex-start; }
/* WrapChat's own line: the bow as its avatar, then an outlined bubble. */
.says { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.says .av { width: 42px; height: 42px; }
.says .txt { min-height: 54px; padding: 14px 20px 15px; border: 2.5px solid var(--ink); border-radius: 26px 26px 26px 9px; font-weight: 700; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.25; letter-spacing: -0.01em; }
.scene--night .says .txt, .scene--ink .says .txt { border-color: rgba(var(--cream-rgb), 0.7); }
.scene--night .says .av, .scene--ink .says .av { box-shadow: 0 0 0 2px rgba(var(--cream-rgb), 0.3); }
.dots { display: inline-flex; gap: 6px; align-items: center; height: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* Things that pop in as they are scrolled to, the way the reel's bubbles do. Without JavaScript all is shown. */
.js [data-pop] { opacity: 0; transform: translateY(18px) scale(0.96); }
.js [data-pop].in { opacity: 1; transform: none; transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.js .msg.them[data-pop] { transform-origin: 0 100%; }
.js .msg.you[data-pop] { transform-origin: 100% 100%; }

/* MARK: the hero's chat */
.chat { padding: clamp(22px, 3vw, 34px); border-radius: 40px; background: var(--cream-raised); box-shadow: 0 30px 60px rgba(var(--ink-rgb), 0.14); }
.chat-head { margin-bottom: 22px; }
.chat-head strong { display: block; font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1; }
.chat-head .mono { display: block; margin-top: 8px; font-size: 11px; opacity: 0.8; }
.chat .thread { min-height: 300px; }

/* MARK: a card of a read, drawn on the page */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card .name { font-weight: 900; font-size: clamp(72px, 11vw, 150px); letter-spacing: -0.05em; line-height: 0.86; }
.bars { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.bar-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 800; font-size: 19px; }
.bar { height: 22px; border-radius: 11px; background: rgba(var(--ink-rgb), 0.14); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 11px; background: #fff; transform-origin: 0 50%; }
.bar i.ink { background: var(--ink); }
.js .bar i { transform: scaleX(0); }
.js .in .bar i, .js .bar.in i { transform: none; transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) 0.15s; }

.tiles { display: flex; gap: 12px; margin-top: 34px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: 1 0 132px; height: 190px; padding: 14px; border-radius: 26px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.tile .mono { font-size: 10px; }
.tile strong { display: block; font-weight: 900; font-size: 38px; letter-spacing: -0.04em; line-height: 1; }
.tile span { display: block; margin-top: 4px; font-weight: 600; font-size: 14px; line-height: 1.2; }

/* MARK: the guess */
.guess { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; max-width: 520px; }
.pick { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 0 22px; border: 0; border-radius: 26px; background: #fff; font-weight: 900; font-size: 28px; letter-spacing: -0.03em; cursor: pointer; transition: transform 0.15s ease; }
.pick:hover { transform: translateY(-2px); }
.pick:active { transform: scale(0.98); }
.pick.you { justify-content: flex-end; background: var(--ink); color: #fff; }
.pick .in { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; letter-spacing: 0; }
.pick.you .in { background: #fff; color: var(--ink); order: 2; }
.guess .mono { text-align: center; font-size: 11px; opacity: 0.85; }
.answer { display: none; }
.answered .ask { display: none; }
.answered .answer { display: block; animation: rise 0.5s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; }
.again { margin-top: 18px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 11px; }

/* MARK: the three reads, as the app lists them */
.prods { display: grid; gap: 14px; margin-top: 34px; }
.prod { display: flex; justify-content: space-between; gap: 18px; min-height: 148px; padding: 22px 24px; border-radius: 30px; text-decoration: none; overflow: hidden; transition: transform 0.2s ease; }
.prod:hover { transform: translateY(-3px); }
.prod .l { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.prod strong { display: block; font-weight: 900; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; line-height: 1; }
.prod span { display: block; margin-top: 6px; font-weight: 600; font-size: 17px; }
.prod .mono { font-weight: 500; font-size: 11px; }
.prod--wrapped { background: var(--ink); color: #fff; padding-right: 0; }
.prod--wrapped .stripes { display: flex; align-self: stretch; margin: -22px 0; }
.prod--wrapped .stripes i { width: 15px; }
.prod--read { background: var(--lavender); }
.prod--read .pair { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.prod--read .pair i { display: block; width: 46px; height: 24px; border-radius: 12px 12px 12px 4px; background: #fff; }
.prod--read .pair i + i { margin-left: 22px; border-radius: 12px 12px 4px 12px; background: var(--ink); }
.prod--flags { background: var(--night); color: var(--cream); }
.prod--flags .lamp { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(var(--cream-rgb), 0.5); border-radius: 50%; }
.prod--flags .lamp i { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); }

/* MARK: a phone with a real screen of the app in it */
.phone { width: min(100%, 330px); margin: 0 auto; padding: 9px; border: 2px solid rgba(var(--ink-rgb), 0.35); border-radius: 54px; background: #0A0C1E; box-shadow: 0 34px 70px rgba(var(--ink-rgb), 0.3); }
.phone img { width: 100%; height: auto; border-radius: 46px; }
.scene--night .phone { border-color: rgba(var(--cream-rgb), 0.3); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }

.points { display: grid; gap: 14px; margin-top: 30px; max-width: 34em; }
.points li { display: flex; gap: 14px; align-items: baseline; font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3; }
.points li::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }
.small { margin-top: 26px; font-size: 11px; opacity: 0.85; }

/* MARK: the pair of cards of The Read */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 520px; }
.pairs div { padding: 20px; border-radius: 26px; background: #fff; }
.pairs div + div { background: var(--ink); color: #fff; }
.pairs .mono { font-size: 10.5px; }
.pairs strong { display: block; margin: 8px 0; font-weight: 900; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; }
.pairs span { font-size: 15px; line-height: 1.35; }

/* MARK: the steps of a pattern (Red Flags) and of exporting a chat */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 30px; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid currentColor; border-radius: 50%; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 15px; background: var(--page); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: currentColor; opacity: 0.35; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; padding-top: 6px; font-weight: 800; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
.steps span { display: block; margin-top: 4px; font-size: 16px; opacity: 0.85; }
.steps .quote { display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 20px 20px 20px 7px; background: var(--cream); color: var(--ink); font-size: 16px; opacity: 1; }
.panel { padding: clamp(22px, 3vw, 32px); border-radius: 34px; background: var(--ink-raised); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 18px; background: var(--cream-raised); font-weight: 800; font-size: 18px; }
.chips svg { width: 22px; height: 19px; fill: var(--ink); }

/* MARK: boxes of plain facts (privacy, credits) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(34px, 5vw, 56px); }
.fact { padding: clamp(22px, 2.6vw, 30px); border-radius: 30px; background: rgba(255, 255, 255, 0.42); }
.fact .mono { font-size: 11px; }
.fact strong { display: block; margin: 10px 0 8px; font-weight: 900; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.03em; line-height: 1.08; }
.fact p { font-size: 16.5px; line-height: 1.45; }
.fact--ink { background: var(--ink); color: #fff; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 8px; }
.price b { font-weight: 900; font-size: clamp(48px, 6vw, 76px); letter-spacing: -0.05em; line-height: 0.9; }
.price .mono { font-size: 11px; }

/* MARK: the end, and the foot */
.end { text-align: center; }
.end .av { width: 96px; height: 96px; margin: 0 auto 28px; background: var(--ink-raised); }
.end .lede { margin-left: auto; margin-right: auto; }
.end .cta { justify-content: center; }
.end .hero { max-width: 11em; margin: 0 auto; }
.foot { position: relative; z-index: 2; padding: 0 0 44px; background: var(--ink); color: var(--cream); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding-top: 30px; border-top: 1px solid rgba(var(--cream-rgb), 0.18); }
.foot .av { background: var(--ink-raised); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { text-decoration: none; font-weight: 700; font-size: 16px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot p { flex-basis: 100%; font-size: 10.5px; font-weight: 500; opacity: 0.7; }

/* MARK: support and the legal pages */
.doc { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.doc h1 { font-weight: 900; font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.04em; line-height: 0.95; margin: 14px 0 22px; }
.doc h2 { margin: 44px 0 12px; font-weight: 900; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.doc h3 { margin: 24px 0 6px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 18px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0; display: grid; gap: 6px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.doc ol.steps { margin-top: 18px; }
.doc .lede { max-width: none; margin-top: 0; }
.doc a { text-underline-offset: 3px; }
.doc .says { margin: 26px 0 0; }
.doc .says .txt { font-size: 18px; }

@media (max-width: 860px) {
  .split, .split--hero { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .facts, .facts--3 { grid-template-columns: 1fr; }
  .nav nav { gap: 0; }
  .nav nav a { padding: 10px 10px; font-size: 15px; }
  .phone { width: min(78%, 320px); }
  :root { --lap: 32px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 22px; }
  .wordmark .av { width: 38px; height: 38px; }
  .pairs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-pop], .js .bar i { opacity: 1; transform: none; transition: none; }
  .dots i { animation: none; opacity: 0.6; }
  .tilt-l, .tilt-r { transform: none; }
}
