/* Kalna — kalna.byteberries.io
 *
 * A dark, deliberately vivid page. The app's screenshots are light, so a dark
 * page makes them glow rather than sit flat, and the brand orange has
 * somewhere to burn against.
 *
 * Every movement in here is decoration. The whole page is readable and
 * complete with animation switched off, which is what the reduced-motion
 * block at the foot does.
 */

:root {
  --ink: #08090D;
  --ink-2: #0D0F15;
  --card: rgba(255, 255, 255, .035);
  --card-hi: rgba(255, 255, 255, .06);

  /* Raised surfaces are a gradient, not a flat tint, so they read as lit
     from above rather than as a lighter rectangle. */
  --pane: linear-gradient(
    180deg, rgba(255, 255, 255, .058), rgba(255, 255, 255, .022));
  --pane-hi: linear-gradient(
    180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .17);

  --text: #F3F4F8;
  --muted: #979BAB;

  --brand: #FC8019;
  --brand-2: #FFB84D;
  --green: #6FCB52;

  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

/* Hidden by clipping rather than by being parked far off to one side, which
   stretches the page's layout box and is what makes a phone scroll sideways
   for no visible reason. */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  left: 16px; top: 16px; z-index: 20;
  width: auto; height: auto;
  clip-path: none;
  background: var(--ink-2);
  border: 1px solid var(--line-hi);
  padding: 10px 16px;
  border-radius: 10px;
}

/* ============================================================== movement */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(5vw, 3vh) scale(1.12); }
  66%      { transform: translate(-4vw, -2vh) scale(.94); }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@keyframes beat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.78); }
}

@keyframes halo {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.07); }
}

@keyframes runner {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Text with the brand gradient moving slowly through it. */
.shine {
  background: linear-gradient(
    100deg,
    var(--brand) 0%, var(--brand-2) 28%, #FFD9A0 42%,
    var(--brand-2) 58%, var(--brand) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

/* Scroll-triggered, by the script at the foot of the page. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.seen { opacity: 1; transform: none; }

/* ================================================================== aura */

/* The ambient glow behind everything. Fixed, so it stays lit as you scroll. */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-a {
  top: -22vh; left: 50%;
  width: 70vw; height: 70vw;
  max-width: 760px; max-height: 760px;
  margin-left: -35vw;
  background: radial-gradient(circle, rgba(252, 128, 25, .36), transparent 68%);
  animation: drift 26s ease-in-out infinite;
}

.orb-b {
  bottom: -28vh; right: -14vw;
  width: 60vw; height: 60vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(255, 150, 60, .2), transparent 70%);
  animation: drift 34s ease-in-out infinite reverse;
}

/* A faint rule grid, fading out before it becomes noise. */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 60% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(90% 60% at 50% 0%, #000 0%, transparent 72%);
}

/* A hairline across the very top that fills as the page is read. */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 30;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px rgba(252, 128, 25, .8);
}

/* =================================================================== bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.bar.stuck {
  background: rgba(8, 9, 13, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }

.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.2px;
}

.bar-right { display: flex; align-items: center; gap: 10px; }

.bar-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-hi);
  background: var(--card);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.bar-cta:hover {
  border-color: rgba(252, 128, 25, .55);
  background: rgba(252, 128, 25, .1);
  transform: translateY(-1px);
}

/* A small capsule with a live-looking dot. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0;
}

.pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: beat 2.2s ease-in-out infinite;
}

.pill-live { color: var(--text); }

@media (max-width: 480px) { .pill-live { display: none; } }

/* ================================================================== hero */

/* The halo behind each phone is a blurred pseudo-element, and a blur grows
   the box it overflows by roughly three times its radius - here about 96px
   past each side of the frame. That widened the whole page. Clipping at the
   section keeps the glow (it reaches the screen edge either way) without
   letting it drag a sideways scroll along behind it. `clip` rather than
   `hidden` so it does not become a scroll container and break the sticky
   bar. */
.hero,
.split { overflow-x: clip; }

.hero { padding: 54px 0 64px; }

.hero-grid {
  display: grid;
  gap: 48px;
  justify-items: center;
  text-align: center;
}

/* Each piece of the hero arrives a beat after the one above it. */
.hero-words > * { animation: rise .85s cubic-bezier(.22, .61, .36, 1) both; }
.hero-words > *:nth-child(1) { animation-delay: .05s; }
.hero-words > *:nth-child(2) { animation-delay: .16s; }
.hero-words > *:nth-child(3) { animation-delay: .28s; }
.hero-words > *:nth-child(4) { animation-delay: .40s; }
.hero-words > *:nth-child(5) { animation-delay: .52s; }
.hero-art  { animation: rise 1s cubic-bezier(.22, .61, .36, 1) .3s both; }

.pill-top { margin-bottom: 22px; }

h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(34px, 8.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 .shine { display: block; }

.lede {
  margin: 22px 0 0;
  font-size: clamp(16px, 4.1vw, 19.5px);
  color: var(--muted);
  max-width: 33em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #231200;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: 0 10px 34px -6px rgba(252, 128, 25, .6);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -6px rgba(252, 128, 25, .75);
  filter: brightness(1.06);
}

.btn span { transition: transform .2s ease; display: inline-block; }
.btn:hover span { transform: translateX(4px); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line-hi);
  box-shadow: none;
}
.btn-ghost:hover {
  box-shadow: none;
  border-color: rgba(252, 128, 25, .5);
  background: rgba(252, 128, 25, .09);
}

.btn-big {
  font-family: var(--head);
  font-size: clamp(15px, 4.2vw, 21px);
  padding: 18px 36px;
  word-break: break-word;
}

/* ------------------------------------------------------- the store badge */

/* A light badge, because that is what a store button looks like, and
   because white against this page is impossible to miss. */
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px 11px 20px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #0B0C10;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 10px 34px -8px rgba(255, 255, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.play:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -8px rgba(255, 255, 255, .45);
}

