/* Instrument Sans, served from rolls.social (SIL Open Font License, see fonts/OFL.txt): weights 400 to 600, Latin and Icelandic */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Rolls site, built on docs/design: colour, type, spacing, corners, depth and motion. */

:root {
  /* Colour (foundations/colour.md) */
  --bone: #F7F3EC;
  --white: #FFFFFF;
  --ink: #1A1714;
  --muted: #5E564C;
  --amber: #D8552B;
  --sage: #5C6552;
  --on-sage: #F2F0E9;
  --hairline: rgba(26, 23, 20, 0.08);

  /* Depth (foundations/depth.md) */
  --print: 0 3px 9px rgba(26, 23, 20, 0.10);
  --float: 0 4px 18px rgba(26, 23, 20, 0.10);

  /* Motion (foundations/motion.md): settles, never bounces */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --snappy: 0.12s;
  --fade: 0.45s;

  /* Layout: the spacing scale, web gutters and section rhythm */
  --max: 1152px;
  --gutter: 64px;
  --section: 128px;
  --nav-room: 112px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sub { text-wrap: balance; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 999px; }

/* Type scale (foundations/type.md) */
h1 { font-size: 72px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.sub { font-size: 20px; letter-spacing: -0.02em; line-height: 1.4; color: var(--muted); }
.wordmark {
  font-size: 28px; font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  padding: 0 3px; text-decoration: none;
}

/* Buttons (pieces/buttons.md): 56 main, 44 card pill, label 17 SemiBold */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--snappy) ease, background-color 0.25s ease, box-shadow 0.35s var(--ease);
}
/* Motion for every pill, after Partiful's: on hover it lifts 2px, grows 1% and takes a soft shadow over
   a third of a second while the label rolls; on press it squishes in a tenth of a second */
.btn, .cta:not(.open) { transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.18s cubic-bezier(0.2, 0, 0.2, 1), opacity var(--snappy) ease, width 0.5s var(--ease), height 0.5s var(--ease); }
@media (hover: hover) {
  .btn:hover, .cta:not(.open):hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16); }
  .cta:not(.open):hover .cta-label .btn-roll > span:first-child { transform: translateY(-105%); }
  .cta:not(.open):hover .cta-label .btn-roll > span + span { transform: none; }
}
.btn:active, .cta:not(.open):active { transform: scale(0.96); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); transition-duration: 0.1s; transition-timing-function: cubic-bezier(0.2, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .btn:hover, .cta:not(.open):hover, .btn:active, .cta:not(.open):active { transform: none; } }
.btn-card { height: 44px; padding: 0 20px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-bone { background: var(--white); color: var(--ink); }
.btn-line-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
/* The label rolls up and a fresh copy rolls in, like the next frame */
.btn-roll { display: grid; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.btn-roll > span { grid-area: 1 / 1; transition: transform 0.58s var(--ease); }
.btn-roll > span + span { transform: translateY(105%); }
@media (hover: hover) {
  .btn:hover .btn-roll > span:first-child { transform: translateY(-105%); }
  .btn:hover .btn-roll > span + span { transform: none; }
  .btn-line-light:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72); }
}

/* Nav: the segmented pill from rolls.social. A thumb slides to the section you're in */
.seg {
  position: fixed; z-index: 100; top: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 2px; width: max-content;
  padding: 5px;
  background: var(--white); color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hairline), var(--float);
}
.seg-thumb {
  position: absolute; top: 5px; left: 0;
  height: calc(100% - 10px); width: 0;
  background: var(--ink); border-radius: 999px;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.seg a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px var(--tab-x, 22px); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.45;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--snappy) ease, color 0.3s ease;
}
.seg a.on { color: var(--white); }
/* Until the script places the sliding thumb (a slow connection, or no script), the active tab carries its own ink */
.seg:not(.ready) a.on { background: var(--ink); }
/* The wordmark, set like the app sets it: lowercase, tight */
.seg a.seg-logo { font-size: 19px; font-weight: 600; letter-spacing: -0.05em; padding-left: calc(var(--tab-x, 22px) - 1px); padding-right: calc(var(--tab-x, 22px) + 1px); }
@media (hover: hover) { .seg a:not(.on):hover { color: var(--muted); } }
.seg a:active { opacity: 0.7; }
.seg a:focus-visible { outline-offset: -2px; }

