:root {
  color: #f5f5f7;
  background: #030303;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  font-synthesis: none;
  --void: #030303;
  --ink: #0b0b0d;
  --paper: #f5f5f7;
  --red: #ff304b;
  --graphite: #34343a;
  --fog: #929299;
  --line: rgba(245, 245, 247, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--void);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  color: var(--paper);
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main,
footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  border-inline: 0;
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--void);
  background: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  padding: env(safe-area-inset-top) max(22px, calc((100vw - var(--page-width)) / 2 + 22px)) 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid transparent;
  background: rgba(3, 3, 3, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 180ms ease, transform 280ms var(--ease);
}

.site-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom-color: var(--line);
}

.wordmark,
.footer-wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 750;
  letter-spacing: -0.085em;
}

.wordmark {
  font-size: 16px;
}

/* Heart advance ≈ letter ink; nudge right so left/right kiss match (l/b vs c/x). */
.heart {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 0.5em;
  height: 0.55em;
  margin: 0 -0.01em 0 0.045em;
  padding: 0;
  vertical-align: 0.01em;
  color: var(--red);
  line-height: 0;
}

.heart svg {
  display: block;
  width: 0.52em;
  height: 0.55em;
  flex: 0 0 auto;
  overflow: visible;
  transform: translateX(0.01em);
}

.site-header p,
.site-header i {
  display: none;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(30px, 6vw, 96px);
  display: grid;
  place-items: center;
  background: var(--void);
}

h1 {
  margin: 0;
  max-width: 9.4ch;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(72px, 12vw, 190px);
  font-weight: 760;
  line-height: 0.86;
  letter-spacing: -0.085em;
}

.hero-tagline {
  color: var(--paper);
  font-size: 0.55em;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

h1 .heart {
  width: 0.5em;
  height: 0.55em;
  margin: 0 -0.01em 0 0.045em;
  vertical-align: 0.01em;
}

h1 .heart svg {
  width: 0.52em;
  height: 0.55em;
  transform: translateX(0.01em);
}

.wordmark .heart,
.footer-wordmark .heart {
  width: 0.48em;
  height: 0.54em;
  margin: 0 -0.01em 0 0.04em;
  vertical-align: 0;
}

.wordmark .heart svg,
.footer-wordmark .heart svg {
  width: 0.5em;
  height: 0.54em;
  transform: translateX(0.008em);
}

.widget-label .heart {
  width: 0.46em;
  height: 0.52em;
  margin: 0 -0.008em 0 0.036em;
  vertical-align: 0;
}

.widget-label .heart svg {
  width: 0.48em;
  height: 0.52em;
  transform: translateX(0.006em);
}

.visual-field {
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  background-color: var(--ink);
  background-image: none;
  cursor: default;
  contain: layout paint;
  touch-action: pan-y;
}

.visual-field[role="button"] {
  cursor: pointer;
}

.visual-field[data-layout="loose"] {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 25%;
}

.visual-field:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--red);
}

.visual-field::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: rgba(3, 3, 3, 0.32);
}

#nine-scene,
.static-nine {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

#nine-scene {
  display: block;
  opacity: 0;
  cursor: inherit;
  touch-action: pan-y;
  transition: opacity 280ms ease;
}

.static-nine {
  margin: auto;
  width: min(68%, 620px);
  height: auto;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  transition: opacity 220ms ease;
}

