/* ==========================================================================
   Alybeck — Components
   ========================================================================== */

/* =============================================================== HERO ==== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.6rem, 6vw, 5rem) clamp(3rem, 7vw, 5.6rem); }

.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.hero__blob--1 { width: 46vw; height: 46vw; left: -14vw; top: -12vw; background: var(--glow); }
.hero__blob--2 { width: 34vw; height: 34vw; right: -8vw; bottom: -14vw; background: var(--brand-2); opacity: .16; }

.hero__in {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2rem, 4vw, 3.4rem); align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .55em; }
.hero h1 em {
  font-style: normal; color: var(--brand); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: -1%; right: -1%; bottom: .04em; height: .2em;
  background: var(--brand-2); opacity: .35; border-radius: var(--r-pill); z-index: -1;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  margin-top: 1.9rem; font-size: .92rem; color: var(--ink-2); font-weight: 600;
}
.hero__trust b { color: var(--ink); }
.hero__faces { display: flex; }
.hero__faces img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--bg); margin-left: -12px;
}
.hero__faces img:first-child { margin-left: 0; }

/* ---- hero slideshow (crossfade + ken burns) */
.slideshow {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 3px solid var(--line-hard); box-shadow: var(--shadow-hard);
  aspect-ratio: 16 / 11; background: var(--bg-sunk);
}
[data-theme="dark"] .slideshow { border-color: var(--line); box-shadow: var(--shadow-lift); }

.slideshow__item {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.15s ease;
}
.slideshow__item.is-on { opacity: 1; }
.slideshow__item img { width: 100%; height: 100%; object-fit: cover; }
.slideshow__item.is-on img { animation: kb 8s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.11); } }

.slideshow__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 2.8rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(.94rem, 1.4vw, 1.1rem); letter-spacing: -.01em;
}
.slideshow__dots { position: absolute; right: .9rem; top: .9rem; z-index: 4; display: flex; gap: .38rem; }
.slideshow__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .5); border: 1.5px solid rgba(0, 0, 0, .3);
  transition: all var(--t-fast);
}
.slideshow__dots button[aria-selected="true"] { background: #fff; width: 26px; border-radius: var(--r-pill); }

/* floating badge stickers on hero image */
.sticker {
  position: absolute; z-index: 5;
  background: var(--surface); color: var(--ink);
  border: 2.5px solid var(--line-hard); border-radius: var(--r-md);
  box-shadow: var(--shadow-hard-sm);
  padding: .6rem .85rem; font-size: .8rem; font-weight: 800;
  font-family: var(--font-display); line-height: 1.25;
  display: flex; align-items: center; gap: .5rem;
}
[data-theme="dark"] .sticker { border-color: var(--line); }
.sticker small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink-3); font-size: .72rem; }
.sticker--tl { left: -14px; top: 10%; animation: floaty 7s ease-in-out infinite; }
.sticker--br { right: -10px; bottom: 21%; animation: floaty 8.4s ease-in-out .7s infinite; }
@media (max-width: 560px) {
  .sticker--tl { left: 6px; top: 8px; }
  .sticker--br { right: 6px; bottom: 62px; }
  .sticker { font-size: .72rem; padding: .45rem .6rem; }
}

.sticker__ico {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  font-size: 1rem;
}

/* ============================================================== STATS ==== */
.stats { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat {
  text-align: center; padding: clamp(1.2rem, 2.2vw, 1.7rem) 1rem;
  background: var(--surface); border: 2.5px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-hard);
  transition: transform var(--t-med);
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); }
[data-theme="dark"] .stat { border-color: var(--line); box-shadow: var(--shadow-soft); }
.stat__n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1;
  color: var(--brand); letter-spacing: -.04em;
}
/* coloured text, so ink accents — the vivid ones drop to ~1.8:1 on white */
.stat:nth-child(2) .stat__n { color: var(--c-science-ink); }
.stat:nth-child(3) .stat__n { color: var(--c-coding-ink); }
.stat:nth-child(4) .stat__n { color: var(--c-robotics-ink); }
.stat__l { margin-top: .45rem; font-size: .88rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }

