/* Riftopedia site: Wine and gold, one appearance for everyone, as the app icon is.
   Built from the accepted mock-up (design/mockup-r3/site.css); values unchanged.
   Round 4 (design/mockup-r4/assets/site.css): adds the unavailable button (.btn-soon, .btn-clock)
   and the Download page (.d-*), without the lines the owner removed (.badge-text, .runs, .d-runs). */

@font-face {
  font-family: "Allo Variable";
  src: url("/assets/fonts/Allo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* wine */
  --wine: #3E0E2C;
  --wine-light: #6A2048;
  --wine-deep: #1A0512;
  --pool: #8A2A5E;
  /* plum */
  --plum: #4A1440;
  --plum-dark: #1E0A26;
  --plum-black: #0C0412;
  /* gold */
  --gold-hi: #FFF1C8;
  --gold: #F0C860;
  --gold-mid: #C8963A;
  --gold-lo: #7A5418;
  /* jewel light */
  --teal: #0AC8B9;
  --teal-light: #7FF2EE;
  --pink: #FF5C9A;
  /* text */
  --ink: #FBF3EC;          /* main text on wine */
  --ink-2: #E6D2DC;        /* secondary text on wine */
  --ink-3: #C9AFBD;        /* quiet text, still 4.5:1 on wine */
  --line: rgba(240, 200, 96, .22);

  --gold-text: linear-gradient(176deg, #FFF1C8 0%, #F0C860 38%, #E2B04E 64%, #C8963A 100%);
  --max: 1280px;
  --gutter: clamp(16px, 4.4vw, 64px);

  color-scheme: dark;
}

* { box-sizing: border-box; }
* {
  font-variation-settings: "wght" var(--w, 400), "ROND" 50, "opsz" var(--o, 17);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wine-deep);
  color: var(--ink);
  font-family: "Allo Variable", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p, h1, h2, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.num { font-feature-settings: "tnum", "case", "cv05"; }

/* ---------- focus ---------- */
a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--plum-dark); color: var(--ink); border-radius: 12px;
  text-decoration: none; --w: 590;
  border: 1px solid var(--line);
}
.skip:focus { top: 14px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(26, 5, 18, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(240, 200, 96, .14);
}
.top-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.lockup {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 4px; }
/* the current page: plain text with a short gold bar under it, not a link */
.here { position: relative; }
.nav .here { color: var(--ink-2); }
.here::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold));
}
.lockup-icon { width: 32px; height: 32px; border-radius: 22.4%; box-shadow: 0 0 0 1px rgba(240,200,96,.35); }
.wordmark {
  --w: 640; --o: 32;
  font-size: 24px; letter-spacing: -0.03em; line-height: 1;
  color: #F2EFE8;
}
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); text-decoration: none; --w: 560;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--gold); background: rgba(240, 200, 96, .08); }

