:root {
  --cream: #FAF7EC;
  --card: #FFFEFB;
  --ink: #151515;
  --ink-soft: #6B675D;
  --line: rgba(21, 21, 21, 0.09);
  --yellow: #FFC515;
  --yellow-deep: #F2A007;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav a:hover { opacity: 0.65; }

/* App Store badge, drawn to Apple's proportions */

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px 0 15px;
  background: #000;
  color: #fff;
  border: 1px solid #A6A6A6;
  border-radius: 12px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.store-button svg { width: 27px; height: 32px; fill: #fff; flex: none; margin-top: -3px; }

.store-button span { display: flex; flex-direction: column; gap: 2px; }

.store-button small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }

.store-button strong { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }

.store-button.compact { height: 42px; padding: 0 14px 0 11px; border-radius: 9px; gap: 6px; }
.store-button.compact svg { width: 19px; height: 23px; margin-top: -2px; }
.store-button.compact small { font-size: 9px; }
.store-button.compact strong { font-size: 18px; }

/* Hero */

main { flex: 1; }

.hero .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-weight: 600;
  font-size: 15px;
}

.pill .faces { display: flex; }

.pill .faces img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFF1C4;
  border: 2px solid var(--card);
  object-fit: contain;
}

.pill .faces img + img { margin-left: -10px; }

h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 26px 0 22px;
}

h1 mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  padding: 0 4px;
  margin: 0 -4px;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 32px;
}

/* Showcase panel: slow drifting light, a sheen now and then, the phone floating */

.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 52px 36px;
  border-radius: 32px;
  background: linear-gradient(155deg, #FFD95A 0%, var(--yellow) 48%, #F2A007 100%);
}

.panel .glow {
  position: absolute;
  inset: -35%;
  z-index: -2;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 74% 72%, rgba(235, 120, 0, 0.45) 0%, rgba(235, 120, 0, 0) 38%),
    radial-gradient(circle at 70% 20%, rgba(255, 236, 170, 0.7) 0%, rgba(255, 236, 170, 0) 30%);
  animation: drift 16s ease-in-out infinite alternate;
}

.panel .sheen {
  position: absolute;
  top: -40%;
  left: -70%;
  width: 45%;
  height: 180%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transform: rotate(16deg);
  animation: sheen 9s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate(-5%, -4%) rotate(0deg) scale(1); }
  to { transform: translate(6%, 5%) rotate(20deg) scale(1.08); }
}

@keyframes sheen {
  0% { left: -70%; }
  45%, 100% { left: 135%; }
}

/* iPhone 16 Pro in Black Titanium, from the front: a thin metal edge, a black border,
   corners that curve in step, and the Dynamic Island. Sizes follow the real proportions. */
.phone {
  --w: 264px;
  --band: calc(var(--w) * 0.012);
  --border: calc(var(--w) * 0.03);
  --screen-r: calc(var(--w) * 0.118);
  position: relative;
  flex: none;
  width: var(--w);
  padding: var(--band);
  border-radius: calc(var(--screen-r) + var(--border) + var(--band));
  background: linear-gradient(145deg, #77746F 0%, #3A3937 14%, #1C1C1C 45%, #262625 70%, #5E5C58 92%, #8C8984 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.35),
    inset 0 0 1px 1.5px rgba(0, 0, 0, 0.55),
    0 60px 80px -30px rgba(90, 45, 0, 0.55),
    0 24px 40px -18px rgba(0, 0, 0, 0.35);
  animation: bob 8s ease-in-out infinite;
}

.phone .screen {
  position: relative;
  overflow: hidden;
  padding: var(--border);
  border-radius: calc(var(--screen-r) + var(--border));
  background: #000;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--screen-r);
}

/* Reflection on the glass */
.phone .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 24%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.phone .island {
  position: absolute;
  top: calc(var(--border) + var(--w) * 0.03);
  left: 50%;
  width: calc(var(--w) * 0.285);
  height: calc(var(--w) * 0.083);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone .button {
  position: absolute;
  width: calc(var(--w) * 0.009);
  border-radius: 2px;
  background: linear-gradient(90deg, #1E1E1E, #6D6B67 60%, #2A2A29);
}

.phone .button.action { left: calc(var(--w) * -0.008); top: 17%; height: 4.5%; }
.phone .button.vol-up { left: calc(var(--w) * -0.008); top: 24%; height: 7.5%; }
.phone .button.vol-down { left: calc(var(--w) * -0.008); top: 33.5%; height: 7.5%; }
.phone .button.power { right: calc(var(--w) * -0.008); top: 27%; height: 11%; }
.phone .button.camera { right: calc(var(--w) * -0.008); top: 56%; height: 6.5%; }

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

/* The three highlights sit beside the phone, never on it */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 214px;
  padding: 12px 14px 12px 12px;
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 18px 34px -12px rgba(90, 50, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-soft);
  animation: float 7s ease-in-out infinite;
}

.card:nth-child(2) { margin-left: 22px; animation-delay: -2.3s; }
.card:nth-child(3) { animation-delay: -4.6s; }

.card b { display: block; color: var(--ink); font-size: 16px; letter-spacing: -0.01em; }

.card .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFF1C4;
}

.card .icon svg { width: 20px; height: 20px; }

.card.label .icon { background: #E4F5E8; }
.card.warning .icon { background: #FDE6E3; }

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

@media (prefers-reduced-motion: reduce) {
  .panel .glow, .panel .sheen, .phone, .card { animation: none; }
}

/* Legal pages */

.doc .wrap { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }

.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 16px 0 6px; }

.doc .updated { color: var(--ink-soft); margin: 0 0 36px; }

.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }

.doc p, .doc li { color: #2E2C27; }

.doc ul { padding-left: 22px; }

.doc li { margin: 6px 0; }

.table-scroll { overflow-x: auto; margin: 16px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
}

.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc tr:last-child td { border-bottom: 0; }

.doc th { font-weight: 700; }

/* Footer */

.site-footer {
  padding: 28px 0 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer nav span { opacity: 0.6; }
.site-footer p { margin: 0; font-size: 14px; }

/* Phones */

/* Not enough room for the cards beside the phone: phone first, cards underneath */
@media (max-width: 1199px) {
  .panel { flex-direction: column; padding: 44px 24px 36px; }
  .phone { order: -1; }
  .cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .card { width: auto; }
  .card:nth-child(2) { margin-left: 0; }
}

@media (max-width: 860px) {
  .nav .text-link { display: none; }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
    padding-bottom: 48px;
  }
  .panel { flex-direction: column; max-width: 480px; width: 100%; margin: 0 auto; padding: 40px 20px 32px; }
  .phone { --w: 240px; order: -1; }
  .cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .card { width: auto; }
  .card:nth-child(2) { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-footer nav { gap: 8px 20px; }
  .site-footer nav span { display: none; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 24px; }
  .phone { --w: 220px; }
  .card { font-size: 11.5px; padding: 8px 12px 8px 8px; gap: 8px; }
  .card b { font-size: 14.5px; }
  .card .icon { width: 30px; height: 30px; border-radius: 10px; }
  .card .icon svg { width: 16px; height: 16px; }
  .store-button { height: 52px; }
  .store-button strong { font-size: 23px; }
}