/* ============================================================ PROGRAMS === */
.prog-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 2.5px solid var(--line-hard); border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.prog-card:hover { transform: translate(-3px, -4px); box-shadow: 9px 10px 0 var(--line-hard); }
[data-theme="dark"] .prog-card { border-color: var(--line); box-shadow: var(--shadow-soft); }
[data-theme="dark"] .prog-card:hover { border-color: var(--ac); box-shadow: var(--shadow-lift); }

.prog-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-sunk); border-bottom: 2.5px solid var(--line-hard); }
[data-theme="dark"] .prog-card__media { border-bottom-color: var(--line); }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.prog-card:hover .prog-card__media img { transform: scale(1.07); }

.prog-card__tag {
  position: absolute; left: .7rem; top: .7rem; z-index: 2;
  /* small uppercase text on a colour fill — needs the ink accent so white
     text on top clears 4.5:1 (the vivid values only reach ~2:1) */
  background: var(--ac-ink, var(--brand)); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .7rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: var(--r-pill);
  border: 2px solid var(--line-hard);
}
.prog-card__body { padding: clamp(1.1rem, 2vw, 1.45rem); display: flex; flex-direction: column; flex: 1; gap: .7rem; }
.prog-card__body h3 { margin: 0; font-size: 1.24rem; }
.prog-card__body p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.prog-card__meta {
  margin-top: auto; padding-top: .9rem; border-top: 1.5px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  font-size: .87rem; font-weight: 700; color: var(--ink-2);
}
/* text-sized, so it uses the AA-safe ink accent rather than the vivid fill */
.prog-card__price { font-family: var(--font-display); font-weight: 800; color: var(--ac-ink, var(--brand)); font-size: 1.06rem; }

.prog-card ul.ticks { display: grid; gap: .4rem; margin: 0; }
.ticks li { position: relative; padding-left: 1.55rem; font-size: .9rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--ac, var(--brand)); opacity: .18;
}
.ticks li::after {
  content: ""; position: absolute; left: .3rem; top: .62em;
  width: .32rem; height: .55rem; border: 2px solid var(--ac, var(--brand));
  border-top: 0; border-left: 0; transform: rotate(42deg) translate(-1px, -3px);
}

/* ------ animated program slider (rail) */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(min(84%, 330px), 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .4rem 1.4rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: var(--bg-sunk); border-radius: var(--r-pill); }
.rail::-webkit-scrollbar-thumb { background: var(--brand); border-radius: var(--r-pill); }
@media (min-width: 780px) { .rail { grid-auto-columns: minmax(320px, 1fr); } }

.rail-nav { display: flex; gap: .5rem; justify-content: center; margin-top: .4rem; }
.rail-nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); border: 2.5px solid var(--line-hard);
  box-shadow: var(--shadow-hard-sm); transition: transform var(--t-fast);
}
.rail-nav button:hover { transform: translateY(-3px); background: var(--brand); color: var(--brand-ink); }
[data-theme="dark"] .rail-nav button { border-color: var(--line); box-shadow: none; }
.rail-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ========================================================== TEACHERS ==== */
.tch {
  text-align: center; position: relative; overflow: hidden;
  background: var(--surface); border: 2.5px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-hard);
  padding: 1.5rem 1.2rem 1.3rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.tch:hover { transform: translateY(-6px); box-shadow: 8px 9px 0 var(--line-hard); }
[data-theme="dark"] .tch { border-color: var(--line); box-shadow: var(--shadow-soft); }
[data-theme="dark"] .tch:hover { border-color: var(--ac, var(--brand)); box-shadow: var(--shadow-lift); }

