/* RIBIL website. Tokens first, then shared pieces, then the home page, then the document pages. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --yellow: #ffe600;
  --violet: #6a4dff;
  --magenta: #e0389b;
  --ink: #0e0e13;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface2: #f2f0e9;
  --text: #12122b;
  --text2: #5c5d6e;
  --stroke: rgba(18, 18, 43, .1);
  --btn-bg: #12122b;
  --btn-text: #ffffff;
  --accent-text: #5a3df0;
  --glass: rgba(255, 255, 255, .72);
  --glass-stroke: rgba(255, 255, 255, .9);
  --glow: .5;
  --shadow-sm: 0 1px 2px rgba(18, 18, 43, .05), 0 8px 24px -12px rgba(18, 18, 43, .14);
  --shadow-lg: 0 50px 80px -40px rgba(18, 18, 43, .42), 0 20px 40px -24px rgba(18, 18, 43, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --surface: #141419;
    --surface2: #1b1b22;
    --text: #f4f4f7;
    --text2: #a2a2b1;
    --stroke: rgba(255, 255, 255, .09);
    --btn-bg: #ffe600;
    --btn-text: #12122b;
    --accent-text: #b3a5ff;
    --glass: rgba(28, 28, 36, .68);
    --glass-stroke: rgba(255, 255, 255, .1);
    --glow: .26;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 50px 80px -36px rgba(0, 0, 0, .9), 0 20px 40px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; font-weight: 650; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.035em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-text); margin: 0 0 16px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text2); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); }
.skip:focus { top: 12px; }

/* Nav: a floating glass bar on every page */
.nav { position: sticky; top: 12px; z-index: 30; padding: 0 16px; }
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: 1132px; height: 60px; padding: 0 10px 0 18px; border-radius: 999px; border: 1px solid var(--glass-stroke); background: var(--glass); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 "Inter Tight", Inter, sans-serif; letter-spacing: .08em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--text2); transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(18, 18, 43, .5); }
.btn:active { transform: none; }
@media (max-width: 820px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* Official Google Play badge (the image carries its own padding) */
.badge { display: inline-block; line-height: 0; transition: transform .25s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 78px; width: auto; margin: -11px; }

/* Phone frame. 1em = 1% of the phone's width, so every detail scales with --w.
   A metal rim, a black bezel, a camera, glass sheen, and a side edge with buttons that gives it thickness. */
.phone {
  --w: 300px;
  --m1: #e7e5e0; --m2: #a9a6a0; --m3: #f6f5f2; --m4: #7f7c76;
  position: relative;
  flex: none;
  width: var(--w);
  font-size: calc(var(--w) / 100);
  aspect-ratio: 1080 / 2392;
  margin: 0;
}
.phone--blue { --m1: #5d7ea8; --m2: #2f4a6e; --m3: #9fbcdc; --m4: #1f3350; }
.phone--black { --m1: #4a4a50; --m2: #232327; --m3: #7c7c84; --m4: #121215; }
.phone__edge {
  position: absolute; inset: .6em 0 .6em -3.4em; z-index: 0;
  border-radius: 16em;
  background: linear-gradient(90deg, var(--m4), var(--m1) 22%, var(--m3) 42%, var(--m2) 78%, var(--m4));
}
.phone--right .phone__edge { inset: .6em -3.4em .6em 0; background: linear-gradient(270deg, var(--m4), var(--m1) 22%, var(--m3) 42%, var(--m2) 78%, var(--m4)); }
.phone__edge::before, .phone__edge::after { content: ""; position: absolute; left: .55em; width: 1.5em; border-radius: 1em; background: linear-gradient(90deg, var(--m2), var(--m1) 45%, var(--m4)); box-shadow: inset 0 0 0 .14em rgba(0, 0, 0, .28), 0 .1em .2em rgba(0, 0, 0, .25); }
.phone__edge::before { top: 24%; height: 6%; }
.phone__edge::after { top: 33%; height: 13%; }
.phone--right .phone__edge::before, .phone--right .phone__edge::after { left: auto; right: .55em; }
.phone__body {
  position: relative; z-index: 1; height: 100%; padding: 1em; border-radius: 16em;
  background: linear-gradient(135deg, var(--m3), var(--m1) 18%, var(--m2) 52%, var(--m1) 82%, var(--m3));
  box-shadow: inset 0 0 .3em rgba(255, 255, 255, .55), var(--shadow-lg);
}
.phone__bezel { height: 100%; padding: 2em; border-radius: 15em; background: #050506; box-shadow: inset 0 0 0 .22em #1c1c20; }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 13em; background: #0b0b0f; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 26%, transparent 42%); }
.phone__cam { position: absolute; z-index: 2; top: 5.4em; left: 50%; width: 3.8em; height: 3.8em; margin-left: -1.9em; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #27304a 0 16%, #07070a 40%); box-shadow: 0 0 0 .3em #0b0b0e; }

/* Hero */
.hero { position: relative; margin-top: -72px; padding: 150px 0 110px; overflow: clip; isolation: isolate; }
.aurora { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; opacity: var(--glow); }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); will-change: transform; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; right: -6vw; top: -8vw; background: var(--yellow); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 22vw; top: 14vw; background: var(--violet); opacity: .7; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; right: 2vw; top: 26vw; background: var(--magenta); opacity: .5; animation: drift3 30s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
@keyframes drift1 { to { transform: translate3d(-7vw, 5vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(9vw, -5vw, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-8vw, -6vw, 0) scale(1.18); } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 mark { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
.hero h1 mark::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .36em; border-radius: .08em; background: var(--yellow); transform-origin: left; }
@media (prefers-color-scheme: dark) { .hero h1 mark::before { opacity: .9; height: .1em; bottom: -.02em; } }
.hero .lead { max-width: 520px; margin: 24px 0 34px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta > span { font-size: 14px; color: var(--text2); }
.stage { position: relative; height: 660px; perspective: 1500px; }
.stage__a, .stage__b { position: absolute; }
.stage__a { z-index: 2; left: 50%; top: 0; margin-left: -116px; transform: rotateY(13deg) rotateX(2deg); }
.stage__a .phone { --w: 298px; }
.stage__b { z-index: 1; left: 50%; top: 58px; margin-left: 96px; transform: rotateY(-16deg) rotateZ(3deg); }
.stage__b .phone { --w: 240px; }
.dialcard { position: absolute; z-index: 3; left: -6px; bottom: 26px; width: 292px; padding: 16px 18px 12px; border-radius: 28px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: 0 40px 60px -30px rgba(18, 18, 43, .45), 0 10px 24px -14px rgba(18, 18, 43, .25); }
.dialcard__top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--text2); margin-bottom: 4px; }
.dialcard__top em { font-style: normal; letter-spacing: 0; padding: 3px 9px; border-radius: 99px; color: #2e7d0b; background: rgba(115, 207, 17, .18); }

/* The app's score dial */
.dial { --band: #ffe600; --band-t: #9a7b00; width: 100%; height: auto; overflow: visible; }
.dial[data-band="poor"] { --band: #ff4d5e; --band-t: #d4253a; }
.dial[data-band="average"] { --band: #ff9f2e; --band-t: #c46a00; }
.dial[data-band="best"] { --band: #a6f24a; --band-t: #3e8e0b; }
.dial[data-band="outstanding"] { --band: #7c5cff; --band-t: #5b3df5; }
.dial__ticks { fill: none; stroke: var(--text2); stroke-opacity: .45; stroke-width: 1.4; stroke-linecap: round; }
.dial__knob { transform-origin: 140px 140px; }
.dial__k0 { fill: var(--surface); }
.dial__k1 { fill: var(--band); transition: fill .3s; }
.dial__n { font: 700 72px "Inter Tight", Inter, sans-serif; letter-spacing: -2px; fill: var(--text); font-variant-numeric: tabular-nums; }
.dial__b { font: 650 21px "Inter Tight", Inter, sans-serif; fill: var(--band-t); transition: fill .3s; }
.dial__e { font: 500 12px Inter, sans-serif; fill: var(--text2); }
@media (prefers-color-scheme: dark) {
  .dial { --band-t: var(--band); }
  .dial[data-band="outstanding"] { --band-t: #a899ff; }
  .dialcard__top em { color: #a6f24a; }
}

/* Primary button: same as the app's, a flat yellow pill */
.play { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px 0 9px; border-radius: 999px; background: var(--yellow); color: #12122b; font: 600 17px/1 Inter, system-ui, sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background .2s, transform .15s; }
.doc a.play { color: #12122b; }
.play:hover { background: #ffd900; }
.play:active { transform: scale(.98); }
.play__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #12122b; }
.play__mark { width: 20px; height: 20px; margin-left: 2px; }

@media (max-width: 1040px) {
  .hero { padding: 124px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero .lead { margin: 20px 0 28px; }
  .stage { height: 510px; }
  .stage__a { margin-left: -84px; }
  .stage__a .phone { --w: 226px; }
  .stage__b { top: 44px; margin-left: 62px; }
  .stage__b .phone { --w: 176px; }
  .dialcard { left: 0; bottom: 8px; width: 196px; padding: 10px 12px 6px; border-radius: 20px; }
  .dialcard__top { font-size: 9.5px; }
}

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--stroke); }
.facts div { padding: 26px 24px; font-size: 14px; color: var(--text2); }
.facts div + div { border-left: 1px solid var(--stroke); }
.facts b { display: block; color: var(--text); font: 650 clamp(24px, 2.6vw, 32px)/1.1 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px 16px; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--stroke); }
}

/* Sections */
section.block { padding: 128px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head .lead { margin-top: 16px; }
@media (max-width: 900px) { section.block { padding: 84px 0; } .section-head { margin-bottom: 44px; } }

/* Scale: the page's scroll drives the dial from 300 to 900 */
.scale { position: relative; }
.js .scale { height: 320vh; }
.scale__pin { padding: 110px 0; }
.js .scale__pin { position: sticky; top: 0; min-height: 100vh; padding: 88px 0 24px; display: flex; align-items: center; overflow: clip; }
.scale__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.scale h2 { margin-bottom: 26px; }
.bands { list-style: none; margin: 0; padding: 0; }
.bands li { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 13px 0; border-top: 1px solid var(--stroke); color: var(--text2); transition: color .3s; }
.bands li:last-child { border-bottom: 1px solid var(--stroke); }
.bands b { font: 650 19px/1.3 "Inter Tight", Inter, sans-serif; letter-spacing: -.015em; }
.bands span { font-size: 14px; font-variant-numeric: tabular-nums; align-self: center; }
.bands p { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; margin-top: 4px; }
.js .bands p { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s, margin .4s var(--ease); }
.js .bands li.on { color: var(--text); }
.js .bands li.on p { max-height: 90px; margin-top: 4px; opacity: 1; color: var(--text2); }
.scale__dial { position: relative; max-width: 500px; width: 100%; margin: 0 auto; isolation: isolate; }
.scale__dial::before { content: ""; position: absolute; z-index: -1; inset: 8%; border-radius: 50%; background: var(--glowc, #ffe600); opacity: .2; filter: blur(70px); transition: background .5s; }
@media (max-width: 900px) {
  .scale__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scale__dial { order: -1; max-width: min(300px, 40vh); }
  .scale h2 { font-size: 27px; margin-bottom: 14px; }
  .js .scale__pin { padding: 76px 0 12px; }
  .bands li { padding: 9px 0; }
  .bands b { font-size: 17px; }
}

/* Showcase: the phone stays put while the chapters scroll past it */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.showcase__stick { position: sticky; top: 96px; height: calc(100vh - 120px); max-height: 760px; min-height: 560px; display: grid; place-items: center; border-radius: 36px; background: var(--surface2); overflow: hidden; isolation: isolate; }
.showcase__stick::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--violet); opacity: .16; filter: blur(70px); transition: background .8s; }
.showcase__stick[data-at="1"]::before { background: var(--magenta); }
.showcase__stick[data-at="2"]::before { background: var(--yellow); opacity: .3; }
.showcase__stick .phone { --w: min(270px, calc((100vh - 200px) * .44)); }
.showcase__stack { position: absolute; inset: 0; }
.showcase__stack picture { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.showcase__stack picture.on { opacity: 1; }
.chapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s ease; }
.chapter.on { opacity: 1; }
.chapter > .phone { display: none; }
.chapter p:not(.eyebrow) { font-size: 18px; color: var(--text2); margin: 14px 0 22px; max-width: 470px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 15px; height: 8px; border-left: 2.2px solid var(--accent-text); border-bottom: 2.2px solid var(--accent-text); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .showcase { display: block; }
  .showcase__stick { display: none; }
  .chapter { min-height: 0; opacity: 1; padding-bottom: 72px; }
  .chapter:last-child { padding-bottom: 0; }
  .chapter > .phone { --w: 230px; display: block; order: 3; margin: 36px auto 0; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; grid-column: span 3; min-height: 500px; padding: 32px 32px 0; border-radius: 30px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tile p { color: var(--text2); margin-top: 8px; max-width: 420px; }
.tile__phones { flex: 1; display: flex; justify-content: center; align-items: flex-start; gap: 34px; margin-top: 30px; height: 0; min-height: 300px; }
.tile .phone { --w: 236px; transition: transform .6s var(--ease); }
.tile:hover .phone { transform: translateY(-10px); }
.tile--wide { grid-column: span 4; }
.tile--side { grid-column: span 2; }
.tile--wide .phone { --w: 226px; }
.tile--side .phone { --w: 214px; }
.tile--wide .phone:nth-child(2) { margin-top: 34px; }
@media (max-width: 960px) {
  .tile, .tile--wide, .tile--side { grid-column: span 6; min-height: 460px; }
  .tile--wide .phone:nth-child(2) { display: none; }
}
@media (max-width: 520px) { .tile { padding: 26px 24px 0; border-radius: 26px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 12%; top: 22px; height: 1px; background: var(--stroke); }
.steps li { position: relative; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; font: 650 16px/1 "Inter Tight", Inter, sans-serif; background: var(--yellow); color: #12122b; box-shadow: 0 0 0 8px var(--bg); }
.steps p { color: var(--text2); margin-top: 8px; font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { left: 22px; right: auto; top: 8px; bottom: 40px; width: 1px; height: auto; }
  .steps li { padding-left: 66px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* Trust: always dark. A redacted answer sheet beside the actual rules. */
.trust { position: relative; color: #f4f4f7; background: #0e0e13; overflow: clip; isolation: isolate; }
.trust::before { content: ""; position: absolute; z-index: -1; inset: -30% 40% auto -15%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 77, 255, .3), transparent); }
.trust .eyebrow { color: #b3a5ff; }
.trust .lead { color: #b2b2c2; }
.trust__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.redact { position: sticky; top: 104px; margin: 0; padding: 26px 26px 22px; border-radius: 10px; background: #f6f3ea; color: #12122b; transform: rotate(-1.4deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }
.redact figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid #12122b; font: 650 16px/1.2 "Inter Tight", Inter, sans-serif; }
.redact figcaption em { font: 700 11px/1 Inter, sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; color: #c81e4b; border: 1.5px solid #c81e4b; border-radius: 4px; transform: rotate(3deg); }
.redact ul { list-style: none; margin: 0; padding: 6px 0; }
.redact li { padding: 11px 0 12px; font-size: 13.5px; color: #5c5d6e; border-bottom: 1px dashed rgba(18, 18, 43, .18); }
.redact i { display: block; height: 15px; width: var(--w); margin-top: 7px; background: #12122b; transform-origin: left; }
.redact__out { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; font-size: 13.5px; color: #5c5d6e; }
.redact__out b { font: 700 24px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; color: #12122b; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.ledger li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.ledger b { font: 650 42px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.04em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.ledger p { color: #b2b2c2; font-size: 15px; margin-top: 6px; }
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .redact { position: relative; top: 0; }
  .ledger li { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .ledger b { font-size: 30px; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-layout .section-head { position: sticky; top: 110px; margin: 0; }
.faq details { border-bottom: 1px solid var(--stroke); interpolate-size: allow-keywords; }
.faq details:first-child { border-top: 1px solid var(--stroke); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 550; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.6px solid var(--text2); border-bottom: 1.6px solid var(--text2); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--text2); padding-bottom: 22px; font-size: 15.5px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } .faq-layout .section-head { position: static; } }

/* Final call to action */
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; min-height: 420px; padding: 64px; border-radius: 36px; overflow: hidden; color: #fff; background: radial-gradient(90% 130% at 100% 0, #e0389b 0, transparent 55%), radial-gradient(90% 130% at 62% 120%, #ffb400 0, transparent 50%), #2b1aa8; isolation: isolate; }
.final h2 { max-width: 480px; }
.final p { color: rgba(255, 255, 255, .84); margin: 14px 0 26px; font-size: 18px; max-width: 420px; }
.final__phone { position: absolute; right: 7%; top: 56px; }

.final__phone .phone { --w: 272px; transform: rotate(-5deg); }
@media (max-width: 860px) {
  .final { display: block; padding: 40px 28px 340px; }
  .final__phone { right: auto; left: 50%; top: auto; bottom: -190px; margin-left: -118px; }
  .final__phone .phone { --w: 236px; }
}

/* Footer */
footer { padding: 64px 0 40px; border-top: 1px solid var(--stroke); color: var(--text2); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .cols { width: 100%; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
footer .cols p { max-width: 280px; margin-top: 12px; }
footer h3 { font-size: 14px; color: var(--text); letter-spacing: -.005em; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--text); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll, only when JS runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .rise { animation: rise 1s var(--ease) var(--d, 0s) both; }
  .js .hero h1 mark::before { animation: wipe .9s var(--ease) .55s both; }
  .js .stage__a { animation: phoneIn 1.1s var(--ease) .1s both; }
  .js .stage__b { animation: fanOut 1.2s var(--ease) .5s both; }
  .js .dialcard { animation: cardIn .9s var(--ease) .35s both; }
  .js .dialcard__top em { animation: popIn .5s var(--ease) 2.1s both; }
  .js .redact i { transform: scaleX(0); transition: transform .55s var(--ease) calc(.25s + var(--d, 0s)); }
  .js .redact.in i { transform: none; }
}
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes phoneIn { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@keyframes fanOut { from { opacity: 0; translate: -130px 12px; rotate: -5deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes cardIn { from { opacity: 0; translate: 46px 30px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes popIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  .chapter { opacity: 1; }
  * { transition-duration: .01ms !important; }
}

/* Document pages: legal, help and the guide */
.doc { max-width: 760px; padding: 72px 24px 88px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); }
.doc .meta { color: var(--text2); font-size: 15px; margin: 14px 0 32px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text2); }
.doc p + p { margin-top: 12px; }
.doc .eyebrow { color: var(--accent-text); }
.doc a { color: var(--accent-text); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc .card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 26px; margin: 20px 0; }
.doc .card h2 { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--text2); }
.crumbs { font-size: 14px; color: var(--text2); margin-bottom: 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.table-scroll { overflow-x: auto; }
.path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text2); margin-top: 16px; }
.path span { background: var(--surface2); color: var(--text); padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* Blog */
.blog { padding-top: 64px; padding-bottom: 96px; }
.blog h1 { font-size: clamp(38px, 5vw, 58px); }
.blog .lead { margin: 14px 0 44px; max-width: 620px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard { display: flex; flex-direction: column; padding-bottom: 20px; border-radius: 22px; overflow: hidden; text-decoration: none; background: var(--surface); border: 1px solid var(--stroke); transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pcard img { width: 100%; height: auto; }
.pcard h3 { padding: 16px 20px 0; font-size: 19px; line-height: 1.25; color: var(--text); }
.pcard p { padding: 8px 20px 0; font-size: 14.5px; line-height: 1.5; color: var(--text2); flex: 1; }
.doc .pcard p { margin: 0; }
.pcard span { padding: 12px 20px 0; font-size: 13px; color: var(--text2); }
.post { max-width: 740px; }
.post__cover { width: 100%; height: auto; border-radius: 20px; margin-bottom: 30px; }
.post h3 { margin: 26px 0 8px; font-size: 20px; }
.post p, .post li { font-size: 17px; line-height: 1.7; }
.post .note { padding: 14px 18px; border-radius: 14px; background: var(--surface2); font-size: 15px; }
.post pre { margin: 12px 0 18px; padding: 16px 18px; border-radius: 14px; overflow-x: auto; background: #0e0e13; color: #e9e9f2; font: 13.5px/1.6 ui-monospace, Consolas, monospace; }
.post__cta { margin-top: 48px; padding: 30px; border-radius: 24px; color: #fff; background: radial-gradient(90% 130% at 100% 0, #e0389b 0, transparent 55%), #2b1aa8; }
.post__cta h2 { margin: 0 0 8px; color: #fff; }
.post__cta p { color: rgba(255, 255, 255, .85); margin-bottom: 18px; }
.post__rel .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid, .post__rel .pgrid { grid-template-columns: minmax(0, 1fr); } .post p, .post li { font-size: 16.5px; } }

/* APIs and widgets */
.dev { max-width: 1120px; margin: 0 auto; padding: 72px 24px 88px; }
.dev__head { max-width: 760px; }
.dev h1 { font-size: clamp(36px, 5vw, 54px); }
.dev__lede { margin-top: 16px; color: var(--text2); font-size: 19px; line-height: 1.5; }
.dev__jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 550; }
.dev__jump a { color: var(--accent-text); }
.dev h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.dev h3 { font-size: 18px; letter-spacing: -.01em; margin: 30px 0 8px; }
.builder { margin-top: 56px; scroll-margin-top: 90px; }
.seg { display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--surface2); }
.seg button { padding: 9px 20px; border: 0; border-radius: 999px; background: none; color: var(--text2); font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--yellow); color: #12122b; }
.seg--s { margin-top: 6px; }
.seg--s button { padding: 8px 15px; font-size: 14px; }
.set { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 18px; padding: 24px; border-radius: 24px; background: #f2f0e9; }
.set[hidden] { display: none; }
.builder[data-stage="dark"] .set { background: #0b0b0f; }
.builder[data-stage="light"] .set { background: #f2f0e9; }
.wid { margin: 0; min-width: 0; max-width: 100%; }
.wid iframe { display: block; max-width: 100%; border: 0; border-radius: 18px; color-scheme: normal; }
.wid figcaption { margin-top: 10px; }
.wid button { display: block; width: 100%; padding: 9px 12px; border: 1.5px solid transparent; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer; }
.builder[data-stage="dark"] .wid button { color: #f4f4f7; }
.builder[data-stage="light"] .wid button { color: #12122b; }
.wid b { display: block; font-size: 15px; font-weight: 650; }
.wid span { display: block; max-width: 300px; font-size: 13px; line-height: 1.35; opacity: .7; }
.wid.is-on button { border-color: var(--yellow); background: rgba(255, 230, 0, .16); }
.builder__note { margin-top: 10px; color: var(--text2); font-size: 13.5px; }
.get { margin-top: 26px; }
.get__opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; margin-bottom: 14px; }
.get__opts label, .get__opts legend { display: block; padding: 0; font-size: 14px; font-weight: 600; }
.get__opts fieldset { margin: 0; padding: 0; border: 0; }
.handle { display: flex; align-items: center; margin-top: 6px; padding: 0 14px; height: 44px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface); }
.handle:focus-within { border-color: var(--accent-text); }
.handle i { color: var(--text2); font-style: normal; }
.handle input { width: 210px; max-width: 60vw; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px Inter, system-ui, sans-serif; }
.get__hint { margin-top: 10px; color: var(--text2); font-size: 14px; }
.code { position: relative; margin: 12px 0; border-radius: 16px; background: #12122b; color: #e9e9f2; }
.code pre { margin: 0; padding: 18px 76px 18px 18px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; }
.get .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code__copy { position: absolute; top: 10px; right: 10px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--yellow); color: #12122b; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.dev__docs { max-width: 760px; margin-top: 72px; }
.dev__docs > section { margin-top: 56px; scroll-margin-top: 90px; }
.dev__docs > section:first-child { margin-top: 0; }
.dev__docs p, .dev__docs li { color: var(--text2); }
.dev__docs h2 + p, .dev__docs h3 + p { margin-top: 8px; }
.dev__docs .code + p, .dev__docs p + p { margin-top: 12px; }
.dev__docs :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--surface2); color: var(--text); font: 13.5px ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; overflow-wrap: anywhere; }
.dev__docs a { color: var(--accent-text); }
.dev__docs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dev__docs th, .dev__docs td { padding: 11px 10px; border-bottom: 1px solid var(--stroke); text-align: left; vertical-align: top; color: var(--text2); }
.dev__docs th { color: var(--text); font-weight: 600; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.limits div { padding: 18px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface); }
.limits b { display: block; font: 700 38px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; }
.limits span { display: block; margin-top: 8px; color: var(--text2); font-size: 14px; line-height: 1.4; }
.pp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.pp > div { padding: 20px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface); }
.pp h3 { margin: 0 0 8px; }
.pp ul { margin: 0; padding-left: 18px; }
.pp li { margin: 6px 0; font-size: 15px; }
.dev__faq .faq { margin-top: 14px; }
.dev__docs .post__cta p, .dev__docs .post__cta a:not(.play) { color: rgba(255, 255, 255, .9); }
.dev__docs .post__cta a:not(.play) { text-decoration: underline; }
.dev a.play { color: #12122b; }
@media (max-width: 640px) {
  .dev { padding-top: 48px; }
  .set { padding: 14px; }
  .wid { width: 100%; }
  .limits, .pp { grid-template-columns: 1fr; }
}