/* ---------- opening ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60% 70% at 14% 30%, rgba(74, 20, 64, .55), transparent 70%),
    radial-gradient(110% 85% at 70% 40%, var(--wine-light) 0%, var(--wine) 34%, #2A0A1E 64%, var(--wine-deep) 100%);
  overflow: hidden;
}
.hero::after { /* fine gold line where the stage meets the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,200,96,.45), transparent);
}
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pool {
  position: absolute; left: 50%; top: 4%; width: 64vw; height: 64vw; max-width: 980px; max-height: 980px;
  transform: translateX(-6%);
  background: radial-gradient(closest-side, rgba(138, 42, 94, .95), rgba(138, 42, 94, .35) 55%, transparent 100%);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite alternate;
}
.pool-2 {
  left: 58%; top: 18%; width: 30vw; height: 30vw; max-width: 460px; max-height: 460px;
  background: radial-gradient(closest-side, rgba(127, 242, 238, .16), transparent 100%);
  animation-duration: 7s; animation-delay: -3s;
}
@keyframes breathe {
  from { opacity: .72; scale: .94; }
  to   { opacity: 1;   scale: 1.04; }
}

.spark {
  position: absolute; width: 10px; height: 10px;
  background: var(--gold-hi);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px rgba(255, 241, 200, .9));
  animation: twinkle 4.8s ease-in-out infinite;
}
.spark.teal { background: var(--teal-light); filter: drop-shadow(0 0 6px rgba(127,242,238,.9)); }
.spark.pink { background: #FFB3CF; filter: drop-shadow(0 0 6px rgba(255,92,154,.9)); }
.s1 { left: 54%; top: 14%; animation-delay: -1s; }
.s2 { left: 92%; top: 26%; width: 7px; height: 7px; animation-delay: -2.4s; }
.s3 { left: 47%; top: 72%; width: 6px; height: 6px; animation-delay: -3.6s; }
.s4 { left: 86%; top: 66%; width: 8px; height: 8px; animation-delay: -.4s; }
.s5 { left: 8%;  top: 8%;  width: 6px; height: 6px; animation-delay: -2s; }
.s6 { left: 64%; top: 8%;  width: 7px; height: 7px; animation-delay: -4s; }
@keyframes twinkle {
  0%, 100% { opacity: .15; scale: .6; }
  50% { opacity: 1; scale: 1; }
}

.hero-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 24px var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
}

.hero-badge { display: flex; align-items: center; margin-bottom: 30px; }
.icon-jewel { position: relative; display: block; width: 132px; flex: none; }
.icon-jewel::before { /* the icon's own pool of light */
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgba(240, 200, 96, .28), rgba(138, 42, 94, .25) 50%, transparent 72%);
  z-index: -1;
}
.app-icon {
  width: 100%; border-radius: 22.4%;
  box-shadow:
    0 0 0 1px rgba(255, 241, 200, .28),
    0 18px 40px -10px rgba(12, 4, 18, .85),
    0 2px 0 0 rgba(255, 241, 200, .08) inset;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 36px; padding: 6px 16px 6px 12px; border-radius: 999px;
  font-size: 15px; line-height: 20px; --w: 560; --o: 15;
  color: var(--ink);
  background: rgba(12, 4, 18, .38);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 241, 200, .07);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, .18), 0 0 10px rgba(240, 200, 96, .8);
}

