/*
 * SketchAI website. The art direction of the app's onboarding and premium screens (PremiumArt.kt):
 * brand gradient with manga speed lines and screentone, Poppins headlines with a yellow accent,
 * white cards leaning like stickers, yellow call to action.
 */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-black.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  /* Brand (PremiumArt.kt, Color.kt) */
  --violet: #5c34ec;
  --violet-deep: #4421c2;
  --purple: #9642ee;
  --pink: #f654a4;
  --night: #220c4a;
  --yellow: #ffe05c;
  --yellow-top: #ffe97a;
  --yellow-bottom: #ffc93c;
  --ink: #2b1d52;
  --ink-2: #544a74;
  --ink-3: #7a7198;
  --muted: #a8a1c2;
  --soft: #f0eaff;
  --pale: #f7f4ff;
  --border: #e6e0f5;
  --green: #48bb78;
  --phase-1: #3182ce;
  --phase-2: #805ad5;
  --phase-3: #dd6b20;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --shadow-card: 0 24px 50px -24px rgba(34, 12, 74, 0.45);
  --shadow-soft: 0 12px 30px -16px rgba(34, 12, 74, 0.3);
  --brand-gradient: linear-gradient(152deg, var(--violet) 0%, var(--purple) 55%, var(--pink) 100%);
  --app-background: linear-gradient(160deg, #f0eaff 0%, #f7f3ff 55%, #fcf1f8 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--pale);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--yellow); color: var(--night); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- The store background: gradient, glow, speed lines, screentone ---------- */

.store-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--brand-gradient);
}
.store-bg::before {
  /* The glow and the speed lines around the hero (storeBackground's focus) */
  content: "";
  position: absolute;
  left: 50%;
  top: var(--focus-y, 30%);
  width: max(230vmax, 1800px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.09) 18%, transparent 32%),
    url("../img/speedlines.svg") center / contain no-repeat;
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
}
.store-bg::after {
  /* Screentone dots in the top-left and bottom-right corners */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 2.2px, transparent 2.8px) 0 0 / 22px 22px,
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 2.2px, transparent 2.8px) 11px 11px / 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 0, transparent min(42vw, 520px)), radial-gradient(circle at 100% 100%, #000 0, transparent min(46vw, 560px));
  mask-image: radial-gradient(circle at 0 0, #000 0, transparent min(42vw, 520px)), radial-gradient(circle at 100% 100%, #000 0, transparent min(46vw, 560px));
  z-index: -1;
  pointer-events: none;
}

.pastel { background: var(--app-background); }

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

.hl {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 3px 10px rgba(34, 12, 74, 0.45);
  text-wrap: balance;
}
.hl em { font-style: normal; color: var(--yellow); }

.title {
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 48px);
  text-wrap: balance;
}
.title em {
  font-style: normal;
  color: var(--violet);
  background: linear-gradient(transparent 64%, rgba(255, 224, 92, 0.8) 64%, rgba(255, 224, 92, 0.8) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 2px;
}
.store-bg .title { color: #fff; text-shadow: 0 3px 10px rgba(34, 12, 74, 0.45); }
.store-bg .title em { color: var(--yellow); background: none; padding: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--soft);
}
.store-bg .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); }

.lead { margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 60ch; }
.store-bg .lead { color: rgba(255, 255, 255, 0.92); }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn-yellow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom));
  color: var(--night);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 30px -12px rgba(34, 12, 74, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-yellow::after {
  /* The paywall's light, sweeping across now and then */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 3.4s cubic-bezier(0.4, 0, 0.2, 1) 1s infinite;
  z-index: -1;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(34, 12, 74, 0.75); }
.btn-yellow svg { width: 22px; height: 22px; flex: none; }
.btn-yellow.small { height: 42px; padding: 0 18px; font-size: 15px; gap: 6px; }
.btn-yellow.small svg { width: 18px; height: 18px; }
.btn-yellow[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn-yellow[aria-disabled="true"]::after { animation: none; }

@keyframes shine {
  0% { transform: translateX(-130%); }
  47%, 100% { transform: translateX(160%); }
}

.badge-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 16px;
  border-radius: 14px;
  background: #0b0616;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}
.badge-play:hover { transform: translateY(-2px); }
.badge-play svg { width: 28px; height: 30px; flex: none; }
.badge-play span { display: grid; line-height: 1.1; }
.badge-play small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.badge-play strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(34, 12, 74, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid rgba(255, 255, 255, 0.7); object-fit: cover; }
.brand span { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.lang-switch button {
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--night); }

@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .site-header .btn-yellow.small { display: none; }
}

/* ---------- Hero: the welcome screen of the onboarding, at the scale of the web ---------- */

.hero {
  --focus-y: 40%;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--brand-gradient);
}

