/* Poishu landing page. Ghuri palette from docs/brand/poishu-pack/tokens/poishu-tokens.css.
   The page is art-directed as dusk sky (night) and hishab-khata paper, so it keeps one palette
   in both OS colour schemes. */

:root {
  --sky: #2b0a3d;
  --sky-deep: #1a0726;
  --sky-glow: #4a1240;
  --paper: #fff6ec;
  --paper-2: #f8ebdc;
  --rule: #eadccb;
  --margin-red: #e8a1a8;
  --ink: #2b0a3d;
  --ink-2: #5f4a6a;
  --pink: #e0196b;
  --pink-ink: #c0125a; /* pink for text on paper, 5.3:1 */
  --pink-night: #ff5c97;
  --marigold: #ffb000;
  --mauve: #c9b6d2;
  --thread: #e0196b;

  --display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --text: "Hind Siliguri", "Anek Bangla", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1200px;
  --sect-y: clamp(96px, 14vw, 180px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: clamp(3.1rem, 8.4vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.display .line > span {
  display: inline-block;
}

.display-sm {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
}

.h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 720;
  font-variation-settings: "wdth" 108;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14ch;
}

.body {
  margin: 0 0 16px;
  max-width: 34rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Bangla script needs room for conjuncts and matras: no tight leading or negative tracking. */
:lang(bn) .display,
:lang(bn) .h2 {
  line-height: 1.12;
  letter-spacing: 0;
  font-variation-settings: "wdth" 100;
  font-stretch: 100%;
}

:lang(bn) .display {
  font-size: clamp(2.7rem, 7.2vw, 6.2rem);
}

:lang(bn) .display .line {
  padding-bottom: 0.12em;
}

:lang(bn) body,
:lang(bn) .body {
  line-height: 1.75;
}

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  color: var(--paper);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.nav-kite {
  width: 34px;
  height: 34px;
}

.nav-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.01em;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgb(255 246 236 / 0.22);
}

.lang-btn {
  min-width: 52px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mauve);
  font: 600 0.95rem/1 var(--text);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.lang-btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.lang-btn:hover:not([aria-pressed="true"]) {
  color: var(--paper);
}

/* ---------- Kite string ---------- */

.string {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.string-path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.string-knot {
  fill: var(--thread);
  opacity: 0;
  transition: opacity 0.4s;
}

.string-knot.is-tied {
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  padding: 120px var(--gutter) 0;
  background:
    radial-gradient(120% 70% at 78% 108%, var(--sky-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 62%);
  color: var(--paper);
  overflow: hidden;
}

/* Layers across the page: sky 0, rooftops 2, string 3, kite 4, content and phones 5. */
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.5;
}

.hero-kite {
  position: absolute;
  z-index: 4;
  top: clamp(84px, 13vh, 132px);
  left: 57%;
  width: clamp(76px, 8.5vw, 128px);
  /* The string ties to the lower corner of the right panel; the sway pivots there so it never
     pulls away. Keep in step with CORNER_X / CORNER_Y in main.js. */
  transform-origin: 51.9% 82%;
}

.hero-kite svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35));
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(110px, 12vw, 170px);
}

.hero-copy {
  padding-bottom: clamp(24px, 6vw, 96px);
}

.lede {
  margin: 28px 0 36px;
  max-width: 31rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--mauve);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.cta-center {
  justify-content: center;
}

.apk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 12px;
  background: var(--marigold);
  color: var(--ink);
  font: 600 1.08rem/1 var(--text);
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-out);
}

.apk:hover {
  background: #ffc233;
}

.apk:active {
  transform: scale(0.97);
}

.apk svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apk.is-pending {
  background: transparent;
  color: var(--mauve);
  box-shadow: inset 0 0 0 1.5px rgb(201 182 210 / 0.45);
  cursor: default;
}

.finale .apk.is-pending {
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

.cta .soon {
  flex-basis: 100%;
}

.cta-center .soon {
  justify-content: center;
}

.play {
  display: block;
  /* The official badge carries its own padding; trim it optically. */
  margin: -12px -14px;
  cursor: default;
  border-radius: 14px;
}

.play-badge {
  width: 210px;
  height: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.rooftops {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 11vw, 160px);
  fill: var(--sky-deep);
}

/* ---------- Phones ---------- */

.phone {
  position: relative;
  z-index: 5;
  margin: 0;
  width: 100%;
  max-width: 320px;
  padding: 9px;
  border-radius: 46px;
  background: #140419;
  box-shadow:
    inset 0 0 0 1.5px #3b2346,
    0 2px 0 rgb(255 255 255 / 0.06) inset,
    0 40px 80px -30px rgb(26 7 38 / 0.65),
    0 18px 36px -18px rgb(26 7 38 / 0.5);
}

.phone::after {
  /* punch-hole camera */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #0b0210;
  box-shadow: inset 0 0 0 2px #1d0a24;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 37px;
  aspect-ratio: 786 / 1704;
  background: var(--paper);
}

.phone-screen > img,
.phone-screen > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-hero {
  justify-self: end;
  max-width: 330px;
}

.film-toggle {
  position: absolute;
  right: -62px;
  bottom: 28px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.5);
}