.play-glyph { width: 26px; height: 26px; flex: none; }

.play-words {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.play-words small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  opacity: .72;
}

.play-words strong {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
}

/* Before the listing exists: present, honest, and going nowhere. */
.play.is-soon {
  background: var(--card-hi);
  color: var(--text);
  border-color: var(--line-hi);
  box-shadow: none;
  cursor: default;
}

.play.is-soon:hover { transform: none; box-shadow: none; }
.play.is-soon .play-glyph { opacity: .75; }
.play.is-soon .play-words small { color: var(--brand); opacity: 1; }

.counts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 34px;
}

.counts li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counts b {
  font-family: var(--head);
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #B9BDCC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counts span {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================== the phones */

/* A halo sits behind each phone, so the light screenshot reads as lit rather
   than pasted on. */
.glowframe { position: relative; display: inline-block; }

.glowframe::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 118%; height: 84%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(252, 128, 25, .45), transparent 68%);
  filter: blur(54px);
  z-index: 0;
  animation: halo 7s ease-in-out infinite;
}

.float { animation: float 7.5s ease-in-out infinite; }

.frame {
  position: relative;
  z-index: 1;
  width: min(272px, 78vw);
  padding: 9px 9px 0;
  border-radius: 36px 36px 30px 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px 28px 0 0;
  /* Runs off the foot of the frame rather than stopping at a hard edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.hero-art, .split-art { display: flex; justify-content: center; }

/* ============================================================== marquee */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg,
    rgba(252, 128, 25, .13), rgba(252, 128, 25, .05) 50%, rgba(252, 128, 25, .13));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-run {
  display: flex;
  width: max-content;
  animation: runner 26s linear infinite;
}

.marquee-run span {
  display: flex;
  align-items: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(15px, 3.4vw, 19px);
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .82);
}

.marquee-run i {
  color: var(--brand);
  font-style: normal;
  padding: 0 22px;
}

/* ================================================================ shared */

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--brand);
}

.title {
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(25px, 6vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.title.xl { font-size: clamp(29px, 7.4vw, 48px); }

.sub {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 16.5px;
}

/* =================================================================== why */

.why { padding: 76px 0 8px; }

.qa {
  list-style: none;
  counter-reset: qa;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.qa-item {
  position: relative;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
  overflow: hidden;
  transition:
    transform .25s ease, border-color .25s ease,
    background .25s ease, box-shadow .25s ease,
    opacity .7s ease;
}

/* The brand edge down the left, which lengthens when pointed at. */
.qa-item::before {
  content: '';
  position: absolute;
  left: 0; top: 18%;
  width: 3px; height: 34%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  transition: top .35s ease, height .35s ease;
}

.qa-item:hover {
  transform: translateY(-5px);
  background: var(--pane-hi);
  border-color: rgba(252, 128, 25, .34);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9);
}

.qa-item:hover::before { top: 0; height: 100%; }

.q {
  margin: 0 0 11px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -.3px;
}

.a { margin: 0; font-size: 15px; color: var(--muted); }

/* ================================================================== free */

.free { padding: 84px 0; }

.free-card {
  position: relative;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 52px 26px 46px;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(252, 128, 25, .17), transparent 64%),
    var(--card);
}

.giant {
  margin: 0;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(62px, 18vw, 150px);
  line-height: .95;
  letter-spacing: -0.04em;
}

.free-sub {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--muted);
}