.sketch-columns {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.sketch-columns .cols {
  --colw: clamp(118px, 12vw, 200px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 16px);
  transform: translate(-50%, -50%) rotate(-10deg);
}
.sketch-columns .col { flex: none; width: var(--colw); height: 100%; overflow: hidden; }
.sketch-columns .strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: strip-up var(--dur, 60s) linear infinite;
  animation-delay: calc(var(--start, 0) * var(--dur, 60s) * -1);
}
.sketch-columns .col.down .strip { animation-name: strip-down; }
.sketch-columns .strip img { width: 100%; height: auto; flex: none; }

@keyframes strip-up { from { transform: translateY(0); } to { transform: translateY(-33.3333%); } }
@keyframes strip-down { from { transform: translateY(-33.3333%); } to { transform: translateY(0); } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 12, 74, 0.94) 0%, rgba(34, 12, 74, 0.86) 32%, rgba(34, 12, 74, 0.35) 58%, rgba(34, 12, 74, 0) 76%),
    linear-gradient(180deg, rgba(34, 12, 74, 0.55) 0%, rgba(34, 12, 74, 0) 18%, rgba(34, 12, 74, 0) 80%, rgba(34, 12, 74, 0.6) 100%);
}

.hero-copy { max-width: 660px; }
.hero .hl { font-size: clamp(44px, 6.6vw, 82px); }
.hero .lead { font-size: clamp(17px, 1.8vw, 20px); max-width: 34ch; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.chip svg { width: 17px; height: 17px; color: var(--yellow); flex: none; }

@media (max-width: 760px) {
  /* Like the app's welcome screen: the sketches on top, the text below on the brand's night */
  .hero { align-items: flex-end; min-height: 100svh; padding: 300px 0 40px; text-align: center; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(34, 12, 74, 0.5) 0, rgba(34, 12, 74, 0) 70px, rgba(34, 12, 74, 0) 170px, rgba(34, 12, 74, 0.86) 330px, rgba(34, 12, 74, 0.95) 100%);
  }
  .hero .eyebrow { font-size: 11px; }
  .hero .lead { font-size: 16px; }
  .cta-row { margin-top: 26px; gap: 12px; }
  .hero-chips { gap: 8px; margin-top: 22px; }
  .hero-chips .chip { font-size: 12.5px; padding: 6px 11px; gap: 6px; }
  .hero-chips .chip svg { width: 15px; height: 15px; }
  .hero-copy { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .hero-chips { justify-content: center; }
  .cta-row .btn-yellow { width: 100%; max-width: 420px; }
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.how-grid .section-head { text-align: left; margin: 0 0 32px; }
.how-grid .section-head .lead { margin-inline: 0; }

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.steps h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 800; }
.steps p { margin: 0; font-family: var(--font-body); font-weight: 400; color: var(--ink-2); font-size: 15.5px; }

.how-visual { position: relative; }
.how-visual .photo {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
}
.how-visual .sticker { position: absolute; }
.how-visual .sticker.a { left: -28px; bottom: 36px; transform: rotate(-6deg); }
.how-visual .sticker.b { right: -18px; top: 26px; transform: rotate(5deg); }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -10px rgba(34, 12, 74, 0.7);
}
.pill-tag.yellow { background: var(--yellow); color: var(--night); }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-visual { max-width: 460px; margin-inline: auto; }
  .how-visual .sticker.a { left: -6px; }
  .how-visual .sticker.b { right: -6px; }
}

/* ---------- Onboarding demo: the app's four first screens in a phone ---------- */

