/* The app's look (ui/theme/Theme.kt): Figtree, the seven days' colours, #0E0F14 by night and #F6F6F8 by day. */

@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree_extrabold.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #F6F6F8;
  --surface: #FFFFFF;
  --surface-2: #ECEDF1;
  --fg: #12131A;
  --muted: #5E6272;
  --line: #E3E5EB;
  --link: #C2401F;
  --todo-bg: #FFF6D9;
  --todo-fg: #6B5000;
  --button: #12131A;
  --on-button: #FFFFFF;
  /* The days: the cover's colour, then the text on it. */
  --lun: #5B7CFF; --on-lun: #0B1233;
  --mar: #FF6B4A; --on-mar: #2A0D05;
  --mer: #2EC4B6; --on-mer: #04231F;
  --jeu: #F2B705; --on-jeu: #2A1E00;
  --ven: #FF5C93; --on-ven: #2E0615;
  --sam: #5DBB63; --on-sam: #0B2410;
  --dim: #A9AEC0; --on-dim: #161926;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F14;
    --surface: #15171E;
    --surface-2: #1C1F28;
    --fg: #F2F3F7;
    --muted: #A0A4B4;
    --line: #23262F;
    --link: #FF8A6E;
    --todo-bg: #2A2107;
    --todo-fg: #F2B705;
    --button: #F2F3F7;
    --on-button: #0E0F14;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 17px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.faq { max-width: 760px; }

.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  border: 1px dashed currentColor;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
}

/* Header and footer */

.top { padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--fg); }

.bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-row { display: grid; gap: 18px; padding-block: 36px; }
.bottom-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.bottom-brand img { border-radius: 8px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bottom nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.bottom nav a:hover { color: var(--fg); }
.fine { color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }

/* Home */

.hero { padding-block: 32px 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.eyebrow { color: var(--link); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--button); color: var(--on-button); font-weight: 700; }

.hero-cover { margin: 0; display: grid; gap: 18px; min-width: 0; max-width: 100%; }
.hero-cover figcaption { display: grid; gap: 2px; }
.hero-cover figcaption strong { font-size: 1.3rem; font-weight: 700; }
.hero-cover figcaption span { color: var(--muted); }

.cover {
  position: relative;
  aspect-ratio: 684 / 540;
  max-width: 100%;
  border-radius: 28px;
  background: var(--c);
  color: var(--on);
  padding: 7% 7.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}
.cover-top { display: flex; justify-content: space-between; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.35rem); position: relative; z-index: 1; }
.cover-top span:last-child { opacity: 0.75; }
.cover-title { font-weight: 800; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 9em; position: relative; z-index: 1; }
.wave {
  position: absolute;
  inset: auto 2% 0 2%;
  height: 72%;
  display: flex;
  align-items: flex-end;
  gap: 1.6%;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.wave i { flex: 1; height: var(--h); background: var(--on); opacity: 0.16; border-radius: 99px 99px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .wave i { transform-origin: bottom; animation: breathe 3.2s ease-in-out infinite alternate; }
  .wave i:nth-child(3n) { animation-delay: -1.1s; }
  .wave i:nth-child(3n + 1) { animation-delay: -2.2s; }
}
@keyframes breathe { from { transform: scaleY(0.82); } to { transform: scaleY(1); } }
.play {
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: clamp(72px, 19%, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #F2F3F7;
  box-shadow: 0 10px 30px rgba(8, 9, 12, 0.25);
  z-index: 2;
}
.play::after {
  content: "";
  position: absolute;
  inset: 31% 28% 31% 38%;
  background: #0E0F14;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 3px;
}

.day-lun { --c: var(--lun); --on: var(--on-lun); }
.day-mar { --c: var(--mar); --on: var(--on-mar); }
.day-mer { --c: var(--mer); --on: var(--on-mer); }
.day-jeu { --c: var(--jeu); --on: var(--on-jeu); }
.day-ven { --c: var(--ven); --on: var(--on-ven); }
.day-sam { --c: var(--sam); --on: var(--on-sam); }
.day-dim { --c: var(--dim); --on: var(--on-dim); }

.band { padding-block: 44px; }
.band h2 { margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 28px; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps p { color: var(--muted); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mar); color: var(--on-mar); font-weight: 800; }
.steps li:nth-child(2) .step-n { background: var(--mer); color: var(--on-mer); }
.steps li:nth-child(3) .step-n { background: var(--ven); color: var(--on-ven); }

.week {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 124px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
@media (min-width: 880px) { .week { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.week li { display: grid; gap: 10px; scroll-snap-align: start; min-width: 0; }
.week li > span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
.tile { aspect-ratio: 1; border-radius: 22px; background: var(--c); color: var(--on); font-weight: 800; padding: 14px; font-size: 1.05rem; }

.plans { display: grid; gap: 16px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.plan-boost { border: 2px solid var(--mar); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 0.95rem; margin-top: -4px; }
.plan ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mar);
}
.plan li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.25em + 5px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--on-mar);
  border-bottom: 2px solid var(--on-mar);
  transform: rotate(-45deg);
}
#offres .fine { margin-top: 22px; }

.split { display: grid; gap: 32px; }
@media (min-width: 780px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.split p { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding-block: 4px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 600; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 16px; max-width: 42em; }

/* Legal pages */

.legal { padding-block: 24px 16px; }
.legal article { max-width: 72ch; display: grid; gap: 16px; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.legal .updated { color: var(--muted); }
.legal h2 { font-size: 1.45rem; margin-top: 22px; }
.legal h3 { font-size: 1.1rem; margin-top: 6px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 8px; }
.legal .summary p { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; }