.tch::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 78px;
  background: var(--ac, var(--brand)); opacity: .14;
}
.tch__ph { position: relative; width: 112px; margin: 0 auto .9rem; }
.tch__ph img {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  border: 3.5px solid var(--surface);
  box-shadow: 0 0 0 3px var(--ac, var(--brand));
}
.tch__live {
  position: absolute; right: 2px; bottom: 4px;
  background: var(--ok); color: #fff;
  font-size: .6rem; font-weight: 800; font-family: var(--font-display);
  letter-spacing: .09em; text-transform: uppercase;
  padding: .16rem .44rem; border-radius: var(--r-pill);
  border: 2px solid var(--surface);
  display: inline-flex; align-items: center; gap: .22rem;
}
.tch__live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.tch h3 { font-size: 1.1rem; margin: 0 0 .18rem; }
.tch__role { font-size: .84rem; color: var(--ink-3); font-weight: 700; margin-bottom: .55rem; }
.tch__rate { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .84rem; font-weight: 700; margin-bottom: .75rem; }
.tch__rate b { font-family: var(--font-display); }
.tch__rate span { color: var(--ink-3); font-weight: 600; }
.tch__tags { display: flex; flex-wrap: wrap; gap: .32rem; justify-content: center; margin-bottom: .9rem; }
.tch__tags span {
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: var(--r-pill); background: var(--bg-sunk); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tch__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .82rem; color: var(--ink-3); border-top: 1.5px dashed var(--line); padding-top: .8rem; }

/* filter pills */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.filters button {
  padding: .48rem 1rem; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 800; font-size: .87rem; font-family: var(--font-display);
  background: var(--surface); color: var(--ink-2);
  border: 2px solid var(--line-hard); box-shadow: var(--shadow-hard-sm);
  transition: all var(--t-fast);
}
[data-theme="dark"] .filters button { border-color: var(--line); box-shadow: none; }
.filters button:hover { transform: translateY(-2px); color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--line-hard); }
[data-theme="dark"] .filters button[aria-pressed="true"] { border-color: var(--brand); }

/* =========================================================== REVIEWS ==== */
.rev {
  background: var(--surface); border: 2.5px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-hard);
  padding: 1.5rem 1.4rem 1.3rem; position: relative;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform var(--t-med);
}
.rev:hover { transform: translateY(-5px); }
[data-theme="dark"] .rev { border-color: var(--line); box-shadow: var(--shadow-soft); }
.rev::after {
  content: "”"; position: absolute; right: 1rem; top: .1rem;
  font-family: var(--font-display); font-size: 4.4rem; line-height: 1;
  color: var(--brand); opacity: .16;
}
.rev p { font-size: .96rem; color: var(--ink-2); margin: 0; flex: 1; }
.rev__who { display: flex; align-items: center; gap: .75rem; border-top: 1.5px dashed var(--line); padding-top: .9rem; }
.rev__av {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  background: var(--brand-soft); color: var(--brand);
  border: 2px solid var(--line-hard);
}
[data-theme="dark"] .rev__av { border-color: var(--line); }
.rev__who b { display: block; font-size: .94rem; }
.rev__who small { color: var(--ink-3); font-size: .8rem; }
.rev__prog { font-size: .72rem; font-weight: 800; color: var(--brand); letter-spacing: .05em; text-transform: uppercase; }

/* masonry-ish columns on wide screens */
.rev-grid { columns: 3 300px; column-gap: clamp(1rem, 2vw, 1.6rem); }
.rev-grid > * { break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.6rem); }

/* =========================================================== PRICING ==== */
.price {
  background: var(--surface); border: 3px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-hard);
  padding: clamp(1.5rem, 2.6vw, 2.1rem); position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
