/* =====================================================================
   Ruzivo Educore design v2: modern product styling (tonal surfaces, soft
   elevation, a clear type scale, 44px+ touch targets). Loaded after
   edu.css. Checked at 360, 768, 1024 and 1440px wide.
   ===================================================================== */
:root {
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --e1: 0 1px 2px rgba(10,30,39,.06), 0 1px 3px rgba(10,30,39,.05);
  --e2: 0 2px 6px rgba(10,30,39,.06), 0 10px 28px rgba(10,30,39,.08);
  --e3: 0 8px 20px rgba(10,30,39,.10), 0 28px 60px rgba(10,30,39,.14);
  --tint-teal: #E6F6F3; --tint-gold: #FFF4DC; --surface: #FBFAF7;
}
body { font-size: 16.5px; background: var(--surface); }
h1, h2, h3 { letter-spacing: -.022em; font-weight: 750; }
.sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 22em; }
.wrap { padding: 0 clamp(16px, 4vw, 32px); }

/* buttons: consistent heights and tap targets */
.btn { min-height: 46px; padding: 0 22px; font-weight: 650; }
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.btn-teal { box-shadow: 0 1px 2px rgba(11,110,99,.3), 0 4px 14px rgba(11,110,99,.22); }
.btn-gold { box-shadow: 0 1px 2px rgba(150,100,0,.25), 0 6px 18px rgba(244,183,64,.28); }
.btn-line { border-color: #d9d5ca; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* navigation */
.nav { background: rgba(251,250,247,.86); }
.nav-dark { background: rgba(10,30,39,.94); }
.nav-in { min-height: 68px; }
.nav-links { gap: 4px; }
.nav-links a, .nav-links .link-btn { padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(22,163,148,.09); }
.nav-dark .nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links .btn-gold { margin-left: 8px; min-height: 40px; }
@media (max-width: 860px) {
  .nav-links { top: 68px; padding: 8px 16px 18px; box-shadow: var(--e2); }
  .nav-links a, .nav-links form { padding: 12px 10px; min-height: 48px; display: flex; align-items: center; }
  .nav-links .btn-gold { margin: 10px 0 0; justify-content: center; }
}

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background: radial-gradient(900px 480px at 85% 10%, rgba(22,163,148,.22), transparent 60%),
              radial-gradient(700px 420px at 0% 100%, rgba(244,183,64,.10), transparent 60%), var(--ink); }