/* Hero: the launch frame. One night blurred to 2%, a sage haze at 26%, a soft darkening
   (owner, 17 Nov: tried sharp, then "get the cover image back to blurred") */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero-ground {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.18)),
    url("img/hero-blue.jpg?v=4") center / cover no-repeat;
  transform: scale(1.04);
}
.hero-inner {
  position: relative;
  max-width: calc(var(--max) + var(--gutter) * 2);
  min-height: max(760px, 100svh);
  margin: 0 auto;
  padding: var(--nav-room) var(--gutter) 64px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px;
}
.hero .sub { color: rgba(255, 255, 255, 0.82); margin-top: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* The group chat, live: the roll goes in, friends answer, the next morning lands */
.chat {
  position: relative; flex: none;
  width: 380px; height: clamp(520px, calc(100svh - 192px), 660px);
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); text-align: left;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}
.chat-head {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.chat-faces { display: flex; }
.chat-faces img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white); }
.chat-faces img + img { margin-left: -10px; }
.chat-title { min-width: 0; }
.chat-title b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.chat-title span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-feed {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 8px 16px 16px; overflow: hidden;
}
/* once the thread is longer than the box, its top edge fades under the header */
.chat-feed.scrolled {
  -webkit-mask-image: linear-gradient(transparent, #000 48px);
  mask-image: linear-gradient(transparent, #000 48px);
}

/* After the last message: a spacer keeps short threads at the bottom, long ones scroll up */
.chat.done .chat-feed {
  justify-content: flex-start; overflow-y: auto; overscroll-behavior-y: auto;
  scrollbar-width: none;
}
.chat.done .chat-feed::-webkit-scrollbar { display: none; }

/* A row opens its own height, so the ones above glide up like a real thread */
.row { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.row.in { grid-template-rows: 1fr; }
.row-in { min-height: 0; overflow: hidden; padding-bottom: 2px; } /* room for the reaction pill's outline, which sits on the row's edge */
/* Spacing follows who is talking: a new speaker gets 16px, the same speaker's next message 4px */
.line {
  display: flex; align-items: flex-end; gap: 8px; padding-top: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}
.row.in .line { opacity: 1; transform: none; }
/* The first message is there from the first paint, so the chat is never an empty box while the page loads */
.row.first { grid-template-rows: 1fr; transition: none; }
.row.first .line { opacity: 1; transform: none; transition: none; }
.row.mine .line { flex-direction: column; align-items: flex-end; gap: 4px; }
.row.stamp .line { justify-content: center; padding-top: 18px; font-size: 12px; color: var(--muted); }
.av { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
/* the face sits level with the message, not with the reaction under it */
.line:has(.tap) .av { margin-bottom: 14px; }
.say { min-width: 0; }
.who { display: block; margin: 0 0 2px 16px; font-size: 12px; color: var(--muted); }
.bubble {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 7px 16px; border-radius: 18px;
  background: #F0EBE3; color: var(--ink);
  font-size: 16px; line-height: 22px;
}
.bubble .text { display: none; }
.row.said .bubble .text { display: inline; }
.bubble .text { text-wrap: balance; }
.row.said .bubble .dots { display: none; }
.dots { display: inline-flex; gap: 4px; padding: 0 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.35; animation: dot 1.1s ease-in-out infinite; }
.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.35; transform: none; } 30% { opacity: 0.9; transform: translateY(-2px); } }
.row.mine .bubble { max-width: 82%; background: var(--ink); color: var(--white); }
.row.cont .who { display: none; }
.row.cont .line { padding-top: 2px; }
.row.cont .av { visibility: hidden; }

/* A link, as a chat shows it: tap it and the waitlist opens */
.link-card {
  display: block; width: 232px; overflow: hidden;
  background: #F0EBE3; color: var(--ink); text-decoration: none;
  border-radius: 18px;
  transition: transform var(--snappy) ease, box-shadow 0.2s ease;
}
.link-art {
  display: block; aspect-ratio: 1.91 / 1;
  background: url("img/share.jpg") center / cover;
}
.link-meta { display: flex; flex-direction: column; gap: 1px; padding: 9px 16px 11px; }
.link-meta strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.link-meta em { font-style: normal; font-size: 12px; color: var(--muted); }
.link-card:active { transform: scale(0.98); }
@media (hover: hover) { .link-card:hover { box-shadow: var(--float); } }

/* The invite, as Rolls sends it to a group chat */
.invite {
  width: 232px; overflow: hidden;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.invite-cover { position: relative; aspect-ratio: 4 / 3; }
.invite-cover img { width: 100%; height: 100%; object-fit: cover; }
.invite-cover::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}
.invite-name, .invite-date { position: absolute; z-index: 1; left: 12px; color: var(--white); }
.invite-name { bottom: 28px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.invite-date { bottom: 9px; font-size: 13px; opacity: 0.86; }
/* The invite as a link preview: the same card as the rolls.social link, its picture the roll's colour */
.link-art.poster { position: relative; overflow: hidden; background: var(--g); color: var(--t); padding: 12px; --g: #304A5E; --t: #DDE3E7; }
.link-art.poster.port { --g: #6E2B3A; --t: #EEDCDD; }
.link-art.poster .poster-top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.link-art.poster .poster-name { font-size: 22px; }
.link-art.poster .poster-date { font-size: 12px; }
.link-art.poster .poster-big { right: 10px; bottom: 12px; font-size: 76px; }
/* a roll before its night: the roll's colour (port), its name, and its number big off the edge.
   Sent before anyone has joined, so the only face on it is the person who started it */
.invite-cover.poster { --g: #6E2B3A; --t: #EEDCDD; padding: 16px; aspect-ratio: 1 / 1; background: var(--g); color: var(--t); overflow: hidden; }
.invite-cover.poster.denim { --g: #304A5E; --t: #DDE3E7; }
.invite-cover.poster::after { display: none; }
.poster-top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.poster-name { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.poster-date { font-size: 13px; opacity: 0.86; }
.poster-host { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.poster-host img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--g); }
/* the 26 sits on the same 16px margins as the words: its right edge on the right margin, its foot on the bottom one */
.poster-big { position: absolute; z-index: 1; right: 12px; bottom: 16px; font-size: 118px; font-weight: 600; letter-spacing: -0.06em; line-height: 0.72; }
.invite-foot {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 10px 16px 14px; color: var(--ink);
}
.invite-foot span { font-size: 13px; line-height: 1.3; }
.invite-foot b { font-size: 15px; font-weight: 600; letter-spacing: -0.05em; line-height: 17px; }

/* The next morning: a notification on your phone, dropping over the chat */
.note {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px;
  background: var(--white); color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(26, 23, 20, 0.2), 0 0 0 1px var(--hairline);
}
.chat .note {
  position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px;
  opacity: 0; transform: translateY(-120%);
  transition: opacity 0.3s ease, transform 0.6s var(--ease);
}
.chat .note.in { opacity: 1; transform: none; }
.note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.note-head b { font-size: 15px; font-weight: 600; letter-spacing: -0.05em; }
.note-head span { font-size: 13px; color: var(--muted); }
.note-text strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--amber); }
.note-text > span { font-size: 13px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
/* A photo shared out of Rolls, in its own shape, with the roll and the wordmark under it */
.shot { display: block; width: 232px; overflow: hidden; background: #F0EBE3; border-radius: 18px; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot.tall { width: 184px; }
.shot.tall img { aspect-ratio: 3 / 4; }
.shot-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 16px 8px; font-size: 13px; color: var(--muted); }
.shot-foot b { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.05em; }
/* A reaction under a message, the way a group answers without words */
.tap {
  display: block; width: fit-content; margin: -6px 0 0 16px; padding: 1px 7px;
  background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--hairline);
  font-size: 12px; line-height: 18px; color: var(--muted); position: relative;
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease 0.5s, transform 0.35s var(--ease) 0.5s;
}
.row.said .tap, .row.in .shot ~ .tap, .row.in .invite ~ .tap, .row.in .dump ~ .tap, .row.mine.in .tap { opacity: 1; transform: none; }
/* Several photos sent at once: one tall on the left, two stacked on the right, one rounded bubble */
.dump { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 232px; height: 200px; border-radius: 18px; overflow: hidden; }
.dump img { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: #F0EBE3; }
.dump img:first-child { grid-row: 1 / 3; }
.row.mine .tap { margin: -6px 16px 0 0; }
html:not(.js) .row { grid-template-rows: 1fr; }
html:not(.js) .line, html:not(.js) .chat .note { opacity: 1; transform: none; }
html:not(.js) .bubble .text { display: inline; }
html:not(.js) .bubble .dots { display: none; }

/* Section heads */
.head .sub { margin-top: 16px; }
.head.center { max-width: 640px; margin: 0 auto; }

/* Steps */
/* a section the menu jumps to starts clear of the menu, so it lands with its headline in full view */
.steps { padding: max(var(--section), var(--nav-room)) var(--gutter) var(--section); }
.step-grid {
  max-width: var(--max); margin: 64px auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.panel {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--white); border-radius: 28px;
}
/* On a laptop the whole step fits one screen: one-line headline, cards no taller than the window allows */
@media (min-width: 1024px) {
  .steps .head.center { max-width: 960px; }
  .steps .step-grid { margin: 48px auto; }
  .steps .panel { min-height: 300px; max-height: calc(100svh - 352px); }
}
.step > h3 { margin-top: 24px; text-align: center; }
.step > p { margin-top: 6px; text-align: center; color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.8s var(--ease); }
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal].in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
html:not(.js) .card.photo > img, html:not(.js) .pr img, html:not(.js) .tile { opacity: 1; }
/* Without the script the join pill can't open, so the email field shows from the start */
html:not(.js) .cta { width: min(440px, calc(100vw - 32px)); }
html:not(.js) .cta-label { display: none; }
html:not(.js) .cta-form { opacity: 1; pointer-events: auto; }

/* A phone around a real screen */
.phone {
  position: relative; display: grid;
  border: 4px solid var(--ink); border-radius: 44px; /* a thin frame, about 1.8% of the phone's width */
  background: var(--ink); overflow: hidden;
  box-shadow: var(--float);
}
.phone::after {
  content: ""; position: absolute; z-index: 2; top: 10px; left: 50%;
  width: 30%; height: 26px; transform: translateX(-50%);
  background: var(--ink); border-radius: 999px;
}
.phone > img { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; border-radius: 40px; background: #EFE9DF; }
.phone-hang, .phone-rise { position: absolute; left: 50%; width: 62%; transform: translateX(-50%); transition: transform 0.9s var(--ease); }
.panel[data-peek] { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.phone-hang { bottom: 32px; }
.phone-rise { top: 32px; }

/* The arrival, the app's payoff screen (screens/3-the-payoff/arrival.md), at the app's own proportions:
   sizes are in shares of the screen's width (1pt of a 402pt iPhone = 0.249cqw) */
.arr-screen {
  grid-area: 1 / 1; position: relative; aspect-ratio: 600 / 1304; overflow: hidden;
  border-radius: 40px; background: #16130F; color: var(--white);
  container-type: inline-size;
}
.arr-shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: translateX(8%) scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s var(--ease);
}
.arr-shots img.on { opacity: 1; transform: none; }
.arr-shots img.past { opacity: 0; transform: translateX(-8%); }
.arr-screen::before, .arr-screen::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.arr-screen::before { top: 0; height: 22%; background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0)); }
.arr-screen::after { bottom: 0; height: 52%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.36) 40%, rgba(0, 0, 0, 0.68)); }
.arr-bar, .arr-foot { position: absolute; z-index: 1; }
.arr-foot { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.arr-bar {
  top: 5.6cqw; left: 13cqw; right: 10.6cqw;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 4.3cqw/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.01em;
}
.arr-bar svg { width: 17.5cqw; height: auto; fill: currentColor; }
.arr-foot { left: 4cqw; right: 5.7cqw; bottom: 14.2cqw; }
.arr-foot strong { display: block; font-size: 15.9cqw; font-weight: 600; letter-spacing: -0.04em; line-height: 0.96; }
.arr-foot p { font-size: 4.4cqw; line-height: 1.25; letter-spacing: -0.01em; }
.arr-roll { margin-top: 2.4cqw; }
.arr-roll b { font-weight: 600; margin-right: 1.4cqw; }
.arr-from { margin-top: 3cqw; display: flex; align-items: center; gap: 2.6cqw; color: rgba(255, 255, 255, 0.86); }
.arr-faces { display: flex; }
.arr-faces img { width: 7cqw; height: 7cqw; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0.6cqw rgba(20, 17, 14, 0.9); }
.arr-faces img + img { margin-left: -1.8cqw; }
.arr-dots { margin-top: 5cqw; display: flex; gap: 1.5cqw; }
.arr-dots i { width: 1.7cqw; height: 1.7cqw; border-radius: 999px; background: rgba(255, 255, 255, 0.45); transition: width 0.5s var(--ease), background-color 0.5s ease; }
.arr-dots i.on { width: 4.3cqw; background: var(--white); }
.arr-acts { margin-top: 4.8cqw; display: flex; align-items: center; font-size: 5cqw; font-weight: 600; letter-spacing: -0.015em; }
.arr-acts > span:first-child { width: 20.4cqw; padding-left: 3cqw; }
.arr-save { flex: 1; height: 13.4cqw; border-radius: 999px; display: grid; place-items: center; background: var(--bone); color: var(--ink); text-shadow: none; }

/* Your own prints: a white edge of 4, corners 12 outside, fanned -2, -7, 6 (pieces/print.md) */
.prints { position: absolute; inset: 0; }
.print {
  position: absolute; left: 50%; top: 50%;
  height: 64%; aspect-ratio: 2 / 3;
  padding: 4px; background: var(--white); border-radius: 12px;
  box-shadow: var(--print);
  transform: translate(-50%, -50%);
  transition: transform 0.9s var(--ease);
}
.print img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.print.back-l, .print.back-r { height: 55%; }
.prints.in .front { transform: translate(-50%, -50%) rotate(-2deg); }
.prints.in .back-l { transform: translate(-96%, -52%) rotate(-7deg); }
.prints.in .back-r { transform: translate(-4%, -48%) rotate(6deg); }
@media (hover: hover) {
  .panel-prints:hover .prints.in .back-l { transform: translate(-104%, -54%) rotate(-9deg); }
  .panel-prints:hover .prints.in .back-r { transform: translate(4%, -50%) rotate(8deg); }
}
.panel-prints.on .prints.in .back-l { transform: translate(-110%, -55%) rotate(-10deg); }
.panel-prints.on .prints.in .back-r { transform: translate(10%, -51%) rotate(9deg); }
.panel-prints.on .prints.in .front { transform: translate(-50%, -52%) rotate(-1deg) scale(1.04); }

/* A roll for everything: roll cards travelling up a diagonal as you scroll */
.fan { position: relative; height: 760px; overflow: hidden; }
.fan-head {
  position: relative; z-index: 1;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
}
.fan-head .sub { max-width: 400px; }
.fan-track { position: absolute; inset: 0; z-index: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fan.grabbing .fan-track { cursor: grabbing; }
.fan { overscroll-behavior-x: contain; }
/* One card, the roll card from the app: an Earth ground, the name and date on top,
   your prints in the middle, one line of what's inside at the foot */
.card {
  position: absolute; left: 0; top: 0;
  height: 320px;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--print), -8px 8px 24px rgba(26, 23, 20, 0.08);
  transform-origin: 0 0;
  transition: translate 0.55s var(--ease), rotate 0.55s var(--ease), box-shadow 0.4s ease;
}
.card.lift {
  translate: -12px -84px; rotate: -3deg;
  z-index: 30000 !important;
  box-shadow: 0 28px 56px rgba(26, 23, 20, 0.28), 0 4px 12px rgba(26, 23, 20, 0.12);
}
.roll-top {
  position: absolute; left: 16px; right: 16px; top: 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  white-space: nowrap;
}
.roll-top b { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.roll-top span { font-size: 15px; opacity: 0.8; }
.card.photo { background: var(--ink); color: var(--white); }
.card.photo > img { width: 100%; height: 100%; object-fit: cover; }
.card.photo::before, .card.photo::after { content: ""; position: absolute; left: 0; right: 0; }
.card.photo::before { top: 0; height: 38%; background: linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0)); }
.card.photo::after { bottom: 0; height: 30%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)); }
.card.photo .roll-top, .card.photo .roll-foot { z-index: 1; }
.card.photo .roll-foot { font-weight: 400; opacity: 0.92; }
.roll-foot { position: absolute; right: 16px; bottom: 14px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
/* who's in the roll: a few faces overlapping and the rest as a number, on the right where the card in front
   never covers them, between the small prints and the date */
.roll-faces { position: absolute; z-index: 1; right: 14px; bottom: 40px; display: flex; align-items: center; }
.card:has(.roll-faces) .roll-mini { bottom: 78px; }
.roll-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92); }
.roll-face + .roll-face { margin-left: -9px; }
.roll-count {
  margin-left: -6px; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}