[data-theme="dark"] .price { border-color: var(--line); box-shadow: var(--shadow-soft); }
.price--hot { border-color: var(--brand); }
.price--hot::before {
  content: "Most popular"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .95rem; border-radius: var(--r-pill);
  border: 2.5px solid var(--line-hard); white-space: nowrap;
}
[data-theme="dark"] .price--hot::before { border-color: var(--brand); }
.price__amt { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.045em; font-size: clamp(2.5rem, 5.4vw, 3.4rem); color: var(--brand); }
.price__amt sup { font-size: .42em; vertical-align: super; margin-right: .06em; }
.price__amt small { font-family: var(--font-body); font-size: .27em; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.price h3 { margin: 0; }
.price__sub { color: var(--ink-3); font-size: .88rem; font-weight: 600; margin: 0; }
.price .ticks { flex: 1; }

/* ============================================================== FORM ==== */
.book {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 940px) { .book { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface); border: 3px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-hard);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
[data-theme="dark"] .form-card { border-color: var(--line); box-shadow: var(--shadow-soft); }

.f-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.f-row { display: flex; flex-direction: column; gap: .38rem; }
.f-row--full { grid-column: 1 / -1; }

.f-row label { font-size: .86rem; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
.f-row label .req { color: var(--c-drone-ink); }
.f-row .hint { font-size: .78rem; color: var(--ink-3); font-weight: 600; }

.inp {
  width: 100%; padding: .78rem .95rem;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: .98rem;
}
.inp::placeholder { color: var(--ink-3); }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-soft); }
.inp[aria-invalid="true"] { border-color: var(--c-drone); }
select.inp { appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6080' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 17px; }
[data-theme="dark"] select.inp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837da3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
textarea.inp { resize: vertical; min-height: 92px; }

.err { color: var(--c-drone-ink); font-size: .78rem; font-weight: 700; min-height: 1em; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .86rem; font-weight: 800; margin-bottom: .5rem; padding: 0; }

/* ---- calendar */
.cal { border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.cal__hd {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .65rem .7rem; background: var(--bg-sunk); border-bottom: 2px solid var(--line);
}
.cal__hd b { font-family: var(--font-display); font-size: 1rem; }
.cal__nav { display: flex; gap: .35rem; }
.cal__nav button {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); transition: all var(--t-fast);
}
.cal__nav button:hover:not([disabled]) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cal__nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { padding: .5rem .35rem .1rem; }
.cal__dow span { text-align: center; font-size: .7rem; font-weight: 800; color: var(--ink-3); letter-spacing: .05em; }
.cal__days { gap: 3px; padding: .35rem .35rem .6rem; }
.cal__days button {
  aspect-ratio: 1; border-radius: 9px; cursor: pointer;
  background: transparent; border: 2px solid transparent;
  font-size: .88rem; font-weight: 700; color: var(--ink);
  transition: all var(--t-fast);
}
.cal__days button:hover:not([disabled]) { background: var(--brand-soft); color: var(--brand); }
.cal__days button[disabled] { color: var(--ink-3); opacity: .32; cursor: not-allowed; }
.cal__days button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--line-hard); }
.cal__days .is-empty { visibility: hidden; }
.cal__days .is-today:not([aria-pressed="true"]) { border-color: var(--brand); }

/* ---- time slots */
/* 12 hourly slots fit without scrolling. The old 232px max-height dated from
   24 half-hour slots; at this count it clipped a row mid-button and hid slots
   behind a scrollbar nobody expects inside a form. */
.slots { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); align-content: start; padding: .2rem; }
.slots button {
  padding: .52rem .3rem; border-radius: var(--r-sm); cursor: pointer;
  font-size: .84rem; font-weight: 700; white-space: nowrap;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--line); transition: all var(--t-fast);
}
.slots button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.slots button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.slots button[disabled] { opacity: .34; cursor: not-allowed; text-decoration: line-through; }
.slots-empty { color: var(--ink-3); font-size: .88rem; padding: .8rem 0; }

/* ---- summary aside */
.sum { position: sticky; top: 92px; display: grid; gap: 1rem; }
@media (max-width: 940px) { .sum { position: static; } }
.sum__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1.5px dashed var(--line); font-size: .92rem; }
.sum__row:last-of-type { border-bottom: 0; }
.sum__row span { color: var(--ink-3); font-weight: 600; }
.sum__row b { text-align: right; font-weight: 800; }
.sum__row b.empty { color: var(--ink-3); font-weight: 600; font-style: italic; }

/* ---- alerts */
.alert {
  border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: .93rem; font-weight: 600;
  border: 2.5px solid; display: flex; gap: .7rem; align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: .1rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.alert b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: .15rem; }
