/* Leqoll website. Tokens from the Leqoll design system (Figma "Leqoll App Cahier Test"),
   as in leqoll-backoffice/src/styles.scss. Plus Jakarta Sans is self-hosted (SIL OFL, fonts/LICENSE.txt). */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #f7f6f0;
  --surface: #fff;
  --text: #1c2a22;
  --muted: #55665b;
  --border: #e6e7e2;
  --primary: #1f6b4a;
  --primary-dark: #12422d;
  --accent: #f77f00;
  --tint: #e4ede6;
  --peach: #fbe9d7;
  --warning: #7a5200;
  --warning-bg: #fbf1cf;
  --danger: #c0392b;
  --danger-bg: #fbedea;
  --radius: 20px;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The line motifs of the app's green panels. */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='30' cy='30' r='14'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cpath d='M78 16h28M78 26h28M78 36h28'/%3E%3Ccircle cx='24' cy='84' r='6'/%3E%3Ccircle cx='38' cy='84' r='6'/%3E%3Ccircle cx='24' cy='98' r='6'/%3E%3Ccircle cx='38' cy='98' r='6'/%3E%3Cpath d='M92 76l12 12-12 12-12-12z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(247 246 240 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--font); color: var(--text); }
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 10px 0; width: 100%; }
  .nav { gap: 16px; flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--tint); color: var(--primary-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% -10% 8% 6%; background: var(--primary) var(--motif); border-radius: 36px; transform: rotate(-3deg); }
.phone { position: relative; width: min(300px, 78vw); border-radius: 36px; border: 8px solid #10251a; background: #10251a; box-shadow: 0 30px 60px -20px rgb(18 66 45 / .5); overflow: hidden; }
.phone img { border-radius: 28px; }
.badge-float { position: absolute; left: -4%; bottom: 14%; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 40px -16px rgb(28 42 34 / .35); font-size: .9rem; line-height: 1.35; }
.badge-float strong { display: block; color: var(--primary); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .badge-float { left: 0; }
}

/* Sections */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.icon.peach { background: var(--peach); color: #a35400; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .phone { margin-inline: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Schools: green band with the back-office illustration */
.band { background: var(--primary-dark) var(--motif); color: #fff; border-radius: 36px; padding: 64px clamp(20px, 5vw, 64px); }
.band .eyebrow { color: #ffc27a; }
.band .section-head p, .band .muted { color: rgb(255 255 255 / .78); }
.band h3 { color: #fff; }
.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .band-grid { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.feature-list li { border-top: 1px solid rgb(255 255 255 / .16); padding-top: 14px; }
.feature-list strong { display: block; font-size: 1rem; }
.feature-list span { color: rgb(255 255 255 / .74); font-size: .93rem; }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* Dashboard illustration (sample data, not a real school) */
.dash { background: var(--bg); color: var(--text); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .5); font-size: 13px; line-height: 1.35; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.dash-top b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.dash-top span { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-width: 0; }
.kpi small { display: block; color: var(--muted); }
.kpi b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 12px; color: var(--primary); }
.kpi em.warn { color: var(--warning); }
.kpi em.bad { color: var(--danger); }
.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.panel h4 { margin: 0 0 10px; font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars i { flex: 1; background: var(--primary); border-radius: 6px 6px 3px 3px; }
.bars i:last-child { background: var(--accent); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); }
.todo li:first-child { border-top: 0; padding-top: 0; }
.pill { background: var(--warning-bg); color: var(--warning); border-radius: 999px; padding: 0 9px; font-weight: 700; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .dash-row { grid-template-columns: 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust .card { padding: 24px; }

/* Download */
.download { text-align: center; }
.download .card { padding: clamp(32px, 6vw, 56px); display: grid; justify-items: center; }
.download .card > img { width: 72px; border-radius: 20px; margin-bottom: 18px; }
.download p { color: var(--muted); max-width: 52ch; }
.store-note { font-size: .92rem; color: var(--muted); margin-top: 16px; }

/* Text pages: privacy, terms, account deletion, help */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--muted); }
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; background: var(--surface); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--tint); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 14px; padding: 18px 20px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.placeholder { background: var(--warning-bg); color: var(--warning); border-radius: 6px; padding: 0 5px; font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
details p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgb(255 255 255 / .8); padding: 48px 0 32px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .14); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
.flag { display: block; height: 5px; background: linear-gradient(90deg, var(--accent) 0 33.3%, #fff 33.3% 66.6%, #0f9d58 66.6%); }