/* the rest of a roll laid on its cover photo, bottom right above the date, where the card in front never covers it */
.roll-mini { position: absolute; z-index: 1; right: 14px; bottom: 40px; width: 116px; height: 78px; }
.roll-mini .pr { padding: 3px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.roll-mini .pr img, .roll-mini .pr::before { border-radius: 5px; }
.roll-mini .pr::before { inset: 3px; }
.pr {
  position: absolute; left: 50%; top: 50%;
  padding: 4px; background: var(--white); border-radius: 12px;
  box-shadow: var(--print);
}
.pr img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* the print's paper is warm grey until its photo arrives */
.pr::before { content: ""; position: absolute; inset: 4px; border-radius: 8px; background: #E6DFD3; }
/* Photos in the cards and rings fade in once they arrive, so a slow connection never shows half a picture */
.card.photo > img, .pr img, .tile { opacity: 0; transition: opacity 0.6s ease; }
.card.photo > img.ok, .pr img.ok, .tile.ok { opacity: 1; }

/* The promise, on sage (sage is privacy) */
/* --vh100 is the screen height in px, fixed per width on touch screens, so a keyboard that shrinks the
   window never shortens this section and drags the page */
.pin { position: relative; height: 270vh; height: calc(var(--vh100, 100vh) * 2.7); background: var(--sage); color: var(--on-sage); }
.pin-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto; padding: var(--nav-room) var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 64px;
}
.pin-titles, .pin-copy { display: grid; }
/* The title and the words beside it start on the same line, whichever step is showing */
.pin-titles { align-items: start; align-content: start; }
.pin-titles, .pin-copy { min-height: 176px; }
.pin-copy { align-items: start; }
.pin-title, .pin-step { grid-area: 1 / 1; }
/* The headline sits as close to the phone as the words on the other side: 64px each way */
.pin-title { justify-self: end; width: max-content; max-width: 100%; }
.pin-step { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
/* Every step's words take the same two lines, so its button sits in the same place each time */
.pin-text { max-width: 380px; min-height: 2.8em; font-size: 20px; letter-spacing: -0.02em; line-height: 1.4; color: rgba(242, 240, 233, 0.9); text-wrap: balance; }

/* Words: the one you leave moves the way you scrolled, the next one follows it in */
.pin-title, .pin-text, .pin-btn {
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.24s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.pin-title.past, .pin-text.past, .pin-btn.past { transform: translateY(-20px); }
.pin-title.on, .pin-text.on, .pin-btn.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s ease 0.14s, transform 0.8s var(--ease) 0.14s, visibility 0s;
}
.pin-text.on { transition-delay: 0.2s; }
.pin-btn.on { transition-delay: 0.26s; }

/* The phone floats with the scroll; screens move the way the app moves */
/* A scale model: the frame, corners and island are fixed shares of the phone's width, so it reads
   as the same phone at any size. Each layout below only sets its width (--pw). The shadow stays
   under the phone, never a box around it */
.pin-phone { --pw: min(300px, calc((100svh - 192px) * 0.455)); }
.phone.pin-phone {
  --bz: max(2.5px, calc(var(--pw) * 0.018));
  width: var(--pw);
  border-width: var(--bz); border-radius: calc(var(--pw) * 0.145);
  box-shadow: 0 1px 2px rgba(26, 23, 20, 0.18), 0 14px 26px -16px rgba(26, 23, 20, 0.5);
  isolation: isolate;
}
.phone.pin-phone > img { border-radius: calc(var(--pw) * 0.145 - var(--bz)); }
.phone.pin-phone::after { top: calc(var(--pw) * 0.03); width: 31%; height: calc(var(--pw) * 0.085); }
.pin-shot {
  position: relative;
  transform: translateX(100%);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.pin-shot[data-i="0"] { z-index: 0; }
.pin-shot[data-i="1"] { z-index: 1; }
.pin-shot[data-i="2"] { z-index: 2; }
.pin-shot.past { transform: translateX(-28%); filter: brightness(0.82); }
.pin-shot.on { transform: none; filter: none; }

/* Develops at 10: the notification lands on the home screen, then opens */
.pin-shot[data-i="2"] { transform: scale(1.04); opacity: 0; transition: opacity 0.3s ease, transform 0.6s var(--ease); }
.pin-shot[data-i="2"].on { transform: none; opacity: 1; transition: opacity 0.5s ease 0.95s, transform 0.8s var(--ease) 0.95s; }
.pin[data-idx="2"] .pin-shot[data-i="1"] { transform: none; filter: none; transition-delay: 0s, 0.95s; }
.pin-note {
  position: absolute; z-index: 3; left: 6px; right: 6px; top: 44px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--white); color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(26, 23, 20, 0.18);
  opacity: 0; transform: translateY(-140%);
  pointer-events: none;
}
.pin-note .note-head { margin-bottom: 0; }
.pin-note .note-head b { font-size: 13px; }
.pin-note .note-head span { font-size: 11px; }
.pin-note strong { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--amber); }
.pin-note .note-text > span { font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-note .note-thumb { width: 36px; height: 36px; aspect-ratio: auto; border-radius: 6px; }
.pin[data-idx="2"] .pin-note { animation: note-in 1.5s var(--ease) both; }
@keyframes note-in {
  0% { opacity: 0; transform: translateY(-140%); }
  22% { opacity: 1; transform: none; }
  66% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: scale(0.97); }
  100% { opacity: 0; transform: scale(1.02); }
}
.pin-dots {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.pin-dots i {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(242, 240, 233, 0.35);
  transition: width var(--fade) var(--ease), background-color var(--fade) ease;
}
.pin-dots i.on { width: 24px; background: var(--on-sage); }

/* One button for the whole section: it stays put while the steps change above it, so it reads as the
   answer to all three (privacy has its own link in the menu and the footer) */
.pin-step .pin-btn { display: none; }
.pin-step:first-child .pin-btn { display: inline-flex; opacity: 1; visibility: visible; transform: none; transition: none; }

/* Big screens: three columns, title | phone | words and button. The phone sits in the exact middle; the
   title and the words each hug it at the same distance (the title set right, against the phone, so every
   step's title keeps that edge), and both sides are centred on the phone's middle */
@media (min-width: 1280px) {
  .pin-titles { align-self: center; min-height: 0; padding-bottom: 0; }
  .pin-title { justify-self: end; text-align: right; }
  .pin-copy { align-self: center; min-height: 0; }
  .pin-text { min-height: 0; }
}

/* Side by side, every step's line is one line, so it keeps no room for a second: title, line and button
   then sit on one rhythm (24px, then 32px) */
@media (max-width: 1279px) and (orientation: landscape) {
  .pin-text { min-height: 0; }
  .pin-titles { padding-bottom: 24px; }
}

/* Join: the night turning around the button as you scroll */
/* The words and the pill are centred by the grid, not a transform: Safari misplaces a field inside a
   transformed box when it scrolls to it for the keyboard */
.orbit { position: relative; height: clamp(760px, 100svh, 960px); overflow: hidden; display: grid; place-items: center; }
.orbit-rings { position: absolute; inset: 0; contain: layout paint; }
.tile {
  position: absolute; left: 0; top: 0;
  border: 3px solid var(--white); border-radius: 8px;
  object-fit: cover; background: var(--white);
  box-shadow: var(--print);
}
.tile.small { border-width: 2px; border-radius: 5px; }
/* A set width, so the headline wraps the same way whether the button is closed or open as a field */
.orbit-center {
  position: relative; z-index: 2; margin-top: -12px;
  width: min(calc(720px * var(--k, 1)), calc(100% - 32px));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.orbit-title { margin-bottom: 32px; }
.cta {
  position: relative; height: 64px; width: var(--w, 240px);
  background: var(--ink); color: var(--white);
  border-radius: 999px; overflow: hidden;
  box-shadow: var(--float);
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
}
.cta-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 32px;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
  transition: opacity 0.25s ease, transform var(--snappy) ease;
  -webkit-tap-highlight-color: transparent;
}
.cta-label:active { opacity: 0.85; }
.cta-label:focus-visible { outline-offset: -6px; }
.cta-form {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.cta-form input[type=email] {
  flex: 1; min-width: 0; height: 56px; border: 0; outline: 0;
  background: transparent; color: var(--white);
  font: inherit; font-size: 20px; letter-spacing: -0.02em;
}
.cta-form input:-webkit-autofill,
.cta-form input:-webkit-autofill:hover,
.cta-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  -webkit-box-shadow: 0 0 0 100px var(--ink) inset;
  box-shadow: 0 0 0 100px var(--ink) inset;
  transition: background-color 9999s ease-out 0s;
}
.cta-form input:-webkit-autofill::first-line { font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-size: 20px; }
.cta-form input { caret-color: var(--white); }
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.cta-form .btn { flex: none; }
/* A button that's sending keeps its size; three dots pulse in place of the word */
.btn.busy { position: relative; }
.btn.busy .btn-roll { opacity: 0; }
.btn.busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: currentColor; box-shadow: -11px 0 currentColor, 11px 0 currentColor;
  animation: busy 1s ease-in-out infinite;
}
@keyframes busy { 50% { opacity: 0.3; } }
.cta.open { height: 64px; }
.cta-hero { --w: 220px; height: 56px; background: var(--white); color: var(--ink); box-shadow: none; }
.cta-hero.open { height: 60px; }
.cta-hero .cta-label { font-size: 17px; padding: 0 28px; }
.cta-hero .cta-form { padding: 3px 3px 3px 22px; }
.cta-hero .cta-form input[type=email] { color: var(--ink); caret-color: var(--ink); font-size: 17px; height: 54px; }
.cta-hero .cta-form input::placeholder { color: rgba(26, 23, 20, 0.5); }
.cta-hero .cta-form input:-webkit-autofill, .cta-hero .cta-form input:-webkit-autofill:hover, .cta-hero .cta-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--white) inset; box-shadow: 0 0 0 100px var(--white) inset;
}
.cta-hero .cta-form .btn { height: 54px; padding: 0 22px; }
.hero-msg { min-height: 1.4em; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.cta.open .cta-label { opacity: 0; pointer-events: none; }
.cta.open .cta-form { opacity: 1; pointer-events: auto; transition-delay: 0.2s; }
.orbit-sub { margin-top: 16px; font-size: 15px; color: var(--muted); }
/* After joining: how many friends came through your link. A number, never who */
.orbit-count { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.orbit-count[hidden] { display: none; }
/* A quiet way out on a shared computer */
.orbit-notyou { margin-top: 12px; padding: 10px 4px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.orbit-notyou[hidden] { display: none; }
@media (min-width: 1441px) { .orbit-count { margin-top: calc(4px * var(--k)); font-size: calc(15px * var(--k)); } }
/* After joining the headline says so and the same pill sends Rolls on: one headline, one button, one line */
.orbit-title.swap { animation: swap-in 0.6s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } }

/* Footer: white on bone, the wordmark across the full width */
/* The footer: a dark card the join photos slide behind */
.foot { position: relative; z-index: 3; margin-top: -88px; padding: 0 16px 16px; }
/* Past a 2560 screen the footer stops growing too, so the wordmark never fills two screens on an ultrawide */
@media (min-width: 2561px) { .foot-card { max-width: 2544px; margin-inline: auto; } }
.foot-card {
  background: var(--ink); color: var(--white); border-radius: 28px; overflow: hidden;
  padding: 72px var(--gutter) 32px;
}
.foot-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.foot-col .foot-h { margin: 0 0 16px; font-size: 17px; font-weight: 600; letter-spacing: inherit; line-height: inherit; text-wrap: initial; }
.foot-col a { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.66); text-decoration: none; transition: color 0.2s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .foot-col a:hover { color: var(--white); } }
.foot-col a:active { color: var(--white); }
/* On a touch screen each link is a full 44pt row */
@media (pointer: coarse) { .foot-col a { margin: 0; padding: 10px 0; line-height: 24px; } .foot-col .foot-h { margin-bottom: 6px; } }
.foot-word {
  margin-top: 160px; text-align: center;
  font-size: var(--word, 34vw); font-weight: 600; letter-spacing: -0.05em; line-height: 0.74;
  padding-right: 0.05em; translate: -0.035em 0;
  user-select: none; pointer-events: none;
}
.foot-fine { margin-top: 40px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* Tablet */
@media (max-width: 1023px) {
  :root { --gutter: 32px; --section: 96px; }
  h1 { font-size: 56px; }
  h2 { font-size: 44px; letter-spacing: -0.036em; }
  .hero-inner {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
    padding-top: 136px; gap: 64px; min-height: 0;
  }
  .actions { justify-content: center; }
  .step-grid { grid-template-columns: 1fr; max-width: 440px; gap: 48px; }
  .fan { height: 720px; }
  .foot-cols { grid-template-columns: repeat(4, auto); justify-content: start; gap: 40px 56px; }
  .foot-word { margin-top: 96px; }
}

/* Phone */
@media (max-width: 599px) {
  :root { --gutter: 16px; --section: 80px; }
  h1 { font-size: 56px; }
  h2 { font-size: 44px; }
  .sub { font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; }
  .seg { top: 12px; }
  .seg .seg-wide { display: none; }
  .seg { --tab-x: 18px; }
  .hero-inner { padding: 112px var(--gutter) 64px; gap: 36px; }
  .hero .sub { margin-top: 12px; }
  .chat { width: 100%; max-width: 380px; height: clamp(480px, calc(100svh - 112px), 620px); }
  .actions { margin-top: 28px; }
  .actions .btn { padding: 0 24px; }
  .step-grid { margin: 48px auto; }
  .fan { height: 600px; }
  /* on a phone a card is its photo and its name: the small prints and the date are too small to read */
  .fan .roll-mini, .fan .roll-foot { display: none; }
  /* the phone shows cards at 60%, so the faces are drawn bigger to land near 23px on screen */
  .fan .roll-faces { right: 18px; bottom: 18px; }
  .fan .roll-face { width: 38px; height: 38px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92); }
  .fan .roll-face + .roll-face { margin-left: -12px; }
  .fan .roll-count { height: 38px; min-width: 38px; margin-left: -8px; padding: 0 10px; font-size: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92); }
  .orbit { height: 700px; }
  .cta, .cta.open { height: 60px; }
  .cta-label { font-size: 17px; padding: 0 28px; }
  .cta-form { padding: 2px 2px 2px 20px; }
  .cta-form input[type=email] { font-size: 17px; }
  .cta-form input:-webkit-autofill::first-line { font-size: 17px; }
  .cta-form .btn { height: 56px; padding: 0 24px; }
  .orbit-title { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 24px; }
  .foot { margin-top: -64px; padding: 0 8px 8px; }
  .foot-card { padding: 48px 24px 24px; }
  .foot-word { margin-top: 64px; }
  .orbit-center { margin-top: 0; }
  .foot-fine { margin-top: 24px; }
}
@media (max-width: 389px) {
  h1 { font-size: 44px; letter-spacing: -0.036em; }
}
/* The smallest phones: four tabs still fit inside the screen */
@media (max-width: 374px) {
  .seg { --tab-x: 13px; }
  .seg a { font-size: 14px; }
  .seg a.seg-logo { font-size: 18px; }
  .foot-card { padding-left: 20px; padding-right: 20px; }
  .foot-cols { column-gap: 16px; }
  .foot-col a { font-size: 15px; }
}
/* Footer: two even columns once four no longer fit on one line */
@media (max-width: 767px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

/* The promise on smaller screens. Held upright, the title, the phone and the words stack, evenly spaced,
   and the phone takes whatever height is left. Held sideways, the phone stands on the left and the words
   beside it, the pair centred as one. The words break in the same place on every screen */
@media (max-width: 1279px) and (orientation: portrait) {
  .pin-stage {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    justify-items: center; align-content: center; text-align: center;
    gap: 32px; padding: 112px var(--gutter) 72px;
  }
  .pin-titles { align-items: end; }
  .pin-titles h2 { font-size: 56px; }
  .pin-title { justify-self: center; }
  .pin-titles, .pin-copy { min-height: 0; }
  .pin-step { align-items: center; gap: 24px; }
  .pin-text { max-width: none; }
  .pin-phone { --pw: min(400px, calc((100svh - 506px) * 0.455)); }
  .pin-dots { bottom: 28px; }
}
/* Phones upright: the phone sits in the exact middle of what the screen shows (dvh follows Safari's bar,
   so no empty band opens under it), the title above it and the words, button and dots below,
   each with room to breathe */
/* Phones upright, one rhythm measured on the glyphs: title to phone 24, phone to its dots 16, dots to the
   words 24, words to the button 24 (small phones: 16, 12, 16, 16). The odd pixel values make the visible gaps exact */
@media (max-width: 599px) and (orientation: portrait) {
  .pin-stage {
    height: 100svh; height: 100dvh;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); align-content: stretch;
    gap: 0; padding: 0 var(--gutter);
  }
  .pin-titles, .pin-copy { justify-self: stretch; }
  .pin-titles { align-self: end; padding-bottom: 28px; }
  /* the dots belong to the phone, so they sit right under it, and the words and button below them
     read as one group with the same room under the button as over the title */
  .pin-copy { align-self: start; padding-top: 47px; }
  .pin-step { width: 100%; gap: 21px; }
  .pin-text { max-width: 260px; min-height: 0; }
  .pin-titles h2 { font-size: 34px; letter-spacing: -0.03em; }
  .pin-text { font-size: 17px; }
  .pin-btn { height: 48px; padding: 0 24px; font-size: 16px; }
  .pin-phone { --pw: min(232px, calc((100svh - 412px) * 0.455)); --pw: min(232px, calc((100dvh - 412px) * 0.455)); }
  .pin-dots { grid-row: 2 / 3; grid-column: 1 / 2; top: calc(100% + 16px); bottom: auto; }
}
/* Short phones (an SE, or a 320-wide screen): tighter type and gaps buy the phone its room */
@media (max-width: 599px) and (orientation: portrait) and (max-height: 700px) {
  .pin-titles { padding-bottom: 19px; }
  .pin-copy { padding-top: 35px; }
  .pin-titles h2 { font-size: 28px; }
  .pin-text { font-size: 16px; max-width: 216px; } /* every step on two lines, so the button never moves */
  .pin-step { gap: 15px; }
  .pin-btn { height: 44px; padding: 0 20px; font-size: 15px; }
  .pin-phone { --pw: max(96px, min(220px, calc((100svh - 344px) * 0.455))); --pw: max(96px, min(220px, calc((100dvh - 344px) * 0.455))); }
  .pin-dots { top: calc(100% + 12px); }
}
@media (max-width: 359px) { .pin-text { font-size: 15px; } }
@media (max-width: 1279px) and (orientation: landscape) {
  .pin-stage {
    grid-template-columns: auto auto; grid-template-rows: 1fr auto auto 1fr;
    justify-content: center; align-items: start; text-align: left;
    column-gap: clamp(48px, 6vw, 80px); row-gap: 0;
    padding: 112px var(--gutter) 72px;
  }
  .pin-phone { grid-column: 1; grid-row: 1 / -1; align-self: center; --pw: min(320px, calc((100svh - 194px) * 0.455)); }
  .pin-titles { grid-column: 2; grid-row: 2; min-height: 0; padding-bottom: 24px; align-items: end; }
  .pin-copy { grid-column: 2; grid-row: 3; min-height: 0; }
  .pin-titles h2 { font-size: 52px; }
  .pin-title { justify-self: start; }
  .pin-text { max-width: none; }
  .pin-step { gap: 32px; }
}
/* A phone held sideways: the whole promise fits in one short screen, clear of the menu bar */
@media (orientation: landscape) and (max-height: 520px) {
  .pin-stage { padding: 84px var(--gutter) 28px; column-gap: 40px; }
  .pin-titles { padding-bottom: 12px; }
  .pin-titles h2 { font-size: 28px; letter-spacing: -0.03em; }
  .pin-text { font-size: 16px; }
  .pin-step { gap: 16px; }
  .pin-btn { height: 44px; padding: 0 20px; font-size: 15px; }
  .pin-phone { --pw: calc((100svh - 116px) * 0.455); }
  .pin-dots { bottom: 10px; }
}