.onboarding { --focus-y: 45%; }
.onboarding-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 520px);
  justify-content: center;
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 300 / 630;
  border-radius: 46px;
  padding: 10px;
  background: #140728;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 40px 80px -30px rgba(10, 2, 30, 0.85),
    inset 0 0 0 2px #2a1550;
  flex: none;
}
.phone::before {
  /* side buttons */
  content: "";
  position: absolute;
  right: -4px;
  top: 150px;
  width: 4px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: #2a1550;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-display);
}
.phone-screen.store-bg::before { width: 900px; opacity: 0.42; }
.phone-screen.store-bg::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.4px, transparent 1.8px) 0 0 / 13px 13px,
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.4px, transparent 1.8px) 6.5px 6.5px / 13px 13px;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 0, transparent 160px), radial-gradient(circle at 100% 100%, #000 0, transparent 170px);
  mask-image: radial-gradient(circle at 0 0, #000 0, transparent 160px), radial-gradient(circle at 100% 100%, #000 0, transparent 170px);
}

.status-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(92, 52, 236, 0.55), transparent);
}
.status-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b0616;
  transform: translateX(-50%);
}
.status-bar svg { width: 46px; height: 12px; }

.ob-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.ob-screen.active { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }

/* Welcome */
.ob-welcome .sketch-columns .cols { --colw: 76px; gap: 8px; width: 135%; height: 125%; }
.ob-welcome .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(34, 12, 74, 0.8) 56%, rgba(34, 12, 74, 0.94) 100%);
}
.ob-welcome .content {
  position: relative;
  margin-top: auto;
  padding: 0 18px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ob-brand { display: inline-flex; align-items: center; gap: 7px; }
.ob-brand img { width: 26px; height: 26px; border-radius: 8px; border: 1.2px solid rgba(255, 255, 255, 0.7); }
.ob-brand span { font-weight: 900; font-size: 15px; }
.ob-welcome .hl { font-size: 27px; line-height: 1.12; margin-top: 9px; }
.ob-welcome p { margin: 9px 0 18px; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }

.ob-button {
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 24px;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom));
  color: var(--night);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(34, 12, 74, 0.8);
  text-decoration: none;
}
.ob-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -1;
}
.ob-button svg { width: 17px; height: 17px; }
.ob-button:disabled { opacity: 0.55; cursor: default; }
.ob-button:disabled::after { animation: none; }

/* Steps */
.ob-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  margin-top: 30px;
  padding: 0 10px;
  flex: none;
}
.ob-back {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}
.ob-back svg { width: 18px; height: 18px; }
.ob-progress { flex: 1; display: flex; gap: 5px; margin-right: 44px; }
.ob-progress i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: background-color 0.3s ease; }
.ob-progress i.on { background: var(--yellow); }

.ob-title { padding: 0 16px; text-align: center; }
.ob-title .hl { font-size: 20px; line-height: 1.15; }
.ob-title p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }

.ob-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.ob-footer { padding: 6px 14px 16px; flex: none; }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; padding: 18px 16px 0; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 6px 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(34, 12, 74, 0.6);
}
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cat-card span {
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--violet);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phases { display: flex; align-items: flex-end; gap: 6px; padding: 16px 12px 0; }
.phase { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phase:nth-child(2) { margin-bottom: 18px; }
.phase:nth-child(3) { margin-bottom: 36px; }
.phase img { width: 100%; aspect-ratio: 350 / 420; object-fit: contain; }
.phase-pill {
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--phase-1);
}
.phase:nth-child(2) .phase-pill { background: var(--phase-2); }
.phase:nth-child(3) .phase-pill { background: var(--phase-3); }
.phase strong { margin-top: 3px; font-size: 10px; line-height: 1.2; font-weight: 700; min-height: 2.4em; }
.ob-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 12px 10px 0; }
.ob-chips .chip { padding: 4px 9px; font-size: 10px; gap: 4px; }
.ob-chips .chip svg { width: 12px; height: 12px; }