.static-nine img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  background: var(--graphite);
  transition: transform 520ms var(--ease);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(1) {
  transform: translate(-12%, -8%) rotate(-5deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(2) {
  transform: translate(3%, -16%) rotate(3deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(3) {
  transform: translate(12%, -5%) rotate(-3deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(4) {
  transform: translate(-16%, 2%) rotate(4deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(5) {
  transform: translate(2%, 4%) rotate(-2deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(6) {
  transform: translate(14%, 0) rotate(5deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(7) {
  transform: translate(-10%, 12%) rotate(3deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(8) {
  transform: translate(0, 16%) rotate(-4deg);
}

.visual-field[data-layout="loose"] .static-nine img:nth-child(9) {
  transform: translate(12%, 9%) rotate(3deg);
}

.webgl-ready #nine-scene {
  opacity: 1;
}

.webgl-ready .static-nine {
  opacity: 0;
  pointer-events: none;
}

.field-label {
  position: absolute;
  z-index: 5;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  pointer-events: none;
  color: var(--fog);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 220ms ease;
}

.visual-field[data-layout="loose"] .field-label {
  opacity: 1;
}

.field-label b {
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 14px;
}

.field-label-top {
  top: 26px;
}

.field-label-bottom {
  bottom: 26px;
}

.field-label-bottom b {
  color: var(--red);
}

.story-section {
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  border-top: 1px solid var(--line);
}

.story-pick .visual-field {
  min-height: 680px;
}

.personal-nine-shell {
  position: relative;
  min-width: 0;
  min-height: 680px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(68px, 7vw, 112px);
  background: var(--ink);
}

.personal-nine-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
}

.personal-nine {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, 0.7vw, 9px);
  transform: rotate(-0.7deg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.personal-nine img {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: block;
  object-fit: cover;
  background: var(--graphite);
}

.personal-nine img:nth-child(5) {
  position: relative;
  z-index: 1;
  outline: clamp(4px, 0.55vw, 7px) solid var(--red);
  outline-offset: calc(clamp(4px, 0.55vw, 7px) * -1);
}

.personal-nine-shell figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 3.2vw, 52px);
  bottom: clamp(22px, 3.2vw, 52px);
  left: clamp(22px, 3.2vw, 52px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--fog);
  font-size: 9px;
  text-transform: lowercase;
}

.personal-nine-shell figcaption b {
  color: var(--red);
  font-size: 11px;
}

.story-media {
  position: relative;
  min-height: 680px;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 3, 3, 0.72));
}

.story-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.story-media figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3.2vw, 52px);
  bottom: clamp(20px, 3.2vw, 46px);
  left: clamp(20px, 3.2vw, 52px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 9px;
  text-transform: lowercase;
}

.story-media figcaption span {
  color: var(--paper);
}

.story-copy {
  min-width: 0;
  padding: clamp(56px, 8vw, 132px) clamp(34px, 6vw, 98px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--void);
}

.story-copy .eyebrow {
  margin: 0 0 28px;
  color: var(--red);
  font-size: 10px;
}

.story-copy h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(76px, 9vw, 148px);
  font-weight: 760;
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.story-copy > p:last-child {
  max-width: 29ch;
  margin: 42px 0 0;
  color: var(--fog);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.65;
}

.story-send {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.35fr);
}

.story-send .story-copy {
  color: var(--void);
  background: var(--paper);
}

.story-send .story-copy .eyebrow {
  color: #bd2037;
}

.story-send .story-copy > p:last-child {
  color: #5c5c62;
}

.walkthrough {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(600px, 1.28fr);
  border-top: 1px solid var(--line);
  background: #08080a;
}

.walkthrough-copy {
  min-width: 0;
  padding: 94px clamp(34px, 5vw, 78px) 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--void);
}

.walkthrough-copy h2,
.walkthrough-copy > p:not(.eyebrow) {
  transition: opacity 160ms ease;
}

.walkthrough-copy h2 {
  margin: 0;
  /* Reserve two lines so chapter copy never reflows the phone stage. */
  min-height: calc(2 * 0.92em);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 720;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.walkthrough-copy > p:not(.eyebrow) {
  max-width: 37ch;
  margin: 24px 0 0;
  min-height: calc(2 * 1.55em);
  color: var(--fog);
  font-size: 12px;
  line-height: 1.55;
}

.walkthrough-controls {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 44px 58px 44px;
  align-items: center;
  gap: 14px;
}

.walkthrough-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(245, 245, 247, 0.05);
  cursor: pointer;
}

.walkthrough-controls button:disabled {
  opacity: 0.24;
  cursor: default;
}

.walkthrough-controls span {
  color: var(--fog);
  font-size: 10px;
  text-align: center;
}

.walkthrough-dots {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.walkthrough-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4f4f55;
  cursor: pointer;
  transition: width 180ms var(--ease), background 180ms ease;
}

.walkthrough-dot[aria-current="true"] {
  width: 28px;
  background: var(--red);
}

.walkthrough-window {
  position: relative;
  min-width: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(245, 245, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 247, 0.07) 1px, transparent 1px);
  background-size: 25% 25%;
}

.walkthrough-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* auto avoids smooth-snap fighting the page while you scroll vertically */
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.walkthrough-track.is-paging-y {
  overflow-x: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
}

.walkthrough-track.is-paging-x {
  touch-action: pan-x;
  overscroll-behavior-y: none;
}

.walkthrough-track::-webkit-scrollbar {
  display: none;
}

.walkthrough-track:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.walkthrough-chapter {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  /* Top chrome row matches the Jules/mine switch so every phone shares one center. */
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  justify-items: center;
  align-items: stretch;
  padding: 72px 28px 24px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.walkthrough-chapter > .phone {
  grid-row: 2;
  align-self: center;
}

.swipe-cue {
  display: none;
}

.phone {
  position: relative;
  width: auto;
  height: min(620px, calc(100svh - 150px));
  aspect-ratio: 393 / 852;
  padding: 10px;
  overflow: hidden;
  contain: layout paint;
  color: #111114;
  background: #050505;
  border: 1px solid #55555c;
  border-radius: 50px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px #161619;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  transform: translateZ(0);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 6px;
  border: 1px solid #242429;
  border-radius: 44px;
  pointer-events: none;
}

.phone button:focus-visible {
  outline-color: var(--red);
}

.phone-content {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #f6f6f8;
}

.dynamic-island {
  position: absolute;
  z-index: 12;
  top: 14px;
  left: 50%;
  width: 62px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.status-bar {
  position: absolute;
  z-index: 11;
  top: 14px;
  right: 38px;
  left: 40px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111;
  font: 600 10px / 1 -apple-system, sans-serif;
}

.status-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-glyphs::before {
  content: "";
  width: 12px;
  height: 7px;
  background:
    linear-gradient(currentColor, currentColor) 0 5px / 1.5px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2.5px 3.5px / 1.5px 3.5px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 2px / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 7.5px 0.5px / 1.5px 6.5px no-repeat;
}

.status-glyphs::after {
  content: "";
  width: 18px;
  height: 9px;
  background-color: currentColor;
  -webkit-mask: url("./assets/battery-mask.svg") center / contain no-repeat;
  mask: url("./assets/battery-mask.svg") center / contain no-repeat;
}

.status-bar i {
  display: none;
}

.home-indicator {
  position: absolute;
  z-index: 11;
  bottom: 16px;
  left: 50%;
  width: 104px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #111;
}

.ios-nav {
  height: 76px;
  padding: 42px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.ios-nav b {
  font-size: 13px;
}

.ios-nav button {
  min-width: 40px;
  padding: 0;
  border: 0;
  color: #0a84ff;
  background: transparent;
  cursor: pointer;
}

.ios-nav button:first-child {
  text-align: left;
}

.ios-nav button:last-child {
  text-align: right;
}

.accent-text {
  color: var(--red);
}

.walkthrough-photo-card {
  margin: 5px 16px;
  overflow: hidden;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.walkthrough-photo-card img {
  width: 100%;
  aspect-ratio: 0.88;
  display: block;
  object-fit: cover;
}

.photo-meta {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  color: #77777e;
  font-size: 9px;
}

.decision-row {
  padding: 7px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.decision-row button {
  height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  font-size: 9px;
  cursor: pointer;
}

.decision-row button span {
  font-size: 20px;
  line-height: 1;
}

.clear-button {
  background: #e9e9ed;
}

.keep-button {
  color: #fff;
  background: #111;
}

.keep-button span {
  color: var(--red);
}

.decision-status {
  margin: 2px 0;
  color: #77777e;
  font-size: 8px;
  text-align: center;
}

.walkthrough-nine-grid {
  width: calc(100% - 20px);
  aspect-ratio: 1;
  margin: 4px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  overflow: hidden;
}

.walkthrough-nine-grid img,
.walkthrough-nine-grid .empty-photo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1;
  border-radius: 3px;
  background: #d8d8dc;
}

.nine-footer {
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  color: #88888f;
  font-size: 8px;
}

.nine-footer b {
  color: #111;
}

.friend-profile {
  padding: 4px 0 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.friend-profile strong {
  font-size: 11px;
}

.friend-profile small {
  color: #88888f;
  font-size: 8px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, #ff526a, #850013);
  font-weight: 700;
}

.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 11px;
}

.ios-pill {
  margin: 12px auto;
  padding: 8px 17px;
  display: block;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 9px;
}

.share-phone .phone-content {
  background: #202023;
}

.share-phone .status-bar {
  color: #fff;
}

.share-backdrop {
  padding: 92px 18px;
  opacity: 0.32;
  filter: blur(4px);
}

.share-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 9px 34px;
  border-radius: 24px 24px 0 0;
  background: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(30px);
}

.grabber {
  width: 32px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 4px;
  background: #b6b6bb;
}

.share-preview {
  padding: 0 6px 11px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 9px;
}

.share-preview .walkthrough-nine-grid {
  width: 56px;
  margin: 0;
  gap: 1px;
}

.share-preview p {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 9px;
}

.share-preview p span {
  color: #77777e;
}

.share-apps {
  padding: 11px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d1d1d4;
}

.share-apps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  color: #111;
  background: none;
  font-size: 8px;
  cursor: pointer;
}

.share-apps i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
}

.messages-icon {
  background: #35c759;
}

.messages-icon::before {
  content: "";
  width: 16px;
  height: 14px;
  border-radius: 8px 8px 8px 3px;
  background: #fff;
}

.airdrop-icon {
  background: #0a84ff;
}

.airdrop-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #0a84ff, inset 0 0 0 5px #fff;
}

.copy-icon {
  background: #6c6c70;
}

.copy-icon::before {
  content: "";
  width: 11px;
  height: 13px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  box-shadow: 3px -3px 0 -1.5px #6c6c70, 3px -3px 0 0 #fff;
}

.share-actions {
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.share-actions button {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #ddd;
  color: #111;
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.messages-header {
  height: 100px;
  padding: 42px 20px 10px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.messages-header button {
  grid-column: 1;
  justify-self: start;
  align-self: center;
  border: 0;
  color: #0a84ff;
  background: none;
  font-size: 28px;
  line-height: 1;
}

.messages-contact {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.messages-contact .avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.messages-contact b {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  line-height: 1.1;
}

.messages-contact b::after {
  content: "›";
  color: #88888f;
  font-size: 8px;
  font-weight: 500;
  transform: translateY(-0.5px);
}

.conversation {
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.timestamp {
  align-self: center;
  color: #99999f;
  font-size: 7px;
}

.bubble {
  max-width: 78%;
  padding: 8px 10px;
  border-radius: 15px;
  font-size: 9px;
}

.outgoing {
  align-self: flex-end;
  color: #fff;
  background: #0a84ff;
}

.incoming {
  background: #ddd;
}

.link-card {
  width: 79%;
  align-self: flex-end;
  overflow: hidden;
  border-radius: 16px;
  background: #e7e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.link-card .walkthrough-nine-grid {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  gap: 1px;
  grid-template-rows: repeat(3, 1fr);
}

.link-card .walkthrough-nine-grid img {
  border-radius: 0;
}

.link-card > div:last-child {
  padding: 9px;
  display: flex;
  flex-direction: column;
  font-size: 9px;
}

.link-card > div:last-child span {
  color: #77777e;
  font-size: 7px;
}

.message-composer {
  position: absolute;
  right: 11px;
  bottom: 19px;
  left: 11px;
  display: grid;
  grid-template-columns: 26px 1fr 24px;
  align-items: center;
  gap: 5px;
  color: #77777e;
}

.message-composer p {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #ccc;
  border-radius: 17px;
  font-size: 9px;
}

.widget-demo {
  grid-row: 1 / -1;
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  justify-items: center;
  align-items: stretch;
}

.widget-switch {
  grid-row: 1;
  align-self: center;
  padding: 3px;
  display: flex;
  border: 1px solid #4a4a4e;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.widget-demo > .phone {
  grid-row: 2;
  align-self: center;
}

.widget-switch button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.widget-switch button[aria-pressed="true"] {
  color: #000;
  background: #fff;
}

.home-phone .phone-content {
  padding: 42px 14px 0;
  color: #fff;
  background: linear-gradient(160deg, #211c28, #51636d 55%, #162129);
}

.home-phone .status-bar {
  color: #fff;
}

.home-phone .home-indicator {
  background: #fff;
}

.home-date {
  margin-bottom: 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.home-date span {
  font-size: 8px;
  text-transform: uppercase;
}

.home-date b {
  font-size: 18px;
  line-height: 1;
}

.lockbox-widget {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(16, 16, 18, 0.66);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.widget-label {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}

.widget-label span {
  letter-spacing: -0.08em;
}

.widget-label b {
  color: #bbb;
  font-weight: 500;
}

.lockbox-widget .walkthrough-nine-grid {
  width: 100%;
  margin: 0;
  gap: 2px;
  /* Keep a true square. Do not flex-shrink this or the photos squash. */
  aspect-ratio: 1;
  height: auto;
  max-height: none;
}

.lockbox-widget p {
  margin: 6px 0 0;
  color: #ccc;
  font-size: 7px;
}

.app-icons {
  /* Bottom padding clears the absolute dock so icons never sit on it. */
  padding: 12px 4px 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}

.app-icons i,
.dock i {
  aspect-ratio: 1;
  width: 72%;
  max-width: 32px;
  justify-self: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.app-icons i:nth-child(2n) {
  background: rgba(63, 166, 255, 0.8);
}

.app-icons i:nth-child(3n) {
  background: rgba(255, 82, 82, 0.76);
}

.dock {
  position: absolute;
  right: 12px;
  bottom: 20px;
  left: 12px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.dock i {
  width: 100%;
  max-width: none;
}

footer {
  min-height: 180px;
  padding: 46px clamp(22px, 4.4vw, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  background: var(--void);
  font-size: 9px;
  text-transform: lowercase;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration-color: rgba(245, 245, 247, 0.35);
  text-underline-offset: 3px;
}

footer a[hidden] {
  display: none;
}

#app-store-door:not([hidden]) {
  color: var(--paper);
  text-decoration: none;
}

#app-store-door:not([hidden]):hover {
  color: var(--red);
}

.footer-wordmark {
  color: var(--paper);
  font-size: 20px;
}

@media (max-width: 1100px) {
  .site-header {
    height: 64px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(28px, 8vw, 72px);
    display: grid;
  }

  h1 {
    font-size: clamp(74px, 17vw, 150px);
  }

  .visual-field {
    height: 72svh;
    min-height: 620px;
  }

  .story-section,
  .story-send {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-media,
  .personal-nine-shell {
    min-height: min(76svh, 760px);
  }

  .story-copy {
    min-height: 56svh;
  }

  .walkthrough {
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-margin-top: 0;
  }

  .walkthrough-copy {
    flex: 0 0 auto;
    min-height: 0;
    padding: calc(64px + env(safe-area-inset-top, 0px)) 24px 16px;
    justify-content: flex-start;
    gap: 0;
  }

  .walkthrough-copy .eyebrow {
    margin-bottom: 10px;
  }

  .walkthrough-copy h2 {
    min-height: calc(2 * 1.02em);
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.02;
  }

  .walkthrough-copy > p:not(.eyebrow) {
    margin-top: 10px;
    min-height: calc(2 * 1.45em);
    font-size: 11px;
    line-height: 1.45;
  }

  .walkthrough-controls {
    margin-top: 16px;
    gap: 10px;
  }

  .walkthrough-controls button {
    width: 40px;
    height: 40px;
  }

  .walkthrough-dots {
    margin-top: 12px;
  }

  .walkthrough-window {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .walkthrough-track {
    overflow-x: auto;
    touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lockbox-widget,
  .dock {
    /* Blur over nine photos janks hard while the page scrolls on 6/6. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .walkthrough-chapter {
    grid-template-rows: 40px minmax(0, 1fr);
    padding: 8px 18px 16px;
  }

  .widget-demo {
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .phone {
    width: auto;
    height: min(520px, calc(100svh - 220px));
    max-height: 100%;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-inline: 19px;
    background: rgba(3, 3, 3, 0.96);
  }

  .site-header p {
    display: none;
  }

  .hero {
    padding: 24px;
  }

  h1 {
    font-size: clamp(64px, 19vw, 94px);
  }

  .visual-field {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    background-size: 33.333% 33.333%;
  }

  #nine-scene,
  .webgl-ready #nine-scene {
    display: none;
    opacity: 0;
  }

  .static-nine,
  .webgl-ready .static-nine {
    opacity: 1;
    pointer-events: auto;
  }

  .field-label {
    display: none;
  }

  .static-nine {
    width: min(82%, 390px);
    gap: 5px;
  }

  .story-pick .visual-field,
  .personal-nine-shell {
    min-height: 0;
  }

  .story-media {
    min-height: 62svh;
    height: auto;
  }

  .walkthrough-photo-card img {
    aspect-ratio: 1 / 1;
  }

  .static-nine img,
  .walkthrough-photo-card img,
  .walkthrough-nine-grid img {
    object-fit: contain;
    object-position: center;
    background: #111114;
  }

  .static-nine img,
  .walkthrough-nine-grid img {
    display: block;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .personal-nine-shell {
    padding: 58px 20px 72px;
  }

  .personal-nine-shell figcaption {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .story-copy {
    min-height: 0;
    padding: 36px 20px 44px;
  }

  .story-copy .eyebrow {
    margin-bottom: 22px;
  }

  .story-copy h2 {
    font-size: clamp(64px, 21vw, 88px);
  }

  .story-copy > p:last-child {
    margin-top: 24px;
  }

  .walkthrough {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .walkthrough-copy {
    padding: calc(58px + env(safe-area-inset-top, 0px)) 20px 18px;
  }

  .walkthrough-copy h2 {
    min-height: calc(2 * 1.02em);
    font-size: clamp(26px, 8.2vw, 34px);
  }

  .walkthrough-copy > p:not(.eyebrow) {
    margin-top: 8px;
    min-height: calc(2 * 1.45em);
    max-width: none;
  }

  .walkthrough-controls {
    margin-top: 12px;
  }

  .walkthrough-dots {
    margin-top: 10px;
  }

  .walkthrough-window {
    flex: none;
    height: min(540px, 68svh);
    min-height: 0;
  }

  .walkthrough-chapter {
    grid-template-rows: 36px minmax(0, 1fr);
    padding: 6px 14px 12px;
  }

  .widget-demo {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .phone {
    width: min(246px, calc(100vw - 64px));
    height: auto;
    max-height: calc(100% - 24px);
    border-radius: 42px;
  }

  .dynamic-island {
    top: 12px;
    width: 54px;
    height: 15px;
  }

  .status-bar {
    top: 12px;
    right: 32px;
    left: 34px;
    height: 15px;
    font-size: 9px;
  }

  .ios-nav {
    height: 70px;
    padding: 38px 20px 8px;
  }

  .messages-header {
    height: 92px;
    padding: 38px 18px 8px;
  }

  .home-phone .phone-content {
    padding: 36px 12px 0;
  }

  .home-date {
    margin-bottom: 6px;
  }

  .home-date b {
    font-size: 16px;
  }

  .lockbox-widget {
    /* Slightly inset so the square nine leaves room for icons + dock. */
    width: 90%;
    margin-inline: auto;
    padding: 8px;
    border-radius: 16px;
  }

  .lockbox-widget p {
    margin-top: 5px;
    font-size: 6px;
  }

  .app-icons {
    padding: 10px 2px 70px;
    gap: 10px 12px;
  }

  .app-icons i {
    max-width: 28px;
    border-radius: 7px;
  }

  .dock {
    right: 10px;
    bottom: 18px;
    left: 10px;
    padding: 7px 8px;
    gap: 8px;
    border-radius: 18px;
  }

  footer {
    min-height: 168px;
    padding: 34px 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    display: grid;
    min-height: 100svh;
    padding: 24px 36px;
  }

  h1 {
    font-size: clamp(54px, 10vw, 88px);
  }

  .story-pick .visual-field {
    height: calc(100svh - 64px);
    min-height: 0;
  }

  #nine-scene,
  .webgl-ready #nine-scene {
    display: none;
    opacity: 0;
  }

  .static-nine,
  .webgl-ready .static-nine {
    opacity: 1;
    pointer-events: auto;
  }

  .field-label {
    display: none;
  }

  .static-nine {
    width: min(38vw, 320px);
  }

  .walkthrough {
    height: 100svh;
    max-height: 100svh;
    flex-direction: row;
  }

  .walkthrough-copy {
    width: min(42vw, 360px);
    padding: 24px 20px;
    justify-content: center;
  }

  .walkthrough-copy h2 {
    font-size: clamp(24px, 4.5vw, 36px);
  }

  .walkthrough-window {
    flex: 1;
    min-height: 0;
    height: auto;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .walkthrough-chapter {
    grid-template-rows: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .widget-demo {
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .phone {
    height: min(520px, calc(100svh - 36px));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