.film-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.film-toggle .i-play {
  display: none;
  fill: currentColor;
}

.film-toggle.is-paused .i-play {
  display: block;
}

.film-toggle.is-paused .i-pause {
  display: none;
}

/* ---------- Sections ---------- */

.sect {
  position: relative;
  padding: var(--sect-y) var(--gutter);
}

.night {
  background: var(--sky-deep);
  color: var(--paper);
}

.night .body {
  color: var(--mauve);
}

.split {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
}

.split-rev {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.split > .phone,
.themes-stage {
  justify-self: center;
}

.phone-tilt-l {
  transform: rotate(-3deg);
}

.phone-tilt-r {
  transform: rotate(2.5deg);
}

/* Quick entry sits on a hishab khata page: ruled lines and a red margin. */
.khata {
  background-color: var(--paper);
  background-image:
    linear-gradient(
      90deg,
      transparent calc(var(--gutter) + 22px),
      var(--margin-red) calc(var(--gutter) + 22px),
      var(--margin-red) calc(var(--gutter) + 23.5px),
      transparent calc(var(--gutter) + 23.5px)
    ),
    repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px);
}

.ledger {
  margin: 36px 0 0;
  max-width: 34rem;
}

.ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
}

.ledger-row::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  border-bottom: 2px dotted #cdb8a3;
  transform: translateY(-5px);
}

.ledger-row dt {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  color: var(--ink);
}

.ledger-row dd {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: var(--ink-2);
  text-align: right;
  font-size: 1rem;
}

/* Dhar */
.dhar {
  background: var(--paper-2);
}

.dhar-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin: 34px 0 0;
}

.dhar-tally > span {
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.dhar-tally b {
  font-family: var(--display);
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tally-in b {
  color: #0f7a4a;
}

.tally-out b {
  color: var(--pink-ink);
}

/* Insights */
.ins-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(48px, 7vw, 88px);
}

.ins-head .h2 {
  margin: 0;
}

.ins-pair {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
}

.ins-pair .phone {
  max-width: 300px;
  justify-self: center;
}

.phone-raised {
  margin-top: -48px;
}

.ins-pair .phone:not(.phone-raised) {
  margin-top: 48px;
}

/* Themes */
.themes {
  --disc: #3a0f52;
  overflow: hidden;
}

.themes[data-theme="taka"] {
  --disc: #12284c;
}

.themes[data-theme="sundarban"] {
  --disc: #0d5c55;
}

.themes[data-theme="shonali"] {
  --disc: #8a4b00;
}

.themes-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 460px;
}

.themes-disc {
  position: absolute;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--disc);
  transition: background-color 0.5s var(--ease-out);
}

.themes-stage .phone {
  max-width: 300px;
}

.phone-stack > img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.phone-stack > img.is-on {
  opacity: 1;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 8px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 1rem/1 var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}

.swatch:hover {
  border-color: #cdb8a3;
}

.swatch:active {
  transform: scale(0.97);
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.sw {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
}

/* Trust */
.trust .h2 {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.trust-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* Each point is a slice of the real app on a dark, finely bordered card with a tinted glow. */
.tcard {
  --glow: rgb(224 25 107 / 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 38%, var(--glow), transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px rgb(201 182 210 / 0.14);
}

.tcard-off {
  --glow: rgb(255 176 0 / 0.2);
}

.tcard-lock {
  --glow: rgb(127 90 200 / 0.32);
}

.tcard-data {
  --glow: rgb(255 92 151 / 0.22);
}

.frag {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 230px;
}

.panel {
  width: min(300px, 100%);
  padding: 8px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 0.95rem;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 24px 48px -12px rgb(0 0 0 / 0.55);
}

.panel svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tcard h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.5rem;
  line-height: 1.2;
  font-variation-settings: "wdth" 104;
}

/* Privacy report */
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 12px;
  font-weight: 600;
}

.panel-head svg {
  color: var(--pink-ink);
}

.rep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
}

.rep + .rep {
  margin-top: 6px;
}

.rep b {
  min-width: 34px;
  padding: 2px 10px;
  border-radius: 99px;
  background: #e6f6ee;
  color: #13734b;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
}

/* Offline entries */
.sync {
  display: grid;
  margin: 0;
  padding: 6px 6px 10px;
}

.sync > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sync i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sync-off {
  background: #fff1d6;
  color: #8a5300;
}

.sync-on {
  background: #e6f6ee;
  color: #13734b;
  opacity: 0;
}

