/* miedodev: page layout and look. Interactive joke components live in jokes.css. */

:root {
  --blue: #0099ff;
  --blue-light: #60baff;
  --blue-dark: #0080d1;
  --green: #20ffa1;
  --yellow: #ffd700;
  --violet: #8b5cf6;
  --gray: #acb5c7;
  --bg: #020617;
  --bg-elevated: #0b1422;
  --surface: #111c2d;
  --surface-hover: #1e293b;
  --border: #111c2d;
  --border-light: #1e293b;
  --text: #ffffff;
  --text-2: #acb5c7;
  --text-3: rgba(255, 255, 255, 0.6);
  --max-page: 75rem;
  --max-header: 80rem;
  --ease: cubic-bezier(0.4, 0.36, 0, 1);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --surface: #f1f5f9;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #020617;
  --text-2: #475569;
  --text-3: rgba(2, 6, 23, 0.6);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  background: var(--bg);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: var(--max-header);
  margin: 0 auto;
  padding: 1rem;
  column-gap: 1rem;
  transition: padding 0.3s;
}
.site-header__left { display: flex; }
.logo { display: flex; align-items: center; gap: 0.625rem; margin-left: 1rem; font-weight: 700; transition: transform 0.3s; }
.logo:hover { transform: scale(1.1); }
.logo__mark { height: 1.75rem; width: auto; }
.logo__text { display: none; font-size: 28px; letter-spacing: 0.025em; }
.logo__eyes { transform-origin: 77px 92px; animation: blink 6s infinite; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }

.site-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; margin-left: auto; }
.icon-btn {
  position: relative;
  display: flex; align-items: center;
  height: 3.5rem; padding: 0 1rem;
  border-radius: 1rem; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--border); }
.icon-btn svg { width: 1.5rem; height: 1.5rem; }
:root[data-theme='dark'] .icon-moon, :root[data-theme='light'] .icon-sun { display: none; }

.login-btn {
  display: flex; align-items: center; gap: 0.5rem;
  height: 3.5rem; padding: 0 1rem; margin-left: 1rem;
  border-radius: 1rem; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.login-btn:hover { background: rgba(172, 181, 199, 0.05); border-color: rgba(172, 181, 199, 0.1); }
.login-btn__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
}
.login-btn__text { display: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }

.menu-toggle { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.5rem; }
.menu-toggle span { display: block; width: 2rem; height: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.8); transition: transform 0.2s; }
:root[data-theme='light'] .menu-toggle span { background: rgba(2, 6, 23, 0.8); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.main-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s; }
.main-nav[data-open] { grid-template-rows: 1fr; }
.main-nav__list { overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.main-nav__list li { width: 100%; display: flex; justify-content: center; }
.main-nav__list li:first-child { margin-top: 1.25rem; }
.main-nav__link {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%; min-height: 50px; padding: 1rem 1.25rem;
  font-size: 1.25rem; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.3s;
}
.main-nav__link:hover { background: var(--surface-hover); border-color: var(--border); }
.main-nav__link svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 768px) {
  .site-header { background: transparent; }
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 50px -5px var(--border), 0 0 0 1px var(--border);
  }
  .site-header.is-scrolled .site-header__inner { padding-block: 0; }
  .site-header__inner { display: flex; padding: 1rem 1.5rem; column-gap: 2.5rem; }
  .site-header__left, .site-header__right { flex: 1 1 0; }
  .site-header__right { margin-right: 1rem; margin-left: 0; gap: 0.375rem; }
  .main-nav { display: flex; justify-content: center; }
  .main-nav__list { flex-direction: row; overflow: visible; gap: 0 0.25rem; }
  .main-nav__list li { width: auto; display: block; }
  .main-nav__list li:first-child { margin-top: 0; }
  .main-nav__link { height: 3.5rem; min-height: 0; padding: 0 0.375rem; font-size: 0.875rem; border-radius: 1rem; }
  .menu-toggle { display: none; }
  .login-btn { margin-left: 0; }
}
@media (min-width: 1024px) {
  .logo__text { display: block; }
  .main-nav__list { gap: 0 0.5rem; }
  .main-nav__link { padding: 0 1rem; font-size: 1rem; gap: 0.5rem; }
}
@media (min-width: 1280px) {
  .login-btn { margin-left: 2.5rem; }
  .login-btn__text { display: block; }
}