.hero-in { grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.65; max-width: 34em; }
.eyebrow { background: rgba(63,199,180,.1); border: 1px solid rgba(63,199,180,.25); padding: 6px 12px; border-radius: 999px; letter-spacing: .06em; font-size: .72rem; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #cfe0e2; font-size: .94rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(63,199,180,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233FC7B4' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-note { margin-top: 12px; color: #8fb0b4; font-size: .86rem; }
.hero-note b { color: #e6f2f3; }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.mock { position: relative; width: min(100%, 560px); background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); animation: mock-float 7s ease-in-out infinite; }
@keyframes mock-float { 50% { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1f0; border-bottom: 1px solid #e3e6e4; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d9d7; }
.mock-bar i:first-child { background: #f07b6a; } .mock-bar i:nth-child(2) { background: #f4c04a; } .mock-bar i:nth-child(3) { background: #5cc48c; }
.mock-bar span { margin-left: 10px; font-size: .74rem; color: #5d6e74; background: #fff; border-radius: 999px; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 290px; }
.mock-side { background: var(--ink); color: #9fb7bb; padding: 14px 10px; display: grid; align-content: start; gap: 4px; font-size: .78rem; }
.mock-side b { color: #fff; font-size: .82rem; margin: 0 6px 8px; }
.mock-side span { padding: 7px 10px; border-radius: 8px; }
.mock-side .on { background: rgba(63,199,180,.18); color: #fff; }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; background: #f7f8f6; min-width: 0; }
.mock-hi { margin: 0; font-weight: 700; color: var(--ink); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-kpis div { background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--e1); }
.mock-kpis small { display: block; color: #6a7a80; font-size: .7rem; }
.mock-kpis b { font-size: 1.2rem; color: var(--ink); }
.mock-chart { height: 90px; background: #fff; border-radius: 12px; box-shadow: var(--e1); display: flex; align-items: flex-end; gap: 7%; padding: 12px 14px; }
.mock-chart i { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal-lt), var(--teal)); transition: height 1.2s cubic-bezier(.2,.8,.2,1); }
.mock-ai { display: flex; gap: 8px; align-items: flex-start; background: var(--tint-gold); color: #6b4a06; border-radius: 12px; padding: 10px 12px; font-size: .8rem; }
.mock-ai span { color: #c98a00; font-size: 1rem; line-height: 1; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-top: 8px; }
  .mock { transform: none; animation: none; }
}
@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .cta-row .btn { width: 100%; }
}

/* highlights band */
.band-trust { background: var(--ink-2); border-top: 1px solid var(--line-dk); }
.trust-row { display: flex; gap: 10px; padding-top: 16px; padding-bottom: 16px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.trust-row::-webkit-scrollbar { display: none; }
.trust-row span { flex: none; color: #cfe0e2; font-size: .88rem; border: 1px solid var(--line-dk); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.03); }

/* sections and cards */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-paper { background: #F2F0EA; }
.kicker { display: inline-block; background: var(--tint-teal); color: var(--teal-dk); padding: 5px 12px; border-radius: 999px; font-size: .72rem; letter-spacing: .1em; }
.sec-dark .kicker, .kicker-gold { background: rgba(244,183,64,.14); color: var(--gold); }
.feat, .trust article, .steps li, .card, .prices .price, .faq details, .kpi-row > div, .group-demo { border-radius: var(--r-lg); box-shadow: var(--e1); }
.feat, .trust article { padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover, .trust article:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: rgba(22,163,148,.35); }
.feat svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--tint-teal); margin-bottom: 14px; }
.feat h3, .trust h3 { font-size: 1.08rem; margin-bottom: .35em; }
.grid4, .grid3, .grid2 { gap: clamp(14px, 2vw, 22px); }
.prices .price { padding: 30px 24px; }
.price .amt b { font-size: 2.4rem; letter-spacing: -.03em; }
.price-hot { box-shadow: var(--e3); transform: translateY(-6px); }
@media (max-width: 960px) { .price-hot { transform: none; } }
.faq { max-width: 860px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dk); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.ai-demo-table, .enquiry { border-radius: var(--r); }
@media (max-width: 640px) {
  .ai-demo { grid-template-columns: 1fr; }
  .ai-demo-arrow { transform: rotate(90deg); justify-self: center; }
  .gd-row { grid-template-columns: 100px 1fr 40px; }
  .gd-row em { display: none; }
}

/* forms */
input, select { min-height: 48px; }
input, select, textarea { border-radius: 12px; border-color: #d3d9d6; }
input[type="checkbox"], input[type="radio"] { min-height: 0; }
/* Visually hidden radios (segmented switch, colour swatches) must not take the
   global width:100%, or they push the page wider than a phone screen. */
.seg label, .sw { position: relative; }
.seg input, .sw input { width: 1px; height: 1px; left: 0; top: 0; margin: 0; }
.etable input, .etable select { min-height: 40px; }
.card { padding: clamp(20px, 3.5vw, 32px); }
.auth { margin: clamp(24px, 6vw, 64px) auto; }
.auth .card h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
@media (max-width: 640px) {
  .auth { padding: 0 12px; }
  .auth-side ul { display: none; }
}

/* setup wizard: a swipeable step strip on small screens; actions always within reach */
@media (max-width: 900px) {
  .stepper { padding: 10px; }
  .stepper ol { display: flex; overflow-x: auto; gap: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .stepper ol::-webkit-scrollbar { display: none; }
  .stepper li { flex: none; scroll-snap-align: start; min-width: 92px; }
  .step-actions { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
    margin: 6px calc(-1 * clamp(20px, 3.5vw, 32px)) calc(-1 * clamp(20px, 3.5vw, 32px)); padding: 12px clamp(20px, 3.5vw, 32px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
}
@media (max-width: 520px) {
  .step-actions .btn { flex: 1 1 auto; }
  .step-actions .grow { display: none; }
  .etable-tools .btn { flex: 1 1 45%; }
}

/* dashboards and tables */
.kpi-row > div { padding: 18px 20px; }
.kpi-row dd { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.school-card { display: flex; flex-direction: column; gap: 6px; }
.school-card footer { margin-top: auto; padding-top: 10px; }
@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn { width: 100%; }
  .mini-kpis, .mini-kpis.big { grid-template-columns: repeat(2, 1fr); }
  .hbars div { grid-template-columns: 96px 1fr 48px; }
  .filters input, .filters select { max-width: none; }
  .status-top { gap: 6px; }
  .days { gap: 2px; }
}

/* the helper: compact when it opens by itself, a bottom sheet on phones */
.ai-fab { min-height: 50px; }
.ai-panel { transition: height .25s ease; }
.ai-panel.ai-compact { height: auto; max-height: 320px; }
.ai-panel.ai-compact .ai-log { flex: none; overflow: hidden; }
@media (max-width: 520px) {
  .ai-panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: min(86vh, 640px); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .ai-panel:not([hidden]) ~ .ai-fab { display: none; }
}

.foot { padding-top: clamp(40px, 6vw, 64px); }
/* room for the floating helper button, so it never sits on the last line of a page */
@media (max-width: 520px) { .foot-base { padding-bottom: 72px; } .step-actions { padding-left: 76px; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mock { animation: none; } .feat:hover, .trust article:hover { transform: none; } }