/* Reduce Motion: things appear in place; changes are plain crossfades */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .line, .chat .note { transform: none !important; }
  .dots i { animation: none; }
  .print { transition: none; }
  .pin-title, .pin-text, .pin-btn, .pin-shot { transform: none !important; transition-delay: 0s !important; }
  .pin-shot { opacity: 0; } .pin-shot.on { opacity: 1; }
  .pin-note { display: none; }
  .arr-shots img, .arr-shots img.past { transform: none; }
  .cta { transition: none; }
}

/* Words that must stay on one line */
.nowrap { white-space: nowrap; }

/* Big screens. From 1440 wide the page grows with the window, up to 1.6 times at about 2300 wide,
   and never more than the window's height allows, so a big monitor sees the laptop page, larger.
   --k is a plain number (the trig pair turns a length ratio into one). The script uses the same rule */
:root { --k: 1; }
@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
  @media (min-width: 1441px) {
    :root { --k: max(1, min(1.6, tan(atan2(100vw, 1440px)), tan(atan2(100vh, 800px)))); }
  }
}
@media (min-width: 1441px) {
  :root { --max: calc(1152px * var(--k)); --gutter: calc(64px * var(--k)); --section: calc(128px * var(--k)); --nav-room: calc(112px * var(--k)); }
  body { font-size: calc(17px * var(--k)); }
  h1 { font-size: calc(72px * var(--k)); }
  h2 { font-size: calc(56px * var(--k)); }
  h3 { font-size: calc(24px * var(--k)); }
  .sub { font-size: calc(20px * var(--k)); }
  .btn { height: calc(56px * var(--k)); padding: 0 calc(28px * var(--k)); font-size: calc(17px * var(--k)); }
  .btn-card { height: calc(44px * var(--k)); padding: 0 calc(20px * var(--k)); }
  :focus-visible { outline-width: calc(2px * var(--k)); }

  /* the menu */
  .seg { top: calc(18px * var(--k)); padding: calc(5px * var(--k)); --tab-x: calc(22px * var(--k)); }
  .seg-thumb { top: calc(5px * var(--k)); height: calc(100% - 10px * var(--k)); }
  .seg a { padding-top: calc(10px * var(--k)); padding-bottom: calc(10px * var(--k)); font-size: calc(15px * var(--k)); }
  .seg a.seg-logo { font-size: calc(19px * var(--k)); }

  /* hero: the chat grows as one piece, and keeps its room in the layout */
  .hero { min-height: max(calc(760px * var(--k)), 100svh); }
  .hero-inner { padding-bottom: calc(64px * var(--k)); gap: calc(64px * var(--k)); }
  .hero .sub { margin-top: calc(16px * var(--k)); }
  .actions { gap: calc(12px * var(--k)); margin-top: calc(40px * var(--k)); }
  .chat {
    scale: var(--k);
    margin: calc((var(--k) - 1) * clamp(520px, calc(100svh - 192px), 660px) / 2) calc((var(--k) - 1) * 190px);
  }

  /* steps */
  .head .sub { margin-top: calc(16px * var(--k)); }
  .head.center { max-width: calc(640px * var(--k)); }
  .steps .head.center { max-width: calc(960px * var(--k)); }
  .step-grid, .steps .step-grid { gap: calc(24px * var(--k)); margin: calc(48px * var(--k)) auto; }
  .panel { border-radius: calc(28px * var(--k)); }
  .steps .panel { min-height: calc(300px * var(--k)); }
  .step h3 { margin-top: calc(24px * var(--k)); }
  .step > p { margin-top: calc(6px * var(--k)); }
  .phone { border-width: calc(4px * var(--k)); border-radius: calc(44px * var(--k)); }
  .phone::after { top: calc(10px * var(--k)); height: calc(26px * var(--k)); }
  .phone > img { border-radius: calc(40px * var(--k)); }
  .phone-hang { bottom: calc(32px * var(--k)); }
  .phone-rise { top: calc(32px * var(--k)); }
  .arr-screen { border-radius: calc(40px * var(--k)); }
  .print { padding: calc(4px * var(--k)); border-radius: calc(12px * var(--k)); }
  .print img { border-radius: calc(8px * var(--k)); }

  /* the cards: their size comes from the script, the section grows to hold them */
  .fan { height: calc(760px * var(--k)); }
  .fan-head .sub { max-width: calc(400px * var(--k)); }

  /* the promise */
  .pin-stage { gap: calc(64px * var(--k)); padding-bottom: calc(80px * var(--k)); }
  .pin-titles, .pin-copy { min-height: 0; }
  .pin-step { gap: calc(32px * var(--k)); }
  .pin-text { max-width: calc(380px * var(--k)); font-size: calc(20px * var(--k)); }
  .pin-phone { --pw: min(calc(300px * var(--k)), calc((100svh - 192px * var(--k)) * 0.455)); }
  .pin-note { left: calc(6px * var(--k)); right: calc(6px * var(--k)); top: calc(44px * var(--k)); gap: calc(8px * var(--k)); padding: calc(8px * var(--k)) calc(8px * var(--k)) calc(8px * var(--k)) calc(12px * var(--k)); border-radius: calc(18px * var(--k)); }
  .pin-note .note-head b { font-size: calc(13px * var(--k)); }
  .pin-note .note-head span, .pin-note .note-text > span { font-size: calc(11px * var(--k)); }
  .pin-note strong { font-size: calc(15px * var(--k)); }
  .pin-note .note-thumb { width: calc(36px * var(--k)); height: calc(36px * var(--k)); border-radius: calc(6px * var(--k)); }
  .pin-dots { bottom: calc(32px * var(--k)); gap: calc(8px * var(--k)); }
  .pin-dots i { width: calc(8px * var(--k)); height: calc(8px * var(--k)); }
  .pin-dots i.on { width: calc(24px * var(--k)); }

  /* join */
  .orbit { height: clamp(calc(760px * var(--k)), 100svh, calc(960px * var(--k))); }
  .tile { border-width: calc(3px * var(--k)); border-radius: calc(8px * var(--k)); }
  .orbit-title { margin-bottom: calc(32px * var(--k)); }
  .cta, .cta.open { height: calc(64px * var(--k)); }
  .cta-label { padding: 0 calc(32px * var(--k)); font-size: calc(20px * var(--k)); }
  .cta-form { padding: calc(4px * var(--k)) calc(4px * var(--k)) calc(4px * var(--k)) calc(24px * var(--k)); gap: calc(8px * var(--k)); }
  .cta-form input[type=email] { height: calc(56px * var(--k)); font-size: calc(20px * var(--k)); }
  .cta-form input:-webkit-autofill::first-line { font-size: calc(20px * var(--k)); }
  .orbit-sub { margin-top: calc(16px * var(--k)); font-size: calc(15px * var(--k)); }

  /* footer */
  .foot { margin-top: calc(-88px * var(--k)); padding: 0 calc(16px * var(--k)) calc(16px * var(--k)); }
  .foot-card { border-radius: calc(28px * var(--k)); padding: calc(72px * var(--k)) var(--gutter) calc(32px * var(--k)); }
  .foot-cols { gap: calc(40px * var(--k)); }
  .foot-col .foot-h { margin-bottom: calc(16px * var(--k)); font-size: calc(17px * var(--k)); }
  .foot-col a { margin-bottom: calc(10px * var(--k)); }
  .foot-word { margin-top: calc(160px * var(--k)); }
  .foot-fine { margin-top: calc(40px * var(--k)); font-size: calc(13px * var(--k)); }
}
