/* =====================================================================
   Clasio — Homepage Stylesheet
   Mobile-first: base rules target small screens; layout is
   progressively enhanced at larger breakpoints (min-width queries).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --paper:#F6F5F2;
  --paper-raise:#FFFFFF;
  --ink:#14161F;
  --ink-soft:#585B6B;
  --ink-faint:#9295A6;
  --line:#E4E3DD;

  --violet:#5B4FE8;
  --violet-deep:#4038B8;
  --coral:#FF6B4A;
  --mint:#1FB88E;
  --sun:#FFB648;

  --violet-tint:#EFEDFC;
  --coral-tint:#FFEEE9;
  --mint-tint:#E7F9F3;

  --radius-s:12px;
  --radius-m:20px;
  --radius-l:26px;
  --radius-xl:32px;

  --shadow-soft:0 2px 8px rgba(20,22,31,0.04), 0 12px 32px rgba(20,22,31,0.06);
  --shadow-lift:0 8px 24px rgba(20,22,31,0.08), 0 24px 60px rgba(20,22,31,0.10);

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --ease:cubic-bezier(.22,.9,.32,1);
}

/* ---------- Reset ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}
body{
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
ul{ list-style:none; }
input{ font-family:inherit; }
:focus-visible{ outline:2.5px solid var(--violet); outline-offset:3px; border-radius:6px; }

/* A <form> that should be visually invisible — its single <button>
   child participates directly in the parent's flex/grid layout as if
   the form itself weren't there. Used to turn a state-changing link
   (logout) into a real POST+CSRF submission without touching the
   surrounding layout; see includes/sidebar-app.php, navbar.php,
   header-app.php, header-admin.php. */
.inline-form{ display:contents; }

/* ---------- Layout helpers ---------- */
.wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }
@media (min-width:768px){ .wrap{ padding:0 32px; } }

section{ padding:64px 0; position:relative; }
@media (min-width:768px){ section{ padding:120px 0; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12px; font-weight:500;
  letter-spacing:0.04em; text-transform:uppercase;
  color:var(--violet-deep); background:var(--violet-tint);
  padding:7px 14px; border-radius:100px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--violet); }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; letter-spacing:-0.02em; line-height:1.1; color:var(--ink); }