.ticks {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ticks li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  background: rgba(111, 203, 82, .1);
  border: 1px solid rgba(111, 203, 82, .3);
  border-radius: 999px;
  padding: 8px 16px;
  transition: transform .2s ease, background .2s ease;
}

.ticks li::before { content: '\2713'; margin-right: 7px; font-weight: 700; }
.ticks li:hover { transform: translateY(-2px); background: rgba(111, 203, 82, .18); }

/* ============================================================== features */

.what { padding: 8px 0 20px; }

.cards {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.card {
  position: relative;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
  overflow: hidden;
  transition:
    transform .25s ease, border-color .25s ease,
    background .25s ease, box-shadow .25s ease,
    opacity .7s ease;
}

/* A lit top edge, the way light would catch the lip of a raised surface. */
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg, transparent, rgba(255, 255, 255, .22), transparent);
}

/* A warm wash that fades up from the corner when pointed at. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 100% 0%, rgba(252, 128, 25, .14), transparent 62%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--pane-hi);
  border-color: rgba(252, 128, 25, .36);
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, .95);
}

.card:hover::after { opacity: 1; }

.num {
  display: inline-block;
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--brand);
  background: rgba(252, 128, 25, .11);
  border: 1px solid rgba(252, 128, 25, .22);
  border-radius: 8px;
  padding: 2px 8px;

  /* Out of the way, in the corner, rather than taking a line to itself. */
  position: absolute;
  top: 20px;
  right: 18px;
}

.card h3 {
  margin: 0 0 7px;
  padding-right: 44px;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.3px;
}

.card p { margin: 0; font-size: 14.8px; color: var(--muted); }

/* =============================================================== screens */

.split { padding: 72px 0 64px; }

.split-grid {
  display: grid;
  gap: 52px;
  justify-items: center;
  text-align: center;
}

.split-words p { color: var(--muted); }

/* On a phone there is room for one phone, not two. */
.frame-back { display: none; }

/* ================================================================= maker */

.maker { padding: 8px 0 72px; }

.maker-inner {
  max-width: 40em;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Small on purpose. The page is about Kalna, not about us. */
.bb {
  width: 72px;
  height: auto;
  opacity: .85;
  margin-bottom: 18px;
  transition: opacity .3s ease;
}
.maker-inner:hover .bb { opacity: 1; }

.maker-text {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.75;
  color: var(--muted);
}

/* =================================================================== cta */

.cta { padding: 0 0 84px; }

.cta-card {
  position: relative;
  text-align: center;
  border: 1px solid rgba(252, 128, 25, .3);
  border-radius: 30px;
  padding: 56px 26px 52px;
  overflow: hidden;
  background:
    radial-gradient(100% 140% at 50% 110%, rgba(252, 128, 25, .3), transparent 62%),
    var(--card);
}

.cta-card p {
  margin: 0 auto 30px;
  max-width: 30em;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* ============================================================= documents */

/* The privacy page. A column of plain prose, set narrow enough to read,
   which is the opposite of everything above and deliberately so. */
.doc { padding: 44px 0 72px; }

.doc-inner { max-width: 44em; }

.doc-title {
  margin: 0 0 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.doc-date {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--muted);
}

/* The summary, for anyone who reads one paragraph and leaves. */
.doc-lead {
  background: var(--pane);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 16px;
  padding: 22px 22px 4px;
  margin-bottom: 40px;
}

.doc-lead p { font-size: 16.5px; }

.doc h2 {
  margin: 38px 0 12px;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(19px, 4.4vw, 23px);
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.doc p { margin: 0 0 14px; }

.doc strong { color: var(--text); font-weight: 600; }

.doc ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.doc li { margin-bottom: 9px; }

.doc li::marker { color: var(--brand); }

.doc a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 184, 77, .4);
  transition: text-decoration-color .2s ease;
}

.doc a:hover { text-decoration-color: var(--brand-2); }

.doc code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ================================================================== foot */

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  background: var(--ink-2);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* On a wide screen the three parts spread out: who it is on the left, the
   address on the right, the small print between them. */
@media (min-width: 640px) {
  .foot-inner { justify-content: space-between; text-align: left; }
}

.foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-brand img { border-radius: 6px; opacity: .85; }

.foot a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
.foot a:hover { color: var(--brand-2); }

/* Anyone moving by keyboard should be able to see where they are. Only on
   :focus-visible, so a mouse click never draws a ring. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ================================================================ phones */

/* Everything below is about one thing: nothing on a phone should wrap into
   a ragged shape. Three figures that fall 2-then-1, four pills that stack
   into a pyramid, and two buttons of different widths all read as an
   accident rather than a layout. */
@media (max-width: 639px) {

  /* The hero column is centred, which makes it only as wide as its content.
     Its children then cannot fill the screen. */
  .hero-words { width: 100%; }

  /* Buttons go full width and sit one above the other, so their edges line
     up instead of each being as wide as its own label. */
  .actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .actions .btn,
  .cta-actions .btn { text-align: center; }

  .actions .play,
  .cta-actions .play { justify-content: center; }

  /* Three across, always. Each label wraps inside its own column rather
     than pushing the third figure onto a line of its own. */
  .counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
  }

  .counts li { align-items: center; text-align: center; }
  .counts b { font-size: clamp(22px, 6.5vw, 30px); }
  .counts span { font-size: 11.5px; line-height: 1.4; }

  /* Two by two, rather than 1-2-1 down the middle. */
  .ticks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* A two-line pill next to a one-line one: centre the text in both so the
     row does not look like one pill has slipped. */
  .ticks li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 12.5px;
  }

  /* A paragraph of several sentences is hard to read ragged down both
     sides, so the long ones are set left. Headings, and the small label
     above them, stay centred with everything else. */
  .free-sub,
  .split-words p:not(.eyebrow),
  .maker-text { text-align: left; }

  .giant { margin-bottom: 6px; }

  /* The page was mostly gaps on a phone. */
  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 34px; }
  .why { padding: 52px 0 8px; }
  .free { padding: 56px 0; }
  .free-card { padding: 38px 20px 34px; }
  .split { padding: 52px 0 44px; }
  .split-grid { gap: 34px; }
  .maker { padding: 8px 0 52px; }
  .maker-inner { padding-top: 34px; }
  .cta { padding: 0 0 56px; }
  .cta-card { padding: 40px 20px 38px; }
  .qa, .cards { margin-top: 30px; }
  .qa-item, .card { padding: 22px 18px; }
}

