:root {
  --ink: #0f172a;
  --muted: #475569;
  --brand: #4f46e5;
  --brand-deep: #4338ca;
  --violet: #7c3aed;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  border-radius: 0.6rem;
  background: #111827;
  color: #fff;
  padding: 0.6rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0.75rem;
}

* {
  min-width: 0;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.hero-bg,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #eef2ff 0%, #ffffff 52%, #f5f3ff 100%);
}

.hero-bg::before,
.page-hero::before,
.hero-bg::after,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(2px);
}

.hero-bg::before,
.page-hero::before {
  top: -10rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.24) 0%, rgba(79, 70, 229, 0) 72%);
  animation: orbFloat 9s ease-in-out infinite;
}

.hero-bg::after,
.page-hero::after {
  right: -8rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0) 72%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-kicker {
  margin-bottom: 0.85rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4338ca;
}

.hero-copy {
  margin-top: 1.1rem;
  max-width: 40rem;
  font-size: clamp(1rem, 2.2vw, 1.13rem);
  color: #475569;
}

.hero-cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust-inline {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-points span {
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4338ca;
}

.hero-support-line {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.88rem;
  color: #6366f1;
}

.hero-trust-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
}

.hero-trust-item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #4f46e5;
}

.hero-metric-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 34rem;
}

.hero-metric-row p {
  margin: 0;
  border-radius: 0.8rem;
  border: 1px solid #e2e8f0;
  background: #ffffffcc;
  padding: 0.65rem 0.7rem;
}

.hero-metric-row strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
  color: #312e81;
}

.hero-metric-row span {
  margin-top: 0.2rem;
  display: block;
  font-size: 0.75rem;
  color: #475569;
}

.hero-showcase {
  position: relative;
  border-radius: 1.4rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  box-shadow: 0 20px 44px rgba(79, 70, 229, 0.16);
}

.hero-showcase-head {
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-showcase-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-showcase-head span {
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4338ca;
}

.hero-showcase-main {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.9rem;
}

.hero-showcase-main p:first-child {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-showcase-main p:last-child {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.hero-stat-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-stat-grid article {
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.7rem 0.6rem;
}

.hero-stat-grid strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #312e81;
}

.hero-stat-grid span {
  margin-top: 0.3rem;
  display: block;
  font-size: 0.72rem;
  color: #475569;
}

.hero-next-step {
  margin-top: 0.8rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  padding: 0.8rem 0.9rem;
  color: #fff;
}

.hero-next-step p:first-child {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0e7ff;
}

.hero-next-step p:last-child {
  margin: 0.3rem 0 0;
  font-size: 0.83rem;
  color: #eef2ff;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  font-weight: 550;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e1b4b;
}

.brand-mark {
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12);
}

.brand-sub {
  margin-left: 0.35rem;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #f8faff;
  padding: 0.16rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4338ca;
}

.nav-link:hover,
.nav-active {
  color: var(--brand-deep);
}

.nav-link:hover {
  background-color: #f1f5f9;
}

.nav-active {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.top-nav {
  border-bottom: 1px solid #e2e8f0cc;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  transition: box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.top-nav.is-scrolled {
  border-bottom-color: #d9e1ee;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

[data-menu] {
  border-radius: 999px;
  border: 1px solid #e5eaf3;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.3rem;
}

.menu-toggle {
  border-radius: 0.75rem;
  border: 1px solid #dbe0ea;
  color: #334155;
  min-height: 2.75rem;
  min-width: 2.75rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.menu-toggle:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.menu-toggle[data-state='open'] {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  padding-right: 1.35rem;
}

.nav-dropdown > .nav-link::after {
  content: '';
  position: absolute;
  right: 0.62rem;
  top: calc(50% - 0.13rem);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  transition: transform 180ms ease;
}

.nav-dropdown:hover > .nav-link::after,
.nav-dropdown:focus-within > .nav-link::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  z-index: 40;
  width: 14rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.45rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: #334155;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-dropdown-menu a:hover {
  background: #eef2ff;
  color: var(--brand-deep);
}

.menu-panel {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 320ms ease, opacity 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.menu-panel.is-open {
  max-height: 32rem;
  border-top-color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link {
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  min-height: 2.75rem;
  width: 100%;
}

.mobile-nav-link.nav-active {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #3730a3;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  border: 1px solid #d2d9e6;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
  border-color: #a5b4fc;
  background: linear-gradient(135deg, #ffffff, #f5f7ff);
  color: #312e81;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.12);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
}

.section-wrap {
  margin-inline: auto;
  max-width: 80rem;
  padding: clamp(3.1rem, 8vw, 4.4rem) 1rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 4.6vw, 2.3rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin-top: 0.7rem;
  max-width: 44rem;
  font-size: 1rem;
  color: var(--muted);
}

.feature-card,
.item-card,
.op-card {
  border-radius: 1.1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(135deg, #eef2ff, #f8faff);
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
}

.trust-stats-grid {
  display: grid;
  gap: 1rem;
}

.trust-stat {
  border-radius: 1rem;
  border: 1px solid #dbe4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.trust-stat:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.12);
}

.trust-stat-icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  color: #4338ca;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.trust-stat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.trust-stat strong {
  margin-top: 0.78rem;
  display: block;
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #1e1b4b;
}

.trust-stat span {
  margin-top: 0.35rem;
  display: block;
  font-size: 0.88rem;
  color: #475569;
}

.trust-badges-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .trust-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .trust-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.who-grid {
  display: grid;
  gap: 1rem;
}

.who-card {
  border-radius: 1.05rem;
  border: 1px solid #dbe4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1.05rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.who-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.12);
}

.who-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.who-title-block {
  display: grid;
  gap: 0.35rem;
}

.who-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1e1b4b;
}

.who-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: #4338ca;
}

.who-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.who-audience-tag {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.2rem 0.56rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4338ca;
}

.who-card p {
  margin-top: 0.65rem;
  color: #475569;
  font-size: 0.93rem;
}

.who-benefits {
  margin: 0.72rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.87rem;
}

.who-link {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 0.7rem;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.5rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #4338ca;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.who-link:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #312e81;
}

.who-support {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: #475569;
}

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  border: 1px solid #dbe4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1.08rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.12);
}

.why-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: #4338ca;
}

.why-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.why-card h3 {
  margin-top: 0.72rem;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1e1b4b;
}

.why-card p {
  margin-top: 0.52rem;
  color: #475569;
  font-size: 0.92rem;
}

.why-proof {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #4338ca;
}

.why-support {
  margin-top: 1rem;
  color: #475569;
  font-size: 0.92rem;
  text-align: center;
}

@media (min-width: 640px) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .who-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.testimonial-card {
  border-radius: 1rem;
  border: 1px solid #dbe4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.15rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.12);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-name {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: #0f172a;
}

.testimonial-role {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4f46e5;
}

.testimonial-quote {
  margin: 0.85rem 0 0;
  color: #334155;
  font-size: 0.92rem;
}

.testimonial-support {
  margin: 1.1rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
}

.testimonial-card cite {
  margin-top: 0.75rem;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4338ca;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid #dbe4f5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.faq-item summary {
  position: relative;
  padding-right: 2.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.72rem;
  height: 2px;
  border-radius: 999px;
  background: #4f46e5;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] {
  border-color: #c7d2fe;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
  margin-top: 0.6rem;
  padding-right: 1.5rem;
  font-size: 0.91rem;
  line-height: 1.6;
  color: #475569;
}

.faq-item[open] p {
  animation: faqFadeUp 180ms ease;
}

@keyframes faqFadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-support {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
}

.faq-support a {
  color: #4338ca;
  text-decoration: none;
}

.faq-support a:hover {
  text-decoration: underline;
}

.template-library-grid {
  display: grid;
  gap: 1.15rem;
}

.template-card {
  border-radius: 1.05rem;
  border: 1px solid #dbe4f5;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.template-card:hover {
  transform: translateY(-5px);
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.11);
}

.template-card h3 {
  margin-top: 0.7rem;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 700;
}

.template-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #475569;
}