.manga-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 7px;
  padding: 14px 14px 10px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
}
.manga-grid::-webkit-scrollbar { display: none; }
.manga-chip {
  height: 44px;
  padding: 0 8px;
  border-radius: 14px;
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.manga-chip svg { width: 13px; height: 13px; display: none; flex: none; }
.manga-chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.manga-chip[aria-pressed="true"] svg { display: block; }

.ob-done {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 12, 74, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.ob-done.show { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.ob-done-card {
  width: 100%;
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.ob-done-card img { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 10px; }
.ob-done-card strong { display: block; font-size: 18px; font-weight: 900; line-height: 1.2; }
.ob-done-card p { margin: 6px 0 14px; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.ob-done-card .again {
  margin-top: 10px;
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.ob-list { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.ob-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ob-list button:hover { background: rgba(255, 255, 255, 0.14); }
.ob-list button[aria-current="step"] { background: #fff; color: var(--ink); border-color: #fff; transform: translateX(6px); }
.ob-list .num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
  font-size: 16px;
}
.ob-list button[aria-current="step"] .num { background: var(--yellow); color: var(--night); }
.ob-list strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.ob-list span.txt { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; font-size: 14.5px; line-height: 1.45; opacity: 0.88; }
.ob-hint { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 8px; }
.ob-hint svg { width: 16px; height: 16px; color: var(--yellow); }

@media (max-width: 900px) {
  .onboarding-grid { grid-template-columns: 1fr; justify-items: center; }
  .onboarding-grid .section-head { text-align: center; }
  .ob-copy { max-width: 560px; }
  .ob-list button[aria-current="step"] { transform: none; }
}
@media (max-width: 360px) {
  .phone { --pw: 280px; }
}

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature .title { font-size: clamp(30px, 3.8vw, 44px); }

.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checks strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; }

.feature-visual { position: relative; display: flex; justify-content: center; }
.shot {
  width: min(100%, 400px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, -2deg));
  background: var(--violet);
}
.shot img { width: 100%; aspect-ratio: 1080 / 1548; object-fit: cover; }
.feature-visual .spark { position: absolute; color: var(--yellow); filter: drop-shadow(0 2px 4px rgba(34, 12, 74, 0.2)); }
.feature-visual .spark.violet { color: var(--violet); }

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  width: min(100%, 460px);
  padding: 26px;
  border-radius: 32px;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-card);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.sticker-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.8px, transparent 2.3px) 0 0 / 16px 16px,
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.8px, transparent 2.3px) 8px 8px / 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 55%), radial-gradient(circle at 100% 100%, #000, transparent 55%);
  mask-image: radial-gradient(circle at 0 0, #000, transparent 55%), radial-gradient(circle at 100% 100%, #000, transparent 55%);
}
.sticker-grid .cat-card { padding: 10px 10px 12px; border-radius: 20px; transition: transform 0.25s ease; }
.sticker-grid .cat-card:hover { transform: rotate(0deg) scale(1.05) !important; }
.sticker-grid .cat-card span { font-size: 11px; padding: 3px 10px; margin-top: 8px; }

@media (max-width: 480px) {
  .sticker-grid { padding: 18px; gap: 14px 10px; }
  .sticker-grid .cat-card { padding: 7px 7px 9px; border-radius: 16px; }
  .sticker-grid .cat-card span { font-size: 9.5px; padding: 3px 7px; margin-top: 6px; }
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { margin-top: 8px; }
}

/* ---------- Program ---------- */

.program { --focus-y: 22%; }
.program .chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

.phase-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 32px); align-items: end; }
.phase-col { display: flex; flex-direction: column; }
.phase-col:nth-child(2) { margin-bottom: 36px; }
.phase-col:nth-child(3) { margin-bottom: 72px; }
.phase-col > img { width: 72%; margin: 0 auto -10px; aspect-ratio: 350 / 420; object-fit: contain; position: relative; z-index: 1; }
.phase-card {
  padding: 24px 22px 22px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(10, 2, 30, 0.65);
}
.phase-card .phase-pill { display: inline-block; margin: 0; font-size: 11px; padding: 4px 10px; }
.phase-col:nth-child(2) .phase-pill { background: var(--phase-2); }
.phase-col:nth-child(3) .phase-pill { background: var(--phase-3); }
.phase-card h3 { margin: 10px 0 2px; font-size: 21px; font-weight: 900; line-height: 1.2; }
.phase-card .weeks { margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.phase-card ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.phase-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.phase-card li b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.session {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.session .shot { width: 100%; --tilt: -3deg; }
.session h3 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.blocks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 460px; }
.blocks li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.blocks li b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}
.blocks li span:last-child { color: var(--violet); font-weight: 900; font-size: 14px; }