.section-head{ max-width:640px; margin:0 0 40px; }
.section-head h2{ font-size:clamp(26px,6vw,42px); margin-bottom:14px; }
.section-head p{ font-size:16px; color:var(--ink-soft); line-height:1.6; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
@media (min-width:768px){ .section-head{ margin-bottom:56px; } .section-head p{ font-size:17px; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  padding:14px 24px; border-radius:100px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:#fff; box-shadow:0 1px 2px rgba(20,22,31,0.1); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lift); }
.btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ background:var(--paper-raise); border-color:var(--ink-faint); transform:translateY(-2px); }
.btn-sm{ padding:10px 16px; font-size:13.5px; }
.btn-block{ width:100%; }

/* ---------- Nav (mobile-first: collapsed by default) ---------- */
.site-header{ position:sticky; top:0; z-index:100; padding:14px 0; }
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(246,245,242,0.78);
  backdrop-filter:blur(16px) saturate(1.4);
  -webkit-backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid rgba(228,227,221,0.8);
  border-radius:100px;
  padding:8px 8px 8px 16px;
  max-width:1200px; margin:0 auto;
  position:relative;
}
.logo{ font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-0.02em; display:flex; align-items:center; gap:8px; }
.logo-mark{ flex-shrink:0; }

.nav-links{ display:none; }
.nav-cta{ display:none; align-items:center; gap:6px; }
.nav-cta .btn-ghost{ display:none; }

.nav-toggle{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; color:var(--ink); flex-shrink:0;
}
.mobile-nav-panel{
  display:none;
  position:absolute; top:56px; left:0; right:0;
  background:var(--paper-raise); border:1px solid var(--line); border-radius:20px;
  padding:10px; box-shadow:var(--shadow-lift);
  flex-direction:column; gap:2px; z-index:99;
}
.mobile-nav-panel.open{ display:flex; }
.mobile-nav-panel a{
  font-size:15px; font-weight:500; color:var(--ink-soft);
  padding:12px 14px; border-radius:12px; transition:background .2s, color .2s;
}
.mobile-nav-panel a:hover{ background:var(--paper); color:var(--ink); }
.mobile-nav-panel .mnp-actions{ display:flex; flex-direction:column; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }

@media (min-width:860px){
  .nav-inner{ padding:10px 10px 10px 22px; }
  .logo{ font-size:20px; }
  .nav-links{ display:flex; gap:4px; align-items:center; }
  .nav-links a{ font-size:14.5px; font-weight:500; color:var(--ink-soft); padding:9px 16px; border-radius:100px; transition:background .2s, color .2s; }
  .nav-links a:hover{ background:rgba(20,22,31,0.05); color:var(--ink); }
  .nav-cta{ display:flex; }
  .nav-cta .btn-ghost{ display:inline-flex; }
  .nav-toggle{ display:none; }
  .mobile-nav-panel{ display:none !important; }
}

/* ---------- Hero (mobile-first: single column) ---------- */
.hero{ padding:48px 0 40px; position:relative; }
@media (min-width:768px){ .hero{ padding:88px 0 60px; } }

.hero-bg{
  position:absolute; top:-120px; left:50%; transform:translateX(-50%);
  width:1400px; height:900px; z-index:-1;
  background:
    radial-gradient(480px 380px at 22% 20%, rgba(91,79,232,0.16), transparent 70%),
    radial-gradient(420px 340px at 78% 10%, rgba(255,107,74,0.14), transparent 70%);
  filter:blur(10px);
}

.hero-grid{ display:grid; grid-template-columns:1fr; gap:40px; align-items:center; }
@media (min-width:980px){ .hero-grid{ grid-template-columns:1.02fr 0.98fr; gap:48px; } }

.hero-copy h1{ font-size:clamp(32px, 8vw, 60px); margin:18px 0 18px; }
.hero-copy h1 .accent{
  background:linear-gradient(100deg, var(--violet) 10%, var(--coral) 90%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p{ font-size:16.5px; color:var(--ink-soft); max-width:480px; margin-bottom:28px; line-height:1.65; }
@media (min-width:768px){ .hero-copy p{ font-size:18px; margin-bottom:34px; } }

.hero-actions{ display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.hero-actions .btn{ width:100%; }
@media (min-width:520px){ .hero-actions{ flex-direction:row; flex-wrap:wrap; } .hero-actions .btn{ width:auto; } }

.hero-note{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-faint); }
.hero-note .dots{ display:flex; }
.hero-note .dots span{ width:22px; height:22px; border-radius:50%; border:2px solid var(--paper); margin-left:-8px; }
.hero-note .dots span:first-child{ margin-left:0; }
.hero-free-tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:12px; font-weight:500;
  color:var(--mint); background:var(--mint-tint); padding:5px 12px; border-radius:100px;
  margin-bottom:16px;
}
.hero-free-tag::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--mint); }

/* Hero product preview — floating chat cards */
.hero-visual{ position:relative; height:360px; order:-1; }
@media (min-width:980px){ .hero-visual{ height:520px; order:0; } }

.hv-card{
  position:absolute; background:var(--paper-raise); border:1px solid var(--line);
  border-radius:var(--radius-l); box-shadow:var(--shadow-lift); padding:16px;
  animation:float 7s ease-in-out infinite;
}
@keyframes float{ 0%,100%{ transform:translateY(0px); } 50%{ transform:translateY(-12px); } }

.hv-main{ width:260px; top:8px; left:8px; z-index:3; }
@media (min-width:980px){ .hv-main{ width:320px; top:20px; left:40px; padding:20px; } }
.hv-main .hv-top{ display:flex; align-items:center; gap:10px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.hv-avatar{ width:30px; height:30px; border-radius:9px; flex-shrink:0; }
.hv-name{ font-weight:600; font-size:13px; }
.hv-sub{ font-size:11px; color:var(--ink-faint); }
.bubble{ max-width:82%; padding:9px 13px; border-radius:14px; font-size:12.5px; margin-bottom:8px; line-height:1.4; }
.bubble.in{ background:var(--paper); border-bottom-left-radius:4px; }
.bubble.out{ background:var(--violet); color:#fff; margin-left:auto; border-bottom-right-radius:4px; }
.hv-typing{ display:flex; gap:4px; padding:9px 13px; }
.hv-typing span{ width:5px; height:5px; border-radius:50%; background:var(--ink-faint); animation:typing 1.2s infinite ease-in-out; }
.hv-typing span:nth-child(2){ animation-delay:.15s; }
.hv-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typing{ 0%,60%,100%{ opacity:.3; transform:translateY(0);} 30%{ opacity:1; transform:translateY(-3px);} }

.hv-float2{ width:150px; top:220px; left:120px; z-index:2; animation-delay:1.4s; padding:12px; }
@media (min-width:980px){ .hv-float2{ width:200px; top:290px; left:210px; padding:16px; } }
.hv-float2 .tag{ display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:10px; font-weight:500; color:var(--mint); background:var(--mint-tint); padding:4px 9px; border-radius:100px; margin-bottom:8px; }
.hv-float2 .tag::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--mint); }
.hv-float2 h4{ font-size:13px; margin-bottom:3px; }
.hv-float2 p{ font-size:11px; color:var(--ink-soft); }