/* Page frame */
.page { padding: 7rem 1rem 0; }
@media (min-width: 768px) { .page { padding: 12rem 1.5rem 0; } }
@media (min-width: 1280px) { .page { padding-inline: 2rem; } }
.main { position: relative; margin-bottom: 6rem; }
.section { max-width: var(--max-page); margin-inline: auto; }
.section[id] { scroll-margin-top: 4.5rem; }

.eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--blue); }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.section__title { margin-top: 0.5rem; font-size: 1.875rem; line-height: 1.2; font-weight: 600; }
.section__title--lg { margin-top: 0.75rem; text-wrap: balance; }
@media (min-width: 640px) { .section__title--lg { font-size: 2.25rem; line-height: 1.11; } }
.section__head--center { max-width: 42rem; margin: 0 auto; text-align: center; }
.section__lead { margin-top: 1rem; color: var(--text-2); text-wrap: pretty; }

/* Hero */
.hero { max-width: 56rem; margin: -1rem auto 0; padding: 0 1rem 2rem; text-align: center; }
@media (min-width: 768px) { .hero { margin-top: -3.5rem; padding-bottom: 3rem; } }
.hero__title {
  margin-top: 1.25rem;
  font-size: 3rem; line-height: 1.12; font-weight: 600; letter-spacing: -0.04em;
  text-wrap: balance;
}
@media (min-width: 640px) { .hero__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 4.25rem; } .hero__line--first { white-space: nowrap; } }
.hero__line { display: block; }
.hero__chip {
  position: relative; display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 1rem;
  border: 1px solid rgba(0, 153, 255, 0.25); background: rgba(0, 153, 255, 0.1);
  color: var(--blue-light); box-shadow: 0 0 36px -18px rgba(96, 186, 255, 0.95);
  transition: transform 0.2s;
}
.hero__code { position: relative; display: inline-flex; align-items: baseline; padding: 0.25rem 0; }
.hero__brace { color: var(--yellow); }
.hero__gradient {
  background: linear-gradient(90deg, var(--text), var(--yellow), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__underglow { position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.25rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 215, 0, 0.2); filter: blur(12px); }
.hero__lead { max-width: 42rem; margin: 1.25rem auto 0; font-size: 1.125rem; line-height: 2rem; color: var(--text-2); text-wrap: pretty; }
.hero__ctas { margin-top: 2rem; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }
.hero__login { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 0.5rem; font-size: 0.875rem; color: var(--text-2); }
.text-btn { font-weight: 600; color: var(--text); transition: color 0.15s; }
.text-btn:hover { color: var(--blue); text-decoration: underline; }

.stats {
  display: none; width: fit-content; max-width: 100%; margin: 2rem auto 0;
  padding: 0.75rem 1.5rem; border: 1px solid var(--border-light); border-radius: 999px;
  font-size: 0.875rem; color: var(--text-2);
}
@media (min-width: 640px) { .stats { display: flex; flex-wrap: wrap; justify-content: center; } }
.stats__item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0 1.25rem; border-right: 1px solid var(--border); }
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { padding-right: 0; border-right: 0; }
.stats dt { font-weight: 600; color: var(--blue-light); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; text-align: center;
  transition: transform 0.3s var(--ease), filter 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--lg { min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-size: 1rem; }
.btn--block { width: 100%; height: 3rem; padding: 0 1.5rem; border-radius: 0.5rem; font-size: 1rem; }
.btn--primary { color: #fff; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); border: 1px solid transparent; box-shadow: 0 16px 36px -24px rgba(0, 153, 255, 0.85); }
.btn--lg.btn--primary { background: var(--blue); }
.btn--primary:hover { filter: brightness(1.1); box-shadow: 0 0 10px rgba(96, 186, 255, 0.18); }
.btn--lg:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: rgba(0, 153, 255, 0.4); background: rgba(17, 28, 45, 0.5); }
.btn--outline-blue { border: 1px solid var(--blue); color: var(--blue); }
.btn--outline { border: 1px solid currentColor; }
.btn--outline-blue:hover, .btn--outline:hover { background: rgba(255, 255, 255, 0.05); }
.btn__arrow { margin-left: 0.5rem; }

/* Courses */
.courses { padding: 3rem 0; }
.courses .section__title { margin-bottom: 1.5rem; }
.course-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 0.75rem; border: 1px solid var(--border);
  transition: filter 0.2s, transform 0.3s;
}
.course-card:hover { filter: contrast(1.1); }
.course-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.92) 42%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
  opacity: 0; transition: opacity 0.25s;
}
.course-card:hover::before, .course-card:focus-within::before { opacity: 1; }
.course-card__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.course-card__link { display: flex; flex-direction: column; aspect-ratio: 16 / 9; height: 100%; padding: 0.5rem; }
.course-card__badges { position: absolute; top: 0.5rem; right: 0.5rem; display: inline-flex; gap: 0.5rem; transition: opacity 0.2s, transform 0.2s; }
.course-card:hover .course-card__badges, .course-card:focus-within .course-card__badges { opacity: 0; transform: translateY(-4px); }
.course-card__info { margin-top: auto; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
.course-card:hover .course-card__info, .course-card:focus-within .course-card__info { opacity: 1; transform: none; }
.course-card__title { max-width: 28ch; margin: 0 0 0.5rem 0.25rem; font-size: 0.875rem; line-height: 1.375; font-weight: 500; color: #fff; text-shadow: 0 1px 2px #000; text-wrap: balance; }
.course-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.course-card__duration { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--gray); }
.course-card__duration svg { width: 1rem; height: 1rem; flex: none; }
.course-card__go { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.75rem; border-radius: 0.5rem; border: 1px solid #fff; color: #fff; font-size: 0.75rem; font-weight: 600; transition: transform 0.3s; }
.course-card:hover .course-card__go { transform: scale(1.05); }
.course-card__go svg { height: 1rem; width: auto; }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.625rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.badge svg { width: 0.75rem; height: 0.75rem; flex: none; }
.badge--new { color: #030712; background: linear-gradient(135deg, var(--yellow), #facc15, var(--yellow)); border: 1px solid rgba(253, 224, 71, 0.5); box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35); }
.badge--soon { color: #fff; background: linear-gradient(135deg, var(--violet), #a78bfa, var(--violet)); border: 1px solid rgba(196, 181, 253, 0.5); box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35); }
.badge--free { color: var(--bg); background: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6); border: 1px solid rgba(147, 197, 253, 0.5); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35); }
.badge--members { padding: 0; gap: 0; overflow: hidden; color: #fff; background: var(--blue); border: 1px solid var(--blue); font-weight: 400; }
.badge--members span:first-child { display: flex; align-items: center; gap: 0.25rem; height: 100%; padding: 0 0.5rem; border-radius: 0.375rem; background: var(--surface); color: var(--blue); font-size: 10px; }
.badge--members span:last-child { padding: 0.25rem 0.5rem 0.25rem 0.5rem; }

/* Pricing */
.pricing { padding: 4rem 0; }
.pricing .section__head { margin-bottom: 2.5rem; }
.plans { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.5rem; border-radius: 1rem; border: 1px solid;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}
@media (min-width: 640px) { .plan { padding: 1.75rem; } }
.plan:hover { transform: translateY(-2px); }
.plan--blue { border-color: rgba(0, 153, 255, 0.35); background: rgba(0, 153, 255, 0.025); }
.plan--blue:hover { border-color: rgba(0, 153, 255, 0.6); }
.plan--yellow { border-color: rgba(255, 215, 0, 0.35); background: rgba(255, 215, 0, 0.025); }
.plan--yellow:hover { border-color: rgba(255, 215, 0, 0.6); }
.plan--green { border-color: var(--green); background: rgba(32, 255, 161, 0.08); box-shadow: 0 0 0 1px rgba(32, 255, 161, 0.16), 0 24px 80px -56px rgba(32, 255, 161, 0.55); }
@media (min-width: 1280px) { .plan--green { margin-top: -0.75rem; } }
.plan__topline { position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); }
.plan__top { min-height: 17rem; margin-bottom: 1.75rem; }
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; }
.plan__tag { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--green); color: var(--bg); font-size: 0.75rem; font-weight: 500; }
.plan__desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--text-2); }
.plan__price { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; }
.plan__amount { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.plan__unit { margin-left: 0.5rem; font-size: 1.125rem; color: var(--text-3); }
.plan__note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-3); }
.plan--yellow .plan__note strong { color: var(--yellow); }
.plan--green .plan__note strong { color: var(--green); }
.plan__chip { display: inline-flex; margin-top: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid rgba(32, 255, 161, 0.25); background: rgba(32, 255, 161, 0.1); color: var(--green); font-size: 0.875rem; font-weight: 600; }
.plan__features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; color: var(--text-2); }
.plan__features li { display: flex; align-items: center; gap: 0.75rem; }
.plan__features li::before {
  content: ''; flex: none; width: 1rem; height: 1rem; border-radius: 999px;
  background: var(--check, var(--blue)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23020617' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan--yellow .plan__features { --check: var(--yellow); }
.plan--green .plan__features { --check: var(--green); }
.plan .btn { margin-top: auto; }
.pricing__legal { max-width: 42rem; margin: -2rem auto 3.5rem; padding: 0 1rem; text-align: center; font-size: 0.75rem; line-height: 1.25rem; color: var(--text-3); }
.pricing__legal a { font-weight: 500; color: var(--text-2); }
.pricing__legal a:hover { color: var(--blue); text-decoration: underline; }

.compare { max-width: 64rem; margin: 3rem auto 0; border: 1px solid rgba(17, 28, 45, 0.8); border-radius: 1rem; }
.compare__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.compare__summary::-webkit-details-marker { display: none; }
.compare__summary strong { display: block; font-weight: 600; }
.compare__summary strong + span { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--text-2); }
.plus { color: var(--blue); transition: transform 0.2s; }
details[open] > summary .plus { transform: rotate(45deg); }
.compare__body { border-top: 1px solid var(--border); padding: 1rem 0.5rem; overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; text-align: left; }
.compare__table th { padding: 1rem; font-weight: 500; text-align: center; background: rgba(11, 20, 34, 0.4); }
.compare__table th:first-child { text-align: left; font-weight: 400; background: var(--bg); }
.compare__table th strong { display: block; margin-top: 0.25rem; font-size: 1.5rem; font-weight: 700; }
.compare__table th.is-featured { background: rgba(0, 153, 255, 0.05); }
.compare__badge { display: inline-block; margin-bottom: 0.375rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--blue); color: var(--bg); font-size: 0.6875rem; line-height: 1.3; }
.compare__table td { padding: 1rem; text-align: center; border-top: 1px solid var(--border); }
.compare__table td:first-child { text-align: left; }
.compare__table td:last-child { background: rgba(0, 153, 255, 0.05); }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: rgba(0, 153, 255, 0.1); color: var(--blue); }
.tick--no { color: var(--text-3); background: none; }