.template-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.22rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: #4338ca;
}

.template-meta {
  margin-top: 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
}

.template-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.template-preview {
  white-space: pre-wrap;
  border: 1px solid #dbe3f4;
  border-radius: 0.8rem;
  background: #f8fafc;
  padding: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #1e293b;
  max-height: 20rem;
  overflow: auto;
}

.template-modal-panel {
  width: min(100%, 46rem);
}

.feature-card:hover,
.item-card:hover,
.op-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.feature-card h3,
.item-card h3,
.op-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p,
.item-card p,
.op-card p,
.op-card span {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.item-card a,
.op-card a {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.item-card-badge {
  margin-top: 0.7rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4338ca;
}

.item-card-tags {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #4f46e5;
  font-weight: 600;
}

.item-card-title {
  margin-top: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.item-card-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.38rem;
  padding: 0;
  list-style: none;
}

.item-card-list li {
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.48rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #334155;
}

.item-card-note {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.op-mini-badge {
  margin: 0 0 0.5rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #eef2ff;
  padding: 0.16rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4338ca;
}

.latest-op-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.latest-op-head .section-kicker {
  margin-bottom: 0.55rem;
}

.latest-op-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.latest-op-footer {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.latest-op-footer .btn-secondary {
  min-width: min(100%, 18rem);
  justify-content: center;
}

.latest-op-card {
  border-radius: 1.1rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1.05rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.latest-op-card:hover {
  transform: translateY(-5px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.latest-op-featured {
  border-color: #c7d2fe;
  background: linear-gradient(120deg, #eef2ff 0%, #ffffff 52%, #f5f3ff 100%);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.13);
}

.latest-op-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.latest-op-category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3730a3;
}

.latest-op-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.latest-op-status-new {
  background: #dcfce7;
  color: #166534;
}

.latest-op-status-soon {
  background: #ffedd5;
  color: #9a3412;
}

.latest-op-status-popular {
  background: #e0e7ff;
  color: #3730a3;
}

.latest-op-card h3 {
  margin-top: 0.72rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.latest-op-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.latest-op-meta {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.45rem;
}

.latest-op-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: #475569;
}

.latest-op-meta p strong {
  color: #0f172a;
}

.latest-op-meta svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #6366f1;
}

.latest-op-deadline {
  width: fit-content;
  border-radius: 0.7rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  padding: 0.34rem 0.6rem;
  font-weight: 700;
  color: #3730a3;
}

.latest-op-cta,
.latest-op-link {
  margin-top: 0.92rem;
}

.latest-op-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3730a3;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.latest-op-link:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
}

.latest-op-link:focus-visible,
.latest-op-cta:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.feature-card h3,
.item-card h3,
.op-card h3,
.template-card h3 {
  overflow-wrap: anywhere;
}

.quick-action-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}

.quick-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.quick-action-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe5fb;
  background: #ffffff;
  padding: 0.26rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
}

.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4338ca;
}

.quick-action-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.quick-action-cta {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.5rem 0.88rem;
  color: #3730a3;
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.quick-action-cta:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
}

.popular-tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.popular-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.popular-tool-featured {
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.14);
}

.popular-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.popular-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.8rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  color: #4f46e5;
}

.popular-tool-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.popular-tool-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.24rem 0.62rem;
  font-size: 0.71rem;
  font-weight: 700;
  color: #4338ca;
}

.popular-tools-footer {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.82rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4338ca;
}

.category-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.category-cta {
  margin-top: 0.4rem;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.5rem 0.85rem;
  color: #3730a3;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-cta:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
}

.career-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.career-preview-cta {
  margin-top: 0.2rem;
}

.career-preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.career-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.66rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.career-guide-featured {
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.12);
}

.career-guide-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.career-guide-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3730a3;
}

.career-guide-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.22rem 0.6rem;
  font-size: 0.71rem;
  font-weight: 700;
  color: #4f46e5;
}

.career-guide-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #4f46e5;
  font-weight: 600;
}

.career-guide-summary {
  margin: 0;
  color: #475569;
}

.career-guide-meta-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.career-guide-byline {
  margin: 0;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.16rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.career-guide-link {
  margin-top: 0.25rem;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.5rem 0.85rem;
  color: #3730a3;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.career-guide-link:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
}

.career-preview-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.career-preview-all {
  min-width: min(100%, 17.5rem);
  text-align: center;
}

.template-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.template-preview-cta {
  margin-top: 0.2rem;
}

.template-preview-footer {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.template-preview-footer .btn-primary {
  min-width: min(100%, 18rem);
  justify-content: center;
}

.template-preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.template-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.template-preview-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.template-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  border: 1px solid #dbe4fb;
  background: #eef2ff;
  color: #4338ca;
  flex-shrink: 0;
}

.template-preview-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.template-preview-title-wrap h3 {
  margin: 0;
}

.template-preview-meta {
  margin: 0;
  font-size: 0.77rem;
  color: #6366f1;
  font-weight: 600;
}

.template-preview-featured {
  border-color: #c7d2fe;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.14);
}

.template-preview-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.template-preview-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.24rem 0.62rem;
  font-size: 0.71rem;
  font-weight: 700;
  color: #4338ca;
}

.template-preview-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.template-preview-actions .btn-secondary,
.template-preview-download {
  min-height: 2.5rem;
}

.template-preview-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3730a3;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.template-preview-download:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-1px);
}

