/* Whitepoint website. One stylesheet for every page; no build step. */

@font-face { font-family: Geist; font-weight: 300; font-display: swap; src: url(../fonts/Geist_300Light.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(../fonts/Geist_400Regular.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(../fonts/Geist_500Medium.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(../fonts/Geist_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Mono; font-weight: 400; font-display: swap; src: url(../fonts/JetBrainsMono_400Regular.ttf) format('truetype'); }
@font-face { font-family: Mono; font-weight: 500; font-display: swap; src: url(../fonts/JetBrainsMono_500Medium.ttf) format('truetype'); }

:root {
  /* The App Store screenshots' cobalt, top to bottom. */
  --cobalt-1: #3e8ff6;
  --cobalt-2: #2a75ea;
  --cobalt-3: #1f62da;
  --cobalt-4: #1a54c4;
  --sky: #5da3e8; /* the app's accent blue */
  --sky-wash: #e6f0fc;
  --navy: #16283f; /* the app's buttons */
  --ink: #0e0e0e;
  --body: #4a4f57;
  --muted: #80858d;
  --line: rgba(14, 14, 14, 0.08);
  --page: #f4f5f3; /* the app's page */
  --card: #ffffff;
  --gold: #ffd15c;

  --sans: Geist, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: Mono, ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --radius: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cobalt-2); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h2, .h3 { margin: 0; font-weight: 300; letter-spacing: -0.035em; text-wrap: balance; }
.display b, .h2 b, .h3 b { font-weight: 600; }
.display { font-size: clamp(50px, 7.6vw, 108px); line-height: 0.96; }
.h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; }
.h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.025em; }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); max-width: 34em; text-wrap: pretty; }
.label {
  display: inline-block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
p { text-wrap: pretty; }

/* ---------- App Store button ---------- */
.store {
  display: inline-flex; align-items: center; gap: 11px;
  height: 58px; padding: 0 24px 0 20px;
  border-radius: 16px;
  background: #000; color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 18px 40px -18px rgba(5, 18, 60, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 24px 46px -18px rgba(5, 18, 60, 0.7); }
.store:active { transform: translateY(0) scale(0.98); }
.store svg { width: 25px; height: 30px; flex: none; margin-top: -3px; }
.store span { display: flex; flex-direction: column; line-height: 1; }
.store small { font-size: 12px; font-weight: 400; letter-spacing: 0.01em; opacity: 0.92; margin-bottom: 4px; }
.store strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.store--sm { height: 42px; padding: 0 16px 0 14px; border-radius: 12px; gap: 8px; box-shadow: none; }
.store--sm svg { width: 17px; height: 21px; margin-top: -2px; }
.store--sm strong { font-size: 15px; letter-spacing: -0.01em; }
.store--sm small { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 72px;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { position: relative; display: block; width: 150px; height: 25px; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity 0.35s; }
.nav__logo .dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.store) { font-size: 15px; color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: color 0.2s; }
.nav__links a:not(.store):hover { color: #fff; }
.nav.is-solid { background: rgba(244, 245, 243, 0.82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__logo .light { opacity: 0; }
.nav.is-solid .nav__logo .dark { opacity: 1; }
.nav.is-solid .nav__links a:not(.store) { color: var(--body); }
.nav.is-solid .nav__links a:not(.store):hover { color: var(--ink); }
.nav--doc { background: rgba(244, 245, 243, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); }
@media (max-width: 860px) {
  .nav { height: 64px; }
  .nav__links a:not(.store) { display: none; }
  .nav__logo { width: 128px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--cobalt-1) 0%, var(--cobalt-2) 40%, var(--cobalt-3) 78%, var(--cobalt-4) 100%);
  isolation: isolate;
}
.hero::before { /* soft light lift, like the icon's halo */
  content: ''; position: absolute; z-index: -1;
  width: 120vmax; height: 120vmax; left: 40%; top: -55vmax;
  background: radial-gradient(closest-side, rgba(150, 205, 255, 0.55), rgba(150, 205, 255, 0) 70%);
  pointer-events: none;
}
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 24px;
  min-height: min(100svh, 940px); padding-top: 112px; padding-bottom: 72px;
}
.hero__copy { position: relative; z-index: 3; }
.hero .display { margin: 0 0 28px; }
.hero .lede { color: rgba(255, 255, 255, 0.86); margin-bottom: 40px; max-width: 30em; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__note { font-size: 15px; color: rgba(255, 255, 255, 0.74); }
.hero__art { position: relative; height: min(760px, 80vh); min-height: 560px; }
.hero__phone {
  position: absolute; left: 50%; top: 50%; width: min(500px, 56vh); min-width: 380px; max-width: none;
  transform: translate(-46%, -50%);
  filter: drop-shadow(0 70px 60px rgba(6, 20, 70, 0.45)) drop-shadow(0 20px 24px rgba(6, 20, 70, 0.25));
}
.tooth { position: absolute; max-width: none; pointer-events: none; }
.tooth--far { width: min(230px, 26vh); right: -6%; top: 2%; transform: rotate(18deg); filter: blur(0.6px) drop-shadow(0 30px 40px rgba(6, 20, 70, 0.35)); opacity: 0.96; }
.tooth--near { width: min(300px, 34vh); left: -2%; bottom: -2%; transform: rotate(-16deg); filter: drop-shadow(0 50px 50px rgba(6, 20, 70, 0.45)); z-index: 2; }
.hero__facts {
  position: relative; z-index: 2;
  display: flex; gap: 48px; flex-wrap: wrap;
  padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__facts li { list-style: none; font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.hero__facts { margin: 0; padding-left: 0; }

@media (prefers-reduced-motion: no-preference) {
  .tooth--far { animation: float 9s ease-in-out infinite; }
  .tooth--near { animation: float 11s ease-in-out -4s infinite; }
  @keyframes float { 50% { translate: 0 -14px; } }
}

@media (max-width: 1080px) {
  .hero__phone { width: 430px; }
  .hero__art { height: 660px; }
  .tooth--far { width: 190px; }
  .tooth--near { width: 240px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 108px; padding-bottom: 0; gap: 8px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; margin-bottom: 32px; }
  .hero__cta { justify-content: center; flex-direction: column; gap: 14px; }
  .hero__art { height: 520px; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
  .hero__phone { width: 380px; top: 46%; }
  .tooth--far { width: 150px; right: -4%; top: 4%; }
  .tooth--near { width: 180px; left: -6%; bottom: 6%; }
  .hero__facts { justify-content: center; gap: 14px 28px; padding: 22px 0 28px; }
}
@media (max-width: 420px) {
  .hero__art { height: 470px; }
  .hero__phone { width: 340px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 780px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* How it works: sticky phone beside the steps (desktop), phone per step (mobile). */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.steps__list { display: grid; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 470px; padding: 40px 0; }
.step__num { display: flex; align-items: center; gap: 14px; }
.step__num i { display: block; width: 36px; height: 1px; background: currentColor; opacity: 0.4; }
.step .lede { font-size: 19px; }
.step__phone { display: none; }
.steps__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.stage { position: relative; width: min(370px, 100%); aspect-ratio: 674 / 1400; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); filter: drop-shadow(0 50px 50px rgba(22, 40, 63, 0.22)) drop-shadow(0 14px 18px rgba(22, 40, 63, 0.12)); }
.stage img.is-on { opacity: 1; transform: none; }
.stage__halo { position: absolute; inset: -10% -30%; background: radial-gradient(closest-side, rgba(93, 163, 232, 0.28), rgba(93, 163, 232, 0)); z-index: -1; }
.stage__dots { position: absolute; right: -44px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.stage__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(14, 14, 14, 0.16); transition: height 0.4s var(--ease), background 0.4s; }
.stage__dots span.is-on { height: 26px; background: var(--navy); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__stage { display: none; }
  .step { min-height: 0; max-width: none; padding: 0 0 72px; text-align: center; align-items: center; }
  .step__phone { display: block; width: min(300px, 78vw); margin: 18px auto 0; filter: drop-shadow(0 40px 40px rgba(22, 40, 63, 0.2)); }
}

/* Shade picker */
.shade { background: var(--card); border-radius: clamp(28px, 4vw, 48px); padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; box-shadow: 0 1px 0 var(--line), 0 40px 80px -60px rgba(22, 40, 63, 0.25); }
.shade__copy { display: grid; gap: 22px; justify-items: start; }
.shade__tool { display: grid; justify-items: center; gap: 8px; }
.shade__teeth { position: relative; width: min(300px, 70vw); aspect-ratio: 600 / 697; }
.shade__teeth img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.18s linear; }
.shade__value { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.shade__value b { font-size: clamp(64px, 7vw, 92px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.shade__value span { font-size: 22px; color: var(--muted); }
.shade__word { font-size: 18px; color: var(--body); min-height: 1.5em; }
.shade__row { display: flex; justify-content: space-between; width: min(440px, 100%); margin-top: 18px; }
.shade__row button { width: 9%; aspect-ratio: 600 / 697; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, transform 0.25s var(--ease); }
.shade__row button img { width: 100%; height: 100%; }
.shade__row button.is-on { opacity: 1; transform: translateY(-4px) scale(1.18); }
.range { -webkit-appearance: none; appearance: none; width: min(440px, 100%); height: 36px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d9b979, #e9d9b4 45%, #f3f5f8 100%); box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.06) inset; }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d9b979, #e9d9b4 45%, #f3f5f8 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); box-shadow: 0 6px 16px -4px rgba(22, 40, 63, 0.35); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); box-shadow: 0 6px 16px -4px rgba(22, 40, 63, 0.35); }
.shade__ends { display: flex; justify-content: space-between; width: min(440px, 100%); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .shade { grid-template-columns: 1fr; text-align: center; }
  .shade__copy { justify-items: center; }
}

/* 3D before / after */
.model { position: relative; max-width: 820px; margin: 0 auto; }
.model__frame { position: relative; aspect-ratio: 1200 / 782; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.model__frame img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.model__after { clip-path: inset(0 0 0 var(--split, 50%)); }
.model__line { position: absolute; top: -4%; bottom: -4%; left: var(--split, 50%); width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(93, 163, 232, 0), var(--sky) 15%, var(--sky) 85%, rgba(93, 163, 232, 0)); pointer-events: none; }
.model__knob { position: absolute; top: 50%; left: var(--split, 50%); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -8px rgba(22, 40, 63, 0.4), 0 0 0 1px rgba(14, 14, 14, 0.06); display: grid; place-items: center; pointer-events: none; }
.model__knob svg { width: 22px; height: 22px; }
.model input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.model__tags { display: flex; justify-content: space-between; margin-top: 8px; }
.model__tags span { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.model__note { margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); padding: clamp(28px, 3.4vw, 44px); min-height: 560px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--line); isolation: isolate; }
.tile p { margin: 0; color: var(--body); font-size: 17px; max-width: 26em; }
.tile__phone { position: absolute; left: 50%; bottom: 0; width: 330px; max-width: none; transform: translate(-50%, 46%); filter: drop-shadow(0 30px 40px rgba(22, 40, 63, 0.2)); transition: transform 0.9s var(--ease); }
.tile:hover .tile__phone { transform: translate(-50%, 42%); }
.tile--wide { grid-column: span 7; }
.tile--narrow { grid-column: span 5; }
.tile--wide .tile__phone { left: auto; right: 6%; transform: translate(0, 34%); }
.tile--wide:hover .tile__phone { transform: translate(0, 30%); }
.tile--wide .tile__text { max-width: 46%; }
.tile--blue { background: linear-gradient(180deg, var(--cobalt-1), var(--cobalt-3)); color: #fff; }
.tile--blue p { color: rgba(255, 255, 255, 0.84); }
.tile--blue .label { color: rgba(255, 255, 255, 0.7); }
.tile--blue .tile__phone { filter: drop-shadow(0 40px 50px rgba(6, 20, 70, 0.45)); }
@media (max-width: 960px) {
  .tile--wide, .tile--narrow { grid-column: span 12; }
  .tile--wide .tile__text { max-width: none; }
  .tile--wide .tile__phone { right: auto; left: 50%; transform: translate(-50%, 46%); }
  .tile--wide:hover .tile__phone { transform: translate(-50%, 42%); }
}
@media (max-width: 560px) {
  /* Phones sit under the text instead of over it. */
  .tile { min-height: 0; padding-bottom: 0; }
  .tile__phone, .tile--wide .tile__phone { position: relative; left: auto; right: auto; bottom: auto; width: 270px; margin: 18px auto -290px; transform: none; }
  .tile:hover .tile__phone, .tile--wide:hover .tile__phone { transform: none; }
}

/* Privacy band */
.privacy { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.privacy::before { content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -420px; background: radial-gradient(closest-side, rgba(93, 163, 232, 0.28), rgba(93, 163, 232, 0)); }
.privacy .h2 { max-width: 13em; }
.privacy .label { color: rgba(255, 255, 255, 0.55); }
.privacy__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.privacy__grid h3 { margin: 14px 0 10px; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.privacy__grid p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) { .privacy__grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq__head { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { text-wrap: balance; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: -8px 0 26px; color: var(--body); max-width: 40em; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .faq summary { font-size: 18px; padding: 22px 0; }
}

/* Closing call to action */
.closer { text-align: center; color: #fff; overflow: hidden; }
.closer .wrap { display: grid; justify-items: center; gap: 26px; }
.closer__icon { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 40px 70px -20px rgba(6, 20, 70, 0.6); }
.closer .lede { color: rgba(255, 255, 255, 0.84); }
.closer .hero__note { margin-top: -6px; }

/* Footer */
.footer { padding: 64px 0 48px; font-size: 15px; color: var(--muted); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__top img { width: 140px; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--body); }
.footer nav a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }

/* Scroll reveal (only when JS has run and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Legal and support pages ---------- */
.doc { padding: 150px 0 120px; }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { margin: 18px 0 14px; font-size: clamp(42px, 6vw, 64px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.doc h1 b { font-weight: 600; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 48px; }
.doc h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--body); font-size: 17px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--cobalt-3); }
.doc .card { background: var(--card); border-radius: 24px; padding: 28px 30px; margin: 28px 0; box-shadow: 0 1px 0 var(--line); }
.doc .card p { margin: 0; }

/* Teeth either side of the closing call to action. */
.closer .tooth--far { width: 190px; left: auto; right: 6%; top: 7%; transform: rotate(14deg); }
.closer .tooth--near { width: 230px; left: 4%; right: auto; bottom: 6%; transform: rotate(-16deg); }
@media (max-width: 860px) {
  .closer .tooth--far { width: 104px; right: -22px; top: 4%; }
  .closer .tooth--near { width: 116px; left: -28px; bottom: auto; top: 9%; }
}
.closer .wrap { position: relative; z-index: 1; }

/* Hero teeth: each mostly clear of the screen. Desktop: one peeks out from behind the phone's
   right edge, one sits low in front of its bottom corner. Phones: they fill the two empty corners
   the tilted phone leaves (top left, bottom right). */
.hero__art .tooth--far { right: -15%; top: 26%; }
.hero__art .tooth--near { width: min(250px, 29vh); left: -3%; bottom: -10%; }
@media (max-width: 1080px) {
  .hero__art .tooth--near { width: 210px; }
}
@media (max-width: 860px) {
  /* The whole phone shows: it hangs from the top of its box instead of being centred and cropped. */
  .hero__art { height: 600px; }
  .hero__phone { width: 360px; min-width: 0; top: 28px; transform: translate(-46%, 0); }
  .hero__art .tooth--far { width: 118px; left: calc(50% - 200px); right: auto; top: 70px; z-index: 0; }
  .hero__art .tooth--near { width: 150px; left: auto; right: calc(50% - 230px); bottom: 26px; }
}
@media (max-width: 420px) {
  .hero__art { height: 560px; }
  .hero__phone { width: 330px; }
  .hero__art .tooth--far { width: 104px; left: calc(50% - 180px); top: 64px; }
  .hero__art .tooth--near { width: 134px; right: calc(50% - 205px); bottom: 24px; }
}