/* FAQ */
.faq { padding-top: 4rem; }
.faq__list { margin-top: 2rem; border-block: 1px solid var(--border); }
.faq__list li + li { border-top: 1px solid var(--border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; user-select: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: 1rem; font-weight: 600; }
.faq__item p { max-width: 68ch; padding-bottom: 1.25rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--text-2); text-wrap: pretty; }

/* Articles */
.articles { padding-top: 4rem; }
.articles__head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .articles__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.articles__lead { max-width: 32rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--text-2); }
.articles__list { border-block: 1px solid var(--border); }
.articles__list li + li { border-top: 1px solid var(--border); }
.articles__list a { display: block; padding: 1rem 0; transition: background-color 0.15s; }
@media (min-width: 640px) { .articles__list a { padding-inline: 0.5rem; } }
.articles__list a:hover { background: var(--surface-hover); }
.articles__list h3 { font-size: 1rem; font-weight: 500; text-wrap: balance; transition: color 0.15s; }
@media (min-width: 640px) { .articles__list h3 { font-size: 1.125rem; } }
.articles__list a:hover h3 { color: var(--blue); }
.articles__more { margin-top: 1.5rem; display: flex; justify-content: center; }
@media (min-width: 640px) { .articles__more { justify-content: flex-end; } }
.articles__more a, .testimonials__cta a { display: inline-flex; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--blue); }
.articles__more a:hover, .testimonials__cta a:hover { text-decoration: underline; }

