@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/assets/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-display: swap; src: url("/assets/barlow-condensed-900.woff2") format("woff2"); }
/* Pacelings website. Same tokens as the app (Shared/Design/Palette.swift): one Ember block per page, the rest calm. */
:root {
  --ground: #F2F0E6;
  --surface: #FFFFFF;
  --line: #DEDBCF;
  --text: #0F1A16;
  --text-2: #2E3B35;
  --muted: #4A5A52;
  --block: #FF8F5C;
  --on-block: #0F1A16;
  --accent: #B4400F;
  --action: #0F1A16;
  --on-action: #F2F0E6;
  --display: "Barlow Condensed", "SF Pro Display", "Arial Narrow", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1A16;
    --surface: #18261F;
    --line: #213229;
    --text: #F2F0E6;
    --text-2: #C3D0C8;
    --muted: #9DB0A6;
    --accent: #FF9F6E;
    --action: #F2F0E6;
    --on-action: #0F1A16;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(56px, 9vw, 112px); }
h2 { font-size: clamp(38px, 5.4vw, 64px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow.on { color: var(--on-block); opacity: .75; }
.lede { font-size: 20px; color: var(--text-2); margin: 18px 0 0; max-width: 34em; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.docs .top { position: static; border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; }
.brand img { border-radius: 8px; }
.home .brand, .home .top nav a { color: var(--on-block); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.lang { border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 12px; }

/* Hero: the Ember block, phone hangs over its lower edge */
.hero { background: var(--block); color: var(--on-block); padding-top: calc(110px + env(safe-area-inset-top, 0px)); margin-bottom: 120px; }
.hero-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero-text { padding-bottom: 72px; min-width: 0; }
.hero-lede { font-size: 21px; max-width: 30em; margin: 22px 0 30px; }
.hero-figure { margin-bottom: -120px; justify-self: center; }
.hero-figure .phone { width: min(340px, 78vw); }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.free { font-weight: 600; font-size: 15px; }

.store { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { height: 54px; width: auto; }

/* Phone frame */
.phone {
  margin: 0;
  width: min(320px, 80vw);
  padding: 10px;
  border-radius: 54px;
  background: #0F1A16;
  box-shadow: 0 0 0 1.5px #2E3B35 inset, 0 30px 60px -20px rgba(15, 26, 22, .45);
}
.phone img { border-radius: 44px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: var(--surface); }

/* Watch frame (Ultra shape) */
.watch { margin: 0; width: min(300px, 70vw); padding: 22px; border-radius: 88px; background: #0F1A16;
  box-shadow: 0 0 0 6px #2E3B35 inset, 0 30px 60px -20px rgba(15, 26, 22, .45); }
.watch img { width: 100%; border-radius: 64px; aspect-ratio: 422 / 514; }
.feature.flip .watch { order: -1; }
@media (max-width: 860px) { .feature .watch, .feature.flip .watch { order: 2; justify-self: center; } }
/* Phone with the watch in front of its lower corner */
.combo { position: relative; justify-self: center; padding-right: 72px; }
.feature.flip .combo { order: -1; }
.combo .watch { position: absolute; right: 0; bottom: 48px; width: 168px; padding: 13px; border-radius: 50px; }
.combo .watch img { border-radius: 38px; }
@media (max-width: 860px) { .feature .combo, .feature.flip .combo { order: 2; } }
@media (max-width: 480px) { .combo { padding-right: 36px; } .combo .phone { width: min(320px, 68vw); } .combo .watch { width: 128px; padding: 10px; border-radius: 40px; bottom: 32px; } .combo .watch img { border-radius: 30px; } }

/* Strip of four facts */
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 24px 56px; }
.strip-row div { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--text); padding-top: 14px; min-width: 0; }
.strip-row b { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.strip-row span { color: var(--muted); font-size: 15px; }

/* Features */
.feature { padding-block: 72px; border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.feature.flip .feature-row { grid-template-columns: auto 1fr; }
.feature.flip .phone { order: -1; }
.feature-text { min-width: 0; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 30px; color: var(--text-2); }
.points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-radius: 5px; background: var(--block); }
.note { margin: 22px 0 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--muted); max-width: 34em; }

/* Promise */
.promise { background: var(--surface); border-block: 1px solid var(--line); padding-block: 80px; }
.promise ul { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.promise li { color: var(--text-2); min-width: 0; }
.promise b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--text); line-height: 1.05; margin-bottom: 4px; }

/* FAQ and docs */
.faq { padding-block: 80px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: .8; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; color: var(--text-2); }
.more { margin-top: 24px; }

.final { padding-block: 40px 96px; }
.final-row { display: flex; align-items: center; gap: 40px; background: var(--block); color: var(--on-block); border-radius: 32px; padding: 40px; }
.final-row img { border-radius: 36px; width: 160px; flex: none; }
.final-row h2 { font-size: clamp(34px, 4.4vw, 54px); }
.final-row p { margin: 10px 0 22px; }

.doc { padding-block: 64px 96px; }
.doc h1 { font-size: clamp(40px, 5.5vw, 64px); }
.doc section { margin-top: 44px; }
.doc h2 { font-size: 32px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc h1, .doc h2, .doc p { overflow-wrap: break-word; hyphens: auto; }
.doc ul { padding-left: 22px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.foot-brand b { color: var(--text); }
.foot-brand img { border-radius: 10px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--text); }
.fine { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .hero { margin-bottom: 90px; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; }
  .hero-figure { margin-bottom: -90px; }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature.flip .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature .phone, .feature.flip .phone { order: 2; justify-self: center; }
  .promise ul { grid-template-columns: 1fr; }
  .final-row { flex-direction: column; align-items: flex-start; padding: 28px; }
  .foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav a:not(.lang):first-child { display: none; }
  .hero-lede, .lede { font-size: 18px; }
  .strip-row { grid-template-columns: 1fr; }
}