.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.entry + .entry {
  margin-top: 6px;
}

.entry-name {
  flex: 1;
  font-weight: 500;
}

.entry b {
  font-weight: 600;
}

.cat {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cat svg {
  width: 18px;
  height: 18px;
}

.cat-food {
  background: #fff1d6;
  color: #a45f00;
}

.cat-ride {
  background: #e3ecff;
  color: #2d55c8;
}

.cat-snack {
  background: #ffe3ee;
  color: var(--pink-ink);
}

/* Lock screen */
.panel-lock {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 16px 22px;
}

.panel .lock-kite {
  width: 44px;
  height: 44px;
}

.lock-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.finger {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffe3ee;
  box-shadow: 0 0 0 6px rgb(224 25 107 / 0.1);
}

.finger svg {
  width: 44px;
  height: 44px;
  color: var(--pink-ink);
  stroke-width: 2.6;
}

.finger .scan {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 12px 2px rgb(224 25 107 / 0.6);
  opacity: 0;
}

/* Data controls */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
}

.row + .row {
  margin-top: 6px;
}

.row span {
  flex: 1;
}

.row-danger {
  color: #c0262d;
}

.file {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .sync-off {
    animation: sync-off 7s ease-in-out infinite;
  }

  .sync-on {
    animation: sync-on 7s ease-in-out infinite;
  }

  .finger .scan {
    animation: scan 2.6s ease-in-out infinite;
  }

  .file {
    animation: file 5s var(--ease-out) infinite;
  }

  @keyframes sync-off {
    0%,
    45%,
    100% {
      opacity: 1;
    }
    55%,
    90% {
      opacity: 0;
    }
  }

  @keyframes sync-on {
    0%,
    45%,
    100% {
      opacity: 0;
    }
    55%,
    90% {
      opacity: 1;
    }
  }

  @keyframes scan {
    0% {
      transform: translateY(8px);
      opacity: 0;
    }
    15%,
    80% {
      opacity: 1;
    }
    100% {
      transform: translateY(66px);
      opacity: 0;
    }
  }

  @keyframes file {
    0%,
    10% {
      transform: translateY(6px);
      opacity: 0;
    }
    22%,
    85% {
      transform: none;
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}

/* Finale */
.finale {
  text-align: center;
  padding-bottom: clamp(120px, 14vw, 200px);
}

.finale-kite {
  position: relative;
  z-index: 4;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
}

.finale .cta {
  margin-top: 40px;
}

.finale .soon {
  color: var(--ink);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 32px var(--gutter) 40px;
  background: var(--sky-deep);
  color: var(--mauve);
  font-size: 0.95rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}

.foot-brand svg {
  width: 28px;
  height: 28px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  text-underline-offset: 4px;
}

.foot-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
}

/* ---------- Motion (only with JS and when the visitor allows it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-kite.is-flying {
    animation: sway 6s ease-in-out infinite;
  }

  @keyframes sway {
    0%,
    100% {
      transform: rotate(-4deg);
    }
    50% {
      transform: rotate(4deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone-stack > img,
  .themes-disc,
  .string-knot {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .trust-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 104px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .phone-hero {
    justify-self: center;
    max-width: 280px;
  }

  .hero-kite {
    top: 84px;
    left: auto;
    right: 18px;
    width: 58px;
  }

  .film-toggle {
    right: -58px;
  }

  .split,
  .split-rev {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .split-rev > .phone {
    order: -1;
  }

  .split > .phone,
  .themes-stage .phone {
    max-width: 270px;
  }

  .themes-stage {
    max-width: 360px;
    order: -1;
  }

  .ins-pair {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    max-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 52px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ins-pair .phone {
    scroll-snap-align: center;
  }

  .ins-pair .phone,
  .phone-raised,
  .ins-pair .phone:not(.phone-raised) {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .khata {
    /* the string runs down this gutter, so the red margin steps aside */
    background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px);
  }

  .h2 {
    max-width: none;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px dotted #cdb8a3;
  }

  .ledger-row::before {
    display: none;
  }

  .ledger-row dt,
  .ledger-row dd {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .play-badge {
    width: 190px;
  }
}

/* ---------- Plain document pages (privacy, 404) ---------- */

.nav-static {
  position: static;
  background: var(--sky-deep);
}

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 120px);
}

.doc .h2 {
  max-width: none;
  margin-bottom: 8px;
}

.doc-date {
  margin: 0 0 40px;
  color: var(--ink-2);
  font-size: 1rem;
}

.doc h2:not(.h2) {
  margin: 36px 0 8px;
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.4rem;
  line-height: 1.25;
}

.doc p {
  margin: 0;
  color: var(--ink-2);
  max-width: 40rem;
}

.doc-back {
  margin-top: 48px !important;
}

.doc-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pink-ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

.doc-page {
  min-height: 100vh;
}