/* Testimonials */
.testimonials { padding-top: 4rem; max-width: none; overflow: hidden; }
.testimonials .section__head { padding: 0 1rem; }
.marquee { margin-top: 2.5rem; mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__list { display: flex; flex-shrink: 0; gap: 1rem; padding: 0 0.5rem; }
.testimonial { width: 20rem; flex-shrink: 0; padding: 1.25rem; border-radius: 1rem; border: 1px solid rgba(17, 28, 45, 0.8); cursor: pointer; transition: border-color 0.2s; }
.testimonial:hover { border-color: var(--border-light); }
@media (min-width: 640px) { .testimonial { width: 24rem; } }
.testimonial p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.875rem; line-height: 1.5rem; color: var(--text-2); text-wrap: pretty; }
.testimonial header { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.testimonial__avatar { width: 2.5rem; height: 2.5rem; border-radius: 1rem; flex: none; }
.testimonial h3 { font-size: 1rem; font-weight: 600; }
.testimonial header p { font-size: 0.875rem; color: var(--text-3); -webkit-line-clamp: 1; }
.testimonials__cta { margin-top: 2rem; padding: 0 1rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; width: auto; overflow-x: auto; } }

/* Contact form */
.contact { padding-top: 4rem; }
.contact__form {
  max-width: 40rem; margin: 2rem auto 0; padding: 1.5rem;
  border-radius: 1.25rem; border: 1px solid var(--border-light);
  background: radial-gradient(var(--surface) 1.5px, var(--bg-elevated) 0) 0 0 / 20px 20px;
}
.contact__row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .contact__row { grid-template-columns: 1fr 1fr; } }
.contact__field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.contact__field label { font-size: 0.875rem; font-weight: 600; }
.contact__optional { font-weight: 400; color: var(--text-3); }
.contact__field input, .contact__field textarea {
  width: 100%; padding: 0.625rem 0.75rem;
  border-radius: 0.625rem; border: 1px solid var(--border-light); background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem;
}
.contact__field textarea { min-height: 8rem; resize: vertical; }
.contact__field input:focus-visible, .contact__field textarea:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; }
.contact__field [aria-invalid='true'] { border-color: #f87171; }
.contact__error { min-height: 1.25rem; margin-bottom: 0.5rem; font-size: 0.8125rem; color: #f87171; }
.contact__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.contact__send[disabled] { opacity: 0.6; cursor: progress; }
.contact__status { flex: 1 1 14rem; font-size: 0.875rem; font-weight: 600; }
.contact__status[data-kind='ok'] { color: var(--green); }
.contact__status[data-kind='error'] { color: #f87171; }
.contact__status[data-kind='busy'] { color: var(--text-2); }
.contact__privacy { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-3); }
:root[data-theme='light'] .contact__form { border-color: var(--border); }
:root[data-theme='light'] .contact__field input, :root[data-theme='light'] .contact__field textarea { border-color: #cbd5e1; }
:root[data-theme='light'] .contact__status[data-kind='ok'] { color: #047857; }
:root[data-theme='light'] .contact__error, :root[data-theme='light'] .contact__status[data-kind='error'] { color: #b91c1c; }

/* Footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-top: 10rem; padding: 5rem 1rem; }
.footer__title {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; row-gap: 1rem;
  margin-bottom: 1rem; font-size: 1.5rem; font-weight: 600; text-align: center; text-shadow: 0 1px 2px #000;
}
.footer__title::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 40%; height: 100%; transform: translate(-50%, -50%); border-radius: 999px; background: #558bb4; filter: blur(64px); opacity: 0.8; }
:root[data-theme='light'] .footer__title { text-shadow: none; }
:root[data-theme='light'] .footer__title::before { opacity: 0.32; }
@media (min-width: 768px) { .footer__title { font-size: 3rem; } }
.footer__stream { position: relative; display: block; margin: 0 1rem; }
.footer__thumb { display: block; width: 5rem; transition: transform 0.2s; }
.footer__thumb svg { width: 100%; height: auto; border-radius: 0.375rem; }
@media (min-width: 768px) { .footer__thumb { width: 10rem; } }
.footer__stream:hover .footer__thumb { transform: scale(0.95); }
.footer__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 999px; background: rgba(0, 153, 255, 0.8); color: #000; transition: background-color 0.2s, transform 0.2s;
}
.footer__play svg { width: 0.75rem; height: auto; }
@media (min-width: 768px) { .footer__play { width: 2rem; height: 2rem; } .footer__play svg { width: 1.5rem; } }
.footer__stream:hover .footer__play { background: var(--blue); transform: translate(-50%, -50%) scale(1.05); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.875rem; }
.footer__nav a { color: var(--text-2); transition: color 0.2s; }
.footer__nav a:hover { color: var(--text); }
.footer__disclaimer { max-width: 40rem; margin-top: 1rem; padding: 0.75rem 1rem; border: 1px dashed var(--border-light); border-radius: 0.75rem; text-align: center; font-size: 0.8125rem; line-height: 1.4; color: var(--text-2); }
.compare__plan { display: block; }
