/* Kredo homepage (/). The legal pages keep /assets/styles.css. References: Copilot Money (dark hero, one huge
   headline, product objects floating around it, one call to action) and Apple Card (short statements over a
   grid of big tiles, each tile one idea). Art is the app's own 3D illustrations; purple is the app's #7C4DFF. */

:root {
  color-scheme: light;
  --ink: #15131f;
  --ink-2: #16132a;
  --violet: #7c4dff;
  --violet-deep: #6633ea;
  --violet-soft: #efe9ff;
  --blue: #4f7bff;
  --text: #15131f;
  --muted: #6b6878;
  --line: #e9e6f2;
  --page: #f7f6fb;
  --tile: #ffffff;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Nav (sits on the dark hero, turns light once scrolled) ───────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .25s, border-color .25s; color: var(--text); border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); color: var(--text); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .72; }
.nav-links a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 10px 18px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #16162a; color: #fff; }
.btn--light:hover { background: #2a2a44; }
.btn--violet { background: #16162a; color: #fff; padding: 15px 26px; font-size: 17px; }
.btn--violet:hover { background: #2a2a44; }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--text); text-align: center;
  background:
    radial-gradient(760px 460px at 50% 78%, rgba(124, 77, 255, .20), transparent 70%),
    radial-gradient(620px 380px at 85% 10%, rgba(111, 155, 255, .14), transparent 70%),
    radial-gradient(560px 360px at 10% 30%, rgba(182, 156, 255, .16), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f6f2ff 100%);
  padding: 150px 0 400px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .pill { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--violet-deep); background: var(--violet-soft); border: 1px solid rgba(124, 77, 255, .22); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(52px, 8.4vw, 118px); line-height: .96; letter-spacing: -0.045em; font-weight: 700; margin: 0 auto; max-width: 11ch; }
.hero h1 span { background: linear-gradient(92deg, #9a6bff, #7c4dff 45%, #4f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 21px; color: var(--muted); max-width: 34ch; margin: 26px auto 34px; }
.hero .note { font-size: 14px; color: #8b88a0; margin: 14px 0 0; }

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { position: absolute; filter: drop-shadow(0 30px 36px rgba(60, 40, 140, .22)); }
.art-cards { width: 580px; left: 50%; bottom: -170px; transform: translateX(-50%); }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(255, 255, 255, .82); border: 1px solid rgba(124, 77, 255, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 18px; padding: 12px 16px; color: var(--text); box-shadow: 0 20px 40px -22px rgba(60, 40, 140, .35); animation: float 6.5s ease-in-out infinite; }
.chip i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; background: var(--violet); color: #fff; }
.chip small { display: block; font-size: 12px; color: var(--muted); }
.chip b { display: block; font-size: 15px; font-weight: 600; }
.chip--best { left: 15%; bottom: 110px; animation-delay: -1.5s; }
.chip--promo { right: 14%; bottom: 170px; animation-delay: -4s; }
.chip--promo i { background: #22b573; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Statement strip ─────────────────────────────────────────────────── */
.statement { padding: 130px 0 40px; text-align: center; }
.statement h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 700; max-width: 17ch; margin: 0 auto; }
.statement h2 em { font-style: normal; color: var(--muted); }

/* ── Bento ───────────────────────────────────────────────────────────── */
.bento { padding: 60px 0 120px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; background: var(--tile); border-radius: 32px; padding: 40px; min-height: 380px; display: flex; flex-direction: column; }
.tile h3 { font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 700; max-width: 16ch; }
.tile p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; font-size: 17px; }
.tile .k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-deep); margin: 0 0 14px; }
.t-cards { grid-column: span 4; background: radial-gradient(520px 360px at 85% 100%, rgba(124, 77, 255, .18), transparent 70%), linear-gradient(160deg, #ffffff, #f1ebff); min-height: 560px; }
.t-cards .phone--peek { right: 56px; }
.t-cards p { color: var(--muted); }
.t-promos { grid-column: span 2; background: var(--violet-soft); min-height: 560px; }
.t-promos .phone--peek { left: 50%; right: auto; transform: translateX(-50%); top: 250px; }
.t-ask { grid-column: span 3; min-height: 560px; }
.t-analytics { grid-column: span 3; min-height: 560px; }
.t-import { grid-column: span 6; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.t-import .modes { margin-top: 0; }
.t-privacy { grid-column: span 6; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }

/* Card stack drawn in CSS: generic cards, no issuer marks. */
.stack { position: absolute; right: 36px; bottom: 36px; width: 380px; height: 300px; transform: scale(.86); transform-origin: 100% 100%; }
.cc { position: absolute; width: 330px; aspect-ratio: 1.586; border-radius: 20px; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.cc .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .85; }
.cc .chipc { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e9d9a8, #b89a52); }
.cc .num { font-size: 17px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.cc--1 { background: linear-gradient(135deg, #2a2540, #0f0d1c); right: 0; top: 0; border: 1px solid rgba(255, 255, 255, .08); }
.cc--2 { background: linear-gradient(135deg, #9a7bff, #5b33e0); right: 30px; top: 70px; }
.cc--3 { background: linear-gradient(135deg, #7aa2ff, #3c63e6); right: 60px; top: 140px; }
.due { margin-top: auto; display: grid; gap: 10px; max-width: 280px; position: relative; z-index: 1; }
.due > div { display: flex; justify-content: space-between; font-size: 15px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.due span { color: #a9a5ba; }
.due b { font-weight: 600; }
.due .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 2px; }
.due .bar i { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, #9a7bff, #6f9bff); border-radius: 6px; }

.t-ask .chat { margin-top: auto; display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.4; }
.bubble--me { justify-self: end; background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.bubble--k { background: var(--page); border-bottom-left-radius: 6px; }
.src { display: inline-flex; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--violet-deep); background: var(--violet-soft); padding: 4px 10px; border-radius: 999px; }
.t-import .modes { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode { border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.mode b { display: block; font-size: 16px; }
.mode span { font-size: 14px; color: var(--muted); }
.mode--on { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.t-privacy .facts { display: grid; gap: 18px; }
.t-privacy .facts p { margin: 0; font-size: 17px; color: var(--muted); max-width: none; }
.t-privacy .facts b { color: var(--text); }
.t-privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.t-privacy li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.t-privacy li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 2.9 6-6.2' fill='none' stroke='%236633ea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.t-privacy li b { display: block; }
.t-privacy li span { color: var(--muted); font-size: 16px; }

/* ── Closing ─────────────────────────────────────────────────────────── */
.close { padding: 0 0 100px; }
.close .wrap > div {
  position: relative; overflow: hidden; border-radius: 40px; color: var(--text); text-align: center; padding: 96px 32px 0;
  background: radial-gradient(640px 380px at 50% 105%, rgba(124, 77, 255, .28), transparent 70%), linear-gradient(180deg, #ffffff, #efe9ff);
  border: 1px solid var(--line);
}
.close h2 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.04em; line-height: 1; margin: 0 auto; max-width: 13ch; }
.close p { color: var(--muted); font-size: 19px; margin: 18px auto 32px; max-width: 36ch; }
.close img { width: 300px; margin: 48px auto -120px; filter: drop-shadow(0 30px 36px rgba(60, 40, 140, .25)); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 48px; font-size: 15px; color: var(--muted); background: #fff; }
.foot .top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--text); }
.foot nav a:hover { color: var(--violet-deep); }
.foot .fine { margin: 28px 0 0; font-size: 13px; line-height: 1.6; max-width: 90ch; }
.foot .fine a { color: var(--violet-deep); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero { padding: 120px 0 330px; }
  .art-cards { width: 440px; bottom: -120px; }
  .chip--best { left: 8px; bottom: 150px; }
  .chip--promo { right: 8px; bottom: 230px; }
  .grid { grid-template-columns: 1fr; }
  .t-cards, .t-promos, .t-ask, .t-import, .t-privacy { grid-column: auto; }
  .t-cards { min-height: 690px; }
  .stack { left: 50%; right: auto; transform: translateX(-50%) scale(.8); transform-origin: 50% 100%; bottom: 20px; }
  .due { margin-top: 28px; }
  .t-privacy { grid-template-columns: 1fr; }
  .statement { padding-top: 96px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .tile { padding: 28px; border-radius: 26px; }
  .hero { padding-bottom: 290px; }
  .art-cards { width: 360px; bottom: -100px; }
  .chip { padding: 9px 12px; }
  .chip i { width: 30px; height: 30px; }
  .chip { display: none; }
  .t-cards { min-height: 700px; }
  .stack { transform: translateX(-50%) scale(.72); }
  .t-import .modes { grid-template-columns: 1fr; }
  .close .wrap > div { border-radius: 28px; padding-top: 64px; }
}

/* A real screenshot in a phone frame, rising out of the tile's bottom edge. */
.phone--peek { position: absolute; right: 40px; top: 210px; width: 250px; border-radius: 40px; background: #111; padding: 8px; box-shadow: 0 30px 60px -28px rgba(12, 10, 23, .55), inset 0 0 0 2px #2b2a28; }
.phone--peek img { border-radius: 32px; width: 100%; }
.t-cards .phone--peek { top: 60px; width: 270px; }
.t-cards h3, .t-cards p, .t-cards .k { max-width: 300px; }
.t-ask .phone--peek, .t-analytics .phone--peek { top: 270px; left: 50%; right: auto; transform: translateX(-50%); }
@media (max-width: 980px) {
  .t-cards, .t-promos, .t-ask, .t-analytics { min-height: 620px; }
  .t-cards .phone--peek, .t-promos .phone--peek, .t-ask .phone--peek, .t-analytics .phone--peek { top: 250px; left: 50%; right: auto; transform: translateX(-50%); width: 240px; }
  .t-cards h3, .t-cards p, .t-cards .k { max-width: none; }
  .t-import { grid-template-columns: 1fr; }
  .grid > .tile { grid-column: 1 / -1; }
}

/* Laurel stat badges: the slot a star rating fills once there are reviews. Numbers come from the live catalogue. */
.awards { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 44px; margin: 40px auto 0; }
.award { display: flex; align-items: center; gap: 6px; color: var(--violet-deep); }
.award .laurel { width: 33px; height: 70px; flex: none; }
.award .laurel--r { transform: scaleX(-1); }
.award div { display: grid; text-align: center; line-height: 1.1; min-width: 104px; }
.award b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.award span { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* Supported issuers as plain names (no logos: logos would read as partnership). */
.issuers { padding: 56px 0 0; text-align: center; }
.issuers p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; flex: none; gap: 56px; margin: 0; padding: 0 28px; list-style: none; animation: marquee 48s linear infinite; }
.marquee li { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #9c98ad; white-space: nowrap; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; flex: 1; gap: 14px 32px; }
  .marquee ul[aria-hidden] { display: none; }
}
@media (max-width: 480px) {
  .awards { flex-wrap: nowrap; gap: 2px; margin-top: 30px; }
  .award { gap: 1px; }
  .award div { min-width: 0; width: 74px; }
  .award b { font-size: 19px; }
  .award span { font-size: 11px; line-height: 1.2; }
  .award .laurel { width: 17px; height: 38px; }
}

.t-map { grid-column: span 6; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.t-map-copy { align-self: center; }
.t-map-media { position: relative; }
.t-map .phone--peek { top: 20px; right: 40px; left: auto; transform: none; }
@media (max-width: 980px) {
  .t-map { display: block; min-height: 700px; }
  .t-map-media { position: static; }
  .t-map .phone--peek { top: 260px; left: 50%; right: auto; transform: translateX(-50%); }
}