.hv-float3{ width:132px; top:-4px; right:4px; z-index:1; animation-delay:2.8s; padding:12px; }
@media (min-width:980px){ .hv-float3{ width:168px; top:-10px; right:0; } }
.hv-float3 .hv-icon{ width:30px; height:30px; border-radius:9px; background:var(--coral-tint); color:var(--coral); display:flex; align-items:center; justify-content:center; font-size:14px; margin-bottom:8px; }
.hv-float3 h4{ font-size:12px; margin-bottom:3px; }
.hv-float3 p{ font-size:10.5px; color:var(--ink-faint); }

.c1{ background:linear-gradient(135deg,#7C72F0,#5B4FE8); }
.c2{ background:linear-gradient(135deg,#FF9270,#FF6B4A); }
.c3{ background:linear-gradient(135deg,#4FD9BC,#1FB88E); }
.c4{ background:linear-gradient(135deg,#FFCB77,#FFB648); }

/* ---------- Search school (dark panel) ---------- */
.search-section{
  background:var(--ink); color:#fff; border-radius:var(--radius-xl);
  padding:48px 22px; position:relative; overflow:hidden;
}
@media (min-width:768px){ .search-section{ padding:80px 40px; } }
.search-section::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(91,79,232,0.35), transparent 60%),
    radial-gradient(400px 260px at 5% 110%, rgba(255,107,74,0.25), transparent 60%);
  pointer-events:none;
}
.search-section .section-head{ position:relative; }
.search-section .section-head h2, .search-section .section-head p{ color:#fff; }
.search-section .section-head p{ color:rgba(255,255,255,0.62); }

.search-bar{
  position:relative; display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,0.06); border:1.5px solid rgba(255,255,255,0.14);
  border-radius:100px; padding:6px 6px 6px 20px; max-width:640px; margin-bottom:32px;
  transition:border-color .25s, background .25s;
}
.search-bar:focus-within{ border-color:rgba(255,255,255,0.4); background:rgba(255,255,255,0.09); }
.search-bar svg{ flex-shrink:0; opacity:0.55; }
.search-bar input{ flex:1; min-width:0; background:none; border:none; outline:none; color:#fff; font-size:14.5px; padding:10px 0; }
.search-bar input::placeholder{ color:rgba(255,255,255,0.4); }
.search-bar .btn-primary{ background:#fff; color:var(--ink); flex-shrink:0; }
.search-bar .btn-primary:hover{ background:#fff; box-shadow:0 8px 24px rgba(255,255,255,0.18); }

.category-grid{ position:relative; display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:520px){ .category-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:860px){ .category-grid{ grid-template-columns:repeat(3,1fr); gap:12px; } }
.cat-chip{
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.10);
  border-radius:var(--radius-s); padding:15px 16px; font-size:13.5px; font-weight:500;
  color:rgba(255,255,255,0.86);
  transition:background .25s, border-color .25s, transform .25s var(--ease);
}
.cat-chip:hover{ background:rgba(255,255,255,0.09); border-color:rgba(255,255,255,0.22); transform:translateY(-2px); }
.cat-chip svg{ opacity:0.5; flex-shrink:0; }

.search-footnote{ position:relative; margin-top:24px; font-size:12.5px; color:rgba(255,255,255,0.4); font-family:var(--font-mono); }

/* ---------- Why Clasio ---------- */
.why-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:860px){ .why-grid{ grid-template-columns:repeat(3,1fr); gap:24px; } }
.why-card{
  background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:26px 24px; transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (min-width:768px){ .why-card{ padding:32px 28px; } }
.why-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-soft); }
.why-icon{ width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:18px; }
.why-card:nth-child(1) .why-icon{ background:var(--violet-tint); }
.why-card:nth-child(2) .why-icon{ background:var(--coral-tint); }
.why-card:nth-child(3) .why-icon{ background:var(--mint-tint); }
.why-card h3{ font-size:18px; margin-bottom:9px; }
.why-card p{ font-size:14.5px; color:var(--ink-soft); line-height:1.65; }

/* ---------- How it works ---------- */
.steps-list{ display:flex; flex-direction:column; gap:0; }
.step-item{
  display:grid; grid-template-columns:auto 1fr; gap:18px;
  padding:26px 0; border-top:1px solid var(--line);
}
.step-item:last-child{ border-bottom:1px solid var(--line); }
.step-num{
  font-family:var(--font-mono); font-size:14px; font-weight:500; color:var(--violet);
  width:36px; height:36px; border-radius:11px; background:var(--violet-tint);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.step-body h3{ font-size:17px; margin-bottom:6px; }
.step-body p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; max-width:520px; }
@media (min-width:860px){
  .steps-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  .step-item{ flex-direction:column; border-top:none; padding:0; grid-template-columns:1fr; }
  .step-item:last-child{ border-bottom:none; }
  .step-num{ margin-bottom:18px; }
}

/* ---------- Features ---------- */
.feature-grid{
  display:grid; grid-template-columns:1fr; gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius-l); overflow:hidden;
}
@media (min-width:560px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .feature-grid{ grid-template-columns:repeat(4,1fr); } }
.feature-cell{ background:var(--paper-raise); padding:24px 22px; transition:background .25s; }
@media (min-width:768px){ .feature-cell{ padding:30px 26px; } }
.feature-cell:hover{ background:#FBFAF8; }
.feature-cell .f-icon{ width:36px; height:36px; border-radius:11px; background:var(--paper); display:flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:16px; }
.feature-cell h4{ font-size:15px; font-weight:600; margin-bottom:5px; letter-spacing:-0.01em; }
.feature-cell p{ font-size:12.5px; color:var(--ink-faint); line-height:1.55; }

/* ---------- Communities ---------- */
.comm-layout{ display:grid; grid-template-columns:1fr; gap:32px; align-items:center; }
@media (min-width:900px){ .comm-layout{ grid-template-columns:0.9fr 1.1fr; gap:60px; } }
.comm-copy .section-head{ margin-bottom:22px; }
.comm-list{ display:flex; flex-direction:column; gap:4px; }
.comm-list li{ display:flex; gap:14px; align-items:flex-start; padding:15px 0; border-top:1px solid var(--line); }
.comm-list li:last-child{ border-bottom:1px solid var(--line); }
.comm-list .num{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); padding-top:2px; }
.comm-list h4{ font-size:15px; margin-bottom:3px; font-weight:600; }
.comm-list p{ font-size:13px; color:var(--ink-soft); }

.comm-visual{ background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-l); box-shadow:var(--shadow-soft); padding:20px; }
@media (min-width:768px){ .comm-visual{ padding:24px; } }
.comm-visual-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.comm-visual-top .badge{ font-family:var(--font-mono); font-size:10.5px; font-weight:500; background:var(--violet-tint); color:var(--violet-deep); padding:4px 10px; border-radius:100px; }
.comm-card-row{ display:flex; gap:10px; overflow:hidden; margin-bottom:10px; }
.mini-card{ flex:1; min-width:0; background:var(--paper); border-radius:14px; padding:14px; }
.mini-card .mc-icon{ width:28px; height:28px; border-radius:9px; margin-bottom:10px; }
.mini-card h5{ font-size:12.5px; margin-bottom:2px; font-weight:600; }
.mini-card span{ font-size:11px; color:var(--ink-faint); }
.comm-thread{ background:var(--paper); border-radius:14px; padding:14px; }
.comm-thread .th-msg{ display:flex; gap:10px; margin-bottom:12px; }
.comm-thread .th-msg:last-child{ margin-bottom:0; }
.comm-thread .th-avatar{ width:24px; height:24px; border-radius:8px; flex-shrink:0; }
.comm-thread .th-name{ font-size:11.5px; font-weight:600; margin-bottom:2px; }
.comm-thread .th-text{ font-size:12px; color:var(--ink-soft); line-height:1.5; }

/* ---------- Student life ---------- */
.life-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:860px){ .life-grid{ grid-template-columns:repeat(3,1fr); gap:20px; } }
.life-card{ border-radius:var(--radius-l); padding:28px 24px; min-height:220px; display:flex; flex-direction:column; justify-content:flex-end; position:relative; overflow:hidden; }
@media (min-width:768px){ .life-card{ padding:34px 30px; min-height:280px; } }
.life-card .life-tag{ position:absolute; top:24px; left:24px; font-family:var(--font-mono); font-size:11.5px; font-weight:500; letter-spacing:0.04em; text-transform:uppercase; }
@media (min-width:768px){ .life-card .life-tag{ top:30px; left:30px; } }
.life-card h3{ font-size:20px; margin-bottom:8px; }
.life-card p{ font-size:13.5px; line-height:1.6; color:var(--ink-soft); }
.life-card.before{ background:linear-gradient(160deg, #EFEDFC, #F6F5F2 70%); }
.life-card.before .life-tag{ color:var(--violet-deep); }
.life-card.during{ background:linear-gradient(160deg, #FFEEE9, #F6F5F2 70%); }
.life-card.during .life-tag{ color:#D4472B; }
.life-card.after{ background:linear-gradient(160deg, #E7F9F3, #F6F5F2 70%); }
.life-card.after .life-tag{ color:#0D8F6B; }

/* ---------- Platform preview ---------- */
.preview-tabs{ display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; }
.preview-tab{ font-size:13px; font-weight:600; color:var(--ink-soft); padding:9px 16px; border-radius:100px; border:1px solid var(--line); background:var(--paper-raise); transition:all .2s; }
.preview-tab.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.preview-stage{ background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-soft); padding:20px; }
@media (min-width:768px){ .preview-stage{ padding:40px; } }

.preview-panel{ display:none; }
.preview-panel.active{ display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width:900px){ .preview-panel.active{ grid-template-columns:1.3fr 1fr; gap:32px; } }

.msg-app{ display:flex; border:1px solid var(--line); border-radius:18px; overflow:hidden; height:340px; }
.msg-side{ width:120px; background:var(--paper); border-right:1px solid var(--line); padding:14px 8px; flex-shrink:0; }
@media (min-width:500px){ .msg-side{ width:150px; padding:16px 10px; } }
.msg-side .ms-item{ display:flex; align-items:center; gap:8px; padding:8px; border-radius:10px; margin-bottom:4px; }
.msg-side .ms-item.active{ background:var(--paper-raise); box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.msg-side .ms-dot{ width:22px; height:22px; border-radius:8px; flex-shrink:0; }
.msg-side .ms-label{ font-size:10.5px; font-weight:500; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-main{ flex:1; min-width:0; display:flex; flex-direction:column; padding:14px; }
.msg-main .mm-head{ font-size:12.5px; font-weight:600; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.msg-main .bubble{ font-size:12px; }

.cal-app{ border:1px solid var(--line); border-radius:18px; padding:18px; height:340px; display:flex; flex-direction:column; }
.cal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cal-head h5{ font-size:13.5px; font-weight:600; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:3px; margin-bottom:14px; }
.cal-grid span{ font-size:9.5px; text-align:center; color:var(--ink-faint); padding:4px 0; }
.cal-grid .day{ font-size:10.5px; text-align:center; padding:6px 0; border-radius:8px; color:var(--ink-soft); }
.cal-grid .day.today{ background:var(--violet); color:#fff; font-weight:600; }
.cal-grid .day.has-event{ background:var(--violet-tint); color:var(--violet-deep); font-weight:600; }
.cal-events{ display:flex; flex-direction:column; gap:8px; }
.cal-event{ display:flex; gap:10px; align-items:center; font-size:11.5px; }
.cal-event .ce-bar{ width:3px; height:24px; border-radius:2px; flex-shrink:0; }
.cal-event .ce-time{ font-family:var(--font-mono); font-size:10px; color:var(--ink-faint); width:36px; flex-shrink:0; }

.stage-side{ display:flex; flex-direction:column; gap:14px; justify-content:center; }
.stage-side h4{ font-size:19px; margin-bottom:6px; }
.stage-side p{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin-bottom:4px; }
.stage-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.stage-tags span{ font-family:var(--font-mono); font-size:11px; background:var(--paper); border:1px solid var(--line); padding:5px 11px; border-radius:100px; color:var(--ink-soft); }

.voice-app{ border:1px solid var(--line); border-radius:18px; height:340px; padding:18px; display:flex; flex-direction:column; }
.voice-head{ display:flex; align-items:center; gap:8px; margin-bottom:18px; }
.voice-head .vh-dot{ width:8px; height:8px; border-radius:50%; background:var(--mint); }
.voice-head span{ font-size:12px; font-weight:600; }
.voice-users{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; flex:1; align-content:start; }
.voice-user{ display:flex; flex-direction:column; align-items:center; gap:7px; }
.voice-user .vu-avatar{ width:44px; height:44px; border-radius:14px; position:relative; }
@media (min-width:500px){ .voice-user .vu-avatar{ width:52px; height:52px; border-radius:16px; } }
.voice-user .vu-avatar.speaking::after{ content:''; position:absolute; inset:-4px; border-radius:19px; border:2px solid var(--mint); animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%{ opacity:1; transform:scale(1);} 100%{ opacity:0; transform:scale(1.15);} }
.voice-user span{ font-size:10.5px; color:var(--ink-soft); font-weight:500; }
.voice-footer{ display:flex; gap:10px; justify-content:center; padding-top:14px; border-top:1px solid var(--line); }
.voice-footer .vf-btn{ width:36px; height:36px; border-radius:12px; background:var(--paper); display:flex; align-items:center; justify-content:center; }

.notes-app{ border:1px solid var(--line); border-radius:18px; height:340px; padding:18px; overflow:hidden; }
.notes-head{ font-size:12.5px; font-weight:600; margin-bottom:14px; }
.note-line{ height:8px; background:var(--paper); border-radius:5px; margin-bottom:9px; }
.note-line.w1{ width:92%; } .note-line.w2{ width:68%; } .note-line.w3{ width:80%; } .note-line.w4{ width:45%; }
.note-block{ background:var(--paper); border-radius:10px; padding:11px; margin-top:14px; }
.note-block .nb-title{ font-size:11px; font-weight:600; color:var(--violet-deep); margin-bottom:5px; }

/* Profile preview mockup */
.profile-app{ border:1px solid var(--line); border-radius:18px; height:340px; overflow:hidden; display:flex; flex-direction:column; }
.profile-cover{ height:88px; background:linear-gradient(120deg, var(--violet) 0%, var(--coral) 100%); flex-shrink:0; }
.profile-main{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 20px; margin-top:-34px; }
.profile-avatar{
  width:68px; height:68px; border-radius:20px; border:4px solid var(--paper-raise);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:700; color:#fff; font-family:var(--font-display);
  margin-bottom:12px;
}
.profile-name{ font-family:var(--font-display); font-size:15.5px; font-weight:600; }
.profile-sub{ font-size:12px; color:var(--ink-faint); margin-top:2px; margin-bottom:12px; }
.profile-badges{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.profile-badge{ font-size:10.5px; font-weight:500; color:var(--violet-deep); background:var(--violet-tint); padding:4px 10px; border-radius:100px; }
.profile-stats{ display:flex; justify-content:center; gap:28px; margin-top:auto; padding:18px 0; border-top:1px solid var(--line); }
.profile-stat{ display:flex; flex-direction:column; align-items:center; }
.profile-stat strong{ font-family:var(--font-display); font-size:16px; }
.profile-stat span{ font-size:11px; color:var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq-list{ max-width:760px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 2px; text-align:left; font-size:15.5px; font-weight:600; font-family:var(--font-display);
}
@media (min-width:768px){ .faq-q{ padding:26px 4px; font-size:16.5px; } }
.faq-q .plus{ width:24px; height:24px; flex-shrink:0; border-radius:50%; border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; position:relative; transition:transform .3s var(--ease), background .2s; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background:var(--ink-soft); transition:transform .3s var(--ease), opacity .3s; }
.faq-q .plus::before{ width:10px; height:1.5px; }
.faq-q .plus::after{ width:1.5px; height:10px; }
.faq-item.open .faq-q .plus{ transform:rotate(180deg); background:var(--ink); }
.faq-item.open .faq-q .plus::after{ opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a p{ padding:0 2px 20px; font-size:14.5px; color:var(--ink-soft); line-height:1.7; max-width:640px; }
@media (min-width:768px){ .faq-a p{ padding:0 4px 26px; font-size:15px; } }

/* ---------- Final CTA ---------- */
.cta-section{
  background:linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 55%, #E8523A 130%);
  border-radius:var(--radius-xl); padding:56px 22px; text-align:center; position:relative; overflow:hidden;
}
@media (min-width:768px){ .cta-section{ padding:90px 40px; } }
.cta-section::before{ content:''; position:absolute; inset:0; background:radial-gradient(500px 300px at 50% 0%, rgba(255,255,255,0.14), transparent 70%); }
.cta-section h2{ position:relative; color:#fff; font-size:clamp(28px, 7vw, 46px); max-width:640px; margin:0 auto 16px; }
.cta-section p{ position:relative; color:rgba(255,255,255,0.72); font-size:15.5px; max-width:480px; margin:0 auto 30px; }
.cta-actions{ position:relative; display:flex; flex-direction:column; gap:12px; }
.cta-actions .btn{ width:100%; }
@media (min-width:520px){ .cta-actions{ flex-direction:row; justify-content:center; flex-wrap:wrap; } .cta-actions .btn{ width:auto; } }
.cta-section .btn-primary{ background:#fff; color:var(--ink); }
.cta-section .btn-primary:hover{ box-shadow:0 12px 32px rgba(0,0,0,0.2); }
.cta-section .btn-ghost{ border-color:rgba(255,255,255,0.3); color:#fff; }
.cta-section .btn-ghost:hover{ background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.5); }

/* ---------- Footer ---------- */
.site-footer{ padding:56px 0 32px; }
@media (min-width:768px){ .site-footer{ padding:80px 0 40px; } }
.footer-top{ display:grid; grid-template-columns:1fr 1fr; gap:32px; padding-bottom:40px; border-bottom:1px solid var(--line); }
@media (min-width:480px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (min-width:760px){ .footer-top{ grid-template-columns:1.4fr repeat(3, 1fr); gap:40px; padding-bottom:56px; } }
.footer-brand{ grid-column:1 / -1; }
@media (min-width:760px){ .footer-brand{ grid-column:auto; } }
.footer-brand .logo{ margin-bottom:4px; }
.footer-brand p{ font-size:13.5px; color:var(--ink-soft); max-width:260px; margin:14px 0 18px; line-height:1.6; }
.footer-col h5{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--ink-faint); margin-bottom:14px; font-family:var(--font-mono); }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14px; color:var(--ink-soft); transition:color .2s; }
.footer-col a:hover{ color:var(--ink); }
.footer-bottom{ display:flex; flex-direction:column; gap:16px; padding-top:24px; }
@media (min-width:600px){ .footer-bottom{ flex-direction:row; justify-content:space-between; align-items:center; padding-top:28px; } }
.footer-bottom p{ font-size:12.5px; color:var(--ink-faint); }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{ width:34px; height:34px; border-radius:11px; background:var(--paper-raise); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; transition:background .2s, transform .2s; }
.footer-socials a:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }

/* ---------- Schools page (/schools) ---------- */
.schools-hero{ padding:48px 0 32px; }
@media (min-width:768px){ .schools-hero{ padding:72px 0 40px; } }

.schools-search-bar{
  display:flex; align-items:center; gap:10px;
  background:var(--paper-raise); border:1.5px solid var(--line); border-radius:100px;
  padding:6px 6px 6px 20px; max-width:640px; margin-bottom:24px;
  transition:border-color .25s;
}
.schools-search-bar:focus-within{ border-color:var(--violet); box-shadow:0 0 0 4px var(--violet-tint); }
.schools-search-bar svg{ flex-shrink:0; color:var(--ink-faint); }
.schools-search-bar input{ flex:1; min-width:0; background:none; border:none; outline:none; font-size:14.5px; padding:10px 0; color:var(--ink); font-family:var(--font-body); }
.schools-search-bar input::placeholder{ color:var(--ink-faint); }

.schools-chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.cat-chip-light{
  font-size:13px; font-weight:500; color:var(--ink-soft);
  background:var(--paper-raise); border:1px solid var(--line);
  padding:8px 15px; border-radius:100px; transition:all .2s;
}
.cat-chip-light:hover{ border-color:var(--ink-faint); }
.cat-chip-light.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.schools-results{ padding:8px 0 80px; }
.schools-results-head{ margin-bottom:20px; }
.schools-results-head p{ font-size:13.5px; color:var(--ink-faint); font-family:var(--font-mono); }
.schools-results-head strong{ color:var(--ink-soft); font-weight:600; }

.school-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:640px){ .school-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .school-grid{ grid-template-columns:repeat(3,1fr); gap:16px; } }

.school-card{
  background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:20px; transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.school-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-soft); }
.school-card-category{
  display:inline-block; font-family:var(--font-mono); font-size:10.5px; font-weight:500;
  color:var(--violet-deep); background:var(--violet-tint); padding:4px 10px; border-radius:100px;
  margin-bottom:12px;
}
.school-card h3{ font-size:15.5px; font-weight:600; margin-bottom:4px; line-height:1.4; }
.school-card p{ font-size:13px; color:var(--ink-faint); margin-bottom:14px; }
.school-card-form .btn{ width:100%; }
.school-card-joined{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; color:var(--mint);
  background:var(--mint-tint); padding:8px 14px; border-radius:100px; width:100%;
  justify-content:center;
}

.schools-empty{
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
  max-width:480px; padding:32px 0;
}
.schools-empty-icon{ font-size:32px; }
.schools-empty h3{ font-size:18px; font-family:var(--font-display); font-weight:600; }
.schools-empty p{ font-size:14px; color:var(--ink-soft); line-height:1.6; }

.schools-banner{
  font-size:13.5px; font-weight:500; border-radius:14px; padding:12px 16px; margin:20px 0 0;
}
.schools-banner.success{ color:var(--mint); background:var(--mint-tint); }
.schools-banner.error{ color:var(--coral); background:var(--coral-tint); }

/* ---------- Legal pages (/terms, /privacy) ---------- */
.legal-hero{ padding:56px 0 16px; }
@media (min-width:640px){ .legal-hero{ padding:72px 0 24px; } }

.legal-content{ padding:0 0 80px; }
.legal-inner{ max-width:720px; margin:0 auto; }
.legal-inner h2{ font-size:20px; margin:36px 0 12px; }
.legal-inner h2:first-child{ margin-top:0; }
.legal-inner p{ font-size:15px; color:var(--ink-soft); line-height:1.75; margin-bottom:14px; }
.legal-inner ul{ list-style:disc; padding-left:22px; margin:0 0 14px; }
.legal-inner li{ font-size:15px; color:var(--ink-soft); line-height:1.75; margin-bottom:6px; }
.legal-inner a{ color:var(--violet-deep); text-decoration:underline; text-underline-offset:2px; }
.legal-see-also{ margin-top:32px; padding-top:20px; border-top:1px solid var(--line); font-size:14px; }

/* ---------- About page ---------- */
.about-hero{ padding:64px 0 32px; }
@media (min-width:640px){ .about-hero{ padding:80px 0 40px; } }

.about-story{ padding:0 0 64px; }
.about-story-inner{ max-width:720px; margin:0 auto; }
.about-story-inner h2{ font-size:clamp(24px,5vw,32px); margin-bottom:20px; }
.about-story-inner p{ font-size:16px; color:var(--ink-soft); line-height:1.75; margin-bottom:18px; }
.about-story-inner p:last-child{ margin-bottom:0; }

.about-values{ padding-top:0; }

/* ---------- Contact page ---------- */
.contact-hero{ padding:64px 0 24px; }
@media (min-width:640px){ .contact-hero{ padding:80px 0 32px; } }

.contact-card{
  max-width:640px; margin:0 auto 80px;
  background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:28px 22px;
}
@media (min-width:640px){ .contact-card{ padding:40px; } }

.contact-form{ display:flex; flex-direction:column; gap:18px; }
.contact-field-row{ display:flex; flex-direction:column; gap:18px; }
@media (min-width:520px){ .contact-field-row{ flex-direction:row; } }
.contact-field-row .contact-field{ flex:1; }

.contact-field{ display:flex; flex-direction:column; gap:7px; }
.contact-field label{ font-size:13px; font-weight:600; color:var(--ink); }
.contact-field input,
.contact-field textarea{
  font-size:14.5px; font-family:var(--font-body); color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius-s);
  padding:12px 15px; width:100%;
}
.contact-field textarea{ resize:vertical; min-height:130px; }
.contact-field input:focus,
.contact-field textarea:focus{ outline:none; border-color:var(--violet); box-shadow:0 0 0 4px var(--violet-tint); }
.contact-field input::placeholder,
.contact-field textarea::placeholder{ color:var(--ink-faint); }

.contact-success{ text-align:center; padding:20px 0; }
.contact-success-icon{ font-size:38px; margin-bottom:12px; }
.contact-success h2{ font-size:22px; margin-bottom:8px; }
.contact-success p{ font-size:14.5px; color:var(--ink-soft); margin-bottom:24px; max-width:420px; margin-left:auto; margin-right:auto; }

.schools-suggest{ padding:0 0 80px; }
.schools-suggest-box{
  background:var(--paper-raise); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:28px 24px; display:flex; flex-direction:column; gap:18px;
}
@media (min-width:768px){
  .schools-suggest-box{ padding:32px 36px; flex-direction:row; align-items:center; justify-content:space-between; gap:32px; }
}
.schools-suggest-text h3{ font-family:var(--font-display); font-size:17px; font-weight:600; margin-bottom:4px; }
.schools-suggest-text p{ font-size:13.5px; color:var(--ink-soft); max-width:360px; }
.schools-suggest-form{ display:flex; flex-direction:column; gap:10px; flex-shrink:0; }
@media (min-width:520px){ .schools-suggest-form{ flex-direction:row; } }
.schools-suggest-form input{
  font-size:14px; font-family:var(--font-body); color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius-s);
  padding:11px 14px; min-width:0;
}
@media (min-width:520px){ .schools-suggest-form input{ width:160px; } }
.schools-suggest-form input:focus{ outline:none; border-color:var(--violet); box-shadow:0 0 0 4px var(--violet-tint); }
.schools-suggest-form input::placeholder{ color:var(--ink-faint); }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }