/* ============================================
   AI QUR'ANI PERSONAL-ADAPTIF — Custom CSS
   ============================================ */

/* Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a6b3a;
  --primary-light: #22c55e;
  --gold: #d4a017;
  --bg-dark: #0f1a14;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #f0fdf4;
  min-height: 100vh;
}

/* Arabic text */
.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
  line-height: 2.2;
  letter-spacing: 0.02em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 3px; }

/* Page transitions */
.page { display: none !important; }
.page.active { display: block !important; animation: fadeIn 0.35s ease; }
#page-ai-chat.active { display: flex !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Card hover */
.theme-card {
  transition: all 0.25s ease;
  cursor: pointer;
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.13);
}

/* Progress bar */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #dcfce7;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.6s ease;
}

/* VARK badge */
.vark-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* AI chat */
.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 1.2rem;
  line-height: 1.6;
  font-size: 0.9rem;
}
.chat-user { background: #16a34a; color: white; border-bottom-right-radius: 4px; margin-left: auto; }
.chat-ai { background: white; color: #1e293b; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Pulse animation for AI */
.ai-pulse { animation: aiPulse 2s infinite; }
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
}

/* Quiz option */
.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
}
.quiz-option:hover { transform: translateX(4px); border-color: #16a34a; }
.quiz-option.selected { border-color: #16a34a; background: #f0fdf4; }
.quiz-option.correct { border-color: #16a34a; background: #dcfce7; }
.quiz-option.wrong { border-color: #ef4444; background: #fef2f2; }

/* Sidebar navigation */
.nav-item {
  transition: all 0.2s ease;
}
.nav-item:hover, .nav-item.active {
  background: rgba(255,255,255,0.15);
  border-left: 3px solid #22c55e;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0f3d20 0%, #14532d 50%, #1a6b3a 100%);
}

/* Gold accent */
.gold-text { color: #d4a017; }
.gold-border { border-color: #d4a017; }

/* Loading spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid #dcfce7;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Verse card */
.verse-card {
  background: linear-gradient(135deg, #14532d, #166534);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* Notification */
.notification {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 9999;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.88rem;
  animation: slideIn 0.3s ease, fadeOut 0.4s ease 2.5s forwards;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Starfield for landing */
.star { position: absolute; border-radius: 50%; background: white; animation: twinkle var(--dur, 3s) ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Dashboard stats */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* Responsive sidebar */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
}

/* Reflection textarea */
.reflection-area {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.reflection-area:focus {
  outline: none;
  border-color: #16a34a;
}

/* Teacher dashboard chart area */
.chart-container {
  position: relative;
  height: 280px;
}

/* Breadcrumb */
.breadcrumb span { color: #64748b; font-size: 0.82rem; }
.breadcrumb span:last-child { color: #16a34a; font-weight: 600; }

/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: #16a34a;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 500;
  transition: all 0.2s;
}
#scrollTop:hover { background: #15803d; transform: translateY(-2px); }
#scrollTop.visible { display: flex; }

/* Account pages: readable controls and layouts from phones to desktops. */
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) {
  overflow-wrap: anywhere;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
}
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(button, summary) {
  min-height: 44px;
  touch-action: manipulation;
}
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(input, textarea, select) {
  max-width: 100%;
  min-width: 0;
  font-size: 1rem;
}
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) textarea {
  min-height: 9rem;
  resize: vertical;
}
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(button, input, textarea, summary):focus-visible {
  outline: 3px solid #d4a017;
  outline-offset: 3px;
}
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) [hidden] {
  display: none !important;
}
#online-account-content > section { min-width: 0; }
#page-online-account nav > div { flex-wrap: wrap; }
#account-signout { flex-shrink: 0; padding-inline: .5rem; }
@media (max-width: 640px) {
  #online-account-content { padding: 1rem .75rem; }
  #online-account-content > section { padding: 1rem; border-radius: 1rem; }
  #online-account-content article { padding: .875rem; }
  #online-account-content article article { padding: .75rem; }
  #online-account-content :is(h2, h3) { line-height: 1.4; }
  #online-account-content p { line-height: 1.65; }
  #online-account-content .flex.flex-wrap > button { flex: 1 1 10rem; }
  [id^="online-review-edit-"], [id^="online-review-read-"] { width: 100%; }
  #page-account-login > div { padding-top: 1.5rem; }
  #page-account-login form button { min-height: 48px; }
  .modal-box { padding: 1.25rem; max-height: 85dvh; }
  .notification { left: .75rem; right: .75rem; top: .75rem; max-width: calc(100vw - 1.5rem); }
  #scrollTop { bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page.active, .modal-box, .ai-pulse, .star { animation: none; }
}

/* Visual learning map: scoped to the honesty pilot. */
.honesty-map { margin: 1rem 0 0; color: #172b35; }
.honesty-map-hero { background: linear-gradient(120deg,#103e38,#173447); border-radius: 20px; padding: clamp(20px,4vw,32px); color: #fff; }
.honesty-map-eyebrow { color: #b9efce; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.honesty-map-hero h3 { font-size: clamp(1.6rem,4vw,2.3rem); line-height: 1.2; font-weight: 800; margin: 12px 0; letter-spacing: -.035em; }
.honesty-map-hero > p:last-of-type { color: #d9e9e8; font-size: .9rem; line-height: 1.6; max-width: 32rem; }
.honesty-map-route { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.honesty-map-route span { padding: 6px 11px; font-size: .7rem; border: 1px solid #6e9694; border-radius: 999px; color: #e8f8f0; }
.honesty-map-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.honesty-path { --map-color: #176b52; --map-light: #e6f4ee; border: 1px solid #dce5e3; border-radius: 18px; overflow: hidden; background: #fff; min-width: 0; }
.honesty-path-blue { --map-color: #235da1; --map-light: #edf4ff; }
.honesty-path-purple { --map-color: #75449d; --map-light: #f4edfa; }
.honesty-path-head { background: var(--map-light); display: flex; align-items: flex-start; gap: 10px; padding: 18px 14px; border-bottom: 1px solid #dce5e3; }
.honesty-path-number { color: var(--map-color); border: 1px solid currentColor; border-radius: 10px; width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; font-size: .75rem; font-weight: 800; }
.honesty-path-verse { color: var(--map-color); font-size: .68rem; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
.honesty-path-head h4 { font-size: .95rem; line-height: 1.4; font-weight: 750; margin: 0; }
.honesty-path-body { padding: 18px 14px; }
.honesty-path-step { position: relative; display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 8px; padding-bottom: 22px; }
.honesty-path-step:not(.honesty-path-step-last)::after { content: ''; position: absolute; left: 5px; top: 13px; bottom: 0; border-left: 2px solid #d6e0dd; }
.honesty-path-dot { position: relative; z-index: 1; width: 12px; height: 12px; border: 3px solid var(--map-color); background: #fff; border-radius: 50%; margin-top: 3px; }
.honesty-path-label { color: var(--map-color); font-size: .62rem; font-weight: 750; letter-spacing: .06em; margin: 0 0 6px; }
.honesty-path-step div > p:last-child, .honesty-path-example p { font-size: .84rem; line-height: 1.65; margin: 0; }
.honesty-path-action { font-weight: 650; }
.honesty-path-example { border-top: 1px solid #e2e8e5; padding-top: 8px; }
.honesty-path-example summary { font-size: .78rem; color: var(--map-color); font-weight: 650; cursor: pointer; padding: 10px 0; }
.honesty-path-example > p { margin: 6px 0 12px; }
.honesty-path-example > div { padding: 12px; border-radius: 12px; background: var(--map-light); }
.honesty-map-takeaway { display: flex; align-items: center; gap: 16px; background: #f1f6f4; padding: 18px; border-radius: 16px; margin-top: 16px; }
.honesty-map-tag { font-size: .65rem; letter-spacing: .06em; font-weight: 800; color: #235347; border: 1px solid #b2ccc0; border-radius: 999px; padding: 7px 10px; }
.honesty-map-takeaway p { font-size: .85rem; line-height: 1.65; margin: 0; }
@media (max-width: 700px) {
  .honesty-map-grid { grid-template-columns: 1fr; }
  .honesty-map-takeaway { align-items: flex-start; flex-direction: column; gap: 10px; }
  #online-account-content .honesty-path { padding: 0; }
}

/* Teal account palette; scoped to online learning pages. */
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) { background-color:#f8fafc;color:#334155; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(h1,h2,h3,h4) { color:#172b4d; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) .bg-white { background-color:#ffffff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.bg-green-700,.bg-green-600) { background-color:#0f766e;color:#ffffff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) button:is(.bg-green-700,.bg-green-600):hover { background-color:#115e59; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.bg-green-50,.bg-green-100) { background-color:#f0fdfa; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.border-green-200,.border-green-300) { border-color:#99d5cf; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.text-green-700,.text-green-800,.text-green-900,.text-green-600) { color:#0f766e; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) .bg-blue-50 { background-color:#f5f3ff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.text-blue-700,.text-blue-800) { color:#6d28d9; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.bg-blue-700,.bg-blue-600) { background-color:#6d28d9;color:#ffffff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) button:is(.bg-blue-700,.bg-blue-600):hover { background-color:#5b21b6; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.border,.border-gray-200) { border-color:#dbe3ed; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(.text-gray-400,.text-gray-500) { color:#64748b; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(button,input,textarea,select,summary):focus-visible { outline-color:#fbbf24; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) button[aria-pressed='true'] { background-color:#0f766e;color:#ffffff;border-color:#0f766e; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) button[aria-pressed='false'] { background-color:#ffffff;color:#475569; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) button:disabled { opacity:.65;cursor:wait; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) nav { background:linear-gradient(115deg,#0f766e,#115e59);color:#ffffff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) nav h1 { color:#ffffff; }
:is(#page-account-login, #page-online-account, #page-online-preference, #page-online-theme, #page-online-reflections) :is(input,textarea,select) { accent-color:#0f766e; }

/* Keep the diagram hero title readable above the shared heading palette. */
#page-online-theme .honesty-map-hero h3 { color: #ffffff; }

/* Responsive account sign-in */
#page-account-login { background: radial-gradient(ellipse at 8% 0%,#dff5ef,transparent 48%),radial-gradient(ellipse at 100% 95%,#eee9fc,transparent 48%),#f8fafc; }
#page-account-login .login-shell { max-width:1080px;margin:auto;padding:clamp(20px,5vw,56px) 20px; }
.login-back { display:inline-flex;align-items:center;min-height:44px;font-size:.85rem;color:#0f766e;text-decoration:underline;text-underline-offset:4px;margin-bottom:18px; }
.login-layout { display:grid;grid-template-columns:1fr 1fr;border:1px solid #dce7e7;border-radius:28px;overflow:hidden;box-shadow:0 24px 70px #15384a12;background:white; }
.login-story { padding:clamp(24px,4vw,44px);background:linear-gradient(145deg,#103e38,#173447 70%,#302b59);color:#e3f2f0;display:flex;flex-direction:column; }
.login-brand { font-size:.85rem;font-weight:800;letter-spacing:.12em; }
.login-brand span { display:block;font-size:.6rem;letter-spacing:.16em;color:#b9d5d1;margin-top:6px; }
.login-story-copy { margin-top:64px; }
.login-kicker { font-size:.62rem;letter-spacing:.13em;font-weight:700;color:#a7e4d2; }
#page-account-login .login-story h2 { color:#fff;font-size:clamp(1.8rem,3.5vw,2.6rem);line-height:1.2;letter-spacing:-.04em;font-weight:800;margin:16px 0; }
.login-story h2 span { color:#b5e9d8; }
.login-story-copy > p:last-child { font-size:.9rem;line-height:1.8;max-width:29ch;color:#d8e7e9; }
.login-mini-map { display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:32px; }
.login-mini-map span { padding:9px 12px;border:1px solid #779494;border-radius:12px;font-size:.72rem; }
.login-story-foot { margin-top:auto;padding-top:44px;font-size:.72rem;line-height:1.7;color:#c1d9d9; }
.login-form-card { padding:clamp(24px,4vw,44px); }
.login-welcome { display:inline-block;color:#6d28d9;background:#f3efff;padding:7px 10px;border-radius:999px;font-size:.6rem;letter-spacing:.1em;font-weight:750; }
#page-account-login .login-form-card h1 { color:#172b4d;font-size:clamp(1.8rem,3vw,2.1rem);line-height:1.25;letter-spacing:-.035em;font-weight:800;margin-top:16px; }
.login-form-intro { font-size:.85rem;color:#64748b;line-height:1.7;margin:10px 0 28px; }
#account-login-form label { display:block;font-size:.8rem;font-weight:650;color:#334155;margin-bottom:8px; }
#account-login-form input { width:100%;min-height:50px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:12px;padding:12px 14px;font-size:1rem;color:#172b4d; }
#account-login-form > input { margin-bottom:20px; }
.login-password-wrap { position:relative; }
#account-password { padding-right:105px !important; }
#account-password-toggle { position:absolute;right:5px;top:3px;min-height:44px;padding:0 8px;font-size:.72rem;font-weight:650;color:#0f766e;border-radius:9px;background:transparent; }
.login-error { font-size:.8rem;line-height:1.6;color:#b91c1c;margin:14px 0; }
#account-login-submit { width:100%;min-height:50px;border-radius:12px;background:#0f766e;color:white;font-weight:700;font-size:.95rem;box-shadow:0 5px 12px #0f766e22; }
#account-login-submit:hover { background:#115e59; }
.login-help { font-size:.78rem;color:#64748b;line-height:1.8;margin-top:24px; }
.login-role-note { border-top:1px solid #e2e8f0;margin-top:22px;padding-top:18px;font-size:.7rem;line-height:1.7;color:#64748b; }
@media(max-width:700px) {
#page-account-login .login-shell { padding:20px 16px; }
.login-layout { grid-template-columns:1fr;border-radius:22px; }
.login-story { padding:26px; }
.login-story-copy { margin-top:24px; }
#page-account-login .login-story h2 { font-size:1.8rem; }
.login-story-copy > p:last-child { max-width:none; }
.login-mini-map,.login-story-foot { display:none; }
.login-form-card { padding:26px; }
}

/* Shared identity and public welcome page. */
.login-brand-lockup,.online-brand-lockup { display:flex;align-items:center;gap:12px;min-width:0; }
.login-brand-lockup img,.online-brand-lockup img { flex-shrink:0; }
#page-landing { background:radial-gradient(ellipse at 0 15%,#e0f3ef,transparent 48%),radial-gradient(ellipse at 100% 50%,#f0eafd,transparent 42%),#f8fafc;color:#334155;padding-bottom:env(safe-area-inset-bottom,0px); }
.welcome-shell { max-width:1140px;margin:auto;padding:28px clamp(20px,4vw,48px); }
.welcome-header { display:flex;align-items:center;justify-content:space-between;gap:20px; }
.welcome-brand { display:flex;align-items:center;gap:12px;color:#172b4d;font-weight:800;font-size:1.15rem; }
.welcome-brand small { display:block;color:#64748b;letter-spacing:.16em;font-size:.55rem;margin-top:4px; }
.welcome-edition { font-size:.75rem;color:#0f766e;background:#e7f4ef;border:1px solid #b4d8cb;padding:8px 12px;border-radius:999px; }
.welcome-hero { display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:clamp(24px,5vw,64px);padding:70px 0 64px; }
.welcome-eyebrow { color:#0f766e;font-size:.63rem;letter-spacing:.13em;font-weight:750;line-height:1.8; }
.welcome-copy h1 { font-size:clamp(2.4rem,5vw,3.8rem);letter-spacing:-.055em;line-height:1.12;font-weight:800;color:#172b4d;margin:18px 0 24px; }
.welcome-copy h1 span { color:#0f766e; }
.welcome-description { max-width:42ch;font-size:1rem;line-height:1.8;color:#526276; }
.welcome-primary { display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:54px;padding:14px 24px;background:#0f766e;color:white;font-weight:700;border-radius:14px;margin-top:28px;box-shadow:0 8px 20px #0f766e20; }
.welcome-primary:hover { background:#115e59; }
.welcome-primary span { font-size:1.3rem; }
.welcome-account-note { font-size:.7rem;color:#64748b;line-height:1.8;margin-top:12px;max-width:38ch; }
.welcome-feature { background:linear-gradient(145deg,#103e38,#173447 72%,#302b59);border-radius:28px;padding:28px;color:white;box-shadow:0 20px 50px #1734471c; }
.welcome-feature-top { display:flex;align-items:center;justify-content:space-between;font-size:.56rem;letter-spacing:.14em;color:#c1ddd5; }
.welcome-dot { width:8px;height:8px;border-radius:50%;background:#b5e9d8; }
.welcome-feature-logo { margin:30px 0 22px; }
.welcome-feature-label { color:#b5e9d8;font-size:.58rem;letter-spacing:.12em;font-weight:750; }
.welcome-feature h2 { font-size:clamp(1.45rem,2.8vw,1.85rem);line-height:1.3;letter-spacing:-.03em;font-weight:750;margin:12px 0 24px;color:#fff; }
.welcome-example { border-top:1px solid #567675;display:flex;gap:14px;padding:16px 0;align-items:flex-start; }
.welcome-example-number { display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border:1px solid #749892;border-radius:9px;color:#b5e9d8;font-size:.65rem; }
.welcome-example strong { font-size:.85rem;font-weight:650; }
.welcome-example p { font-size:.75rem;color:#d2e4e2;margin-top:5px;line-height:1.6; }
.welcome-feature-footer { font-size:.68rem;line-height:1.7;color:#bcd5d3;margin-top:8px; }
.welcome-journey { padding:30px 0; }
.welcome-section-heading h2 { color:#172b4d;font-size:1.6rem;letter-spacing:-.035em;font-weight:750;margin-top:8px; }
.welcome-steps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px; }
.welcome-steps article { padding:24px;background:white;border:1px solid #dbe3ed;border-radius:18px; }
.welcome-steps article > span { display:inline-block;color:#6d28d9;background:#f3efff;font-size:.7rem;font-weight:750;padding:7px 10px;border-radius:9px; }
.welcome-steps h3 { font-weight:700;color:#172b4d;font-size:1rem;margin:16px 0 8px; }
.welcome-steps p { font-size:.85rem;line-height:1.75;color:#64748b; }
.welcome-more { display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;padding:24px 0;border-top:1px solid #dbe3ed; }
.welcome-more summary { cursor:pointer;font-weight:650;font-size:.85rem;color:#334155;min-height:44px;padding:12px 0; }
.welcome-more p { font-size:.8rem;line-height:1.8;color:#64748b;margin:8px 0; }
.welcome-practice { display:flex;flex-wrap:wrap;gap:8px; }
.welcome-practice button { border:1px solid #b7ccc8;background:#fff;border-radius:10px;padding:10px 12px;font-size:.75rem;min-height:44px;color:#0f766e; }
.welcome-footer { display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #dbe3ed;padding:22px 0 60px;color:#64748b;font-size:.68rem; }
#page-landing :is(button,a,summary):focus-visible { outline:3px solid #fbbf24;outline-offset:4px; }
@media(max-width:700px) {
.welcome-shell { padding:22px 20px; }
.welcome-header { align-items:flex-start; }
.welcome-edition { display:none; }
.welcome-hero { grid-template-columns:1fr;padding:44px 0 30px;gap:32px; }
.welcome-copy h1 { font-size:clamp(2.4rem,10vw,3.2rem); }
.welcome-primary { width:100%; }
.welcome-feature { padding:24px;border-radius:22px; }
.welcome-feature-logo { width:64px;height:64px;margin:24px 0 18px; }
.welcome-steps,.welcome-more { grid-template-columns:1fr; }
.welcome-steps article { padding:20px; }
.welcome-more { gap:8px; }
}

/* Compact, app-like entry. Additional information stays collapsed. */
#page-landing.welcome-simple { min-height:100svh; }
.welcome-simple-shell { width:min(100%,480px);min-height:100svh;margin:auto;padding:clamp(24px,5vh,52px) 24px calc(100px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;justify-content:center; }
.welcome-simple-content { text-align:center; }
.welcome-simple-logo { margin:0 auto 20px;box-shadow:0 12px 30px #0f766e1a;border-radius:22px; }
.welcome-simple-name { color:#172b4d;font-size:1.1rem;font-weight:800; }
.welcome-simple-name span { display:block;font-size:.7rem;letter-spacing:.08em;font-weight:500;color:#64748b;margin-top:4px; }
.welcome-simple h1 { color:#172b4d;font-size:clamp(2rem,8vw,2.65rem);line-height:1.17;letter-spacing:-.045em;font-weight:800;margin:28px 0 14px; }
.welcome-simple h1 span { color:#0f766e; }
.welcome-simple-intro { color:#64748b;font-size:.9rem;line-height:1.7;max-width:30ch;margin:auto; }
.welcome-simple .welcome-primary { width:100%;margin-top:28px;min-height:54px; }
.welcome-simple-account { color:#64748b;font-size:.7rem;margin-top:12px; }
.welcome-simple-extras { margin-top:32px;border-top:1px solid #dbe3ed;padding-top:12px; }
.welcome-simple-extras summary { min-height:44px;padding:12px 0;cursor:pointer;font-size:.8rem;color:#475569;font-weight:600; }
.welcome-simple-extras p { font-size:.8rem;line-height:1.7;color:#64748b;margin:6px 0 12px; }
@media(max-height:650px) {
.welcome-simple-shell { justify-content:flex-start;padding-top:20px; }
.welcome-simple-logo { width:60px;height:60px;margin-bottom:12px; }
.welcome-simple h1 { margin-top:20px; }
}

/* Compact sign-in: one focused form on every screen. */
#page-account-login .login-shell.login-compact { max-width:440px;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:24px 20px calc(90px + env(safe-area-inset-bottom,0px)); }
.login-compact .login-form-card { background:#fff;border:1px solid #dbe3ed;border-radius:22px;padding:28px;box-shadow:0 12px 36px #1734470a; }
.login-compact-logo { display:block;margin-bottom:18px;border-radius:16px; }
#page-account-login .login-compact h1 { font-size:1.55rem;margin:0 0 26px; }
.login-compact .login-help { font-size:.75rem;line-height:1.7;margin-top:20px; }
.login-compact .login-back { margin-bottom:12px;align-self:flex-start; }
@media(max-height:650px) {
#page-account-login .login-shell.login-compact { justify-content:flex-start; }
}
