/* Tap to Fix site. Tokens: the Paper look (service/client/paper.ts) and the link card's dark green. */
:root {
  --bg: #FBF8F2; --surf: #FFFDF9; --ink: #1F2A24; --mut: #5E655F; --line: #E4DDCF;
  --acc: #2F6B4F; --mint: #7FD3A8; --deep: #1A3328; --orange: #C27A2C;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", Charter, Georgia, serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16; --surf: #18221d; --ink: #E8EEEA; --mut: #A9B5AE; --line: #2A3830; --acc: #7FD3A8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a16; --surf: #18221d; --ink: #E8EEEA; --mut: #A9B5AE; --line: #2A3830; --acc: #7FD3A8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); }
code, pre { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hero: always dark green, like the link card. */
.hero { background: radial-gradient(circle at 80% 20%, #2c5a44 0, var(--deep) 55%, #142821 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero .wrap > * { min-width: 0; }
.hero h1 { margin: 0; font: 800 clamp(56px, 8vw, 104px)/1 var(--sans); letter-spacing: -.04em; }
.hero .sub { margin: 18px 0; font: 700 clamp(26px, 3vw, 38px)/1.2 var(--sans); }
.hero .lede { margin: 0 0 28px; max-width: 540px; color: #C9DCD1; font-size: 19px; }
.cmd { margin: 0; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.5;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(127, 211, 168, .35); color: #E3F1E9; }
.cmd b { color: var(--mint); font-weight: 400; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn, .ghost { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn { background: var(--mint); color: #10261c; }
.ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.hero .ph { position: relative; justify-self: center; width: 300px; transform: rotate(4deg); }
.note { position: absolute; left: -116px; top: 58px; width: 220px; padding: 16px 18px; border-radius: 18px; background: var(--orange); color: #fff;
  transform: rotate(-8deg); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); font: 700 20px/1.2 var(--sans); }
.note small { display: block; margin-bottom: 10px; font: 700 12px/1 var(--mono); letter-spacing: .06em; opacity: .75; }
/* Hero video: the approved silent loop, full width under the two columns. Reduced motion shows the poster (see the script). */
.hero-video { grid-column: 1 / -1; position: relative; margin: 24px 0 0; }
.hero-video video, .hero-video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px;
  background: #18221d; border: 1px solid rgba(127, 211, 168, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.video-pause { position: absolute; right: 14px; bottom: 14px; font: 600 15px/1 var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.video-pause:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.phone { border: 9px solid #0d1a14; border-radius: 38px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }

/* Sections */
section.band { padding: 88px 0; border-top: 1px solid var(--line); }
.k { margin: 0 0 10px; font: 700 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
h2 { margin: 0 0 16px; font: 700 clamp(34px, 4.4vw, 52px)/1.1 var(--serif); }
.intro { max-width: 680px; margin: 0 0 44px; color: var(--mut); font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { max-width: 280px; margin: 0 auto 22px; }
.steps h3 { margin: 0 0 6px; font: 700 22px/1.3 var(--sans); }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px;
  border-radius: 50%; background: var(--acc); color: var(--bg); font-size: 16px; vertical-align: 2px; }
.steps p { margin: 0; color: var(--mut); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.duo figure { margin: 0; }
.duo img { border: 1px solid var(--line); border-radius: 14px; }
figcaption { margin-top: 12px; color: var(--mut); font-size: 16px; }
figcaption b { color: var(--ink); }

/* The real fix, as one looping film: before, a tap, the pin and the comment sheet, then after.
   The pin and sheet are crops of the real comment screenshot; cqw keeps them locked to the phone's width.
   Sheet and pin come from a shot scrolled 400px (of 2000) higher than before/after, hence the offsets. */
.film { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; margin-top: 36px; }
.film-phone { position: relative; display: grid; justify-items: center; gap: 14px; }
/* Motion labels over the phone: Before -> Tap to Fix -> Fixed, in time with the film. */
.tag { position: absolute; top: -18px; left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  font: 800 19px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  opacity: 0; transform: translate(-50%, 8px) scale(.85); animation: 12s infinite; }
.tag.t1 { background: #1F2A24; animation-name: f-t1; }
.tag.t2 { background: var(--orange); animation-name: f-t2; }
.tag.t3 { background: #2F6B4F; animation-name: f-t3; }
@keyframes f-t1 { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.85); } 2%, 13% { opacity: 1; transform: translate(-50%, 0) scale(1); } 15%, 100% { opacity: 0; transform: translate(-50%, -8px) scale(.95); } }
@keyframes f-t2 { 0%, 15% { opacity: 0; transform: translate(-50%, 8px) scale(.85); } 18%, 58% { opacity: 1; transform: translate(-50%, 0) scale(1); } 60%, 100% { opacity: 0; transform: translate(-50%, -8px) scale(.95); } }
@keyframes f-t3 { 0%, 61% { opacity: 0; transform: translate(-50%, 8px) scale(.85); } 64% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 66%, 94% { opacity: 1; transform: translate(-50%, 0) scale(1); } 97%, 100% { opacity: 0; transform: translate(-50%, -8px) scale(.95); } }
/* An outline on the button: drawn at half width before, then it stretches to full width with the fix. */
.mark { left: 3.4cqw; top: 109.6cqw; width: 56.3cqw; height: 17.4cqw; border: 3px solid #F2B36B; border-radius: 2.6cqw;
  box-shadow: 0 0 0 4px rgba(242, 179, 107, .25); opacity: 0; animation: f-mark 12s infinite; }
@keyframes f-mark { 0%, 3% { opacity: 0; width: 56.3cqw; } 6%, 13% { opacity: 1; width: 56.3cqw; } 15%, 61% { opacity: 0; width: 56.3cqw; }
  64% { opacity: 1; width: 56.3cqw; } 70%, 88% { opacity: 1; width: 93.2cqw; } 92%, 100% { opacity: 0; width: 93.2cqw; } }
.screen { position: relative; width: 100%; max-width: 340px; aspect-ratio: 585 / 1266; container-type: inline-size; }
.screen > img, .screen > span { position: absolute; }
.screen > img { inset: 0; width: 100%; height: 100%; }
.f-after { opacity: 0; animation: f-after 12s infinite; }
.tap { left: 28cqw; top: 113.7cqw; width: 18cqw; height: 18cqw; margin: -9cqw 0 0 -9cqw; border-radius: 50%;
  background: rgba(255, 255, 255, .55); opacity: 0; animation: f-tap 12s infinite; }
.pin { left: 22.5cqw; top: 106.7cqw; width: 10.5cqw; height: 13cqw; overflow: hidden; transform-origin: 50% 100%; opacity: 0; animation: f-pin 12s infinite; }
.pin img { position: absolute; width: 100cqw; max-width: none; left: -22.5cqw; top: -59.7cqw; }
.sheet { left: 0; right: 0; bottom: 0; height: 91cqw; overflow: hidden; transform: translateY(100%); animation: f-sheet 12s infinite; }
.sheet img { position: absolute; width: 100cqw; max-width: none; left: 0; bottom: 0; }
@keyframes f-tap   { 0%, 14% { opacity: 0; transform: scale(.3); } 16% { opacity: 1; } 22%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes f-pin   { 0%, 16% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1.1); } 22%, 60% { opacity: 1; transform: scale(1); } 66%, 100% { opacity: 0; } }
@keyframes f-sheet { 0%, 23% { transform: translateY(100%); } 29%, 52% { transform: translateY(0); } 58%, 100% { transform: translateY(100%); } }
@keyframes f-after { 0%, 60% { opacity: 0; } 66%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }

.film-steps { margin: 0; padding: 0; list-style: none; counter-reset: fs; display: grid; gap: 26px; }
.film-steps li { counter-increment: fs; padding-left: 20px; border-left: 4px solid var(--line); opacity: .45; animation: 12s infinite; }
.film-steps h3 { margin: 0 0 4px; font: 700 24px/1.3 var(--sans); }
.film-steps h3::before { content: counter(fs) ". "; color: var(--acc); }
.film-steps p { margin: 0; color: var(--mut); }
.film-steps q { color: var(--ink); font-weight: 700; }
.film-steps .s1 { animation-name: f-s1; } .film-steps .s2 { animation-name: f-s2; } .film-steps .s3 { animation-name: f-s3; }
@keyframes f-s1 { 0%, 13% { opacity: 1; border-color: var(--orange); } 16%, 99% { opacity: .45; border-color: var(--line); } }
@keyframes f-s2 { 0%, 14% { opacity: .45; border-color: var(--line); } 17%, 58% { opacity: 1; border-color: var(--orange); } 61%, 100% { opacity: .45; border-color: var(--line); } }
@keyframes m-s1 { 0%, 13% { opacity: 1; } 15%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes m-s2 { 0%, 14% { opacity: 0; } 16%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes m-s3 { 0%, 59% { opacity: 0; } 61%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes f-s3 { 0%, 59% { opacity: .45; border-color: var(--line); } 62%, 96% { opacity: 1; border-color: var(--acc); } 99%, 100% { opacity: .45; border-color: var(--line); } }

.film-pause { font: 600 15px/1 var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; background: var(--surf); color: var(--ink); border: 1.5px solid var(--line); }
.film.paused *, .film.paused { animation-play-state: paused !important; }
/* Reduced motion: no loop, one still frame of the comment, every step at full strength. */
@media (prefers-reduced-motion: reduce) {
  .film *, .film { animation: none !important; }
  .pin { opacity: 1; } .sheet { transform: none; }
  .tag.t2 { opacity: 1; transform: translate(-50%, 0); }
  .film-steps li { opacity: 1; }
  .film-pause { display: none; }
}

.install ol { max-width: 760px; padding-left: 1.2em; }
.install li { margin-bottom: 14px; }
.install .cmd { background: #1F2A24; border-color: #2F6B4F; max-width: 640px; margin: 10px 0 0; }

.data ul { max-width: 760px; padding-left: 1.2em; }
.data li { margin-bottom: 12px; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--mut); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 860px) {
  .hero .wrap, .duo { grid-template-columns: 1fr; }
  /* Phones: the whole film fits one screen, so only the current step's caption shows, in place. */
  .film { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .screen { max-width: 220px; }
  .film-steps { display: grid; gap: 0; }
  .film-steps li { grid-area: 1 / 1; border-left: 0; padding: 0; text-align: center; }
  .film-steps .s1 { animation-name: m-s1; } .film-steps .s2 { animation-name: m-s2; } .film-steps .s3 { animation-name: m-s3; }
  .film-steps h3 { font-size: 20px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .hero .ph { width: 240px; margin-top: 12px; }
  .note { left: -84px; top: 4px; width: 170px; font-size: 16px; }
  .hero-video { margin-top: 20px; }
  .hero-video video, .hero-video img { border-radius: 12px; }
  .video-pause { right: 8px; bottom: 8px; padding: 7px 12px; font-size: 13px; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  section.band { padding: 64px 0; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .cmd { font-size: 13px; }
  .note { left: -52px; top: -6px; width: 160px; }
  }
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .film-steps { gap: 12px; }
  .film-steps li { grid-area: auto; }
}
