/* Imad website. One deliberate look, taken from the app's onboarding tour: the sky before Fajr,
   deep green ground, gold light, frosted-glass panels. Phone mockups keep the app's own light screens. */
:root {
  --night: #050C0A;
  --ground: #0B1C15;
  --pine: #163A21;
  --primary: #E3C463;          /* gold: links, active controls */
  --on-primary: #1B1608;
  --primary-soft: rgba(217, 182, 72, .14);
  --accent: #D9B648;
  --green: #2E8545;
  --bg: #071310;
  --card: rgba(16, 36, 28, .62);
  --card-solid: #10241C;
  --text: #F4F1E6;
  --muted: rgba(244, 241, 230, .72);
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 10px 40px rgba(0, 0, 0, .25);
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Reem Kufi', 'Inter', system-ui, sans-serif;
  --font-quote: 'Amiri', Georgia, serif;
  color-scheme: dark;
}
:root[lang="ar"] {
  --font: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif;
  --font-head: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --font-sub: 'Amiri', 'IBM Plex Sans Arabic', serif;   /* long Arabic headings read better in naskh */
}
:root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] .h3 { font-family: var(--font-sub); font-weight: 700; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* The page reads like a night: pre-dawn at the top, deep green ground, night again at the end. */
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(46, 133, 69, .22), transparent 70%),
    linear-gradient(180deg, #050C0A 0%, #0B1C15 18%, #0E2A1F 40%, #0B1C15 70%, #050C0A 100%);
  color: var(--text);
  font: 16px/1.7 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, .h3 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; }
