/* MarkdownGallery landing — couleurs et typo alignées sur l'app (Ink & Tide) */
:root {
  --ink: #1a2422;
  --ink-soft: #435049;
  --ink-faint: #6b7873;
  --teal: #2e8c85;
  --teal-deep: #1f6a65;
  --teal-bg: #e1efec;
  --indigo: #596bd9;
  --indigo-deep: #4653b0;
  --indigo-bg: #eef0fa;
  --green: #389e61;
  --green-bg: #e3f4e9;
  --amber: #d98533;
  --amber-bg: #fbeedd;
  --paper: #f7faf9;
  --paper-deep: #eef4f2;
  --mist: #e6eef0;
  --sage: #d9e8e4;
  --line: rgba(26, 36, 34, 0.12);
  --line-soft: rgba(26, 36, 34, 0.08);
  --shadow: 0 18px 40px rgba(26, 36, 34, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--teal-bg);
  color: var(--teal-deep);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

mark {
  background: var(--amber-bg);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 0.15em;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ——— Top nav ——— */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
}

.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mark i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  display: block;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(26, 36, 34, 0.05);
}

.nav-links a.solid {
  background: var(--teal);
  color: #fff;
}

.nav-links a.solid:hover {
  background: var(--teal-deep);
}

.nav-links a.lang-switch {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-soft);
  padding: 6px 10px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 96px 0 64px;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(46, 140, 133, 0.16), transparent 55%),
    radial-gradient(800px 480px at 4% 30%, rgba(89, 107, 217, 0.08), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 55%, var(--sage) 100%);
  overflow: hidden;
}

.hero-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 88px;
  }
}