.marquee-title { margin: clamp(64px, 9vw, 110px) 0 22px; text-align: center; font-size: 14px; font-weight: 900; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.85); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; padding-block: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  width: 240px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  flex: none;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 30px -18px rgba(10, 2, 30, 0.7);
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .phase-cols { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 28px; }
  .phase-col:nth-child(2), .phase-col:nth-child(3) { margin-bottom: 0; }
  .phase-col > img { width: 46%; }
  .session { grid-template-columns: minmax(0, 300px); justify-content: center; text-align: center; }
  .session .lead { margin-inline: auto; }
  .session .blocks { margin-inline: auto; text-align: left; }
}

/* ---------- PRO ---------- */

.pro-hero { width: min(100%, 620px); margin: 0 auto clamp(28px, 4vw, 44px); filter: drop-shadow(0 18px 30px rgba(34, 12, 74, 0.25)); }
.pro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: stretch; }

.compare {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.compare th.pro-col { color: var(--night); }
.compare th.pro-col span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
}
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td:first-child { font-weight: 700; font-size: 15px; }
.compare td small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.compare .pro-col { background: rgba(255, 224, 92, 0.16); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.compare .yes { background: var(--green); color: #fff; }
.compare .no { background: #f1eef8; color: var(--muted); }
.compare .yes svg, .compare .no svg { width: 15px; height: 15px; }
.compare .val { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.trial {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.trial h3 { margin: 0; font-size: 26px; }
.trial > p { margin: 6px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.9); }
.timeline { margin: 24px 0 26px; padding: 0; list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.timeline li:first-child .dot { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.timeline .dot svg { width: 17px; height: 17px; }
.timeline strong { display: block; font-size: 16px; font-weight: 900; }
.timeline span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; opacity: 0.9; }
.trial .btn-yellow { margin-top: auto; width: 100%; }
.trial .fine { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.8); font-weight: 600; }

@media (max-width: 900px) {
  .pro-grid { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 13px 12px; }
}

/* ---------- Store gallery ---------- */

.gallery-wrap { position: relative; }
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 30px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: none;
  width: clamp(220px, 24vw, 280px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-soft);
  background: var(--violet);
}
@media (min-width: 1240px) {
  .gallery { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); }
}
.gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.round-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.round-btn:hover { transform: translateY(-2px); background: var(--soft); }
.round-btn svg { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px -16px rgba(34, 12, 74, 0.4);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c34ec' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; font-family: var(--font-body); font-weight: 400; color: var(--ink-2); font-size: 16px; }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Final call to action ---------- */

.final { --focus-y: 50%; text-align: center; }
.final .app-icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 26px; border: 3px solid rgba(255, 255, 255, 0.8); box-shadow: 0 20px 40px -18px rgba(10, 2, 30, 0.8); }
.final .hl { font-size: clamp(34px, 5vw, 60px); max-width: 19ch; margin-inline: auto; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.78); padding: 56px 0 36px; font-size: 14.5px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-top p { margin: 12px 0 0; max-width: 36ch; font-family: var(--font-body); font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Legal pages ---------- */

.legal-hero { --focus-y: 0%; padding: calc(var(--header-h) + 56px) 0 64px; text-align: center; }
.legal-hero .hl { font-size: clamp(34px, 5vw, 54px); }
.legal-hero p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.88); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-block: 48px 96px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 900; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.toc a { text-decoration: none; color: var(--ink-2); font-weight: 700; }
.toc a:hover { color: var(--violet); }

.legal {
  padding: clamp(24px, 5vw, 56px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal h2 {
  font-family: var(--font-display);
  margin: 44px 0 12px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
}
.legal h2:first-of-type { margin-top: 28px; }
.legal h3 { font-family: var(--font-display); margin: 26px 0 8px; font-size: 17.5px; font-weight: 800; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--ink); }
.legal code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--pale); color: var(--ink); }
.legal a { color: var(--violet); font-weight: 600; overflow-wrap: anywhere; }
.legal .summary {
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
}
.legal .summary ul { margin: 8px 0 0; }
.legal .summary li { margin-bottom: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.legal th, .legal td { padding: 11px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal th { background: var(--pale); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 13.5px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .toc { position: static; }
}

/* ---------- Languages: content written per language ---------- */

html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sketch-columns .strip, .marquee-track, .btn-yellow::after, .ob-button::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