.hero-bg h1,
.page-hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-bg p,
.page-hero p {
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-op-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .latest-op-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .career-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .template-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .latest-op-featured {
    grid-column: span 2 / span 2;
  }

  .career-guide-featured {
    grid-column: span 2 / span 2;
  }

  .template-preview-featured {
    grid-column: span 2 / span 2;
  }
}

.op-featured {
  border-radius: 1.2rem;
  border: 1px solid #dbe5fb;
  background: linear-gradient(135deg, #f8faff, #f5f3ff);
  padding: 1.3rem;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.1);
}

.op-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.op-badge-new {
  background: #dcfce7;
  color: #166534;
}

.op-badge-soon {
  background: #ffedd5;
  color: #9a3412;
}

.op-badge-popular {
  background: #e0e7ff;
  color: #3730a3;
}

.op-meta {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #475569;
}

.op-meta strong {
  color: #0f172a;
}

.op-mode {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4f4;
  background: #f8fafc;
  padding: 0.24rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
}

.op-deadline {
  display: inline-flex;
  align-items: center;
  border-radius: 0.7rem;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
}

.op-detail-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.op-detail-meta {
  display: grid;
  gap: 0.5rem;
}

.op-detail-meta p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
}

.op-detail-meta strong {
  color: #0f172a;
}

.op-detail-layout {
  display: grid;
  gap: 1rem;
}

.op-detail-content {
  display: grid;
  gap: 0.9rem;
}

.op-detail-section {
  border-radius: 1rem;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.op-detail-section h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.op-detail-section p,
.op-detail-section li {
  margin-top: 0.65rem;
  color: #475569;
  line-height: 1.7;
}

.op-detail-section ul,
.op-detail-section ol {
  margin-top: 0.5rem;
  padding-left: 1.15rem;
}

.op-detail-note {
  border-radius: 1rem;
  border: 1px solid #f5d0fe;
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
  padding: 1rem;
}

.op-detail-note h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #581c87;
}

.op-detail-note p {
  margin-top: 0.55rem;
  color: #6b21a8;
  line-height: 1.65;
}

.op-detail-sidebar {
  align-self: start;
}

.op-detail-card {
  border-radius: 1rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(155deg, #eef2ff 0%, #ffffff 52%, #f5f3ff 100%);
  padding: 1rem;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.1);
}

.op-detail-summary p {
  margin: 0;
}

.op-detail-summary strong {
  color: #0f172a;
}

.daily-cta {
  border-radius: 1.2rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(120deg, #eef2ff, #f5f3ff);
  padding: 1.4rem;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.1);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 1rem;
}

.modal-panel {
  width: min(100%, 42rem);
  border-radius: 1rem;
  border: 1px solid #dbe4f4;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.24);
}

.newsletter {
  border-radius: 1.25rem;
  border: 1px solid #dde4f3;
  background: linear-gradient(120deg, rgba(238, 242, 255, 0.95), rgba(245, 243, 255, 0.95));
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.1);
  padding: 2rem;
}

.newsletter-block {
  gap: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.newsletter-form .btn-primary,
.newsletter-form .btn-secondary {
  width: 100%;
}

.newsletter-compact {
  display: grid;
  gap: 0.85rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.newsletter-compact h2 {
  margin-top: 0.2rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.newsletter-compact p {
  color: #475569;
}

.lead-capture {
  display: grid;
  gap: 0.9rem;
}

.lead-points {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.9rem;
}

.lead-points li {
  position: relative;
  padding-left: 1.1rem;
}

.lead-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.newsletter-microcopy {
  font-size: 0.8rem;
  color: #64748b;
}

.card-helper-text {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
}

.newsletter-status {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.newsletter-status.is-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.newsletter-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.telegram-cta {
  display: grid;
  gap: 1rem;
  border-radius: 1.25rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(120deg, rgba(238, 242, 255, 0.95), rgba(245, 243, 255, 0.95));
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.1);
}

.telegram-cta-block {
  position: relative;
  overflow: hidden;
}

.telegram-cta-block::after {
  content: '';
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}

.telegram-cta-strong {
  border-color: #c7d2fe;
  box-shadow: 0 22px 44px rgba(79, 70, 229, 0.14);
}

.telegram-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}

.telegram-cta h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.telegram-cta p {
  margin-top: 0.5rem;
  color: #475569;
}

.telegram-benefits {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
}

.telegram-benefits li {
  position: relative;
  padding-left: 1.15rem;
}

.telegram-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.telegram-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.telegram-helper-text {
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4338ca;
}

.telegram-support-line {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4338ca;
}

.newsletter h2 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.newsletter p {
  margin-top: 0.6rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid #dbe3f4;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

footer ul,
footer ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer a {
  color: inherit;
  text-decoration: none;
}


/* Footer hard reset for all template and inner pages */
footer ul,
footer ol,
footer li,
footer .foot-list,
footer .foot-list li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
  color: inherit;
  text-decoration: none;
}

.footer-shell {
  margin-inline: auto;
  max-width: 80rem;
  padding: 3.6rem 1rem 1.2rem;
}

.footer-grid {
  row-gap: 2rem;
}

.footer-intro {
  line-height: 1.6;
}

.footer-mission {
  max-width: 20rem;
}

.footer-social-title {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #dbe2ef;
  color: #334155;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: #b8c3f3;
  background: #eef2ff;
  color: var(--brand-deep);
}

.social-link:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.28);
  outline-offset: 3px;
  border-color: var(--brand);
  color: var(--brand-deep);
}

.newsletter-input {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  width: 100%;
}

.newsletter-input.is-invalid {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.footer-news-points {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.22rem;
  font-size: 0.77rem;
  color: #64748b;
}

.legal-row {
  margin-top: 2.2rem;
  border-top: 1px solid #dbe2ef;
  padding-top: 1.1rem;
}

.foot-title {
  font-weight: 700;
  color: var(--ink);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.foot-list a {
  transition: color 180ms ease;
}

.foot-list a:hover {
  color: var(--brand-deep);
}

.legal-links a {
  transition: color 180ms ease;
}

.legal-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.legal-links a:hover {
  color: var(--brand-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  transition: all 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #818cf8;
  background: #eef2ff;
  color: var(--brand-deep);
}

.tools-featured-section {
  border: 1px solid #c7d2fe;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #f8faff 0%, #f5f3ff 55%, #ffffff 100%);
  padding: 1.15rem;
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.11);
}

.tools-featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tools-featured-eyebrow {
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-featured-head h2 {
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
}

.tools-featured-head p:not(.tools-featured-eyebrow),
.tools-featured-card p {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.tools-featured-link,
.tools-featured-cta,
#toolsGrid .tool-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.tools-featured-link {
  flex: 0 0 auto;
  border: 1px solid #c7d2fe;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.58rem 0.95rem;
  color: #3730a3;
  font-size: 0.84rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.tools-featured-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.tools-featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(199, 210, 254, 0.82);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tools-featured-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.tools-featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  color: #4f46e5;
  font-weight: 900;
}

.tools-featured-badge {
  border-radius: 999px;
  border: 1px solid #e0e7ff;
  background: #f8faff;
  padding: 0.25rem 0.58rem;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 800;
}

.tools-featured-card h3 {
  margin-top: 0.85rem;
  color: #1e1b4b;
  font-size: 1rem;
  font-weight: 800;
}

.tools-featured-cta,
#toolsGrid .tool-card a:hover {
  border: 1px solid #6366f1;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}

.tools-featured-cta {
  margin-top: auto;
  min-height: 2.55rem;
  padding: 0.58rem 0.9rem;
  font-size: 0.86rem;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.2);
}

.tools-featured-link:hover,
.tools-featured-cta:hover,
#toolsGrid .tool-card a:hover,
.tools-search-filter .filter-btn:hover,
.tools-search-filter .filter-btn.active,
.tools-search-filter .filter-clear-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.16);
}