.alert--ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.alert--err { border-color: var(--c-drone-ink); color: var(--c-drone-ink); background: color-mix(in srgb, var(--c-drone) 9%, transparent); }
.alert--info { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.alert[hidden] { display: none; }

.spin { animation: spinslow 1s linear infinite; }

/* ============================================================== MISC ==== */
/* page hero (inner pages) */
.phero { position: relative; overflow: hidden; padding-block: clamp(2.4rem, 5.5vw, 4.2rem) clamp(2rem, 4vw, 3rem); background: var(--bg-alt); border-bottom: 2.5px solid var(--line-hard); }
[data-theme="dark"] .phero { border-bottom-color: var(--line); }
.phero::after {
  content: ""; position: absolute; width: 40vw; height: 40vw; border-radius: 50%;
  right: -12vw; top: -18vw; background: var(--glow); filter: blur(60px); pointer-events: none;
}
.phero__in { position: relative; z-index: 1; max-width: 74ch; }
.crumb { font-size: .85rem; color: var(--ink-3); font-weight: 600; margin-bottom: .9rem; }
.crumb a:hover { color: var(--brand); }

/* how-it-works steps */
.steps { display: grid; gap: clamp(1.1rem, 2vw, 1.7rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 1.4rem; }
.step__n {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  background: var(--brand); color: var(--brand-ink);
  border: 2.5px solid var(--line-hard); box-shadow: var(--shadow-hard-sm);
  margin-bottom: 1rem;
}
[data-theme="dark"] .step__n { border-color: var(--line); box-shadow: none; }
/* these carry a white/near-black numeral, so use the ink accents */
.step:nth-child(2) .step__n { background: var(--c-science-ink); }
.step:nth-child(3) .step__n { background: var(--c-coding-ink); }
.step:nth-child(4) .step__n { background: var(--c-robotics-ink); }
.step h3 { font-size: 1.16rem; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* split feature block */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.split__img { border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--line-hard); box-shadow: var(--shadow-hard); }
[data-theme="dark"] .split__img { border-color: var(--line); box-shadow: var(--shadow-lift); }
.split--flip > :first-child { order: 2; }
@media (max-width: 700px) { .split--flip > :first-child { order: 0; } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border: 3px solid var(--line-hard); border-radius: var(--r-lg);
  background: var(--brand); color: var(--brand-ink);
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  box-shadow: var(--shadow-hard);
  text-align: center;
}
/* dark mode swaps to a dark gradient, so the text must flip light as well —
   --brand-ink is near-black and would be unreadable on this background */
[data-theme="dark"] .cta-band {
  border-color: var(--line);
  background: linear-gradient(120deg, #2b1b52, #0d2b3d 55%, #10241f);
  color: var(--ink);
}
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: .9; }
/* :not(.btn--ghost) matters — this selector outranks .btn--ghost's
   transparent background, which would leave currentColor text invisible */
.cta-band .btn:not(.btn--ghost) { --btn-bg: var(--bg); --btn-fg: var(--ink); }
/* in dark mode a --bg button is near-invisible on the dark band (1.3:1),
   so use the brand colour to keep the shape readable */
[data-theme="dark"] .cta-band .btn:not(.btn--ghost) {
  --btn-bg: var(--brand); --btn-fg: var(--brand-ink);
}
.cta-band__deco { position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 12% 20%, #fff 2px, transparent 2px), radial-gradient(circle at 78% 70%, #fff 2px, transparent 2px);
  background-size: 62px 62px; }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 60rem; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 2.5px solid var(--line-hard);
  border-radius: var(--r-md); box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}
[data-theme="dark"] .faq details { border-color: var(--line); box-shadow: none; }
.faq summary {
  cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.03rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); transition: transform var(--t-fast); line-height: 1;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--brand); }
.faq .faq__a { padding: 0 1.15rem 1.15rem; color: var(--ink-2); font-size: .95rem; }

/* logo-free trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; justify-content: center; color: var(--ink-3); font-weight: 700; font-size: .88rem; }
.trust-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip svg { width: 17px; height: 17px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* rating summary block */
.rate-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem; justify-content: center; }
.rate-sum__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.rate-bars { display: grid; gap: .35rem; min-width: min(100%, 260px); }
.rate-bars div { display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.rate-bars i { flex: 1; height: 9px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; font-style: normal; }
.rate-bars i b { display: block; height: 100%; background: var(--star); border-radius: var(--r-pill); }
