/* Teacher hub — approved design, as classes (the Content-Security-Policy forbids inline styles). */
@font-face { font-family: 'Cairo'; font-weight: 700; font-display: swap; src: url('/fonts/cairo-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 700; font-display: swap; src: url('/fonts/cairo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-display: swap; src: url('/fonts/cairo-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-display: swap; src: url('/fonts/cairo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Cairo'; font-weight: 900; font-display: swap; src: url('/fonts/cairo-arabic-900-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 900; font-display: swap; src: url('/fonts/cairo-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Ruqaa'; font-weight: 700; font-display: swap; src: url('/fonts/aref-ruqaa-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('/fonts/caveat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('/fonts/caveat-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #14202B; --gold: #E8B04A; --gold-soft: #F3CF86; --cream: #FBF6EA; --paper: #FFFDF7; --line: #E6DFCF; --line2: #D9D0BC;
  --ink: #1B2A3A; --muted: #4C5B69; --muted2: #5B6B7A; --green: #1F8F76; --green-dark: #16705C; --red: #C8412F; --chalk: #F6F1E4;
  --head: 'Cairo', 'Plex Arabic', system-ui, sans-serif; --body: 'Plex Arabic', 'Cairo', system-ui, sans-serif; --hand: 'Ruqaa', 'Caveat', serif;
}
[lang=en], [lang=fr] { --hand: 'Caveat', 'Ruqaa', cursive; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
a { color: var(--ink); } a:hover { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hand { font-family: var(--hand); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
[dir=ltr] .flip { transform: scaleX(-1); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: none; border-radius: 18px; font-family: var(--head); font-weight: 900; cursor: pointer; text-decoration: none; min-height: 48px; padding: 12px 26px; font-size: 20px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,32,43,.22); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost-light { background: transparent; color: var(--chalk); border: 2px solid rgba(246,241,228,.35); font-weight: 600; font-family: var(--body); }
.btn-lg { font-size: 24px; padding: 18px 34px; min-height: 60px; }
.btn-xl { font-size: 26px; padding: 20px 46px; min-height: 64px; border-radius: 20px; }
.btn-sm { font-size: 16px; padding: 8px 16px; min-height: 40px; border-radius: 12px; }
.linkbtn { background: none; border: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* header */
.site-header { background: var(--night); color: var(--chalk); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chalk); }
.brand:hover { color: var(--chalk); }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--head); font-weight: 900; font-size: 24px; }
.brand-name b { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 18px; }
.nav a { color: var(--chalk); text-decoration: none; }
.nav a.btn { color: var(--night); padding: 10px 22px; font-size: 18px; font-weight: 800; border-radius: 14px; min-height: 44px; }
.langs { display: inline-flex; gap: 4px; background: rgba(246,241,228,.1); border: 1.5px solid rgba(246,241,228,.25); border-radius: 13px; padding: 3px; }
.langs button { cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 16px; border: none; border-radius: 10px; padding: 7px 14px; min-height: 38px; background: transparent; color: var(--chalk); }
.langs button[aria-pressed=true] { background: var(--gold); color: var(--night); }
.user-chip { display: inline-flex; gap: 10px; align-items: center; }
.user-chip .who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-soft); }

/* hero */
.hero { background: var(--night); color: var(--chalk); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 46px); }
.hero .wrap { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; position: relative; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(232,176,74,.14); border: 1.5px solid rgba(232,176,74,.5); color: var(--gold-soft); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 17px; }
.hero h1 { font-family: var(--head); font-weight: 900; font-size: 64px; line-height: 1.2; margin: 22px 0 0; }
.hero h1 .accent { position: relative; display: inline-block; color: var(--gold); }
.hero h1 .accent svg { position: absolute; inset-inline-start: 0; bottom: -10px; width: 100%; height: 18px; }
.hero p.lead { font-size: 22px; line-height: 1.7; color: #D6DCE2; margin: 30px 0 0; max-width: 540px; }
.hero p.lead b { color: var(--chalk); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero .scribble { font-size: 26px; color: #9FB7C9; margin: 30px 0 0; }
.sheets { flex: 1 1 420px; min-width: 0; height: 460px; position: relative; }
.sheet { position: absolute; transition: transform .25s ease-out; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.4); box-sizing: border-box; }
.sheet1 { top: 40px; right: 30px; width: 300px; height: 370px; background: var(--paper); padding: 26px; color: var(--ink); }
.sheet2 { top: 90px; left: 10px; width: 330px; height: 220px; background: #1F2E3B; border: 2px solid rgba(232,176,74,.55); padding: 22px; border-radius: 16px; }
.sheet3 { bottom: 10px; right: 150px; width: 270px; background: var(--paper); padding: 20px 22px; color: var(--ink); border-radius: 16px; }
.sheet h4 { font-family: var(--head); font-weight: 900; font-size: 20px; margin: 0; }
.sheet small { font-size: 14px; color: var(--muted2); }
.sheet .opt { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.sheet .opt i { width: 20px; height: 20px; border-radius: 10px; border: 2.5px solid var(--ink); display: inline-block; }
.sheet .opt i.on { background: var(--green); }
.sheet .bar { height: 10px; background: #E6DFCF; border-radius: 5px; display: block; }
.sheet .score { position: absolute; left: 20px; bottom: 22px; font-size: 34px; color: var(--red); transform: rotate(-12deg); font-family: var(--hand); }
.sheet2 .row { display: flex; justify-content: space-between; align-items: center; }
.sheet2 .row span:first-child { font-family: var(--head); font-weight: 900; font-size: 19px; color: var(--chalk); }
.tag-ppt { font-size: 12px; font-weight: 700; color: var(--night); background: var(--gold); border-radius: 6px; padding: 2px 8px; }
.bars { display: flex; gap: 12px; margin-top: 20px; align-items: flex-end; height: 110px; }
.bars span { flex: 1; border-radius: 8px; display: block; }
.timebar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 3px; margin-top: 12px; }
.timebar span { display: block; }

/* sections */
.section { padding-top: 84px; padding-bottom: 40px; }
.section h2 { font-family: var(--head); font-weight: 900; font-size: 44px; margin: 0; line-height: 1.25; }
.section .sub { font-size: 20px; color: var(--muted); margin: 10px 0 0; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: 26px; padding: 30px; position: relative; }
.card .num { font-family: var(--hand); font-size: 64px; line-height: 1; color: var(--gold); }
.card .ico { position: absolute; top: 30px; inset-inline-end: 30px; }
.card h3 { font-family: var(--head); font-weight: 800; font-size: 26px; margin: 16px 0 0; }
.card p { font-size: 18px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }

/* tool panel */
.panel { background: var(--paper); border: 2px solid var(--line); border-radius: 36px; box-shadow: 0 30px 70px rgba(20,32,43,.08); overflow: hidden; }
.stepper { background: #F3ECDC; padding: 22px 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border-bottom: 2px solid var(--line); list-style: none; margin: 0; }
.stepper li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--muted2); }
.stepper li .n { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; background: var(--line); color: var(--muted2); }
.stepper li.on { color: var(--ink); } .stepper li.on .n { background: var(--ink); color: #fff; }
.stepper li.done .n { background: var(--green); color: #fff; }
.stepper li:not(:last-child)::after { content: ''; width: 34px; height: 2px; background: var(--line2); margin-inline-start: 4px; }
.panel-body { padding: 40px 34px 46px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; margin-top: 32px; }
.tool { text-align: start; font-family: inherit; color: var(--ink); background: #fff; border: 2.5px solid var(--line); border-radius: 26px; padding: 26px 22px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 40px rgba(20,32,43,.16); }
.tool[aria-pressed=true] { background: #FFF9EA; border-color: #C98A12; }
.tool .ti { width: 68px; height: 68px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.tool .tn { font-family: var(--head); font-weight: 900; font-size: 26px; }
.tool .td { font-size: 17px; color: var(--muted); line-height: 1.55; }
.tool .sel { margin-top: auto; align-self: flex-start; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 700; }
.tool:not([aria-pressed=true]) .sel { display: none; }
.t-plan { background: #FFF0CC; } .t-quiz { background: #E3F3EE; } .t-simplify { background: #E7EEF8; } .t-summary { background: #F6E6E2; } .t-parent { background: #EAE6F8; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.titlebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.back { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--line2); background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.panel h2 { font-family: var(--head); font-weight: 900; font-size: 38px; margin: 0; }
.form { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 30px; }
.fields { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 22px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 18px; }
.field .opt-note { font-weight: 500; font-size: 15px; color: var(--muted2); }
.full { grid-column: 1 / -1; }
.select-wrap { position: relative; display: block; }
.select-wrap svg { position: absolute; inset-inline-end: 16px; top: 50%; margin-top: -11px; pointer-events: none; }
select, input[type=text], input[type=email], input[type=password] { width: 100%; font-family: inherit; font-size: 19px; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line2); border-radius: 16px; padding: 14px 18px; min-height: 58px; transition: border-color .15s ease; }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 48px; }
select:hover, input:hover { border-color: var(--ink); }
input[aria-invalid=true] { border-color: var(--red); }
.who-box { background: #F3F7FE; border: 2px dashed #9DB8E8; border-radius: 22px; padding: 20px 20px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 22px; }
.who-box .note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 16px; color: #2D4A7A; font-weight: 500; }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { font-family: inherit; font-size: 18px; font-weight: 700; border-radius: 999px; padding: 12px 22px; min-height: 48px; border: 2px solid var(--line2); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.upload { flex: 1 1 300px; min-width: 0; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 300px; border: 3px dashed #D9B26A; border-radius: 28px; background: #FFF9EA; padding: 26px; cursor: pointer; position: relative; transition: background-color .2s ease, border-color .2s ease; }
.drop:hover, .drop.drag { background: #FFF3D6; border-color: #C98A12; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .dt { font-family: var(--head); font-weight: 900; font-size: 24px; }
.drop .dd { font-size: 17px; color: #5B4A2A; line-height: 1.6; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.thumbs img { width: 56px; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.pill { display: inline-flex; gap: 8px; align-items: center; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 17px; }
.pill-green { background: var(--green); color: #fff; }
.pill-soft { background: #E3F3EE; color: var(--green-dark); }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.tip svg { flex-shrink: 0; margin-top: 3px; }
.quota { font-size: 17px; color: var(--muted); }
.quota b { color: var(--ink); }
.alert { border-radius: 16px; padding: 14px 18px; font-size: 17px; line-height: 1.6; display: flex; gap: 12px; align-items: flex-start; }
.alert-warn { background: #FFF6E0; color: #5B4A2A; }
.alert-err { background: #FBE7E4; color: #8A2A1C; }
.alert-ok { background: #E3F3EE; color: var(--green-dark); }

/* generating */
.gen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 30px; }
.gen-paper { position: relative; width: 340px; max-width: 100%; height: 220px; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(20,32,43,.1); padding: 30px; overflow: hidden; }
.gen-paper .l { height: 12px; background: #EFE7D5; border-radius: 6px; overflow: hidden; margin-top: 22px; }
.gen-paper .l:first-child { margin-top: 0; }
.gen-paper .l i { display: block; height: 12px; width: 0; background: var(--ink); border-radius: 6px; animation: hbline 2s ease-out forwards; }
.gen-paper .l:nth-child(2) { width: 80%; } .gen-paper .l:nth-child(2) i { animation-delay: .5s; }
.gen-paper .l:nth-child(3) { width: 90%; } .gen-paper .l:nth-child(3) i { animation-delay: 1s; }
.gen-paper .l:nth-child(4) { width: 60%; } .gen-paper .l:nth-child(4) i { animation-delay: 1.4s; }
.gen-paper svg { position: absolute; left: 60px; top: 110px; animation: hbpen 1.4s ease-in-out infinite; }
.gen h3 { font-family: var(--head); font-weight: 900; font-size: 32px; margin: 30px 0 0; }
.gen p { font-size: 19px; color: var(--muted); margin: 6px 0 0; }
@keyframes hbpen { 0% { transform: translate(0,0) rotate(-20deg); } 50% { transform: translate(-120px,8px) rotate(-14deg); } 100% { transform: translate(0,0) rotate(-20deg); } }
@keyframes hbline { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .gen-paper svg, .gen-paper .l i { animation: none; } .gen-paper .l i { width: 100%; } * { scroll-behavior: auto !important; } }

/* result */
.result { display: flex; flex-wrap: wrap; gap: 34px; }
.result-main { flex: 999 1 520px; min-width: 0; }
.result-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.result-side h3 { font-family: var(--head); font-weight: 900; font-size: 26px; margin: 0; }
.detected { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.viewer { margin-top: 20px; background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 20px 50px rgba(20,32,43,.07); }
.viewer .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #f5f2ea; }
.viewer .frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.viewer .controls .count { font-weight: 700; color: var(--muted); }
.strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 6px; }
.strip button { flex: 0 0 auto; width: 120px; aspect-ratio: 16/9; border-radius: 8px; border: 2px solid var(--line); padding: 0; background: #fff; cursor: pointer; overflow: hidden; }
.strip button[aria-current=true] { border-color: var(--gold); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl { display: flex; align-items: center; gap: 16px; text-align: start; font-family: inherit; background: #fff; border: 2.5px solid; border-radius: 22px; padding: 18px 20px; min-height: 84px; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.dl:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 34px rgba(20,32,43,.2); color: var(--ink); }
.dl .fi { width: 54px; height: 54px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 22px; flex-shrink: 0; }
.dl b { font-size: 21px; display: block; } .dl span.s { font-size: 16px; color: var(--muted); }
.dl-word { border-color: #2B579A; } .dl-word .fi { background: #2B579A; }
.dl-ppt { border-color: #C4532A; } .dl-ppt .fi { background: #C4532A; }
.dl-pdf { border-color: #B3261E; } .dl-pdf .fi { background: #B3261E; font-size: 17px; }
.dl[aria-busy=true] { opacity: .6; pointer-events: none; }
.message { background: #1F5C46; color: #EAF6F0; border-radius: 24px; border-end-end-radius: 6px; padding: 20px 24px; font-size: 19px; line-height: 1.8; max-width: 620px; white-space: pre-wrap; margin-top: 20px; }
.namecard { display: inline-block; border: 2.5px solid #1F64D6; border-radius: 6px 14px 8px 12px; padding: 8px 18px; transform: rotate(-1deg); margin-top: 12px; }
.namecard b { font-family: var(--head); font-weight: 900; font-size: 22px; display: block; }
.namecard span { font-family: var(--hand); font-size: 20px; color: #1F64D6; }

/* faq + footer */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 28px; }
.faq .card h3 { margin: 0; font-size: 22px; }
.faq .card p { margin-top: 8px; line-height: 1.7; }
.site-footer { background: var(--night); color: #B9C4CE; margin-top: 40px; }
.site-footer .wrap { padding-top: 34px; padding-bottom: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 17px; }
.site-footer b { color: var(--chalk); }
.site-footer a { color: #B9C4CE; }
.site-footer .slogan { font-family: var(--hand); font-size: 24px; color: var(--gold); }

/* dialog */
dialog { border: none; border-radius: 28px; padding: 0; max-width: min(480px, calc(100vw - 32px)); width: 100%; box-shadow: 0 40px 90px rgba(0,0,0,.35); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(20,32,43,.6); }
.dlg { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-family: var(--head); font-weight: 900; font-size: 28px; margin: 0; }
.x { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line2); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.tabs { display: flex; gap: 6px; background: #F3ECDC; border-radius: 14px; padding: 4px; }
.tabs button { flex: 1; border: none; background: transparent; border-radius: 10px; padding: 10px; font-family: var(--head); font-weight: 800; font-size: 17px; cursor: pointer; color: var(--muted2); min-height: 44px; }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: 15px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.gbtn { min-height: 44px; display: flex; justify-content: center; }

/* simple pages */
.page { max-width: 640px; margin: 60px auto; padding: 0 16px; }
.page .card { padding: 34px; }
.page h1 { font-family: var(--head); font-weight: 900; font-size: 34px; margin: 0 0 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hist { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.hist .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; background: #fff; }
.hist .item .t { font-weight: 700; }
.hist .item .m { font-size: 15px; color: var(--muted2); }
.hist .item .a { display: flex; gap: 8px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 42px; }
  .section h2, .panel h2 { font-size: 32px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 60px; }
  .sheets { height: 360px; transform: scale(.82); transform-origin: top center; }
  .panel-body { padding: 26px 18px 30px; }
  .stepper { padding: 16px; }
  .stepper li .lbl { display: none; }
  .stepper li.on .lbl { display: inline; }
}
@media (max-width: 480px) { .sheets { display: none; } .nav { gap: 12px; } .nav .navlink { display: none; } }
.contents { display: contents; }
.w70 { width: 70%; } .w55 { width: 55%; } .w62 { width: 62%; }
.b1 { height: 40%; background: #3CC4A5; } .b2 { height: 70%; background: #E8B04A; } .b3 { height: 55%; background: #7FB8E6; } .b4 { height: 90%; background: #F09A6B; }
.t1 { flex: 5; background: #E8B04A; } .t2 { flex: 12; background: #2F8FD8; } .t3 { flex: 8; background: #1F8F76; } .t4 { flex: 12; background: #7C6CF2; } .t5 { flex: 8; background: #F09A6B; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
[lang=en] .hero h1, [lang=fr] .hero h1 { font-size: clamp(36px, 4vw, 54px); }
