/* ==========================================================================
   Loved — landing page
   Self-hosted fonts, no external requests, no cookies.
   ========================================================================== */

@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --ink: #ffffff;
  --ink-2: #a6a6a6;
  --ink-3: #6f6f6f;
  --rule: #262626;
  --screen: #0a0a0a;

  --gutter: clamp(20px, 4.2vw, 64px);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overscroll-behavior-y: none;
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: #000; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 1.5px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Page frame — one screen, nothing below the fold
   -------------------------------------------------------------------------- */
.page {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* faint warm light behind the phone, taken from the photograph's tones */
.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vmax; height: 70vmax;
  right: -14vmax; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(150, 110, 70, .13), rgba(150, 110, 70, .04) 55%, transparent 72%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(64px, 9vh, 92px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.masthead__meta {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  display: flex; gap: 14px; align-items: center;
}
.masthead__meta i { width: 1px; height: 12px; background: var(--rule); display: inline-block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  column-gap: clamp(32px, 6vw, 120px);
  align-items: center;
  padding: clamp(20px, 4vh, 48px) 0;
}

.copy { max-width: 640px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, .03);
}
.badge__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

.headline {
  margin: clamp(22px, 4vh, 40px) 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(42px, 5.6vw, 92px);
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  padding-right: .04em;
}

.lede {
  margin: clamp(18px, 3.2vh, 32px) 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 400; }

.index {
  list-style: none;
  margin: clamp(26px, 5vh, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.index li { padding: 16px 20px 0 0; }
.index li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.index b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); letter-spacing: -0.005em; }
.index span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.index small { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 10px; font-feature-settings: "tnum"; }

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  height: 100%;
  min-height: 0;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device {
  --w: min(100cqw, calc(100cqh * 393 / 852), 430px);
  position: relative;
  width: var(--w);
}
.phone {
  width: 100%;
  margin: 0;
  aspect-ratio: 393 / 852;
  position: relative;
  border-radius: calc(var(--w) * .145);
  padding: calc(var(--w) * .028);
  background: linear-gradient(145deg, #2c2c2c, #121212 40%, #1d1d1d);
  box-shadow:
    0 0 0 1px #3b3b3b inset,
    0 0 0 1px #050505,
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 18px 40px -20px rgba(0, 0, 0, .8);
}
.phone::before, .phone::after { /* side buttons */
  content: ""; position: absolute; width: 2px; border-radius: 2px; background: #2a2a2a;
}
.phone::before { left: -2px; top: 22%; height: 7%; box-shadow: 0 calc(var(--w) * .2) 0 #2a2a2a; }
.phone::after { right: -2px; top: 28%; height: 11%; }

.screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--w) * .12);
  overflow: hidden;
  background: var(--screen);
  display: flex;
  flex-direction: column;
}
.island {
  position: absolute; z-index: 2;
  left: 50%; top: calc(var(--w) * .03);
  transform: translateX(-50%);
  width: 30%; height: calc(var(--w) * .085);
  border-radius: 999px; background: #000;
}
.statusbar {
  flex: none;
  height: calc(var(--w) * .13);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--w) * .012) calc(var(--w) * .085) 0 calc(var(--w) * .1);
  font-size: max(calc(var(--w) * .038), 11px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.statusbar svg { height: max(calc(var(--w) * .03), 10px); width: auto; display: block; }
.statusbar .icons { display: flex; gap: calc(var(--w) * .014); align-items: center; }
.screen picture, .screen picture img { width: 100%; height: auto; }
.app-header { flex: none; }
/* the cover sits centred in the space between the app header and the tab bar */
.app-body {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center;
  overflow: hidden;
}
.app-body picture { flex: none; }
.tabbar {
  flex: none; position: relative; z-index: 1;
  background: #000;
  padding-bottom: calc(var(--w) * .055);
}
.tabbar picture, .tabbar img { width: 100%; height: auto; display: block; }
.home-indicator {
  z-index: 2;
  position: absolute; left: 50%; bottom: calc(var(--w) * .022);
  transform: translateX(-50%);
  width: 34%; height: calc(var(--w) * .011); border-radius: 99px; background: rgba(255, 255, 255, .85);
}

.caption {
  position: absolute; margin: 0;
  right: calc(100% + 26px); bottom: 10%;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.caption i { display: block; width: 1px; height: 36px; background: var(--rule); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  flex-wrap: wrap;
  min-height: clamp(54px, 7.5vh, 72px);
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3);
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Entrance motion
   -------------------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise 1s var(--ease) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; }
.phone-in { opacity: 0; transform: translateY(26px); animation: rise 1.4s var(--ease) .25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .phone-in { opacity: 1; transform: none; animation: none; }
  .badge__dot::after { animation: none; }
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

/* short desktop windows: drop the index first */
@media (min-width: 961px) and (max-height: 760px) {
  .index { display: none; }
}
@media (max-width: 1100px) { .caption { display: none; } }
@media (min-width: 1600px) { .copy { max-width: 760px; } }

/* tablet & mobile — stacked, phone fills the remaining height */
@media (max-width: 960px) {
  .page { min-height: 560px; }
  .page::before { right: 50%; top: auto; bottom: -30vmax; transform: translateX(50%); }
  .hero {
    display: flex; flex-direction: column; align-items: stretch;
    padding: clamp(18px, 3.4vh, 40px) 0 0;
    text-align: center;
  }
  .copy { flex: none; max-width: 620px; margin: 0 auto; }
  .headline { font-size: clamp(34px, 8.4vw, 64px); margin-top: clamp(14px, 2.6vh, 28px); }
  .lede { margin-left: auto; margin-right: auto; font-size: clamp(14px, 3.7vw, 17px); }
  .index { display: none; }
  .stage {
    flex: 1 1 auto;
    height: auto;
    margin-top: clamp(18px, 3.4vh, 36px);
    align-items: flex-start;
    overflow: hidden;
  }
  .device { --w: min(100cqw, calc(100cqh * 393 / 852), 340px); }
  .footer { justify-content: center; text-align: center; }
}

@media (max-width: 960px) and (max-height: 700px), (max-height: 480px) and (orientation: landscape) {
  .lede .long { display: none; }
}

@media (max-width: 520px) {
  .page {
    height: auto;
    min-height: 100svh;
    overflow-x: clip;
    overflow-y: visible;
  }
  .page::before { bottom: 0; }
  .hero { flex: 1 0 auto; min-height: auto; }
  .copy { display: contents; }
  .copy > .badge { order: 1; align-self: center; }
  .copy > .headline { order: 2; width: 100%; }
  .copy > .lede { order: 3; width: 100%; }
  .masthead__meta .ios { display: none; }
  .masthead__meta i { display: none; }
  .brand img { width: 26px; height: 26px; }
  .brand span { font-size: 19px; }
  .statusbar svg { height: 10px; }
  .statusbar .icons { gap: 3.6px; }
  .footer { flex-direction: column; gap: 6px; font-size: 11.5px; }
  .footer nav { gap: 18px; }
  .copy > .index {
    order: 5;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    margin: clamp(20px, 3vh, 28px) 0 0;
  }
  .copy > .index > li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .copy > .index > li + li { padding-left: 0; border-left: 0; }
  .copy > .index > li > small { grid-column: 1; grid-row: 1 / span 2; margin: 2px 0 0; }
  .copy > .index > li > b { grid-column: 2; grid-row: 1; }
  .copy > .index > li > span { grid-column: 2; grid-row: 2; }
  .hero > .stage {
    order: 4;
    flex: none;
    height: auto;
    container-type: normal;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    padding-bottom: clamp(16px, 3vh, 24px);
  }
  .hero > .stage > .device { --w: min(100%, 260px); }
  .page > .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .page > .footer p,
  .page > .footer nav { white-space: nowrap; }
  .page > .footer nav { gap: clamp(8px, 3vw, 14px); }
}

/* landscape phones: no room for a device — keep words, legal links */
@media (max-width: 960px) and (max-height: 480px) and (orientation: landscape) {
  .page { height: auto; min-height: 100svh; }
  .stage { display: none; }
  .hero { justify-content: center; padding: 14px 0; }
  .masthead { height: 56px; }
  .headline { font-size: 34px; margin-top: 12px; }
  .lede { margin-top: 12px; }
  .footer { min-height: 0; padding: 10px 0; flex-direction: row; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-page { min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--gutter); }
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) 0 clamp(56px, 10vh, 120px);
}
.legal .back { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.legal .back:hover { color: var(--ink); }
.legal h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em;
  margin: 28px 0 0;
}
.legal .updated { margin: 18px 0 0; color: var(--ink-3); font-size: 13px; }
.legal .intro { font-size: 17px; color: var(--ink); margin: 40px 0 0; line-height: 1.6; }
.legal h2 {
  font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.02em;
  margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--rule);
}
.legal h2 small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); margin-right: 14px; font-feature-settings: "tnum"; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legal p { margin: 14px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 1.1em; }
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--ink-3); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: #555; }
.legal a:hover { text-decoration-color: #fff; }
.legal address { font-style: normal; color: var(--ink-2); margin-top: 14px; line-height: 1.7; }
.legal-page .footer { min-height: 72px; }
@media (max-width: 520px) { .legal-page .footer { flex-direction: column; gap: 6px; } }