.brand-display {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  margin: 0 0 20px;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title {
  max-width: none;
  width: 100%;
  font-size: clamp(26px, 3.6vw, 40px);
}

.hero-aside {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-aside code {
  font-size: 0.85em;
}

/* ——— Price + store badge ——— */
.price-line {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.price-line strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.price-line .sep {
  opacity: 0.4;
  margin: 0 8px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px 8px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(26, 36, 34, 0.12);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge.is-soon,
.store-badge[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.store-badge .copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge .copy .tiny {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.8;
}

.store-badge .copy .label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ——— Hero product mockup (fake window) ——— */
.stage {
  margin-top: 8px;
  animation: rise 0.9s var(--ease) both 0.1s;
}

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

.mockwin {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(26, 36, 34, 0.16);
}

.mockwin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.r {
  background: #ec6a5e;
}

.dot.y {
  background: #f4bf4f;
}

.dot.g {
  background: #61c554;
}

.mockwin-search {
  margin-left: 14px;
  flex: 1;
  max-width: 320px;
  font-size: 12.5px;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
}

.mockwin-sort {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.mockwin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, var(--paper));
}

@media (max-width: 760px) {
  .mockwin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mtile {
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  padding: 12px 13px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(26, 36, 34, 0.05);
}

.mtile--note {
  background: linear-gradient(180deg, #fffefb, #f8f4ec);
}

.mtile--plan {
  background: linear-gradient(180deg, #fbfbff, var(--indigo-bg));
}

.mtile header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.mtile .h {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.mtile h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.mtile p,
.mtile ul {
  margin: 0;
  color: var(--ink-soft);
}

.mtile ul {
  padding-left: 1.05em;
}

.mtile pre {
  margin: 0;
  padding: 6px 7px;
  background: rgba(26, 36, 34, 0.06);
  border-radius: 6px;
  overflow: hidden;
  font-size: 10.5px;
}

.mtile footer {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  color: var(--ink-faint);
}

.plan-badge {
  display: inline-block;
  color: var(--indigo-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.prog {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--indigo-deep);
  background: rgba(89, 107, 217, 0.14);
  padding: 1px 6px;
  border-radius: 20px;
}

/* ——— Bands / sections ——— */
section.band {
  padding: 80px 0;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 20ch;
}

.lede {
  margin: 0 0 12px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.lede-note {
  margin: 0;
  max-width: 52ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

.band-problem {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}

/* ——— Features — alternating rows ——— */
.band-features {
  background: #fff;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}

.feat-row:first-of-type {
  border-top: none;
  padding-top: 12px;
}

.feat-row.reverse .feat-copy {
  order: 2;
}

.feat-row.reverse .feat-visual {
  order: 1;
}

@media (max-width: 800px) {
  .feat-row,
  .feat-row.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feat-row.reverse .feat-copy,
  .feat-row.reverse .feat-visual {
    order: unset;
  }
}

.feat-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feat-copy p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-bg);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.viz {
  background: linear-gradient(150deg, var(--paper-deep), var(--sage));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.viz-tiles {
  gap: 10px;
}

.vtile {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vtile .vh {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.vtile strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.vtile .vline {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.viz-search {
  gap: 8px;
}

.search-input {
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}

.search-result {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result strong {
  font-size: 13px;
}

.search-result span {
  font-size: 12px;
  color: var(--ink-faint);
}

.viz-folders {
  padding: 16px;
}

.vf-sidebar {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  font-size: 13px;
}

.vf-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 8px 4px;
}

.vf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}

.vf-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.vf-row.active {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.vf-row.active em {
  color: rgba(255, 255, 255, 0.8);
}

.vf-row.drop {
  background: rgba(42, 157, 143, 0.12);
  outline: 1.5px dashed var(--teal);
}

.vf-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vf-dot.mute {
  background: var(--ink-faint);
  opacity: 0.45;
}

.vf-drop-hint {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
}

.viz-plan {
  align-items: center;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.plan-meta {
  font-size: 12px;
  color: var(--ink-faint);
}

.privacy-mini ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-mini li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ——— Pour qui / platforms grid ——— */
.band-platforms {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .plat-grid {
    grid-template-columns: 1fr;
  }
}

.plat {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 22px;
  min-height: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 36, 34, 0.08);
}

.plat .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-bg);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.plat h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.plat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ——— Story / quote ——— */
.band-story {
  background: var(--paper);
}

.story-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .story-panel {
    grid-template-columns: 1fr;
  }
}

.quote {
  background: var(--ink);
  color: #eef4f2;
  border-radius: 20px;
  padding: 32px 30px;
  margin: 0;
}

.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  color: #eaf4f1;
}

.quote code {
  background: rgba(255, 255, 255, 0.14);
  color: #cdeee9;
}

.quote footer {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(238, 244, 242, 0.6);
}

.privacy {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.privacy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.privacy ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.privacy li:first-child {
  border-top: none;
}

.privacy li strong {
  color: var(--ink);
  font-weight: 700;
}

.check2 {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* ——— Bottom CTA ——— */
.bottom {
  background: var(--ink);
  color: #f0f5f3;
  padding: 56px 0;
}

.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 26px;
}

.bottom h2 {
  margin: 0 0 8px;
  color: #fff;
  max-width: 18ch;
}

.bottom p {
  margin: 0;
  max-width: 36ch;
  color: rgba(240, 245, 243, 0.62);
  font-size: 14.5px;
  line-height: 1.5;
}

.bottom .store-note {
  margin-top: 10px;
  color: rgba(240, 245, 243, 0.5);
}

/* ——— Footer ——— */
footer.site {
  padding: 22px 0 34px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(240, 245, 243, 0.45);
}

footer.site a {
  color: rgba(240, 245, 243, 0.72);
}

footer.site a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ——— Legal pages ——— */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--ink);
  color: #fff;
}

.legal-topbar a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.legal-topbar .back {
  font-weight: 500;
  opacity: 0.75;
  font-size: 14px;
  font-family: var(--font-body);
}

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 72px;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
  max-width: none;
  color: var(--ink);
}

.legal-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 32px;
}

.legal-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 18px;
}

.legal-nav ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  max-width: none;
  margin: 34px 0 12px;
}

.legal-wrap h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.legal-wrap ul {
  padding-left: 1.2em;
}

.legal-wrap li {
  margin: 6px 0;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage {
    animation: none;
  }
}