.display {
  --w: 720; --o: 32;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: .98; letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 11ch;
}
.gold {
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.shimmer {
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%),
    var(--gold-text);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  animation: glint 2.4s 1.1s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes glint { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }

.lede {
  --w: 420; --o: 21;
  margin-top: 24px; max-width: 34em;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -0.005em;
  color: var(--ink-2);
}
.hero .lede { max-width: 30em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; --w: 640; --o: 17; letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .25s, border-color .25s;
}
.btn-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.btn-ghost {
  color: var(--ink);
  background: rgba(12, 4, 18, .3);
  border: 1px solid rgba(240, 200, 96, .38);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(240, 200, 96, .08); transform: translateY(-2px); }
.btn:focus-visible { border-radius: 999px; outline-offset: 4px; }
.btn-ghost .btn-arrow { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.btn-ghost:hover .btn-arrow { transform: translateY(3px); }

/* the unavailable download button: the primary gold with its light turned down.
   A real <button type="button" aria-disabled="true"> with no action: no lift, no glow, no glint. */
.btn-soon {
  appearance: none; margin: 0; border: 0;
  font-family: inherit;
  color: var(--gold-hi);
  background:
    linear-gradient(180deg, rgba(240, 200, 96, .34), rgba(200, 150, 58, .24)),
    #2A0A1E;
  box-shadow:
    inset 0 0 0 1px rgba(240, 200, 96, .55),
    inset 0 1px 0 rgba(255, 241, 200, .18);
  cursor: not-allowed;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-soon:hover, .btn-soon:active { transform: none; }
.btn-soon:focus { outline: none; }
.btn-soon:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 4px; }
.btn-clock {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.assure { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 15px; --w: 500; --o: 15; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure li::before {
  content: ""; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--teal-light); box-shadow: 0 0 8px rgba(127, 242, 238, .8);
}

/* the stage: the front screen set into a gold card frame, as the icon sets its crystal */
.stage {
  position: relative; container-type: inline-size;
  width: 100%; max-width: 660px; justify-self: end;
  aspect-ratio: 100 / 108;
}
.stage-light {
  position: absolute; left: -10cqw; right: -10cqw; top: 0; height: 110cqw; z-index: 0;
  background:
    radial-gradient(closest-side at 50% 46%, rgba(127, 242, 238, .22), transparent 38%),
    radial-gradient(closest-side at 50% 50%, rgba(170, 60, 118, .95), rgba(138, 42, 94, .55) 45%, transparent 100%);
  animation: breathe 8s ease-in-out infinite alternate;
}
.frame {
  position: absolute; z-index: 1; left: 17cqw; top: 14cqw; width: 66cqw; height: auto;
  filter: drop-shadow(0 30px 50px rgba(12, 4, 18, .7)) drop-shadow(0 0 30px rgba(240, 200, 96, .18));
  animation: frame-in 1.1s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.rails { animation: rails 6s ease-in-out infinite alternate; }
@keyframes rails { from { opacity: .75; } to { opacity: 1; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* the hextech ring: a slow-turning gold dial behind the screens */
.ring {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; width: 128cqw; height: 128cqw;
  translate: -50% -50%;
  opacity: .32;
  animation: turn 120s linear infinite;
}
.stage .ring { top: 54%; }
@keyframes turn { to { rotate: 360deg; } }

/* a screen in a fine device edge: gold hairline, plum-black bezel, real shadow */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  padding: 1.5px;
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(150deg, #FFF1C8 0%, #F0C860 18%, #7A5418 46%, #C8963A 72%, #FFF1C8 100%);
  rotate: var(--r, 0deg);
  box-shadow:
    0 calc(var(--pw) * .12) calc(var(--pw) * .22) calc(var(--pw) * -.04) rgba(12, 4, 18, .85),
    0 0 calc(var(--pw) * .18) rgba(138, 42, 94, .55);
}
.bezel {
  padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .16);
  background: linear-gradient(160deg, #2A1030, var(--plum-black) 40%);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 200, .08);
}
.bezel img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--pw) * .139);
  background: #111;
}
.stage .phone { position: absolute; transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.stage:hover .p-front { translate: 0 -10px; }
.stage:hover .p-left { translate: -8px -4px; }
.stage:hover .p-right { translate: 8px -4px; }
.p-front { left: 29cqw; top: 1cqw; z-index: 3; animation: rise 1s .25s cubic-bezier(.2, .8, .2, 1) both; }
.p-left  { left: -1cqw; top: 26cqw; z-index: 0; animation: rise-l 1.1s .45s cubic-bezier(.2, .8, .2, 1) both; }
.p-right { left: 69cqw; top: 31cqw; z-index: 0; animation: rise-r 1.1s .55s cubic-bezier(.2, .8, .2, 1) both; }
.p-front { box-shadow:
  0 calc(var(--pw) * .14) calc(var(--pw) * .26) calc(var(--pw) * -.04) rgba(12, 4, 18, .9),
  0 0 calc(var(--pw) * .22) rgba(127, 242, 238, .22),
  0 0 calc(var(--pw) * .5) rgba(138, 42, 94, .6); }

@keyframes rise   { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes rise-l { from { opacity: 0; transform: translate(40px, 40px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes rise-r { from { opacity: 0; transform: translate(-40px, 40px) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* the tally under the opening */
.tally-wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 8px var(--gutter) 56px;
}
.tally {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.tally > div {
  display: flex; flex-direction: column-reverse; gap: 2px;
  padding: 22px 0 0;
}
.tally > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.tally dd {
  --w: 680; --o: 32;
  font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.03em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.tally dt { font-size: 13px; --w: 620; --o: 13; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tally-note { margin-top: 22px; max-width: 46em; color: var(--ink-3); font-size: 16px; }

/* ---------- feature sections ---------- */
.feature {
  position: relative; overflow: clip;
  background:
    radial-gradient(70% 70% at 78% 50%, rgba(106, 32, 72, .55), transparent 70%),
    linear-gradient(180deg, var(--wine-deep), #24081A 50%, var(--wine-deep));
}
.feature-flip {
  background:
    radial-gradient(70% 70% at 22% 50%, rgba(74, 20, 64, .7), transparent 70%),
    linear-gradient(180deg, var(--wine-deep), var(--plum-dark) 50%, var(--wine-deep));
}
.feature-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 104px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "copy duo" "tiles duo";
  column-gap: 64px; row-gap: 40px; align-items: start;
}
.feature-flip .feature-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "duo copy" "duo tiles"; }
.feature-copy { grid-area: copy; align-self: end; }
.feature .tiles { grid-area: tiles; }
.feature .duo { grid-area: duo; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; --w: 640; --o: 14; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
}
.h2 {
  --w: 700; --o: 32;
  font-size: clamp(36px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  padding: 22px 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(106, 32, 72, .42), rgba(30, 10, 38, .55));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 241, 200, .08), 0 20px 40px -24px rgba(12, 4, 18, .9);
  color: var(--ink-2); font-size: 16px; line-height: 1.42;
  transition: border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover { border-color: rgba(240, 200, 96, .5); transform: translateY(-3px); }
.tile-big {
  --w: 680; --o: 28;
  font-size: 28px; line-height: 1.05; letter-spacing: -0.025em;
  color: var(--gold);
  margin-bottom: 10px;
}

/* two screens, overlapping, lit */
.duo {
  position: relative; container-type: inline-size;
  width: 100%; max-width: 560px; justify-self: center;
  aspect-ratio: 100 / 132;
}
.duo .phone { position: absolute; z-index: 1; --pw: 58cqw; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.duo-right .d-back, .duo-privacy .d-back { left: 40cqw; top: 0; }
.duo-right .d-front, .duo-privacy .d-front { left: 2cqw; top: 6cqw; }
.duo-left .d-back { left: 2cqw; top: 0; }
.duo-left .d-front { left: 40cqw; top: 6cqw; }
.duo .d-front { z-index: 2; }
.duo .ring { width: 150cqw; height: 150cqw; top: 48%; opacity: .24; }
.duo:hover .d-front { transform: translateY(-8px); }
.duo:hover .d-back { transform: translateY(-4px); }
.duo-glow {
  position: absolute; inset: 6% -10% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(138, 42, 94, .85), rgba(138, 42, 94, .25) 60%, transparent);
  filter: blur(10px);
}
.duo-glow.teal { background: radial-gradient(closest-side, rgba(10, 200, 185, .28), rgba(138, 42, 94, .35) 55%, transparent); }

/* ---------- sets and cards: the wide section ---------- */
.catalog {
  position: relative; overflow: clip;
  background:
    radial-gradient(55% 60% at 50% 62%, rgba(138, 42, 94, .5), transparent 72%),
    linear-gradient(180deg, var(--wine-deep), #2A0A1E 55%, var(--wine-deep));
}
.catalog-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 112px var(--gutter) 104px;
}
.catalog-head { text-align: center; max-width: 760px; margin: 0 auto; }
.catalog-head .lede { margin-left: auto; margin-right: auto; max-width: 30em; }
.eyebrow-center::after {
  content: ""; width: 28px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold));
}
.catalog-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.tiles-col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tiles-col .tile { display: block; }
.tiles-col .tile-big { margin-bottom: 10px; font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 15px; --w: 540; --o: 15; line-height: 20px; color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(240, 200, 96, .35);
  background: rgba(12, 4, 18, .35);
}
.solo { position: relative; container-type: inline-size; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.solo .phone { --pw: 82cqw; z-index: 1; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.solo:hover .phone { transform: translateY(-8px); }
.solo .duo-glow { inset: -6% -40% 10%; }
.solo .ring { width: 170cqw; height: 170cqw; top: 46%; opacity: .26; }
.caption {
  position: relative; z-index: 1;
  font-size: 15px; --w: 480; --o: 15; color: var(--ink-2); text-align: center;
}

/* ---------- tools: a pair of cards ---------- */
.tools {
  position: relative; overflow: clip;
  background:
    radial-gradient(60% 60% at 30% 70%, rgba(106, 32, 72, .45), transparent 70%),
    radial-gradient(50% 60% at 80% 60%, rgba(10, 200, 185, .10), transparent 70%),
    linear-gradient(180deg, var(--wine-deep), #22071A 60%, var(--wine-deep));
}
.tools-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 104px var(--gutter) 112px;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 150px; }
.tool {
  position: relative; container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 20px; align-items: end;
  padding: 36px 32px 36px 36px;
  border-radius: 28px;
  background:
    radial-gradient(80% 90% at 85% 30%, rgba(138, 42, 94, .55), transparent 70%),
    linear-gradient(180deg, rgba(106, 32, 72, .5), rgba(12, 4, 18, .7));
  border: 1px solid rgba(240, 200, 96, .28);
  box-shadow: inset 0 1px 0 rgba(255, 241, 200, .1), 0 40px 80px -40px rgba(12, 4, 18, .95);
}
.tool-teal {
  background:
    radial-gradient(80% 90% at 85% 30%, rgba(10, 200, 185, .16), transparent 70%),
    linear-gradient(180deg, rgba(74, 20, 64, .55), rgba(12, 4, 18, .7));
  border-color: rgba(127, 242, 238, .26);
}
.tool-name { margin: 0 0 18px; font-size: 22px; line-height: 28px; --w: 640; --o: 22; color: var(--ink); }
.tool-big {
  --w: 700; --o: 32;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--gold);
}
.tool-teal .tool-big { color: var(--teal-light); text-shadow: 0 0 24px rgba(10, 200, 185, .35); }
.tool-big .to { color: var(--ink-2); --w: 480; letter-spacing: -0.02em; text-shadow: none; }
.tool-line { margin-top: 18px; max-width: 24em; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.tool-shot { align-self: end; margin-top: -150px; display: flex; justify-content: center; }
.tool-shot .phone { --pw: 40cqw; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tool:hover .tool-shot .phone { transform: translateY(-8px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--gold); text-decoration: none; --w: 600;
  border-bottom: 1px solid rgba(240, 200, 96, .45);
  padding-top: 2px;
  transition: border-color .2s, color .2s;
}
.text-link:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.text-link-arrow { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.text-link:hover .text-link-arrow { transform: translateX(4px); }
.text-link:focus-visible { border-radius: 6px; }
.more { margin-top: 24px; }

/* ---------- on this iPhone ---------- */
.privacy {
  position: relative; overflow: clip;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(138, 42, 94, .45), transparent 70%),
    var(--wine);
  border-top: 1px solid rgba(240, 200, 96, .18);
}
.privacy-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 104px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center;
}
.nones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.nones > div {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px; border-radius: 20px;
  background: rgba(12, 4, 18, .42);
  border: 1px solid rgba(127, 242, 238, .22);
  box-shadow: inset 0 1px 0 rgba(127, 242, 238, .08);
}
.nones dt { font-size: 15px; --w: 560; --o: 15; color: var(--ink-2); }
.nones dd {
  --w: 700; --o: 32;
  font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -0.03em;
  color: var(--teal-light);
  text-shadow: 0 0 24px rgba(10, 200, 185, .45);
}
.fine { margin-top: 18px; color: var(--ink-3); font-size: 16px; }

/* ---------- About: the same world, calm enough to read ---------- */
.page-about { background: var(--wine-deep); }
.a-hero {
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(50% 90% at 80% 40%, var(--wine-light) 0%, var(--wine) 40%, transparent 80%),
    radial-gradient(60% 70% at 10% 20%, rgba(74, 20, 64, .55), transparent 70%),
    linear-gradient(180deg, #2A0A1E, var(--wine-deep));
  border-bottom: 1px solid rgba(240, 200, 96, .18);
}
.a-hero-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 72px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center;
}
.display-about { font-size: clamp(44px, 5vw, 72px); max-width: none; }
.a-hero .lede { max-width: 32em; }
.a-hero-icon { padding-right: 4vw; }
.icon-jewel-xl { width: clamp(120px, 15vw, 216px); }
.icon-jewel-xl::before { inset: -55%; background: radial-gradient(closest-side, rgba(240, 200, 96, .3), rgba(138, 42, 94, .4) 50%, transparent 75%); }

.page-about main { overflow-x: clip; }
.a-body {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 24px var(--gutter) 96px;
}
.a-sec {
  display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px);
  justify-content: space-between; gap: 64px; align-items: start;
  padding: 72px 0;
  border-bottom: 1px solid rgba(240, 200, 96, .14);
}
.a-text { min-width: 0; }
.a-text-wide { grid-column: 1 / -1; max-width: 880px; }
.h2-about { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 28px; }

/* the notice, set apart in the icon's chamfered gold frame */
.notice-panel {
  position: relative; margin-top: 40px;
  padding: 2px;
  background: linear-gradient(150deg, #FFF1C8, #F0C860 25%, #C8963A 60%, #7A5418 85%, #F0C860);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  filter: drop-shadow(0 24px 40px rgba(12, 4, 18, .7));
}
.notice-panel > * { position: relative; }
.notice-panel::before {
  content: ""; position: absolute; inset: 2px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(138, 42, 94, .55), transparent 70%),
    linear-gradient(180deg, #2A0A22, var(--plum-black));
  clip-path: polygon(21px 0, calc(100% - 21px) 0, 100% 21px, 100% calc(100% - 21px), calc(100% - 21px) 100%, 21px 100%, 0 calc(100% - 21px), 0 21px);
}
.notice-label {
  margin: 0; padding: 30px 36px 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 18px; --w: 660; --o: 14; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.notice-label::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--pink); box-shadow: 0 0 10px rgba(255, 92, 154, .8); }
.notice-big {
  padding: 14px 36px 32px;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; --w: 500; --o: 22; letter-spacing: -0.005em;
  color: var(--ink);
}

.para { margin-top: 24px; max-width: 40em; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

.a-shot { position: sticky; top: 100px; container-type: inline-size; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.a-shot::before {
  content: ""; position: absolute; inset: -10% -30% 10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(138, 42, 94, .7), rgba(138, 42, 94, .2) 60%, transparent);
  filter: blur(10px);
}
.a-shot .phone { --pw: 86cqw; z-index: 1; }

/* ---------- Download: About's title band, holding the unavailable button ---------- */
.page-download { min-height: 100svh; display: flex; flex-direction: column; }
.page-download main { flex: 1; display: flex; flex-direction: column; }
.d-hero { flex: 1; border-bottom: 0; }
.d-hero-in { min-height: min(640px, calc(100svh - 68px - 220px)); padding-top: 96px; padding-bottom: 104px; }
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.btn-download { min-width: 220px; }
.d-soon { min-height: 36px; }
.d-back { margin-top: 28px; }

/* ---------- footer ---------- */
.foot {
  background: var(--plum-black);
  border-top: 1px solid rgba(240, 200, 96, .18);
}
.foot-in {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 56px var(--gutter) 48px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-icon { width: 56px; height: 56px; border-radius: 22.4%; box-shadow: 0 0 0 1px rgba(240,200,96,.3); }
.foot-mark { font-size: 30px; }
.notice { color: var(--ink); font-size: 16px; line-height: 1.5; max-width: 46em; }
.foot-nav { display: flex; align-items: center; gap: 4px; }
.here { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink-3); --w: 560; }

/* ---------- scroll reveals (only with the motion class) ---------- */
.motion .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .duo.reveal .phone { transition: transform .5s cubic-bezier(.2, .8, .2, 1), rotate 1.1s cubic-bezier(.2, .8, .2, 1); }
.motion .duo.reveal:not(.in) .phone { rotate: 0deg; }
.motion .tiles.reveal { transition-delay: .12s; }

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  .tiles, .nones { grid-template-columns: minmax(0, 1fr); }
  .tile { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .tile-big { margin: 0; font-size: 24px; }
  .nones > div { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr); gap: 28px; }
  .tiles-col .tile { display: block; }
  .tiles-col .tile-big { font-size: 24px; }
}

@media (max-width: 900px) {
  .a-hero-in { padding: 48px var(--gutter) 48px; gap: 24px; }
  .a-sec { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 0; }
  .a-shot { position: relative; top: 0; width: min(100%, 280px); justify-self: center; }
  .catalog-in { padding: 72px var(--gutter); }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .catalog-grid .solo { order: -1; width: min(100%, 320px); justify-self: center; }
  .tools-in { padding: 72px var(--gutter) 80px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 120px; max-width: 640px; margin-left: auto; margin-right: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 32px; min-height: 0; }
  .stage { justify-self: center; max-width: 560px; margin-top: 8px; }
  .display { max-width: 12ch; }

  .feature-in, .feature-flip .feature-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "duo" "tiles";
    padding: 72px var(--gutter);
  }
  .duo { max-width: 460px; }
  .privacy-in { grid-template-columns: minmax(0, 1fr); padding: 72px var(--gutter); gap: 48px; }
  .duo-privacy { justify-self: center; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-nav { margin-left: -14px; }
}

@media (max-width: 640px) {
  .top-in { height: 60px; }
  html { scroll-padding-top: 68px; }
  .hero-badge { margin-bottom: 22px; }
  .pill { font-size: 14px; }
  .lede { margin-top: 18px; }
  .actions { margin-top: 26px; }
  .actions { gap: 10px; }
  .btn { min-height: 52px; padding: 0 18px; font-size: 16px; gap: 8px; }
  .icon-jewel { width: 80px; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tally > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
  .tile { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tile-big { margin-bottom: 8px; }
  .pair { gap: 24px; margin-top: 40px; }
  .a-hero-in { grid-template-columns: minmax(0, 1fr); }
  .a-hero-icon { order: -1; padding: 0; }
  .d-hero-in { min-height: 0; padding-top: 40px; padding-bottom: 64px; }
  .btn-download { flex: 1 1 100%; }
  .a-body { padding-top: 0; }
  .a-sec { padding: 48px 0; }
  .icon-jewel-xl { width: 96px; }
  .notice-label { padding: 24px 24px 0; }
  .notice-big { padding: 12px 24px 26px; }
  .tool { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 32px; }
  .tool-shot { margin-top: 8px; }
  .tool-shot .phone { --pw: min(62cqw, 240px); }
}

@media (max-width: 360px) {
  .tally > div + div { padding-left: 16px; }
}

/* the opening's two buttons stack at full width where they cannot share a row */
@media (max-width: 399px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion: everything still, at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shimmer { background-image: var(--gold-text); background-size: 100% 100%; background-position: 0 0; }
  .duo:hover .phone, .tile:hover, .btn:hover, .solo:hover .phone, .tool:hover .tool-shot .phone, .text-link:hover .text-link-arrow { transform: none; }
}