h3, .h3 { font-size: 1.25rem; text-align: start; }
section > h1 { text-align: center; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.lead.center { margin: 0 auto 2rem; }
.section { padding: 64px 16px; }
.wrap.section { padding-inline: 16px; }
.band { background: linear-gradient(180deg, transparent, rgba(46,133,69,.12) 25%, rgba(46,133,69,.12) 75%, transparent); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Icons */
.ic { width: 24px; height: 24px; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.card, .story, .ptab, .chip, .seg-b, .pain-bad { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.band .ic.lg { background: var(--card); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(5, 12, 10, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.35rem var(--font-head); }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover { background: var(--primary-soft); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.langs { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); margin-inline-start: 8px; }
.langs a { font-size: .9rem; padding: 6px 8px; }
.langs a[aria-current="true"] { color: var(--primary); font-weight: 600; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch; background: #071310; border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .langs { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--on-primary); box-shadow: 0 0 0 0 rgba(217,182,72,.45); font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--primary); border-color: currentColor; }
.hero .btn.ghost { color: var(--on-hero); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* Hero */
.hero { background: var(--hero); color: var(--on-hero); padding: 56px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.hero-text { padding-bottom: 56px; }
.hero h1 { color: var(--on-hero); }
.kicker { font: 700 1.45rem var(--font-quote); color: var(--accent); margin-bottom: .4em; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 14px; border-radius: 999px; font-size: .9rem; }
.hero .phone { justify-self: center; margin-bottom: -40px; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .ctas, .badges { justify-content: center; }
}

/* Phone frame */
.phone { width: min(300px, 78vw); border-radius: 36px; padding: 10px; background: #0d120f; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 60px rgba(217,182,72,.08); }
.phone img { border-radius: 28px; width: 100%; }
.phone.sm { width: 100%; max-width: 220px; margin: 0 auto; border-radius: 28px; padding: 7px; box-shadow: var(--shadow); }
.phone.sm img { border-radius: 22px; }

/* Cards and grids */
.grid3, .grid2 { display: grid; gap: 20px; }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s; }
.card.link:hover { transform: translateY(-2px); border-color: var(--primary); }
.card p { color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { margin-top: 12px; font-weight: 500; }
@media (max-width: 820px) {
  .shots { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots figure { scroll-snap-align: center; }
}

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 28px; margin: 8px 0; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft); box-shadow: inset 0 0 0 5px var(--primary); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto 24px; }
.tier.plus { border: 2px solid var(--accent); }

.dl { text-align: center; }
.dl .ic.lg { margin-inline: auto; }
.dl h2 { text-align: center; }
.pill { display: inline-block; background: var(--primary-soft); color: var(--primary); padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: .875rem; }

.qa { margin-bottom: 12px; padding: 0; }
.qa summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { content: '+'; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.qa[open] summary::after { content: '−'; }
.qa p { padding: 0 24px 18px; margin: 0; color: var(--muted); }

.prose h2 { margin-top: 1.6em; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.foot-links .langs { margin: 0; }

/* ===== Interactive home page ===== */

/* Night-to-dawn sky hero, in the onboarding tour's style */
.sky-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 0 120px;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(233,161,90,.30), transparent 70%); }
.stars { position: absolute; inset: 0; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 8% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 35% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 6%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 14% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 48%, #fff 50%, transparent 51%); }
.sky-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.sky-word { font: 700 clamp(84px, 16vw, 150px)/1.15 'Reem Kufi', 'Amiri', serif; color: #D9B648; margin: 0;
  text-shadow: 0 6px 50px rgba(217,182,72,.4); animation: word-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes word-in { from { opacity: 0; transform: scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.sky-hero .kicker { color: #F1D27A; }
.sky-hero h1 { color: #fff; max-width: 820px; }
.sky-hero .lead { color: rgba(255,255,255,.85); margin-inline: auto; max-width: 720px; }
.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }
.hills .h1 { fill: #0B1C15; opacity: .55; }
.hills .h2 { fill: #0B1C15; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .sky-word { animation: none; } }

/* Persona picker */
.personas-wrap { padding: 8px 0 56px; }
.pick { text-align: center; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.ptabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1080px; margin: 0 auto 28px; }
.ptab { display: flex; align-items: center; gap: 12px; text-align: start; padding: 14px 16px; min-height: 64px; border-radius: 16px;
  background: var(--card); border: 2px solid var(--border); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.ptab:hover { transform: translateY(-1px); }
.ptab b { display: block; font-size: 1.05rem; }
.ptab small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.ptab-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.ptab[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.ptab[aria-selected="true"] .ptab-ic { background: var(--primary); color: var(--on-primary); }
@media (max-width: 960px) { .ptabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ptabs { grid-template-columns: 1fr; } .ptab { min-height: 56px; } }

.persona-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; text-align: center; }
.tier-badge { padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.tier-badge.is-free { background: var(--green); color: #fff; }
.tier-badge.is-plus { background: var(--accent); color: var(--on-primary); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.chip[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.variant { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; max-width: 1000px; margin: 0 auto; }
.story { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.story-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.story-who b { display: block; font: 700 1.3rem var(--font-head); }
.story-who span { color: var(--muted); font-size: .95rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(227,196,99,.5); }
.avatar .portrait { width: 100%; height: 100%; display: block; }
.example { margin-inline-start: auto; align-self: flex-start; font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.story p { color: var(--text); }
@media (max-width: 820px) { .variant { grid-template-columns: 1fr; gap: 24px; } .demo { order: -1; } }

/* Live phone with the app's Today screen */
.phone.live { width: 320px; max-width: 86vw; margin: 0 auto; padding: 9px; border-radius: 40px; }
.app { height: 600px; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; background: #F3F6F2; color: #1B2A1F; font-size: 13px; line-height: 1.45; text-align: start; }
.app-h { background: #1E7B34; color: #fff; padding: 22px 18px 14px; }
.app-place { display: flex; align-items: center; gap: 4px; opacity: .9; font-size: 12px; }
.app-next { margin-top: 6px; opacity: .9; }
.app-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-time { font: 700 30px/1.2 var(--font); }
.app-in { color: #F1D27A; font-weight: 600; font-size: 12px; }
.app-prog-l { margin-top: 6px; font-size: 12px; opacity: .9; }
.app-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); margin-top: 6px; overflow: hidden; }
.app-prog i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .3s; }
.app-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.pc { background: #fff; border: 1px solid #DDE5DE; border-radius: 16px; padding: 10px 12px; }
.pc.now { border: 2px solid #1E7B34; }
.pc-h { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.pc-h b { font: 700 16px var(--font-head); }
.pc.now .pc-h b { color: #1E7B34; }
.pc-now { background: #1E7B34; color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 999px; }
.pc-t { margin-inline-start: auto; color: #6B7A6F; }
.tk { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 0; background: none; border: 0; border-top: 1px solid #EEF2EE; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.tk:first-of-type { border-top: 0; }
.tk-box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9D3CB; display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.tk-ic { width: 14px; height: 14px; color: #fff; opacity: 0; stroke-width: 3; }
.tk[aria-checked="true"] .tk-box { background: #1E7B34; border-color: #1E7B34; }
.tk[aria-checked="true"] .tk-ic { opacity: 1; }
.tk[aria-checked="true"] .tk-t { color: #6B7A6F; text-decoration: line-through; }
.tk-t { flex: 1; font-weight: 500; }
.tk-plus { font-style: normal; font-size: 10px; font-weight: 700; color: #8A6D12; background: #F6EBC4; border-radius: 6px; padding: 0 5px; margin-inline-start: 6px; }
.tk-m { color: #6B7A6F; font-size: 11px; white-space: nowrap; }
.blk { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; border: 1px dashed; font-size: 12px; }
.blk b { display: block; font-size: 13px; }
.blk span { color: #55625A; }
.blk-ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; flex: none; }
.blk-work { background: #EAF0FA; border-color: #A9BCE0; } .blk-work .blk-ic { background: #3A5A9B; color: #fff; }
.blk-commute { background: #F2F2EE; border-color: #CFCFC4; } .blk-commute .blk-ic { background: #7A7A6A; color: #fff; }
.blk-lecture { background: #F1ECFA; border-color: #C3B3E3; } .blk-lecture .blk-ic { background: #6A4FA3; color: #fff; }
.blk-study { background: #E6F4F1; border-color: #A3D3C8; } .blk-study .blk-ic { background: #23786A; color: #fff; }
.blk-exam { background: #FCEDE8; border-color: #EDB5A3; } .blk-exam .blk-ic { background: #B5482A; color: #fff; }
.blk-family { background: #FBF2E2; border-color: #E5CB9A; } .blk-family .blk-ic { background: #9A6B16; color: #fff; }
.blk-halaqa { background: #FBF8EF; border-color: #D9C88F; } .blk-halaqa .blk-ic { background: #8A6D12; color: #fff; }
.hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

/* Problems → solutions */
.pains { background: linear-gradient(180deg, transparent, rgba(46,133,69,.10) 30%, rgba(46,133,69,.10) 70%, transparent); }
.flip-all { display: flex; justify-content: center; margin-bottom: 20px; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pain { position: relative; min-height: 170px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; perspective: 900px; text-align: start; }
.pain-side { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); backface-visibility: hidden; transition: transform .5s cubic-bezier(.4,.1,.2,1); }
.pain-side small { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.pain-side b { font-weight: 600; line-height: 1.5; }
.pain-bad { background: var(--card); border: 1px solid var(--border); }
.pain-bad small { color: #F08A6C; }
.pain-bad .pain-ic { color: #F08A6C; }
.pain-good { background: linear-gradient(160deg, #1E7B34, #145A25); border: 1px solid rgba(227,196,99,.35); color: #fff; transform: rotateY(180deg); }
.pain-good small { color: #F1D27A; }
.pain[aria-pressed="true"] .pain-bad { transform: rotateY(-180deg); }
.pain[aria-pressed="true"] .pain-good { transform: rotateY(0); }
.pain-ic { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .pain-side { transition: none; } }

/* Segmented control */
.seg { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.seg-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.seg-b[aria-selected="true"], .seg-b[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Devices */
.dev { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dev-text { text-align: center; color: var(--muted); max-width: 620px; margin: 0; }
.tablet { width: min(900px, 100%); aspect-ratio: 4 / 3; max-height: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 34px; background: #0d120f; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.tab-pane { border-radius: 20px; overflow: hidden; background: #F3F6F2; min-height: 0; }
.tab-pane .app { height: 100%; border-radius: 0; }
.mushaf { display: flex; flex-direction: column; background: #FBF8EF; }
.mushaf-h { background: #1E7B34; color: #fff; padding: 14px 16px; font-weight: 600; font-size: 14px; }
.mushaf img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
@media (max-width: 640px) { .tablet { grid-template-columns: 1fr; aspect-ratio: auto; } .mushaf { display: none; } .tab-pane .app { height: 520px; } }

.desk { width: min(1000px, 100%); border-radius: 12px; overflow: hidden; background: var(--card-solid); border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.desk-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #1E7B34; color: #fff; font-size: 13px; font-weight: 600; }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.desk-body { display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.desk-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: rgba(0,0,0,.2); border-inline-end: 1px solid var(--border); font-size: 13px; }
.desk-nav span { padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.desk-nav span.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.wk { display: grid; grid-template-columns: 90px repeat(var(--days), 1fr); gap: 4px; padding: 12px; font-size: 12px; overflow-x: auto; }
.wk-d { text-align: center; font-weight: 700; padding: 6px 0; }
.wk-l { display: flex; align-items: center; font-weight: 600; color: var(--muted); }
.wk-l.wk-p { color: var(--primary); font-family: var(--font-head); font-size: 14px; }
.wk-c { min-height: 30px; display: grid; place-items: center; border-radius: 8px; padding: 4px; text-align: center; }
.wk-p { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.wk-k { background: var(--primary-soft); color: var(--primary); }
.wk-w { background: #3A5A9B; color: #fff; }
.wk-l.wk-w, .wk-l.wk-l, .wk-l.wk-g, .wk-l.wk-k { color: var(--muted); }
.wk-c.wk-l { background: #6A4FA3; color: #fff; }
.wk-g { background: #23786A; color: #fff; }
.wk-e { background: transparent; border: 1px dashed var(--border); }
@media (max-width: 720px) { .desk-body { grid-template-columns: 1fr; } .desk-nav { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); } .desk-nav span { white-space: nowrap; } .wk { grid-template-columns: 64px repeat(var(--days), minmax(48px, 1fr)); } }

.cta-band { background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(233,161,90,.22), transparent 70%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.8); }

/* Help band on the home page */
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-color: rgba(227,196,99,.35); }
.help > div:first-child { flex: 1 1 360px; min-width: 0; }
.help h2 { text-align: start; font-size: 1.5rem; }
.help-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label, .flabel { display: block; font-weight: 600; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.form input:not([type="radio"]):not([type="file"]), .form textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(244,241,230,.42); }
.form input:focus-visible, .form textarea:focus-visible, .radio input:focus-visible + span, .drop:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: #F08A6C; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { margin: 0; font-weight: 500; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; }
.radio input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.form label.drop { display: flex; margin: 0; align-items: center; justify-content: center; min-height: 88px; border: 1.5px dashed rgba(227,196,99,.5); border-radius: 14px; color: var(--primary); cursor: pointer; font-weight: 600; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbs figure { position: relative; margin: 0; width: 96px; }
.thumbs img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.thumbs button { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.hint-s { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-end .hint-s { margin: 0; flex: 1 1 200px; }
.form-msg { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); border: 1px solid rgba(227,196,99,.35); }
.form-msg.err { background: rgba(240,138,108,.12); border-color: rgba(240,138,108,.4); }
.form.done > :not(.form-msg) { display: none; }