/* A very narrow phone cannot hold three figures across. */
@media (max-width: 359px) {
  .counts { grid-template-columns: 1fr 1fr; }
  .counts li:last-child { grid-column: 1 / -1; }
}

/* =========================================================== wider room */

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .qa { grid-template-columns: repeat(2, 1fr); }
  .counts { gap: 18px 52px; }
}

@media (min-width: 980px) {
  :root { --gutter: 32px; }

  .hero { padding: 60px 0 88px; }

  .hero-grid {
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
    text-align: left;
    justify-items: start;
    gap: 40px;
  }

  .actions, .counts { justify-content: flex-start; }
  .counts li { align-items: flex-start; }
  .hero-art { justify-self: center; }

  /* The phone looked small against a headline this wide, which left the
     right of the screen reading as empty. */
  .hero-art .frame { width: 304px; }

  /* Hairlines between the figures, so they read as one set rather than
     three things that happen to sit near each other. */
  .counts { gap: 0; }
  .counts li { padding-right: 30px; }
  .counts li + li { padding-left: 30px; border-left: 1px solid var(--line); }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
  .qa { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }

  .why { padding: 84px 0 8px; }
  .split { padding: 80px 0 64px; }

  .split-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
    justify-items: start;
    gap: 48px;
  }

  /* Two phones, one tucked behind the other. */
  .split-art { width: 100%; justify-content: center; }

  .split-art .glowframe {
    position: relative;
    width: 100%;
    min-height: 600px;
  }

  .split-art .frame {
    position: absolute;
    width: 228px;
    top: 50%;
  }

  .frame-back {
    display: block;
    left: 2%;
    transform: translateY(-50%) rotate(-6deg) scale(.9);
    opacity: .8;
    transition: transform .5s ease;
  }

  .frame-front {
    left: 34%;
    transform: translateY(-48%) rotate(4deg);
    z-index: 2;
    transition: transform .5s ease;
  }

  .split-art:hover .frame-back  { transform: translateY(-50%) rotate(-9deg) scale(.92); }
  .split-art:hover .frame-front { transform: translateY(-50%) rotate(2deg) scale(1.02); }
}

/* ======================================================== reading first */

/* Nothing below here is needed to read the page, so for anyone who would
   rather it held still, all of it stops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .shine, .orb, .float, .glowframe::before, .pill i, .marquee-run {
    animation: none !important;
  }

  .hero-words > *, .hero-art { animation: none !important; opacity: 1; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .btn, .play, .card, .qa-item, .ticks li, .bar-cta, .frame-back, .frame-front {
    transition: none;
  }

  .btn:hover, .play:hover, .card:hover,
  .qa-item:hover, .ticks li:hover { transform: none; }
  .split-art:hover .frame-back,
  .split-art:hover .frame-front { transform: translateY(-50%) rotate(0); }
}

/* The footer's two links, kept together so they wrap as a pair. */
.foot-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
