/* ============================================================
   EXAMBRO AI — Design system (style.css)
   Identity: midnight navy + electric cyan, EdTech SaaS look.
   ============================================================ */

:root {
  --navy:        #101A35;
  --navy-900:    #0B1220;
  --navy-800:    #16233F;
  --navy-700:    #202B43;   /* dark text */
  --cyan:        #20C9D8;
  --cyan-600:    #17B2C0;
  --blue:        #4668F5;
  --blue-600:    #2F4FE0;
  --ice:         #EAF5FF;
  --grey:        #F4F6FA;
  --white:       #FFFFFF;
  --ink:         #202B43;
  --muted:       #5B6B85;
  --line:        #E4EAF3;
  --line-strong: #D3DDEC;

  --grad-ai:     linear-gradient(135deg, #20C9D8 0%, #4668F5 100%);
  --grad-deep:   linear-gradient(135deg, #101A35 0%, #16233F 60%, #1B2E57 100%);
  --grad-soft:   linear-gradient(180deg, #EAF5FF 0%, #FFFFFF 100%);

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;
  --shadow-sm:   0 6px 18px rgba(16, 26, 53, .07);
  --shadow:      0 18px 44px rgba(16, 26, 53, .10);
  --shadow-lg:   0 30px 70px rgba(16, 26, 53, .16);
  --shadow-cyan: 0 16px 40px rgba(32, 201, 216, .28);

  --font-head:   'Sora', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --container:   1200px;
  --nav-h:       74px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ea-body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .ea-h { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); }
p  { color: var(--muted); }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-600); }
.img-fluid { max-width: 100%; height: auto; }

.ea-main { min-height: 60vh; }

.lead-muted { font-size: 1.12rem; color: var(--muted); }
.text-grad {
  background: var(--grad-ai);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Skip link ---------- */
.ea-skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.ea-skip-link:focus { left: 8px; }

/* ---------- Reveal animation ---------- */
[data-ea-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-ea-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 12px; padding: .85rem 1.5rem; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease, background .2s ease; border: 1px solid transparent; }
.btn:focus-visible { outline: 3px solid rgba(70,104,245,.4); box-shadow: none; }
.ea-btn-sm { padding: .6rem 1.15rem; font-size: .95rem; }
.ea-btn-primary { background: var(--grad-ai); color: #04121A; border: none; box-shadow: var(--shadow-cyan); }
.ea-btn-primary:hover { color: #04121A; transform: translateY(-2px); box-shadow: 0 20px 46px rgba(32,201,216,.4); }
.ea-btn-navy { background: var(--navy); color: #fff; }
.ea-btn-navy:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.ea-btn-solid-navy { background: var(--navy-700); color: #fff; }
.ea-btn-solid-navy:hover { background: var(--navy); color: #fff; }
.ea-btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.ea-btn-outline:hover { border-color: var(--cyan); color: var(--navy); background: rgba(32,201,216,.06); }
.ea-btn-ghost { background: transparent; color: var(--muted); }
.ea-btn-ghost:hover { color: var(--navy); }
.ea-btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.ea-btn-light:hover { transform: translateY(-2px); color: var(--navy); box-shadow: var(--shadow); }
.ea-btn-ondark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.ea-btn-ondark:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Announcement bar ---------- */
.ea-announce { background: var(--navy-900); color: #cfe6ff; font-size: .9rem; padding: .5rem 0; }
.ea-announce-badge { background: var(--grad-ai); color: #04121A; }
.ea-announce-text strong { color: #fff; }

/* ---------- Navigation ---------- */
.ea-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.ea-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255,255,255,.97); }
.ea-navbar { min-height: var(--nav-h); padding: .35rem 0; }
.ea-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: -.02em; }
.ea-brand:hover { color: var(--navy); }
.ea-brand-mark { display: inline-flex; }
.ea-brand-text em { font-style: normal; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-left: .12em; }
.ea-nav-list .nav-link { color: var(--navy-700); font-family: var(--font-head); font-weight: 600; padding: .55rem .9rem; border-radius: 10px; position: relative; }
.ea-nav-list .nav-link:hover { color: var(--navy); background: var(--grey); }
.ea-nav-list .nav-link.active { color: var(--navy); }
.ea-nav-list .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; border-radius: 3px; background: var(--grad-ai); }
.ea-toggler { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .4rem .55rem; }

.ea-dropdown { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: .5rem; min-width: 320px; margin-top: .5rem !important; }
.ea-dd-item { display: flex; align-items: center; gap: .7rem; border-radius: 10px; padding: .55rem .7rem; color: var(--navy-700); font-weight: 500; }
.ea-dd-item:hover { background: var(--ice); color: var(--navy); }
.ea-dd-ico { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--grey); color: var(--blue); font-size: .95rem; }
.ea-dd-item:hover .ea-dd-ico { background: var(--grad-ai); color: #04121A; }

/* ---------- Section primitives ---------- */
.ea-section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.ea-section-soft { background: var(--grey); }
.ea-section-ice { background: var(--grad-soft); }
.ea-section-dark { background: var(--grad-deep); color: #E6EEFA; }
.ea-section-dark h2, .ea-section-dark h3, .ea-section-dark .ea-eyebrow { color: #fff; }
.ea-section-dark p { color: #B7C6DE; }

.ea-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); background: rgba(70,104,245,.08); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
.ea-section-dark .ea-eyebrow { background: rgba(32,201,216,.16); color: var(--cyan); }
.ea-section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.ea-section-head .ea-eyebrow { margin-inline: auto; }
.ea-section-title { margin-bottom: .85rem; }

/* ---------- Hero ---------- */
.ea-hero { position: relative; background: var(--grad-soft); overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.ea-hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle at center, rgba(70,104,245,.18), transparent 60%); z-index: 0; }
.ea-hero::after { content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -180px; background: radial-gradient(circle at center, rgba(32,201,216,.20), transparent 60%); z-index: 0; }
.ea-hero .container { position: relative; z-index: 1; }
.ea-hero h1 { margin-bottom: 1.1rem; }
.ea-hero .lead-muted { max-width: 34rem; }
.ea-hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--navy); font-weight: 600; border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; margin-bottom: 1.25rem; }
.ea-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(32,201,216,.2); }
.ea-hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.ea-hero-trust { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.9rem; }
.ea-hero-trust span { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.ea-hero-trust i { color: var(--cyan-600); }

/* ---------- Hero visual / device mock ---------- */
.ea-hero-visual { position: relative; }
.ea-device { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.1rem; position: relative; z-index: 2; }
.ea-device-bar { display: flex; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.ea-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ea-device-bar i:first-child { background: #ff6b6b; } .ea-device-bar i:nth-child(2) { background: #ffc53d; } .ea-device-bar i:nth-child(3) { background: #3ddc84; }
.ea-device-bar span { margin-left: auto; font-size: .78rem; color: var(--muted); }
.ea-device-q { background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.ea-device-q .qn { font-size: .78rem; color: var(--blue); font-weight: 700; letter-spacing: .04em; }
.ea-device-q .qt { color: var(--navy); font-weight: 600; margin: .35rem 0 .75rem; font-family: var(--font-head); }
.ea-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .45rem; background: #fff; font-size: .92rem; color: var(--navy-700); }
.ea-opt.sel { border-color: var(--cyan); background: rgba(32,201,216,.08); }
.ea-opt .mk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-grid; place-items: center; }
.ea-opt.sel .mk { border-color: var(--cyan); background: var(--cyan); color: #04121A; }
.ea-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .8rem 1rem; z-index: 3; }
.ea-float-tiny { font-size: .78rem; color: var(--muted); }
.ea-float-strong { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.ea-float-1 { top: -18px; right: -14px; animation: floaty 5s ease-in-out infinite; }
.ea-float-2 { bottom: 6%; left: -26px; animation: floaty 6s ease-in-out infinite .5s; }
.ea-float-3 { bottom: -20px; right: 18%; animation: floaty 5.5s ease-in-out infinite 1s; }
.ea-spark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-ai); display: inline-grid; place-items: center; color: #04121A; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Cards ---------- */
.ea-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; position: relative; overflow: hidden; }
.ea-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.ea-card-ico { width: 54px; height: 54px; border-radius: 15px; display: inline-grid; place-items: center; font-size: 1.4rem; background: var(--ice); color: var(--blue); margin-bottom: 1.1rem; transition: background .22s ease, color .22s ease, transform .22s ease; }
.ea-card:hover .ea-card-ico { background: var(--grad-ai); color: #04121A; transform: rotate(-6deg) scale(1.05); }
.ea-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.ea-card p { font-size: .96rem; margin-bottom: 1rem; }
.ea-card-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600; color: var(--blue); }
.ea-card-link i { transition: transform .2s ease; }
.ea-card-link:hover i { transform: translateX(4px); }
.ea-card-feature { background: var(--grad-deep); color: #fff; border: none; }
.ea-card-feature h3 { color: #fff; } .ea-card-feature p { color: #B7C6DE; }
.ea-card-feature .ea-card-ico { background: rgba(32,201,216,.18); color: var(--cyan); }
.ea-card-glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }

/* Card thumbnails */
.ea-card-thumb {
  position: relative;
  margin: -1.6rem -1.6rem 1.1rem -1.6rem;
  height: 168px;
  overflow: hidden;
  background: var(--grey);
}
.ea-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ea-card:hover .ea-card-thumb img {
  transform: scale(1.06);
}
.ea-card-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 26, 53, 0.78);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background .22s ease, color .22s ease;
}
.ea-card:hover .ea-card-thumb-badge {
  background: var(--grad-ai);
  color: #04121A;
}

/* Media framing */
.ea-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.ea-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.ea-media-frame:hover img {
  transform: scale(1.02);
}
.ea-media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(16, 26, 53, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: .5rem .95rem;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.15);
}
.ea-media-badge i {
  color: var(--cyan);
}

/* Step card image */
.ea-step-thumb {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.ea-step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ea-step:hover .ea-step-thumb img {
  transform: scale(1.05);
}

/* Inner page hero visual */
.ea-page-hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255,255,255,0.06);
}
.ea-page-hero-visual img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

/* ---------- How it works (process) ---------- */
.ea-steps { position: relative; }
.ea-step { text-align: center; position: relative; padding: 0 .5rem; }
.ea-step-num { width: 74px; height: 74px; border-radius: 22px; display: inline-grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; position: relative; z-index: 2; }
.ea-step:hover .ea-step-num { background: var(--grad-ai); color: #04121A; border-color: transparent; }
.ea-step-key { font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: .06em; text-transform: uppercase; font-size: 1rem; }
.ea-step p { font-size: .92rem; }
.ea-step-connector { position: absolute; top: 37px; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: .35; z-index: 1; }
.ea-step:last-child .ea-step-connector { display: none; }

/* ---------- Stat / metric chips (sample data) ---------- */
.ea-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.ea-chip i { color: var(--cyan-600); }
.ea-demo-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); background: rgba(70,104,245,.1); border: 1px solid rgba(70,104,245,.2); padding: .3rem .7rem; border-radius: 999px; }

/* ---------- Dashboard / chart mock ---------- */
.ea-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.ea-panel-dark { background: var(--navy-800); border-color: rgba(255,255,255,.1); }
.ea-bars { display: flex; align-items: flex-end; gap: .8rem; height: 160px; }
.ea-bar { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--grad-ai); opacity: .9; transition: transform .2s ease; }
.ea-bar:hover { transform: scaleY(1.03); }
.ea-bar.alt { background: rgba(70,104,245,.25); }
.ea-progress { height: 10px; border-radius: 999px; background: var(--grey); overflow: hidden; }
.ea-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-ai); }
.ea-ring { --v: 78; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--v)*1%), var(--grey) 0); }
.ea-ring::after { content: ""; width: 92px; height: 92px; border-radius: 50%; background: #fff; grid-area: 1/1; }
.ea-ring b { grid-area: 1/1; z-index: 1; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }

/* ---------- Feature checklist ---------- */
.ea-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ea-checks li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; color: var(--ink); }
.ea-checks li i { color: #fff; background: var(--grad-ai); width: 22px; height: 22px; min-width: 22px; border-radius: 7px; display: inline-grid; place-items: center; font-size: .72rem; margin-top: .15rem; }
.ea-checks-inline li i { background: rgba(32,201,216,.14); color: var(--cyan-600); }

/* ---------- Split layout helper ---------- */
.ea-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ea-split-reverse .ea-split-media { order: 2; }
@media (max-width: 991px) { .ea-split { grid-template-columns: 1fr; } .ea-split-reverse .ea-split-media { order: 0; } }

/* ---------- CTA band ---------- */
.ea-cta { background: var(--grad-deep); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.ea-cta::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(32,201,216,.35), transparent 65%); }
.ea-cta h2, .ea-cta p { color: #fff; position: relative; z-index: 1; } .ea-cta p { color: #C4D2EA; }
.ea-cta .ea-cta-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Page hero (inner pages) ---------- */
.ea-page-hero { background: var(--grad-deep); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.ea-page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(70,104,245,.4), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(32,201,216,.28), transparent 60%); opacity: .7; }
.ea-page-hero .container { position: relative; z-index: 1; }
.ea-page-hero h1 { color: #fff; margin-bottom: .8rem; }
.ea-page-hero p { color: #C4D2EA; max-width: 640px; }
.ea-breadcrumb { font-size: .88rem; color: #9FB3D1; margin-bottom: 1rem; }
.ea-breadcrumb a { color: #cfe0f7; } .ea-breadcrumb a:hover { color: #fff; }
.ea-breadcrumb .sep { margin: 0 .4rem; opacity: .6; }

/* ---------- Accordion / FAQ ---------- */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item { border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .8rem; border: 1px solid var(--line); }
.accordion-button { font-family: var(--font-head); font-weight: 600; color: var(--navy); background: #fff; padding: 1.15rem 1.3rem; }
.accordion-button:not(.collapsed) { background: var(--ice); color: var(--navy); }
.accordion-button::after { background-size: 1rem; }
.accordion-body { color: var(--muted); padding: 0 1.3rem 1.2rem; }

/* ---------- Forms ---------- */
.ea-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.5rem); }
.ea-form .form-label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: .35rem; }
.ea-form .form-label .req { color: #e0483d; }
.ea-form .form-control, .ea-form .form-select { border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .7rem .9rem; color: var(--ink); }
.ea-form .form-control:focus, .ea-form .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 .2rem rgba(32,201,216,.18); }
.ea-form textarea.form-control { min-height: 120px; }
.ea-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-text.ea-err { color: #d63b2f; font-weight: 500; display: none; }
.ea-field.is-invalid .form-text.ea-err { display: block; }
.ea-field.is-invalid .form-control, .ea-field.is-invalid .form-select { border-color: #e0483d; }
.consent-box { display: flex; gap: .7rem; align-items: flex-start; background: var(--grey); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; font-size: .9rem; color: var(--muted); }
.consent-box input { margin-top: .3rem; }

/* ---------- Alerts ---------- */
.ea-alert-success { background: #E8F9EF; border: 1px solid #B7E6C6; color: #1B7A3E; border-radius: 12px; padding: 1rem 1.2rem; }
.ea-alert-error { background: #FDECEA; border: 1px solid #F5C6BE; color: #A32A1E; border-radius: 12px; padding: 1rem 1.2rem; }

/* ---------- Contact thank-you ---------- */
.ea-thanks { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.ea-thanks-ico { width: 78px; height: 78px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #04121A; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 12px 30px rgba(32,201,216,.35); }
.ea-thanks h2 { font-family: var(--font-head); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.ea-thanks p { color: var(--navy-700); max-width: 34rem; margin: 0 auto 1.5rem; }
.ea-thanks .btn { min-width: 12rem; }

/* ---------- Demo exam ---------- */
.ea-exam { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.ea-exam-top { background: var(--navy); color: #fff; padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ea-exam-top .ttl { font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.ea-timer { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .4rem .8rem; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 700; }
.ea-timer.warn { background: rgba(255,107,107,.18); border-color: rgba(255,107,107,.4); color: #ffd0d0; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.ea-exam-body { display: grid; grid-template-columns: 1fr 260px; gap: 0; }
.ea-exam-main { padding: clamp(1.3rem, 3vw, 2rem); }
.ea-exam-side { background: var(--grey); border-left: 1px solid var(--line); padding: 1.3rem; }
.ea-qnum { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.ea-qtext { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.2rem; margin: .5rem 0 1.2rem; }
.ea-qopt { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .85rem 1rem; margin-bottom: .7rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ea-qopt:hover { border-color: var(--cyan); }
.ea-qopt input { position: absolute; opacity: 0; }
.ea-qopt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-grid; place-items: center; }
.ea-qopt.sel { border-color: var(--cyan); background: rgba(32,201,216,.07); }
.ea-qopt.sel .radio { border-color: var(--cyan); background: var(--cyan); }
.ea-qopt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #04121A; }
.ea-nav-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .6rem; }
.ea-palette-btn { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.ea-palette-btn.answered { background: rgba(32,201,216,.14); border-color: var(--cyan); color: var(--navy); }
.ea-palette-btn.current { outline: 3px solid rgba(70,104,245,.35); border-color: var(--blue); color: var(--navy); }
.ea-exam-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-top: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.ea-review-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; }
.ea-review-row.correct { background: #F1FBF4; border-color: #B7E6C6; }
.ea-review-row.wrong { background: #FDF3F2; border-color: #F5C6BE; }
.ea-review-badge { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.ea-review-badge.correct { background: #1B7A3E; color: #fff; } .ea-review-badge.wrong { background: #A32A1E; color: #fff; }

/* ---------- Footer ---------- */
.ea-footer { background: var(--navy-900); color: #A9BBD6; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; margin-top: auto; }
.ea-footer a { color: #A9BBD6; } .ea-footer a:hover { color: #fff; }
.ea-brand-footer { color: #fff; } .ea-brand-footer:hover { color: #fff; } .ea-brand-footer .ea-brand-text { color: #fff; }
.ea-footer-desc { color: #93A7C4; font-size: .95rem; margin-top: 1rem; }
.ea-footer-contact, .ea-footer-hint { font-size: .92rem; } .ea-footer-hint { color: #7C90B0; }
.ea-footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-head); }
.ea-footer-links { list-style: none; padding: 0; margin: 0; }
.ea-footer-links li { margin-bottom: .55rem; }
.ea-footer-links a { font-size: .92rem; }
.ea-social { display: flex; gap: .6rem; }
.ea-social-link { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #cfe0f7; }
.ea-social-link:hover { background: var(--grad-ai); color: #04121A; border-color: transparent; }
.ea-footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; }
.ea-footer-legal-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.ea-footer-legal-links a { font-size: .88rem; }
.ea-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1.4rem; font-size: .86rem; color: #7C90B0; }

/* ---------- Cookie banner ---------- */
.ea-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: rgba(255,255,255,.98); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -18px 40px rgba(16,26,53,.14); transform: translateY(120%); transition: transform .35s ease; }
.ea-cookie-banner.is-visible { transform: translateY(0); }
.ea-cookie-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.15rem 0; }
.ea-cookie-copy { flex: 1 1 420px; }
.ea-cookie-title { font-size: 1.05rem; margin-bottom: .3rem; }
.ea-cookie-text { font-size: .88rem; color: var(--muted); }
.ea-cookie-policy-link { font-size: .85rem; font-weight: 600; }
.ea-cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.ea-cookie-cat { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: .9rem; }
.ea-cookie-cat-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.ea-cookie-cat h4 { margin: 0 0 .25rem; font-size: 1.02rem; } .ea-cookie-cat p { margin: 0; font-size: .88rem; }
.ea-badge-locked { background: var(--ice); color: var(--blue-600); }
.ea-cookie-switch .form-check-input:checked { background-color: var(--cyan); border-color: var(--cyan); }
.ea-cookie-modal-footer { gap: .5rem; }

/* ---------- Legal / prose pages ---------- */
.ea-legal h2 { font-size: 1.28rem; margin: 1.9rem 0 .6rem; }
.ea-legal h2:first-child { margin-top: 0; }
.ea-legal p, .ea-legal li { color: var(--muted); font-size: 1rem; }
.ea-legal ul { padding-left: 1.2rem; }
.ea-legal a { color: var(--blue); font-weight: 600; }
.ea-legal code { background: var(--grey); padding: .1rem .4rem; border-radius: 6px; color: var(--navy); font-size: .9em; }
.ea-related-policies { background: var(--ice); border: 1px solid rgba(70,104,245,.18); border-radius: 12px; padding: .7rem 1rem; font-size: .92rem; color: var(--navy-700); margin-bottom: 1.5rem; }
.ea-related-policies a { font-weight: 600; }
.ea-cookie-table { font-size: .92rem; }
.ea-cookie-table th { font-family: var(--font-head); color: var(--navy); }
.ea-cookie-table td code { background: var(--grey); }

/* ---------- Contact info ---------- */
.ea-info-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ea-info-item:last-of-type { border-bottom: none; }
.ea-info-ico { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--ice); color: var(--blue); font-size: 1.05rem; }
.ea-info-item strong { color: var(--navy); }
.ea-info-item .text-muted { color: var(--muted) !important; font-size: .92rem; }

/* ---------- Demo legend ---------- */
.ea-legend { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); vertical-align: middle; margin-right: .1rem; }
.ea-opt.wrong { border-color: #e0483d; background: #FDF3F2; }

/* ---------- 404 ---------- */
.ea-404-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 11rem); line-height: .9; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ea-404-links { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.ea-404-art { max-width: 340px; opacity: .9; }

/* ---------- Back to top ---------- */
[data-ea-top] { position: fixed; right: 20px; bottom: 20px; z-index: 1050; width: 46px; height: 46px; border-radius: 12px; border: none; background: var(--navy); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; display: grid; place-items: center; }
[data-ea-top].is-visible { opacity: 1; visibility: visible; transform: none; }
[data-ea-top]:hover { background: var(--grad-ai); color: #04121A; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-ea-reveal] { opacity: 1 !important; transform: none !important; }
  .ea-float-1, .ea-float-2, .ea-float-3 { animation: none !important; }
}