.tools-search-filter {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.tools-search-filter .filter-btn,
.tools-search-filter .filter-clear-btn,
#toolsGrid .tool-card a {
  border-color: #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.tools-search-filter .filter-btn:hover,
.tools-search-filter .filter-clear-btn:hover:not(:disabled) {
  border-color: #818cf8;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  color: #3730a3;
}

.tools-search-filter .filter-btn.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}

#toolsGrid .tool-card a {
  border: 1px solid #c7d2fe;
  padding: 0.55rem 0.9rem;
}

.tools-search-filter .filter-btn:focus-visible,
.tools-search-filter .filter-clear-btn:focus-visible,
.tools-featured-link:focus-visible,
.tools-featured-cta:focus-visible,
#toolsGrid .tool-card a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 12px 24px rgba(79, 70, 229, 0.14);
}

@media (max-width: 640px) {
  .tools-featured-section {
    padding: 1rem;
  }

  .tools-featured-head {
    display: grid;
  }

  .tools-featured-link {
    width: 100%;
  }
}

.search-filter-wrap {
  display: grid;
  gap: 0.9rem;
}

.search-shell {
  position: relative;
}

.search-shell svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  min-height: 2.8rem;
  padding: 0.78rem 0.95rem 0.78rem 2.5rem;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-input:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6deeb;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.48rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  transition: background-color 170ms ease, border-color 170ms ease;
}

.filter-clear-btn:hover {
  border-color: #b9c6ff;
  background: #f8fafc;
}

.filter-clear-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.filter-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.no-results {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1.1rem;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

.no-results-inline {
  grid-column: 1 / -1;
}

.empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.empty-desc {
  margin-top: 0.35rem;
  color: #475569;
}

.empty-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.empty-actions .btn-secondary {
  min-height: 2.45rem;
}

.tool-layout {
  display: grid;
  gap: 1.25rem;
}

.tool-panel {
  border-radius: 1.1rem;
  border: 1px solid #dbe4f5;
  background: #fff;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tool-panel h2,
.tool-panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.field-wrap {
  margin-top: 0.95rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: #334155;
}

.field-required {
  color: #dc2626;
}

.field-helper {
  margin-top: 0.38rem;
  font-size: 0.76rem;
  color: #64748b;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  min-height: 2.8rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.92rem;
  color: #0f172a;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.field-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field-input.is-invalid,
.field-select.is-invalid,
.field-textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #b91c1c;
  font-weight: 600;
}


.photo-preview {
  margin-top: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0.75rem;
}

.photo-preview img {
  display: block;
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border-radius: 0.8rem;
  background: #fff;
}

.photo-preview p {
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .photo-preview img {
    max-height: 14rem;
  }
}

.tool-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tool-helper-text {
  margin-top: 0.7rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tool-error {
  margin-top: 0.8rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.83rem;
  padding: 0.55rem 0.7rem;
}

.tool-loading {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.88rem;
}

.tool-loading::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  border-top-color: #4f46e5;
  animation: spin 0.8s linear infinite;
}

.tool-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  padding: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.tool-output-text {
  margin: 0;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.95rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: #334155;
}

.tool-output-markdown {
  line-height: 1.65;
  white-space: normal;
}

.tool-output-markdown > * + * {
  margin-top: 0.7rem;
}

.tool-output-markdown h1,
.tool-output-markdown h2,
.tool-output-markdown h3 {
  color: #1e1b4b;
  font-weight: 800;
  line-height: 1.25;
}

.tool-output-markdown h1 {
  font-size: 1.25rem;
}

.tool-output-markdown h2 {
  font-size: 1.1rem;
}

.tool-output-markdown h3 {
  font-size: 1rem;
}

.tool-output-markdown ul,
.tool-output-markdown ol {
  padding-left: 1.25rem;
}

.tool-output-markdown ul {
  list-style: disc;
}

.tool-output-markdown ol {
  list-style: decimal;
}

.tool-output-markdown li + li {
  margin-top: 0.35rem;
}

.tool-output-markdown strong {
  font-weight: 800;
  color: #1e293b;
}

.tool-output-markdown em {
  font-style: italic;
}

.tool-output-markdown code {
  border-radius: 0.35rem;
  background: #e2e8f0;
  padding: 0.08rem 0.28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.86em;
}

.tool-output-markdown pre {
  overflow-x: auto;
  border-radius: 0.65rem;
  background: #0f172a;
  padding: 0.85rem;
  color: #e2e8f0;
}

.tool-output-markdown pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.item-card-markdown {
  line-height: 1.55;
}

.tool-letter-box {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: inset 0 1px 0 #ffffff;
}


.tool-info-grid {
  display: grid;
  gap: 1rem;
}

.tool-info-card {
  border: 1px solid #dbe4f5;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1.1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.tool-info-eyebrow {
  margin: 0 0 0.35rem;
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-info-card h2 {
  color: #1e1b4b;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tool-info-card p,
.tool-info-list {
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tool-info-list {
  list-style: disc;
  padding-left: 1.1rem;
}

.tool-related-links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tool-related-links a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #fff;
  padding: 0.45rem 0.75rem;
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-related-links a:hover {
  border-color: #a5b4fc;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.12);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .tool-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  header,
  footer,
  [data-tool-form],
  [data-tool-error],
  [data-tool-loading],
  [data-tool-reset],
  [data-tool-submit],
  [data-tool-generate-more],
  .tool-tips,
  .tool-actions {
    display: none !important;
  }

  [data-tool-output] {
    margin-top: 0 !important;
  }

  .tool-panel {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .tool-output-text {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    white-space: pre-wrap;
  }
}

.copy-feedback {
  margin-top: 0.8rem;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 600;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 1.5rem));
}

.toast-message {
  border-radius: 0.85rem;
  border: 1px solid #dbe3f4;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 0.72rem 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-message strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.toast-message p {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #475569;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: #86efac;
  background: #f0fdf4;
}

.toast-error {
  border-color: #fecaca;
  background: #fff1f2;
}

.toast-info {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.tool-tips {
  border-radius: 0.9rem;
  border: 1px solid #dbe4f5;
  background: #f8fafc;
  padding: 0.9rem;
}

.tool-tips-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
}

.tool-tips ul {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.34rem;
  color: #475569;
  font-size: 0.85rem;
}

.career-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cbd5ff;
  background: #eef2ff;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3730a3;
}

.audience-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.roadmap-grid {
  display: grid;
  gap: 0.9rem;
}

.roadmap-step {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #dbe4f5;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.roadmap-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  padding: 0.36rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.roadmap-step h3 {
  margin-top: 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
}

.roadmap-step p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #475569;
}

.path-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4fb;
  background: #f8faff;
  padding: 0.23rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4338ca;
}

.quiz-coming {
  border-radius: 1.2rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(120deg, #eef2ff, #f5f3ff);
  padding: 1.5rem;
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.12);
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe2ef;
  background: #fff;
  padding: 0.3rem 0.62rem;
  font-size: 0.77rem;
  font-weight: 600;
  color: #334155;
}

.career-page .page-hero > div,
.career-page .section-wrap {
  position: relative;
  z-index: 1;
}

.career-page .btn-primary,
.career-page .btn-secondary,
.career-page .career-action-link {
  gap: 0.45rem;
  min-height: 2.95rem;
  border-radius: 0.95rem;
  padding: 0.82rem 1.18rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
}

.career-page .btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 52%, #9333ea 100%);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.career-page .btn-secondary {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.9));
  color: #3730a3;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.career-page .btn-primary:hover,
.career-page .btn-secondary:hover,
.career-page .career-action-link:hover {
  transform: translateY(-3px);
}

.career-page .btn-primary:hover {
  box-shadow: 0 20px 38px rgba(79, 70, 229, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.career-page .btn-secondary:hover {
  border-color: #818cf8;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  color: #312e81;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.16);
}

.career-page .btn-primary:focus-visible,
.career-page .btn-secondary:focus-visible,
.career-page .career-action-link:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.36);
  outline-offset: 3px;
}

.career-page .btn-primary:active,
.career-page .btn-secondary:active,
.career-page .career-action-link:active {
  transform: translateY(-1px) scale(0.99);
}

.career-page .btn-primary:disabled,
.career-page .btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.career-page .career-cta-row {
  align-items: center;
}

.career-overview-grid,
.career-action-grid {
  display: grid;
  gap: 1rem;
}

.career-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.career-overview-grid article,
.career-action-card,
.career-guide-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.career-overview-grid article {
  border-radius: 1rem;
  padding: 1rem;
}

.career-overview-grid article::before,
.career-action-card::before,
.career-guide-feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #c084fc);
  opacity: 0.86;
}

