/* Tera Chat home page (2026-11-15, second pass).
   The site's own dark look, as on every other page (styles.css tokens: the
   app's near-black, the system font, the system blue). Nothing here re-colours
   the shared nav, buttons or footer. Every picture is the real app. What
   moves is the product doing its job, the only kind of motion the evidence
   supports: the hero's shot of the real window (.hp-cam, .hp-mask), and each
   feature's own screen playing its feature once when it comes on screen
   ("Moments"). Reduced motion shows every screen still and finished.
   Loaded after styles.css on the home page only. The CSP allows no inline
   style: everything is a rule here. */

/* Platform-only pieces: assets/os.js sets <html data-os> to mac, windows,
   android, iphone or other before the first paint. iMessage and Bumble are
   the Mac app's today. */
html[data-os="windows"] .hp-mac-only,
html:not([data-os="windows"]) .hp-win-only {
  display: none;
}
.hp-hero,
.hp-band,
.hp-apps-band,
.hp-more,
.hp-steps,
.hp-privacy,
.hp-pricing,
.hp-every,
.hp-faq,
.hp-guides,
.hp-final {
  --hp-gap: clamp(64px, 9vw, 132px);
}
.hp-hero .cta-row,
.hp-steps .cta-row,
.hp-every .cta-row,
.hp-final .cta-row {
  justify-content: flex-start;
  margin-top: 0;
}
.hp-h2,
.hp-band h2,
.hp-apps-band h2 {
  margin: 0;
  font: 700 clamp(32px, 4.5vw, 60px) / 1.03 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hp-h2 span,
.hp-band h2 span,
.hp-apps-band h2 span,
.hp-final h2 span {
  display: block;
}
.hp-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hp-link:hover {
  color: var(--accent-light);
}
.hp-glyph {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.08em;
  vertical-align: -0.18em;
  color: var(--accent-light);
}
.hp-head {
  max-width: 760px;
}
.hp-head p {
  margin-top: 16px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
}
.hp-pain {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 500;
  color: var(--faint);
}
.hp-pain::before { content: "\201C"; }
.hp-pain::after { content: "\201D"; }

/* ---------- App tiles ---------- */
.hp-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 27%;
  background: #6b7080;
  color: #ffffff;
}
.hp-tile svg {
  width: 58%;
  height: 58%;
}
.hp-tile b {
  font: 800 0.56em/1 var(--display);
}
.hp-tile-sm { width: 18px; height: 18px; font-size: 18px; }
.hp-tile-md { width: 34px; height: 34px; font-size: 34px; }
.hp-tile-lg { width: 64px; height: 64px; font-size: 64px; }
.t-whatsapp { background: #25d366; }
.t-instagram { background: linear-gradient(45deg, #ffd600, #ff7a00 26%, #ff0069 56%, #d300c5 80%, #7638fa); }
.t-telegram { background: #26a5e4; }
.t-imessage { background: #34da50; }
.t-tinder { background: linear-gradient(200deg, #ff7854, #fd267a); }
.t-bumble { background: #ffc629; color: #1d1d1d; }
.t-hinge { background: #2a2a31; }
.t-messenger { background: linear-gradient(200deg, #ff6968, #a334fa 46%, #0695ff); }
.t-signal { background: #3b45fd; }
.t-discord { background: #5865f2; }
.t-snapchat { background: #fffc00; color: #111111; }
.t-x { background: #16171b; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.t-line { background: #06c755; }
.t-viber { background: #7360f2; }

/* ---------- 1. The offer, the button, the real app ---------- */
.hp-hero {
  padding: clamp(28px, 4.4vw, 64px) 0 clamp(40px, 5vw, 72px);
  overflow: clip;
}
.hp-hero > .wrap {
  max-width: 1320px;
}
.hp-hero-grid {
  display: grid;
  grid-template-areas: "head" "shot" "act";
  row-gap: 24px;
  align-items: center;
}
/* On a phone the real app comes right under the headline, so the first screen
   shows the product, not only words (phones are ~59% of visitors and can't
   download here anyway). From tablet width up the button comes first again. */
.hp-hero-head,
.hp-hero-act {
  min-width: 0;
}
.hp-hero-head { grid-area: head; }
.hp-hero-act { grid-area: act; }
.hp-hero-grid > .hp-real { grid-area: shot; }
@media (min-width: 701px) {
  .hp-hero-grid {
    grid-template-areas: "head" "act" "shot";
    row-gap: 0;
  }
  .hp-hero-act { margin-top: 28px; }
  .hp-hero-grid > .hp-real { margin-top: 40px; }
}
.hp-hero h1 {
  margin: 0 0 22px;
  font: 700 clamp(42px, 11vw, 76px) / 0.98 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hp-hero h1 span {
  display: block;
  color: var(--accent-light);
}
.hp-sub {
  max-width: 33em;
  margin-bottom: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.hp-hero .btn,
.hp-final .btn {
  height: 56px;
  padding: 0 24px;
  font-size: 16px;
}
.hp-hero .btn svg {
  width: 19px;
  height: 19px;
}
.hp-free {
  margin-top: 18px;
  font-weight: 650;
  font-size: 15px;
}
.hp-free::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-inline-end: 0.55em;
  border-radius: 50%;
  background: var(--success);
}
.hp-trust {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.hp-hero .fine {
  margin-top: 12px;
}
.hp-phone-soon {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
/* An Android phone installs it from its own Play button just above. */
html[data-os="android"] .hp-phone-soon {
  display: none;
}
html[data-os="iphone"] .hp-phone-soon {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--canvas-raised);
  color: var(--ink);
  font-weight: 600;
}
@media (min-width: 1040px) {
  .hp-hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas: "head shot" "act shot";
    column-gap: 48px;
  }
  .hp-hero-head { align-self: end; }
  .hp-hero-act { align-self: start; }
  .hp-hero-grid > .hp-real { margin-top: 0; }
  .hp-hero h1 {
    font-size: clamp(46px, 4.9vw, 74px);
  }
}

/* The real window, in one continuous shot. */
.hp-real {
  margin: 0;
  min-width: 0;
}
.hp-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2400 / 1474;
  border: 1px solid var(--hairline-strong);
  border-radius: clamp(8px, 1vw, 14px);
  background: #050608;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.hp-cam {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  animation: hp-cam 13s cubic-bezier(0.65, 0, 0.2, 1) infinite;
}
.hp-cam picture,
.hp-cam img {
  display: block;
  width: 100%;
  height: 100%;
}
/* The message box of the 2400×1474 capture: its text starts at x 846 and the
   box ends at x 1650; the line sits between y 1388 and y 1452. The patch is
   the box's own colour and slides off to the right, so the real reply shows
   letter by letter. */
.hp-mask {
  position: absolute;
  left: 35.25%;
  top: 94.17%;
  width: 33.5%;
  height: 4.34%;
  background: rgb(7, 8, 10);
  transform-origin: 100% 50%;
  animation: hp-type 13s steps(30, end) infinite;
}
/* The page's note on the shot: shown once the reply is in the box, gone when
   the shot pulls back. */
.hp-note {
  position: absolute;
  right: 5%;
  bottom: 19%;
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: 600 clamp(12px, 1.05vw, 14.5px) / 1.2 var(--sans);
  box-shadow: 0 10px 24px -10px rgba(10, 132, 255, 0.8);
  opacity: 0;
  animation: hp-note 13s ease infinite;
}
.hp-note .hp-glyph {
  color: #ffffff;
}
@keyframes hp-note {
  0%, 24% { opacity: 0; transform: translateY(6px); }
  27%, 50% { opacity: 1; transform: none; }
  54%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes hp-note-near {
  0%, 36% { opacity: 0; transform: translateY(6px); }
  40%, 94% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(6px); }
}
.hp-real figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}
/* Close on the chat while the reply appears, then the whole window. The box
   empties at the very end of the push-in, as it does when a reply is sent. */
@keyframes hp-cam {
  0%, 46% { transform: translate(-67.4%, -130%) scale(2.3); }
  58%, 90% { transform: translate(0, 0) scale(1); }
  98%, 100% { transform: translate(-67.4%, -130%) scale(2.3); }
}
@keyframes hp-type {
  0%, 7% { transform: scaleX(1); }
  24%, 98.9% { transform: scaleX(0); }
  99%, 100% { transform: scaleX(1); }
}
/* A phone's screen is too small for the whole window: it stays close on the chat. */
@media (max-width: 700px) {
  .hp-cam {
    animation: none;
    transform: translate(-80.6%, -160%) scale(2.6);
  }
  .hp-mask {
    animation-name: hp-type-near;
  }
  .hp-note {
    animation-name: hp-note-near;
  }
}
@keyframes hp-type-near {
  0%, 10% { transform: scaleX(1); }
  36%, 96% { transform: scaleX(0); }
  97%, 100% { transform: scaleX(1); }
}

.hp-works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin: clamp(32px, 4.4vw, 56px) 0 0;
  padding: clamp(18px, 2.2vw, 26px) 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}
.hp-works li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
html[data-os="windows"] .hp-works li.hp-mac-only {
  display: none;
}
.hp-works-label {
  color: var(--faint);
  font-weight: 500;
}
.hp-works-more {
  margin-inline-start: auto;
}

/* ---------- 2–4. One band a feature, with the real screen ---------- */
.hp-band {
  padding: var(--hp-gap) 0 0;
}
.hp-band-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hp-band-copy {
  min-width: 0;
}
.hp-band-copy > p:not(.hp-pain) {
  max-width: 31em;
  margin-top: 18px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.hp-band-copy > p.hp-plan-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.hp-band-copy > p.hp-fineprint {
  max-width: 36em;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--faint);
}
.hp-ticks {
  display: grid;
  gap: 10px;
  max-width: 34em;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}
.hp-ticks li {
  position: relative;
  padding-inline-start: 30px;
  text-wrap: pretty;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.45;
}
.hp-ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-wash);
}
.hp-ticks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: calc(0.15em + 4px);
  width: 5px;
  height: 10px;
  border: solid var(--accent-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hp-voice {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--canvas-raised);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.hp-voice-head {
  margin: 0 0 4px;
  font: 650 15px/1.3 var(--sans);
  color: var(--accent-light);
}
.hp-voice dl {
  display: grid;
  margin: 0;
}
.hp-voice dl > div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.hp-voice dl > div:first-child {
  border-top: 0;
}
.hp-voice dl > div:last-child {
  padding-bottom: 0;
}
.hp-voice dt {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--faint);
}
.hp-voice dd {
  margin: 0;
  text-wrap: pretty;
  font: 600 clamp(17px, 1.5vw, 20px) / 1.3 var(--display);
  letter-spacing: -0.015em;
}
.hp-band-links {
  display: grid;
  gap: 10px;
}
.hp-band-links span {
  font-size: 14.5px;
  color: var(--faint);
}
.hp-band-shot {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.hp-band-shot picture {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: clamp(8px, 1vw, 14px);
  background: #050608;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.hp-band-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.hp-band.tall .hp-band-shot picture {
  max-width: 440px;
  justify-self: center;
}

/* ---------- Moments ----------
   Each feature's real screen plays what it does once, when most of it is on
   screen (assets/home.js adds .play to its [data-play] box): the reply
   appears in the box, the flags come in one by one, the new match and the
   rows worth your time turn up, the reminders arrive, the habits it learns
   fill in, the apps light up. What moves over a capture is a patch in the
   app's own background colour (components/home/MarkedShot.astro, places
   measured per language); the finished state is the capture as it is, which
   is also what reduced motion and a page without its script show. */
/* As tall as its picture, never stretched by the band's row: the boxes are
   drawn over the picture itself. */
.hp-marked {
  position: relative;
  align-self: start;
  min-width: 0;
}
.hp-band.tall .hp-band-shot .hp-marked {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}
.hp-band.tall .hp-band-shot .hp-marked picture {
  max-width: none;
  justify-self: stretch;
}
/* Over the image itself, inside the frame's 1px border. */
.hp-marks {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  pointer-events: none;
}
.hp-marks rect {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 100% 50%;
}
html:not(.no-js) [data-play]:not(.play) .hp-marks rect {
  opacity: 1;
}
/* The reply: the box empties, then the real words appear letter by letter. */
.hp-marked.play.is-type rect {
  animation: hp-uncover 1.7s steps(26, end) 0.5s both;
}
/* The flags: each one written in from the left, green first, then red. */
.hp-marked.play.is-write rect {
  animation: hp-uncover 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.hp-marked.play.is-write rect:nth-child(1) { animation-delay: 0.45s; }
.hp-marked.play.is-write rect:nth-child(2) { animation-delay: 0.9s; }
.hp-marked.play.is-write rect:nth-child(3) { animation-delay: 1.35s; }
.hp-marked.play.is-write rect:nth-child(4) { animation-delay: 1.95s; }
.hp-marked.play.is-write rect:nth-child(5) { animation-delay: 2.4s; }
/* Autopilot: the new match turns up, then the rows worth your time. */
.hp-marked.play.is-arrive rect {
  animation: hp-fade-off 0.6s ease both;
}
.hp-marked.play.is-arrive rect:nth-child(1) { animation-delay: 0.4s; }
.hp-marked.play.is-arrive rect:nth-child(2) { animation-delay: 1.15s; }
.hp-marked.play.is-arrive rect:nth-child(3) { animation-delay: 1.65s; }
.hp-marked.play.is-arrive rect:nth-child(4) { animation-delay: 2.15s; }
@keyframes hp-uncover {
  from { opacity: 1; transform: scaleX(1); }
  to { opacity: 1; transform: scaleX(0); }
}
@keyframes hp-fade-off {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* The reminders arrive from the side, as the Mac's own notices do. */
.hp-alerts {
  display: grid;
  gap: 14px;
  min-width: 0;
  /* They slide in from its edge, never past it: no sideways scroll on a phone. */
  overflow-x: clip;
}
html:not(.no-js) .hp-alerts:not(.play) picture {
  opacity: 0;
  transform: translateX(36px);
}
.hp-alerts.play picture {
  animation: hp-alert-in 0.75s cubic-bezier(0.18, 1.2, 0.4, 1) 0.2s both;
}
.hp-alerts.play picture:nth-child(2) {
  animation-delay: 0.9s;
}
@keyframes hp-alert-in {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}
/* What it learns: a line runs while it reads, and each habit fills in. */
.hp-voice-read {
  display: block;
  position: relative;
  overflow: hidden;
  height: 2px;
  margin: 12px 0 4px;
  border-radius: 2px;
  background: var(--hairline);
}
.hp-voice-read::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.35;
}
html:not(.no-js) .hp-voice:not(.play) .hp-voice-read::after {
  transform: scaleX(0);
}
html:not(.no-js) .hp-voice:not(.play) dd {
  clip-path: inset(-4px 100% -4px 0);
}
.hp-voice.play .hp-voice-read::after {
  transform-origin: 0 50%;
  animation: hp-read 2.9s cubic-bezier(0.4, 0, 0.3, 1) 0.15s both;
}
.hp-voice.play dd {
  animation: hp-learn 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.hp-voice.play dl > div:nth-child(1) dd { animation-delay: 0.5s; }
.hp-voice.play dl > div:nth-child(2) dd { animation-delay: 0.95s; }
.hp-voice.play dl > div:nth-child(3) dd { animation-delay: 1.4s; }
.hp-voice.play dl > div:nth-child(4) dd { animation-delay: 1.85s; }
.hp-voice.play dl > div:nth-child(5) dd { animation-delay: 2.3s; }
@keyframes hp-read {
  0% { transform: scaleX(0); opacity: 1; }
  88% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.35; }
}
@keyframes hp-learn {
  from { clip-path: inset(-4px 100% -4px 0); }
  to { clip-path: inset(-4px -4px -4px 0); }
}
@media (min-width: 900px) {
  .hp-band-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .hp-band.flip .hp-band-copy {
    order: 2;
  }
  .hp-band.flip .hp-band-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  /* A wide capture gets the whole row under its words. */
  .hp-band.wide .hp-band-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hp-band.wide.flip .hp-band-copy {
    order: 0;
  }
}

/* ---------- 5. Every app, one inbox ---------- */
.hp-apps-band {
  padding: var(--hp-gap) 0 0;
}
.hp-apps-band .hp-band-copy > p:not(.hp-pain) {
  max-width: 36em;
}
.hp-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 26px 12px;
  margin: clamp(32px, 4.4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.hp-wall li {
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.hp-wall em {
  margin-top: -3px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  color: var(--faint);
}
/* Moments: the apps it connects today light up one after another; the ones
   coming next stay as they are. */
html:not(.no-js) .hp-wall:not(.play) li:not(.is-next) .hp-tile {
  filter: grayscale(1) brightness(0.5);
  transform: scale(0.92);
}
.hp-wall.play li:not(.is-next) .hp-tile {
  animation: hp-light 0.55s cubic-bezier(0.2, 1.1, 0.4, 1) both;
}
.hp-wall.play li:nth-child(1) .hp-tile { animation-delay: 0.3s; }
.hp-wall.play li:nth-child(2) .hp-tile { animation-delay: 0.42s; }
.hp-wall.play li:nth-child(3) .hp-tile { animation-delay: 0.54s; }
.hp-wall.play li:nth-child(4) .hp-tile { animation-delay: 0.66s; }
.hp-wall.play li:nth-child(5) .hp-tile { animation-delay: 0.78s; }
.hp-wall.play li:nth-child(6) .hp-tile { animation-delay: 0.9s; }
.hp-wall.play li:nth-child(7) .hp-tile { animation-delay: 1.02s; }
.hp-wall.play li:nth-child(8) .hp-tile { animation-delay: 1.14s; }
@keyframes hp-light {
  from { filter: grayscale(1) brightness(0.5); transform: scale(0.92); }
  to { filter: none; transform: none; }
}
.hp-fineprint {
  margin-top: 28px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- The rest ---------- */
.hp-more,
.hp-steps,
.hp-pricing,
.hp-every,
.hp-faq {
  padding: var(--hp-gap) 0 0;
}
.hp-more-grid {
  display: grid;
  gap: 28px 40px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.hp-more-grid li {
  padding-top: 18px;
  border-top: 1px solid var(--hairline-strong);
}
.hp-more-grid h3 {
  margin: 0 0 6px;
  font: 650 19px/1.25 var(--display);
  letter-spacing: -0.02em;
}
.hp-more-grid p {
  color: var(--muted);
}
@media (min-width: 640px) {
  .hp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .hp-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hp-steps-list {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.hp-steps-list li {
  padding: 24px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas-raised);
  counter-increment: step;
}
.hp-steps-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font: 700 17px/1 var(--display);
}
.hp-steps-list h3 {
  margin: 0 0 8px;
  font: 650 20px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.hp-steps-list p {
  color: var(--muted);
}
.hp-steps-cta {
  margin-top: 28px;
}
@media (min-width: 820px) {
  .hp-steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hp-privacy {
  margin-top: var(--hp-gap);
  padding: clamp(48px, 7vw, 96px) 0;
  border-block: 1px solid var(--hairline);
  background: var(--canvas-raised);
}
.hp-privacy-head {
  max-width: 760px;
}
.hp-privacy-head p {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
}
.hp-facts {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.hp-facts li {
  padding: 24px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--pane);
}
.hp-zero {
  display: block;
  margin-bottom: 12px;
  font: 700 48px/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--accent-light);
}
.hp-zero svg {
  width: 44px;
  height: 48px;
}
.hp-facts h3 {
  margin: 0 0 8px;
  font: 650 19px/1.25 var(--display);
  letter-spacing: -0.02em;
}
.hp-facts p {
  font-size: 14.5px;
  color: var(--muted);
}
@media (min-width: 860px) {
  .hp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hp-pricing .plans {
  margin-top: clamp(28px, 4vw, 48px);
}
.hp-devices {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hp-device {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas-raised);
}
.hp-device.is-soon {
  border-style: dashed;
  border-color: var(--hairline-strong);
  background: transparent;
}
.hp-device > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}
.hp-device h3 {
  margin: 0;
  font: 700 23px/1.1 var(--display);
  letter-spacing: -0.03em;
}
.hp-device-state {
  display: inline-block;
  margin: 10px 0 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  color: var(--success);
  font: 600 12.5px/1.2 var(--sans);
}
.hp-device.is-soon .hp-device-state {
  background: var(--accent-wash);
  color: var(--accent-light);
}
.hp-device > p:last-child,
.hp-device > .hp-device-needs {
  font-size: 14.5px;
  color: var(--muted);
}
/* The Android card's own "Get it on Google Play" (components/PlayButton.astro). */
.hp-device > .btn-play {
  margin-top: 14px;
}
/* On a computer the phone waitlist is a quiet outline button, so Download
   stays the one bright button; a phone's own card keeps the bright one. */
html:not([data-os="android"]):not([data-os="iphone"]) .hp-device .btn-primary,
html[data-os="iphone"] .hp-device .btn-play {
  border: 1px solid var(--hairline-strong);
  background: rgba(245, 240, 230, 0.03);
  box-shadow: none;
  color: var(--ink);
}
html:not([data-os="android"]):not([data-os="iphone"]) .hp-device .btn-primary:hover,
html[data-os="iphone"] .hp-device .btn-play:hover {
  border-color: rgba(245, 240, 230, 0.32);
  background: rgba(245, 240, 230, 0.06);
  filter: none;
}
/* A device card is narrow: the field over its button, each the card's full width. */
.hp-device .ea-row {
  flex-direction: column;
}
.hp-device .ea-row input {
  flex: none;
}
html[data-os="mac"] [data-device="mac"],
html[data-os="windows"] [data-device="windows"],
html[data-os="android"] [data-device="android"],
html[data-os="iphone"] [data-device="iphone"] {
  border-style: solid;
  border-color: var(--accent-line);
}
.hp-every-cta {
  margin-top: 26px;
}
.hp-every-note {
  display: none;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}
html[data-os="iphone"] .hp-every-note {
  display: block;
}
@media (min-width: 620px) {
  .hp-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .hp-devices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hp-faq .faq {
  max-width: none;
  margin-top: clamp(24px, 3.4vw, 40px);
}
.hp-guides {
  padding: var(--hp-gap) 0 0;
}
.hp-guides .post-grid {
  margin-top: clamp(24px, 3.4vw, 40px);
}
.hp-final {
  padding: var(--hp-gap) 0 clamp(48px, 7vw, 96px);
}
.hp-final-box {
  padding: clamp(32px, 6vw, 80px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--canvas-raised);
}
.hp-final h2 {
  max-width: 14em;
  margin: 0 0 14px;
  font: 700 clamp(36px, 5.4vw, 68px) / 1 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hp-final-box > p:not(.fine) {
  max-width: 34em;
  margin-bottom: 26px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
}
.hp-final .fine {
  margin-top: 14px;
}

/* Full-width characters are wider than Latin ones: a line breaks between
   phrases, not inside a word. */
html:lang(ja) :is(.hp-hero h1, .hp-h2, .hp-band h2, .hp-apps-band h2, .hp-final h2),
html:lang(ko) :is(.hp-hero h1, .hp-h2, .hp-band h2, .hp-apps-band h2, .hp-final h2),
html:lang(zh) :is(.hp-hero h1, .hp-h2, .hp-band h2, .hp-apps-band h2, .hp-final h2),
html:lang(th) :is(.hp-hero h1, .hp-h2, .hp-band h2, .hp-apps-band h2, .hp-final h2) {
  letter-spacing: 0;
  line-height: 1.22;
}
html:lang(ja) :is(h1, h2, h3, .hp-ticks li, .hp-voice dd) {
  word-break: auto-phrase;
}
html:lang(ko) :is(h1, h2, h3, p, li) {
  word-break: keep-all;
}

@media (prefers-reduced-motion: reduce) {
  .hp-cam,
  .hp-mask,
  .hp-note,
  .hp-alerts picture,
  .hp-voice dd,
  .hp-voice-read::after,
  .hp-wall .hp-tile {
    animation: none !important;
  }
  .hp-marks {
    display: none;
  }
  .hp-cam {
    transform: none;
  }
  .hp-mask {
    transform: scaleX(0);
  }
}
