/* Tiden's tokens, from brand/final.json */
:root {
  --night: #0b0d10;
  --glass: #1a1e23;
  --raised: #242930;
  --light: #f3e3d3;
  --tide: #ffdbc5;
  --sea: #a9bdcb;
  --text: #ffffff;
  --body: #d8dce0;
  --muted: #8e97a1;
  --faint: #7a828c; /* brand textFaint #5C646D lifted to 5:1 for small web text */
  --line: rgba(255, 255, 255, 0.1);
  --glass-fill: rgba(255, 255, 255, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 8.5vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--body);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; background: var(--light); color: var(--night); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

.kicker { color: var(--light); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
.section-lead { max-width: 34em; margin-top: 20px; color: var(--muted); font-size: 19px; }

/* Buttons: one primary action, first light on night */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--light); color: var(--night);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 40px rgba(255, 219, 197, 0.18);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.button:hover { background: #fff3e6; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 14px 50px rgba(255, 219, 197, 0.3); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }

/* Apple's own badge, as Apple's marketing tools embed it; 40 px is Apple's smallest allowed height */
.store { display: inline-block; flex: none; border-radius: 12px; transition: transform 0.4s var(--ease), filter 0.4s; }
.store img { width: auto; height: 56px; }
.store:hover { transform: translateY(-1px); filter: drop-shadow(0 10px 30px rgba(255, 219, 197, 0.22)); }
.bar .store img { height: 40px; }

/* Header: a quiet glass bar that firms up once the page moves */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; padding: 14px var(--gutter); pointer-events: none; }
.bar__inner {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 999px; border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.scrolled .bar__inner, .page .bar__inner { background: rgba(16, 19, 23, 0.72); border-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.wordmark img { border-radius: 7px; }
.bar__links { display: flex; gap: 32px; margin-left: auto; }
.bar__links a { color: var(--body); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.bar__links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 1000px); display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; z-index: -1; background: linear-gradient(to bottom, rgba(11, 13, 16, 0), var(--night)); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero__title { font-size: clamp(54px, 7vw, 108px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 400; }
.hero__lead { max-width: 21em; margin-top: 28px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: rgba(255, 255, 255, 0.84); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 40px; }
.hero__price { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.hero__price span { color: rgba(255, 255, 255, 0.6); }
.hero__device { justify-self: center; display: grid; justify-items: center; gap: 16px; }
.hero__caption { font-size: 13px; color: var(--muted); }

/* Phone frame around real screens */
.phone {
  position: relative; width: 300px; aspect-ratio: 600 / 1304; padding: 2.4%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(150deg, #3a3f46 0%, #16191d 30%, #0d0f12 70%, #2b3036 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 50px 90px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 13.4% / 6.2%; background: #000; }
.phone__screen img, .phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { width: clamp(260px, 25vw, 340px); }
.phone--hero::before {
  content: ""; position: absolute; inset: -18% -40%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 219, 197, 0.32), rgba(255, 219, 197, 0.08) 55%, transparent 75%);
}
.phone--small { width: min(250px, 70vw); }
.phone--medium { width: clamp(230px, 22vw, 290px); }
.loop-toggle {
  position: absolute; right: 9%; bottom: 3.6%; z-index: 2;
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 13, 16, 0.55); color: #fff; font: 600 12px/1 var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* The number */
.statement { padding-block: var(--section) calc(var(--section) * 0.75); text-align: center; }
.statement__number {
  font-size: clamp(76px, 13vw, 184px); line-height: 1; font-weight: 200; letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 30%, var(--tide) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement__text { max-width: 22em; margin: 28px auto 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -0.02em; color: var(--muted); }
.statement__text span { color: var(--text); }
.statement__source { margin-top: 32px; font-size: 13px; color: var(--faint); }
.statement__source a { color: var(--muted); }

/* What changes */
.value { padding-block: calc(var(--section) * 0.5) var(--section); }
.value .points { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.tiles, .steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.tile, .step { display: grid; justify-items: start; align-content: start; }
.tile .phone, .step .phone { margin-bottom: 32px; }
.tile h3, .step h3 { margin-bottom: 8px; }
.tile__text p, .step__text p:last-child { color: var(--muted); max-width: 22em; }

/* How it works: the one twist */
.how { padding-block: var(--section); background: radial-gradient(50% 60% at 82% 55%, rgba(255, 219, 197, 0.1), transparent 70%), linear-gradient(180deg, var(--night), #0e1115 50%, var(--night)); }
.step__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(243, 227, 211, 0.45); color: var(--light); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.phone--glow::before { content: ""; position: absolute; inset: -14% -36%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 219, 197, 0.28), rgba(255, 219, 197, 0.06) 60%, transparent 78%); }
.points { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.points li { position: relative; padding-left: 24px; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--light); box-shadow: 0 0 14px rgba(255, 219, 197, 0.8); }
.how__caption { margin-top: 18px; color: var(--faint); font-size: 13px; }

/* Privacy */
.privacy { padding-block: var(--section); }
.cards { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 32px 28px 34px; border-radius: 28px; background: var(--glass-fill); border: 1px solid var(--line); }
.icon { display: block; width: 32px; height: 32px; margin-bottom: 26px; background: var(--light); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--camera { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.icon--lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='3'/%3E%3Crect x='9.5' y='11' width='5' height='4' rx='1'/%3E%3Cpath d='M10.5 11V9.5a1.5 1.5 0 0 1 3 0V11'/%3E%3C/svg%3E"); }
.icon--eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E"); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; }

/* Price */
.price { padding-block: var(--section); text-align: center; border-top: 1px solid var(--line); }
.price .section-lead { margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 16px; margin: 56px 0 40px; text-align: left; }
.plan { padding: 28px 28px 30px; border-radius: 28px; background: var(--glass-fill); border: 1px solid var(--line); }
.plan--best { border-color: rgba(243, 227, 211, 0.55); background: linear-gradient(180deg, rgba(255, 219, 197, 0.09), rgba(255, 219, 197, 0.02)); box-shadow: 0 30px 80px -30px rgba(255, 219, 197, 0.25); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-weight: 600; }
.plan__badge { padding: 5px 10px; border-radius: 999px; background: var(--light); color: var(--night); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.plan__price { margin-top: 28px; color: var(--text); font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { font-size: 17px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.plan__note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.price__fine { max-width: 36em; margin: 20px auto 0; color: var(--muted); font-size: 15px; }
.price__fine a { color: var(--light); }

/* Questions */
.faq { padding-block: 0 var(--section); }
.faq .faq__list { max-width: 860px; }
.faq__list { margin-top: 48px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 26px 48px 26px 0; color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.4s var(--ease); }
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 40em; }

/* Last call */
.last { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 18vw, 240px) 0 clamp(120px, 14vw, 180px); text-align: center; }
.last__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.last::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 16, 0.45) 35%, rgba(11, 13, 16, 0.6) 70%, var(--night) 100%); }
.last .hero__price { color: rgba(255, 255, 255, 0.82); }
.last h2 { text-shadow: 0 2px 30px rgba(11, 13, 16, 0.45); }
.last h2 { max-width: 13em; margin: 0 auto 40px; font-size: clamp(40px, 6vw, 80px); }
.last .hero__price { margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer__brand p { margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { text-decoration: none; color: var(--body); }
.footer__links a:hover { color: var(--text); }
.footer__company, .footer__fine { grid-column: 1 / -1; }
.footer__company { margin-top: 24px; }
.footer__company a { color: var(--body); }
.footer__fine { color: var(--faint); }

/* Text pages */
.page main { padding-top: 140px; padding-bottom: 96px; }
.doc { max-width: 720px; }
.doc--wide { max-width: 980px; }
.doc h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.doc__lead { margin-top: 20px; font-size: 21px; color: var(--body); max-width: 32em; }
.doc__updated { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc__h2 { margin: 56px 0 20px; font-size: 26px; letter-spacing: -0.02em; }
.draft { display: inline-block; margin-bottom: 28px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(232, 176, 90, 0.6); color: #e8b05a; font-size: 14px; font-weight: 600; }
.prose { margin-top: 40px; }
.prose h2 { margin: 48px 0 14px; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 10px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a, .doc .contact a, .files a { color: var(--light); text-underline-offset: 3px; }
.muted { color: var(--muted); font-size: 16px; }
.contact { margin: 36px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.contact span { color: var(--muted); }
.contact a { font-size: 24px; letter-spacing: -0.01em; }
.doc .faq__list { margin-top: 8px; }
.company { margin-top: 48px; }
.facts { margin: 8px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 22px; border-radius: 18px; background: var(--glass-fill); border: 1px solid var(--line); }
.files span { color: var(--muted); font-size: 15px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.shots img { border-radius: 22px; border: 1px solid var(--line); }
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
.lost p { color: var(--muted); margin-bottom: 12px; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .bar__links { display: none; }
  .hero { padding: 112px 0 40px; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__bg img { object-position: 50% 0%; }
  /* The phone rises out of the page instead of filling a whole screen */
  .hero__device { max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { flex-direction: column; align-items: center; }
  /* Steps and features become rows: a small phone beside its words, so the loop is on screen without swiping */
  .steps, .tiles { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .step, .tile { display: flex; align-items: center; gap: 20px; }
  .step .phone, .tile .phone { flex: 0 0 38%; width: 38%; margin: 0; }
  .step__n { margin-bottom: 12px; }
  .tile__text p, .step__text p:last-child { font-size: 16px; }
  .points { flex-direction: column; margin-top: 40px; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .bar { padding: 10px 12px; }
  .bar__inner { height: 54px; padding: 0 7px 0 14px; }
  .hero__title { font-size: clamp(48px, 14vw, 64px); }

  .facts div { grid-template-columns: 1fr; gap: 4px; }
  summary { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