.career-overview-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.84rem;
  font-weight: 900;
}

.career-overview-grid h3,
.career-action-card h3 {
  margin-top: 0.85rem;
  font-size: 1.04rem;
  font-weight: 800;
  color: #0f172a;
}

.career-overview-grid p,
.career-action-card p {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.65;
}

.career-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-action-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: 1.15rem;
  padding: 1.15rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.career-action-card:hover,
.career-guide-feature:hover,
.career-page .roadmap-step:hover {
  transform: translateY(-5px);
  border-color: #a5b4fc;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.14);
}

.career-action-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  color: #3730a3;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.1);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.career-action-card .career-action-link,
.career-guide-feature .career-action-link {
  margin-top: auto;
}

.career-action-link::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.career-action-link:hover {
  border-color: #818cf8;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.24);
}

.career-action-link:hover::after {
  transform: translateX(3px);
}

.career-page .feature-card,
.career-page .item-card,
.career-page .roadmap-step {
  border-color: #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.career-page .roadmap-step {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.career-page .path-badge,
.career-page .skill-chip,
.career-page .career-kicker {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #3730a3;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
}

.career-guide-feature {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: 1.15rem;
}

.career-guide-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.career-guide-feature-head > span:last-child {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

.career-guide-feature h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.career-page .card-helper-text {
  color: #64748b;
}

.career-page .quiz-coming,
.career-page .daily-cta {
  border-color: #c7d2fe;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 34%), linear-gradient(120deg, #eef2ff, #ffffff 52%, #f5f3ff);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.14);
}

@media (max-width: 1023px) {
  .career-overview-grid,
  .career-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .career-page .btn-primary,
  .career-page .btn-secondary,
  .career-page .career-action-link {
    width: 100%;
    min-height: 3rem;
    white-space: normal;
    text-align: center;
  }

  .career-overview-grid,
  .career-action-grid {
    grid-template-columns: 1fr;
  }

  .career-guide-feature-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: saturate(0.82);
  transform: none;
  box-shadow: none;
}

[data-tool-output][aria-busy='true'] {
  opacity: 0.72;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

@media (hover: hover) {
  .nav-link:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .feature-card:hover,
  .item-card:hover,
  .op-card:hover,
  .template-card:hover,
  .social-link:hover {
    transition-duration: 180ms;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 14px, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-showcase-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-showcase-head span {
    margin-top: 0.2rem;
  }

  .section-wrap {
    padding-top: 3.1rem;
    padding-bottom: 3.1rem;
  }

  .item-card,
  .feature-card,
  .op-card,
  .template-card,
  .tool-panel,
  .quiz-coming,
  .daily-cta,
  .newsletter,
  .telegram-cta,
  .op-featured {
    border-radius: 1rem;
    padding: 1rem;
  }

  .op-detail-section,
  .op-detail-card {
    padding: 1rem;
  }

  .nav-shell {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.65rem;
  }

  [data-menu] {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .brand-logo {
    font-size: 1.32rem;
  }

  .hero-bg::before,
  .page-hero::before {
    width: 18rem;
    height: 18rem;
    left: -8rem;
  }

  .hero-bg::after,
  .page-hero::after {
    width: 22rem;
    height: 22rem;
    right: -9rem;
    bottom: -9rem;
  }

  .hero-trust-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metric-row p:last-child {
    grid-column: span 2;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    flex: 1 1 12rem;
  }

  .hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telegram-actions,
  .tool-actions,
  .template-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .telegram-actions .btn-primary,
  .telegram-actions .btn-secondary,
  .tool-actions .btn-primary,
  .tool-actions .btn-secondary,
  .template-actions .btn-primary,
  .template-actions .btn-secondary {
    width: 100%;
  }

  .footer-shell {
    padding-top: 2.7rem;
  }

  .legal-row {
    text-align: center;
  }

  .legal-row > div {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  footer form[data-demo-submit],
  footer form[data-newsletter-form] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  footer form[data-demo-submit] .btn-primary,
  footer form[data-newsletter-form] .btn-primary,
  footer form[data-newsletter-form] .btn-secondary {
    width: 100%;
  }

  .daily-cta form[data-newsletter-form] {
    width: 100%;
    min-width: 0;
    flex-direction: column;
  }

  .daily-cta .newsletter-form {
    width: 100%;
  }

  .daily-cta form[data-newsletter-form] .btn-secondary,
  .daily-cta form[data-newsletter-form] .btn-primary {
    width: 100%;
  }

  .search-input,
  .newsletter-input,
  .field-input,
  .field-select,
  .field-textarea {
    font-size: 16px;
  }

  .filter-btn,
  .filter-clear-btn,
  .quick-action-cta,
  .category-cta {
    min-height: 2.75rem;
  }
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-form .newsletter-input {
    flex: 1;
  }

  .newsletter-form .btn-primary,
  .newsletter-form .btn-secondary {
    width: auto;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-wrap {
    padding-inline: 1.5rem;
  }

  .template-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .quick-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .popular-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popular-tool-featured {
    grid-column: span 2 / span 2;
  }

  .section-wrap {
    padding-inline: 2rem;
  }

  .template-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .tool-layout {
    grid-template-columns: 1.02fr 1fr;
    gap: 1.4rem;
  }

  .roadmap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .telegram-cta {
    grid-template-columns: 1.15fr auto;
    align-items: center;
    gap: 1.4rem;
  }

  .op-detail-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.2rem;
  }

  .op-detail-sidebar {
    position: sticky;
    top: 6.3rem;
  }
}

.legal-page .section-wrap {
  max-width: 62rem;
}

.policy-wrap {
  border-radius: 1.15rem;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.08);
}

.policy-section + .policy-section {
  margin-top: 1.35rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.35rem;
}

.policy-section h2 {
  margin: 0;
  font-size: clamp(1.08rem, 2.6vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.policy-section h3 {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
}

.policy-section p {
  margin-top: 0.65rem;
  color: #334155;
  line-height: 1.75;
}

.policy-section ul {
  margin-top: 0.65rem;
  margin-left: 1.05rem;
  display: grid;
  gap: 0.42rem;
  color: #334155;
  line-height: 1.7;
}

.policy-section a {
  color: #4338ca;
  font-weight: 600;
}

.policy-section a:hover {
  color: #312e81;
}

@media (max-width: 520px) {
  .hero-bg h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.15rem);
    line-height: 1.18;
  }

  .section-head h2 {
    font-size: clamp(1.35rem, 7.2vw, 1.8rem);
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
  }

  .search-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .search-filter-actions .filter-btn,
  .search-filter-actions .filter-clear-btn {
    width: 100%;
  }

  .search-filter-actions .filter-clear-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .op-hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-bg::before,
  .hero-bg::after,
  .page-hero::before,
  .page-hero::after {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ATS resume template page */
.resume-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 62%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.resume-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1e1b4b;
}

.resume-template-hero p {
  margin-top: 0.8rem;
  max-width: 70ch;
  color: #475569;
}

.resume-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.how-to-list {
  margin-top: 0.85rem;
  padding-left: 1.1rem;
  color: #475569;
  display: grid;
  gap: 0.4rem;
}

.tips-block {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: #f8faff;
  padding: 0.9rem;
}

.tips-block h3 {
  color: #3730a3;
  font-size: 1rem;
  font-weight: 700;
}

.tips-block ul {
  margin-top: 0.55rem;
  padding-left: 1rem;
  color: #475569;
  display: grid;
  gap: 0.4rem;
}

.template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.resume-preview {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.resume-section + .resume-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.resume-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.editable-block {
  margin-top: 0.45rem;
  white-space: pre-wrap;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  min-height: 3.4rem;
  padding: 0.7rem 0.8rem;
  line-height: 1.5;
  color: #0f172a;
}

.editable-block:focus {
  outline: 2px solid #c7d2fe;
  border-color: #818cf8;
}

.section-guidance {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #64748b;
}

@media (min-width: 1024px) {
  .resume-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  header,
  footer,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  .section-guidance,
  .resume-template-hero {
    display: none !important;
  }

  .feature-card,
  .resume-preview,
  .resume-section,
  .editable-block {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .resume-section + .resume-section {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #e2e8f0 !important;
  }
}

/* Professional email format template page */
.email-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 65%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.email-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1e1b4b;
}

.email-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.email-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.example-switcher {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.email-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.email-block + .email-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.email-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .email-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .email-template-hero,
  .example-switcher {
    display: none !important;
  }
}

/* Internship cover letter template page */
.cover-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.cover-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.cover-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.cover-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.cover-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.cover-block + .cover-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.cover-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .cover-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .cover-template-hero,
  #coverExampleSwitcher {
    display: none !important;
  }
}

/* SOP template page */
.sop-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.sop-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.sop-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.sop-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.sop-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.sop-block + .sop-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.sop-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .sop-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .sop-template-hero,
  #sopStyleSwitcher {
    display: none !important;
  }
}

/* Weekly study planner template page */
.planner-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.planner-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.planner-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.planner-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.planner-preview {
  margin-top: 1rem;
}

.planner-sheet {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.planner-sheet h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.planner-sheet p {
  margin-top: 0.35rem;
  color: #475569;
  font-size: 0.95rem;
}

.planner-table-wrap {
  margin-top: 0.85rem;
  overflow-x: auto;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
}

.planner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.planner-table th,
.planner-table td {
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.planner-table th {
  background: #f8faff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  padding: 0.7rem;
}

.planner-table .planner-cell {
  min-height: 2.9rem;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0.7rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.planner-table .planner-cell:focus {
  outline: 2px solid #c7d2fe;
  outline-offset: -2px;
}

@media (min-width: 1024px) {
  .planner-template-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

@media print {
  .planner-template-hero,
  #plannerModeSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .planner-sheet,
  .planner-table-wrap,
  .planner-table th,
  .planner-table td,
  .planner-table .planner-cell,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .planner-sheet {
    padding: 0 !important;
    border: none !important;
  }

  .planner-table {
    min-width: 0 !important;
    font-size: 11px;
  }

  .planner-table th,
  .planner-table .planner-cell {
    padding: 0.35rem !important;
  }
}

/* LinkedIn summary template page */
.linkedin-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.linkedin-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.linkedin-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.linkedin-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.linkedin-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.linkedin-block + .linkedin-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.linkedin-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .linkedin-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .linkedin-template-hero,
  #linkedInVersionSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .linkedin-preview,
  .linkedin-block,
  .editable-block,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .linkedin-preview,
  .feature-card {
    border: none !important;
    padding: 0 !important;
  }

  .linkedin-block + .linkedin-block {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
  }
}

/* Leave application template page */
.leave-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.leave-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.leave-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.leave-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.leave-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.leave-block + .leave-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.leave-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .leave-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .leave-template-hero,
  #leaveVersionSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .leave-preview,
  .leave-block,
  .editable-block,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .leave-preview,
  .feature-card {
    border: none !important;
    padding: 0 !important;
  }

  .leave-block + .leave-block {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
  }
}

/* Apology letter template page */
.apology-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.apology-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.apology-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.apology-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.apology-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.apology-block + .apology-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.apology-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .apology-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .apology-template-hero,
  #apologyVersionSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .apology-preview,
  .apology-block,
  .editable-block,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .apology-preview,
  .feature-card {
    border: none !important;
    padding: 0 !important;
  }

  .apology-block + .apology-block {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
  }
}

/* Salary negotiation email template page */
.salary-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.salary-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.salary-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.salary-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.salary-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.salary-block + .salary-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.salary-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .salary-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .salary-template-hero,
  #salaryVersionSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .salary-preview,
  .salary-block,
  .editable-block,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .salary-preview,
  .feature-card {
    border: none !important;
    padding: 0 !important;
  }

  .salary-block + .salary-block {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
  }
}

/* Project proposal template page */
.proposal-template-hero {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, #eef2ff 0%, #ffffff 66%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.proposal-template-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  color: #1e1b4b;
}

.proposal-template-hero p {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: #475569;
}

.proposal-template-layout {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.proposal-preview {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.proposal-block + .proposal-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.proposal-block h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

@media (min-width: 1024px) {
  .proposal-template-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media print {
  .proposal-template-hero,
  #proposalVersionSwitcher,
  .template-toolbar,
  .how-to-list,
  .tips-block,
  .copy-feedback,
  header,
  footer {
    display: none !important;
  }

  .proposal-preview,
  .proposal-block,
  .editable-block,
  .feature-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .proposal-preview,
  .feature-card {
    border: none !important;
    padding: 0 !important;
  }

  .proposal-block + .proposal-block {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
  }
}

/* Instagram content calendar template */
.insta-calendar-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
}

.insta-calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.insta-calendar-table th,
.insta-calendar-table td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #eef2ff;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.insta-calendar-table th {
  background: #eef2ff;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
}

.insta-calendar-table td[contenteditable='true'],
.insta-calendar-card span[contenteditable='true'] {
  outline: none;
}

.instagram-mobile-cards {
  display: none;
  margin-top: 1rem;
  gap: 0.8rem;
}

.insta-calendar-card {
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
  background: #f8faff;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.insta-calendar-card p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: #334155;
}

#ideasBank {
  list-style: disc;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 900px) {
  .insta-calendar-table-wrap {
    display: none;
  }

  .instagram-mobile-cards {
    display: grid;
  }
}

/* Interview thank you email template */
.thank-you-email-shell {
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.08);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.thank-you-line,
.thank-you-signature {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8faff;
  line-height: 1.6;
  color: #1e293b;
}

.thank-you-line[contenteditable='true'],
.thank-you-signature[contenteditable='true'] {
  outline: none;
}

#thankYouSubjectBank {
  list-style: disc;
  padding-left: 1.2rem;
  color: #475569;
  display: grid;
  gap: 0.35rem;
}

/* Fresher resume objective bank template */
.objective-bank-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.objective-card {
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(59, 130, 246, 0.08);
  padding: 0.9rem;
}

.objective-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.objective-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #475569;
}

.objective-text {
  margin-top: 0.65rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8faff;
  padding: 0.78rem;
  color: #1e293b;
  line-height: 1.55;
}

.objective-text[contenteditable='true'] {
  outline: none;
}

.objective-actions {
  margin-top: 0.7rem;
}

.quiz-mode-switch {
  border: 1px solid #e0e7ff;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  padding: 0.9rem;
}

.quiz-mode-tabs {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quiz-mode-tab {
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #ffffff;
  color: #4338ca;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quiz-mode-tab:hover,
.quiz-mode-tab:focus-visible {
  border-color: #6366f1;
  transform: translateY(-1px);
}

.quiz-mode-tab.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

@media (max-width: 640px) {
  .quiz-mode-tabs,
  .quiz-mode-tab {
    width: 100%;
  }

  .quiz-mode-tab {
    justify-content: center;
    text-align: center;
  }
}

.tools-hero-chips {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tools-hero-chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.55rem 0.95rem;
  color: #3730a3;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tools-hero-chips a:hover {
  border-color: #a5b4fc;
  background: #f8faff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.14);
  transform: translateY(-2px);
}

.tools-sections-wrap {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.tools-category-section {
  scroll-margin-top: 6rem;
  border: 1px solid #e0e7ff;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(224, 231, 255, 0.55), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(1rem, 2.7vw, 1.45rem);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.tools-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tools-category-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.tools-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.14);
  font-size: 1.35rem;
}

.tools-category-icon-emerald { background: linear-gradient(135deg, #dcfce7, #ecfdf5); }
.tools-category-icon-sky { background: linear-gradient(135deg, #e0f2fe, #f0f9ff); }
.tools-category-icon-amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.tools-category-icon-pink { background: linear-gradient(135deg, #fce7f3, #fff1f2); }
.tools-category-icon-orange { background: linear-gradient(135deg, #ffedd5, #fff7ed); }
.tools-category-icon-cyan { background: linear-gradient(135deg, #cffafe, #ecfeff); }
.tools-category-icon-lime { background: linear-gradient(135deg, #ecfccb, #f7fee7); }
.tools-category-icon-violet { background: linear-gradient(135deg, #ede9fe, #faf5ff); }

.tools-category-kicker {
  color: #4f46e5;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-category-head h2 {
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tools-category-head p:not(.tools-category-kicker) {
  margin-top: 0.35rem;
  max-width: 49rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tools-section-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.4rem 0.7rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.tools-section-anchor:hover {
  border-color: #a5b4fc;
  color: #3730a3;
}

.tools-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.tools-modern-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-color: #dbe4fb;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.tools-modern-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 20px 38px rgba(79, 70, 229, 0.13);
}

.tools-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.78rem;
}

.tools-card-badge,
.tools-popular-badge,
.tools-card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.tools-card-badge {
  border: 1px solid #e0e7ff;
  background: #f8faff;
  padding: 0.28rem 0.6rem;
  color: #4338ca;
  font-size: 0.72rem;
}

.tools-popular-badge {
  background: linear-gradient(135deg, #f97316, #ec4899);
  padding: 0.28rem 0.56rem;
  color: #fff;
  font-size: 0.68rem;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.2);
}

.tools-modern-card h3 {
  color: #1e1b4b;
  font-size: 1.08rem;
  font-weight: 850;
}

.tools-modern-card > p:not(.tools-card-meta) {
  flex: 1 1 auto;
  color: #475569;
  line-height: 1.58;
}

.tools-card-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tools-card-tags span {
  background: #f1f5f9;
  padding: 0.24rem 0.52rem;
  color: #475569;
  font-size: 0.7rem;
  text-transform: capitalize;
}

.tools-card-meta {
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .tools-category-head,
  .tools-category-title-wrap {
    display: grid;
  }

  .tools-section-anchor {
    width: 100%;
  }
}

.op-hero-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.op-hero-chips a,
.op-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.5rem 0.85rem;
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.op-hero-chips a:hover,
.op-section-link:hover {
  border-color: #a5b4fc;
  background: #f8faff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.14);
  transform: translateY(-2px);
}

.op-sections-wrap {
  display: grid;
  gap: clamp(1.15rem, 3vw, 1.8rem);
}

.op-category-section {
  scroll-margin-top: 6rem;
  border: 1px solid #dbe4fb;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(224, 231, 255, 0.55), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: clamp(1rem, 2.6vw, 1.4rem);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.op-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.op-section-kicker {
  color: #4f46e5;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-category-head h3 {
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.op-category-head p:not(.op-section-kicker) {
  margin-top: 0.4rem;
  max-width: 52rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.op-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.opportunity-card-modern {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-color: #dbe4fb;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.opportunity-card-modern:hover {
  border-color: #a5b4fc;
  box-shadow: 0 22px 42px rgba(79, 70, 229, 0.13);
}

.op-card-top,
.op-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.opportunity-card-modern h3 {
  margin-top: 0.85rem;
  color: #1e1b4b;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
}

.op-card-desc {
  margin-top: 0.55rem;
  flex: 1 1 auto;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.58;
}

.op-card-meta {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0.8rem;
  color: #475569;
  font-size: 0.83rem;
}

.op-card-meta strong {
  color: #0f172a;
}

.op-card-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.op-card-tags span {
  display: inline-flex;
  border-radius: 999px;
  background: #eef2ff;
  padding: 0.24rem 0.52rem;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: capitalize;
}

.op-card-footer {
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.op-published {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.op-sort-label {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}

.op-sort-select {
  min-height: 2.5rem;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.op-sort-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 12px 24px rgba(79, 70, 229, 0.14);
}

@media (max-width: 640px) {
  .op-category-head,
  .op-card-top {
    display: grid;
  }

  .op-section-link,
  .op-sort-select {
    width: 100%;
  }
}

/* Home page polish: scoped refinements keep the shared site styles stable. */
.home-page {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 48%, #ffffff 100%);
}

.home-page .hero-bg {
  background:
    radial-gradient(circle at 12% 14%, rgba(79, 70, 229, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.14), transparent 30rem),
    linear-gradient(155deg, #f4f6ff 0%, #ffffff 54%, #f7f3ff 100%);
}

.home-hero-inner {
  min-height: min(44rem, calc(100svh - 5rem));
}

.home-page .hero-kicker {
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.home-page .hero-copy {
  line-height: 1.72;
}

.home-page .hero-trust-inline {
  letter-spacing: 0.01em;
}

.home-page .hero-showcase {
  overflow: hidden;
  isolation: isolate;
  border-color: #cfd9ff;
  box-shadow: 0 24px 54px rgba(79, 70, 229, 0.18);
}

.home-page .hero-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 242, 255, 0.34));
}

.home-page .hero-stat-grid {
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.home-page .hero-stat-grid article {
  border-color: #dbe4fb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
}

.home-page .section-wrap {
  padding-block: clamp(3.25rem, 7vw, 5.25rem);
}

.home-page .home-final-section {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.home-page .section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}

.home-page .section-head h2 {
  max-width: 48rem;
}

.home-page .section-head p {
  line-height: 1.75;
}

.home-page .section-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  padding: 0.28rem 0.68rem;
}

.home-page :is(.feature-card, .item-card, .op-card, .quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card, .trust-stat, .who-card) {
  border-color: #e1e8f8;
  border-radius: 1.15rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.home-page :is(.feature-card, .item-card, .op-card, .quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card, .trust-stat, .who-card):hover {
  border-color: #c7d2fe;
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.13);
}

.home-page :is(.feature-card, .item-card, .op-card, .quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card) h3 {
  color: #1e1b4b;
  line-height: 1.35;
}

.home-page :is(.feature-card, .item-card, .op-card, .quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card) p {
  line-height: 1.68;
}

.home-page :is(.quick-action-grid, .popular-tools-grid, .category-grid, .career-preview-grid, .template-preview-grid, .trust-stats-grid, .who-grid) {
  gap: clamp(1rem, 2vw, 1.25rem);
}

.home-page :is(.quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card) {
  padding: clamp(1.05rem, 2.2vw, 1.35rem);
}

.home-page :is(.quick-action-icon, .popular-tool-icon, .category-icon, .template-preview-icon, .trust-stat-icon, .who-icon) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(79, 70, 229, 0.1);
}

.home-page :is(.quick-action-cta, .category-cta, .career-guide-link, .latest-op-link, .template-preview-download) {
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.home-page :is(.quick-action-cta, .category-cta, .career-guide-link, .latest-op-link, .template-preview-download):focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 3px;
}

.home-page .newsletter,
.home-page .telegram-cta {
  border-color: #cfd9ff;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9), transparent 18rem),
    linear-gradient(120deg, rgba(238, 242, 255, 0.96), rgba(245, 243, 255, 0.96));
  box-shadow: 0 20px 44px rgba(79, 70, 229, 0.13);
}

.home-page .lead-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.home-page .newsletter-input {
  min-height: 3rem;
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.94);
}

.home-page .faq-list {
  gap: 0.85rem;
}

.home-page .faq-item {
  border-color: #e1e8f8;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.home-page .faq-item summary {
  padding-block: 1.05rem;
}

.home-page .faq-item p {
  line-height: 1.75;
}

.home-final-cta {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.home-final-cta::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -10%;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
}

@media (max-width: 767px) {
  .home-hero-inner {
    min-height: auto;
  }

  .home-page .hero-cta-row {
    gap: 0.65rem;
  }

  .home-page .hero-trust-inline,
  .home-page .hero-support-line {
    line-height: 1.55;
  }

  .home-page .section-wrap {
    padding-block: 3rem;
  }

  .home-page .lead-points {
    grid-template-columns: 1fr;
  }

  .home-page :is(.quick-action-card, .popular-tool-card, .category-card, .career-guide-card, .template-preview-card) {
    padding: 1rem;
  }
}
