/* ==========================================================================
   Cafenetoo (کافینتو) - Main Stylesheet
   Design Tokens & Components based on DESIGN.md
   ========================================================================== */

/* --- Typography / Fonts --- */
@font-face {
  font-family: "Arad";
  src: url("../fonts/AradVF.ttf") format("truetype-variations"),
       url("../fonts/Arad-Regular.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arad";
  src: local("Arad"), url("../fonts/Arad-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arad";
  src: local("Arad Medium"), url("../fonts/Arad-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arad";
  src: local("Arad SemiBold"), url("../fonts/Arad-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arad";
  src: local("Arad Bold"), url("../fonts/Arad-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --surface: #f2fcf5;
  --surface-low: #ecf6f0;
  --surface-mid: #e6f0ea;
  --surface-high: #e0ebe4;
  --white: #fff;
  --on-surface: #141d1a;
  --on-variant: #3f4944;
  --outline: #6f7a74;
  --outline-variant: #bec9c3;
  --primary: #005440;
  --brand: #0F6E56;
  --mint: #9FE1CB;
  --mint-soft: #E1F5EE;
  --secondary-container: #adf0da;
  --app-bg: #F7F8F7;
  --app-border: #E6E8E7;
  --text: #1A1F1D;
  --text-2: #6B7570;
  --error: #D64545;
  --r-sm: .25rem;
  --r: .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --font: "Arad", Tahoma, system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img, svg {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active {
  transform: scale(.98);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary);
}
.btn-outline {
  background: transparent;
  border-color: var(--outline-variant);
  color: var(--on-surface);
}
.btn-outline:hover {
  border-color: var(--brand);
  background: var(--white);
}
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover {
  background: var(--secondary-container);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: transparent;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .1);
}
.btn-sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 15px;
}

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 252, 245, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline-variant);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 15px;
  color: var(--on-variant);
}
.nav a {
  text-decoration: none;
  transition: color .15s;
}
.nav a:hover {
  color: var(--brand);
}

/* --- Hero Section --- */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 6vw, 80px);
}
.hero .hero-intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: var(--mint-soft);
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.badge-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--primary);
  text-wrap: balance;
}
.lead {
  margin-top: 1.15rem;
  font-size: 17px;
  color: var(--on-variant);
  line-height: 1.85;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  justify-content: center;
}
.hint {
  margin-top: 1rem;
  font-size: 13.5px;
  color: var(--outline);
}

/* --- Hero Video Frame --- */
.hero-video-frame {
  position: relative;
  background: var(--app-bg);
  border: 1px solid var(--app-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 60, 44, .18), var(--shadow);
  overflow: hidden;
  max-width: 1040px;
  margin-inline: auto;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #1A1F1D;
  object-fit: cover;
}

/* --- Highlights Strip --- */
.highlights {
  padding: 1.5rem 0;
  background: #fff;
  border-top: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
}
.hl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .85rem;
}
.hl-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .9rem;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--app-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.hl-item .ic {
  color: var(--brand);
  width: 22px;
  height: 22px;
}

/* --- Content Sections --- */
.section {
  padding: clamp(56px, 7vw, 92px) 0;
}
.section.alt {
  background: var(--surface-low);
}
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--primary);
  text-wrap: balance;
}
.sec-lead {
  margin-top: .75rem;
  color: var(--on-variant);
  font-size: 16px;
  line-height: 1.85;
}

/* --- Why Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.why-problem {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: #b3261e;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--app-border);
}
.why-problem .ic {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
}
.why-solution {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.75;
}
.why-solution .ic {
  width: 18px;
  height: 18px;
  color: var(--brand);
  margin-top: .15rem;
}

/* --- Showcase Blocks --- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 3.5rem;
}
.showcase.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.showcase.reverse .showcase-text {
  order: 2;
}
.showcase.reverse .showcase-visual {
  order: 1;
}
.showcase-text h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--primary);
  font-weight: 700;
}
.showcase-text p {
  margin-top: .85rem;
  color: var(--on-variant);
  font-size: 15px;
  line-height: 1.85;
}
.showcase-list {
  margin-top: 1.25rem;
  display: grid;
  gap: .65rem;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}
.showcase-list .ic {
  color: var(--brand);
  margin-top: .2rem;
  width: 18px;
  height: 18px;
}

/* --- Cards Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary);
}
.card h3 .ic {
  color: var(--brand);
}
.card p {
  margin-top: .65rem;
  font-size: 14.5px;
  color: var(--on-variant);
  line-height: 1.85;
}
.s4 { grid-column: span 4; }
.s3 { grid-column: span 3; }
.s2 { grid-column: span 2; }
.card.tint {
  background: var(--surface-low);
}

/* --- Window Mockup Components --- */
.win-mock {
  background: var(--app-bg);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}
.win-mock .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--app-border);
  font-size: 11.5px;
  color: var(--text-2);
}
.win-mock .ctrl {
  display: flex;
  gap: 5px;
}
.win-mock .ctrl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-border);
}
.win-mock .body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--mint-soft);
  color: var(--brand);
  align-self: flex-start;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.warn {
  background: #FFF1D6;
  color: #8a5a00;
}
.chip.down {
  background: #FDE8E8;
  color: var(--error);
}
.pulse::before {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.4); }
}

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r);
  gap: 8px;
}
.site-row .info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-row img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

.stat-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-item {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r);
  padding: 10px;
  text-align: center;
}
.stat-item span {
  display: block;
  font-size: 11px;
  color: var(--text-2);
}
.stat-item b {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-top: 2px;
}

/* --- Steps Flow --- */
.flow {
  background: var(--primary);
  color: #fff;
}
.flow h2 {
  color: #fff;
}
.flow .sec-lead {
  color: var(--on-primary-container, #9aedcf);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding-inline-end: 1.5rem;
  counter-increment: s;
}
.steps li::before {
  content: counter(s, persian);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 20px;
  inset-inline: 40px -0px;
  height: 2px;
  background: rgba(159, 225, 203, .35);
}
.steps li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}
.steps p {
  margin-top: .4rem;
  font-size: 14.5px;
  color: #cfeee2;
  line-height: 1.85;
}

/* --- Checks List --- */
.checks {
  display: grid;
  gap: .85rem;
}
.checks li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.8;
}
.checks .ic {
  color: var(--brand);
  margin-top: .25rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  margin-top: 2rem;
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: .75rem;
}
details {
  background: var(--white);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  padding: 0 1.25rem;
  transition: border-color .15s;
}
details[open] {
  border-color: var(--brand);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  font-weight: 600;
  font-size: 15.5px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brand);
  font-weight: 400;
  flex: none;
}
details[open] summary::after {
  content: "−";
}
details p {
  padding-bottom: 1.1rem;
  color: var(--on-variant);
  font-size: 14.5px;
  line-height: 1.85;
}

/* --- Final CTA --- */
.final {
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.final h2 {
  color: #fff;
  margin-inline: auto;
}
.final p {
  margin: .9rem auto 0;
  max-width: 36rem;
  color: #d7f3e8;
}
.final .cta-row {
  justify-content: center;
}

/* --- Footer --- */
footer {
  background: var(--on-surface);
  color: #c2cfc8;
  padding: 3.5rem 0 2rem;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 0.9fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

/* Brand column */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: opacity .15s ease;
}
.footer-brand:hover {
  opacity: .9;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  object-fit: contain;
}
.footer-desc {
  color: #9cb1a6;
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0;
  max-width: 25rem;
}

/* Headings */
.footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

/* Contact column */
.footer-col-contact {
  display: flex;
  flex-direction: column;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #c2cfc8;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  transition: color .15s ease, transform .15s ease;
}
.footer-link .ic {
  width: 18px;
  height: 18px;
  stroke: var(--mint);
  flex-shrink: 0;
  transition: stroke .15s ease;
}
.footer-link:hover {
  color: #ffffff;
  transform: translateX(-2px);
}
.footer-link:hover .ic {
  stroke: #ffffff;
}

/* CTA button inside footer */
.footer-cta-wrap {
  margin-top: 1.1rem;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(159, 225, 203, 0.12);
  color: var(--mint);
  border: 1px solid rgba(159, 225, 203, 0.28);
  padding: .5rem .95rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-cta-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
}
.footer-cta-btn .ic {
  transform: rotate(180deg);
  stroke: currentColor;
}

/* Trust seals column */
.footer-col-trust {
  display: flex;
  flex-direction: column;
}
.trust-seals-grid {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.trust-seal-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 8px;
  min-width: 78px;
  height: 88px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.trust-seal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  border-color: rgba(159, 225, 203, 0.5);
}
.trust-seal-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.trust-seal-item img {
  max-width: 100%;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #8c9e94;
}
.footer-copy {
  margin: 0;
}
.footer-copy strong {
  color: #d1ded7;
  font-weight: 600;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.footer-bottom-links a {
  color: #8c9e94;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-bottom-links a:hover {
  color: #ffffff;
}
.footer-sep {
  opacity: .5;
}

/* --- Responsive Media Queries --- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero .hero-intro {
    margin-bottom: 2rem;
  }
  .showcase, .showcase.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .showcase.reverse .showcase-text {
    order: 1;
  }
  .showcase.reverse .showcase-visual {
    order: 2;
  }
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
  .steps li:nth-child(2)::after {
    display: none;
  }
  .s4, .s3, .s2 {
    grid-column: span 6;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2rem;
  }
  .footer-col-brand {
    grid-column: span 2;
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .hl-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li::after {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .top .btn {
    width: auto;
  }
  footer {
    padding: 2.5rem 0 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
    margin-top: 2rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse::before {
    animation: none;
  }
}

/* ==========================================================================
   Pricing, Comparison, Trial & Feature Showcase Styles
   ========================================================================== */
.w-full {
  width: 100%;
}

/* --- Billing Toggle --- */
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}
.billing-toggle {
  display: inline-flex;
  background: var(--surface-mid);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--app-border);
  gap: 4px;
}
.billing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--on-variant);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.billing-toggle-btn:hover {
  color: var(--primary);
}
.billing-toggle-btn.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 110, 86, .25);
}
.toggle-discount {
  display: inline-block;
  background: var(--secondary-container);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}
.billing-toggle-btn.active .toggle-discount {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* --- Pricing Cards Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.pricing-card.recommended {
  border: 2px solid var(--brand);
  box-shadow: 0 8px 24px rgba(15, 110, 86, .12);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(15, 110, 86, .2);
}
.pricing-card-header {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--app-border);
}
.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.plan-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  min-height: 42px;
}
.pricing-card-price {
  padding: 1.5rem 0;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.price-label {
  font-size: 14px;
  color: var(--text-2);
}
.price-val, .price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.price-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.price-vat-note {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 6px;
}
.price-total-period {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.price-period {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}
.pricing-card-action {
  margin-bottom: 1.5rem;
}
.pricing-card-action .btn {
  text-align: center;
  justify-content: center;
  padding: 11px 16px;
}
.pricing-card-features {
  flex: 1;
  border-top: 1px solid var(--app-border);
  padding-top: 1.25rem;
}
.features-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 10px;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--on-variant);
  line-height: 1.6;
}
.features-list .ic {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Comparison Table --- */
.comparison-container {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.comparison-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: var(--surface-low);
  border: none;
  text-align: right;
  border-bottom: 1px solid var(--app-border);
  transition: background 0.15s ease;
  user-select: none;
}

.comparison-toggle-btn:hover {
  background: var(--surface-mid);
}

.toggle-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-chevron {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.25s ease;
  transform: rotate(0deg);
}

.comparison-toggle-btn[aria-expanded="false"] .toggle-chevron {
  transform: rotate(-90deg);
}

.comparison-toggle-btn[aria-expanded="false"] {
  border-bottom: none;
}

.comparison-content {
  padding-bottom: 1.25rem;
}

/* Common Features Chip Bar */
.common-features-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 18px;
  background: var(--surface-low);
  border-bottom: 1px solid var(--app-border);
  font-size: 13px;
}

.common-features-label {
  font-weight: 700;
  color: var(--primary);
  margin-left: 4px;
}

.common-features-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.common-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--app-border);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 600;
}

.common-chip .ic {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-width: 100%;
}

.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  font-size: 13.5px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--app-border);
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-mid);
  color: var(--on-surface);
  font-weight: 700;
  font-size: 14px;
}

.comparison-table .th-feature {
  width: 37%;
  min-width: 155px;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 6;
  background: var(--surface-mid);
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.02);
}

.comparison-table .th-plan {
  width: 21%;
  min-width: 105px;
  text-align: center;
}

.comparison-table th.highlight {
  border-top: 3px solid var(--brand);
  background: var(--surface-mid);
}

.th-plan-title {
  display: block;
}

.col-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 1px 7px;
  border-radius: 999px;
  margin-top: 4px;
  line-height: 1.4;
}

/* Feature column sticky on tbody */
.comparison-table td.feature-name {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  font-weight: 500;
  color: var(--on-surface);
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.02);
  border-left: 1px solid var(--app-border);
}

.comparison-table td:not(.feature-name):not(.group-title) {
  text-align: center;
}

/* Subtle Zebra & Hover */
.comparison-table tbody tr:not(.table-group-header):nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.015);
}

.comparison-table tbody tr:not(.table-group-header):nth-child(even) td.feature-name {
  background-color: #FAFCFA;
}

.comparison-table tbody tr:not(.table-group-header):hover td {
  background-color: rgba(15, 110, 86, 0.035);
}

.comparison-table tbody tr:not(.table-group-header):hover td.feature-name {
  background-color: #F3F8F5;
}

/* Continuous Highlight Column (Standard) */
.comparison-table td.highlight {
  background-color: rgba(15, 110, 86, 0.045);
}

.comparison-table tbody tr:not(.table-group-header):nth-child(even) td.highlight {
  background-color: rgba(15, 110, 86, 0.065);
}

.comparison-table tbody tr:not(.table-group-header):hover td.highlight {
  background-color: rgba(15, 110, 86, 0.095);
}

/* Category Rows (Group Headers) */
.table-group-header td {
  background: var(--surface-low);
  padding: 10px 16px;
  border-bottom: 1px solid var(--app-border);
}

.table-group-header td.group-title {
  position: sticky;
  right: 0;
  z-index: 2;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
  text-align: right;
  background: var(--surface-low);
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.02);
  border-left: 1px solid var(--app-border);
}

.table-group-header td.group-cell.highlight {
  background: rgba(15, 110, 86, 0.075);
}

/* Icons */
.comparison-table .check {
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
}

.comparison-table .cross {
  color: #475569;
  font-weight: 800;
  font-size: 15px;
}

/* Footnote */
.comparison-footnote {
  padding: 12px 18px 0;
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Trial Explainer --- */
.trial-box {
  background: linear-gradient(145deg, #E1F5EE 0%, #F2FCF5 100%);
  border: 1px solid var(--mint);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
}
.trial-header {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
#trial-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0 8px;
}
.trial-lead {
  font-size: 16px;
  color: var(--on-variant);
}
.trial-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: right;
  margin-bottom: 2.5rem;
}
.trial-point-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--r);
  padding: 1.5rem 1.25rem;
}
.point-icon {
  width: 44px;
  height: 44px;
  background: var(--mint-soft);
  color: var(--brand);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.point-icon .ic {
  width: 24px;
  height: 24px;
}
.trial-point-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.trial-point-card p {
  font-size: 13px;
  color: var(--on-variant);
  line-height: 1.6;
}
.trial-action-wrap {
  display: flex;
  justify-content: center;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
}

/* --- Feature Showcase Details --- */
.feature-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.plan-pill {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-mid);
  color: var(--brand);
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid var(--app-border);
}
.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* --- Responsive Media Queries (Mobile & 360px) --- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .trial-points-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .billing-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .billing-toggle-btn {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .price-val {
    font-size: 26px;
  }
  .pricing-card {
    padding: 1.5rem 1rem;
  }
  .trial-box {
    padding: 2rem 1rem;
  }
  #trial-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Content Pages, Legal, Article & Trust Layouts
   ========================================================================== */

/* Footer Main Grid & Multi-column */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.3fr 2.2fr 0.8fr;
  gap: 2.5rem 2rem;
  align-items: start;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.footer-company-reg {
  font-size: 12.5px;
  color: #9cb1a6;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.company-reg-label {
  font-weight: 600;
  color: #c2cfc8;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.footer-trust-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
  .footer-nav-grid {
    grid-column: span 2;
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-trust-col {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
}
@media (max-width: 480px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Layouts General */
.page-main {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  min-height: 60vh;
}
.page-article {
  max-width: 860px;
  margin: 0 auto;
}
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}
.page-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Page Content Typography */
.page-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}
.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  scroll-margin-top: 5rem;
}
.page-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 5rem;
}
.page-content p {
  margin: 0 0 1.25rem;
}
.page-content ul, .page-content ol {
  margin: 0 0 1.5rem;
  padding-right: 1.5rem;
}
.page-content li {
  margin-bottom: 0.5rem;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 14.5px;
}
.page-content th, .page-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: right;
}
.page-content th {
  background: var(--surface);
  font-weight: 700;
}
.page-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-right: 4px solid var(--brand);
  border-radius: var(--r-sm);
  color: var(--muted);
}
.page-content code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}
.page-content pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

/* Legal Layout & TOC */
.legal-layout .page-article {
  max-width: 900px;
}
.draft-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--r);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #92400e;
  font-size: 14px;
}
.draft-badge {
  background: #d97706;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 1rem;
}
.legal-meta-item strong {
  color: var(--ink);
}
.legal-print-btn {
  margin-right: auto;
  cursor: pointer;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.5rem;
}
.legal-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc-item a {
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.legal-toc-item a:hover {
  text-decoration: underline;
}
.legal-toc-3 {
  padding-right: 1.25rem;
  font-size: 13.5px;
}

/* Article (Learn) Layout */
.article-breadcrumbs {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.article-breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}
.article-breadcrumbs .sep {
  margin: 0 0.4rem;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1rem;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.plan-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  margin-right: 4px;
}
.plan-badge-free {
  background: #e0f2fe;
  color: #0369a1;
}
.plan-badge-standard {
  background: #dcfce7;
  color: #15803d;
}
.plan-badge-pro {
  background: #fef3c7;
  color: #b45309;
}
.article-video-box {
  margin: 1.75rem 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.article-related-section {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-related-section h2 {
  font-size: 18px;
  margin-bottom: 0.85rem;
}
.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-links a {
  color: var(--brand);
  text-decoration: none;
}

/* Trust Layout */
.trust-date {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Print Stylesheet for Legal Pages */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
  }
  header.top,
  footer.footer,
  .legal-print-btn,
  .legal-toc,
  .draft-banner,
  #header-auth-btn {
    display: none !important;
  }
  .page-main {
    padding: 0 !important;
    min-height: auto !important;
  }
  .page-article, .legal-layout .page-article {
    max-width: 100% !important;
    margin: 0 !important;
  }
  .page-header {
    border-bottom: 2px solid #000 !important;
    margin-bottom: 1.5rem !important;
  }
  .page-title {
    font-size: 20pt !important;
    color: #000 !important;
  }
  .page-content h2, .page-content h3 {
    color: #000 !important;
    page-break-after: avoid;
  }
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}

/* Evidence & Verification Styles in Trust Layout */
.evidence-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.evidence-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.evidence-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.evidence-ver {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.evidence-date {
  font-size: 13px;
  color: var(--muted);
}
.evidence-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.evidence-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.evidence-label {
  font-size: 13.5px;
  color: var(--ink);
}
.evidence-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.evidence-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.evidence-link:hover {
  text-decoration: underline;
}
.sha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  overflow-x: auto;
}
.sha-code {
  font-family: monospace;
  font-size: 13px;
  color: #0f172a;
  word-break: break-all;
  flex: 1;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.badge-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}
.verification-guide {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}
.verification-guide h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.guide-steps {
  margin: 0;
  padding-right: 1.25rem;
  font-size: 13.5px;
  line-height: 1.8;
}
.guide-steps pre {
  margin: 0.5rem 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  direction: ltr;
  text-align: left;
}
.guide-steps pre code {
  background: transparent;
  color: #38bdf8;
  font-size: 12.5px;
}
.disclosure-summary-section {
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.disclosure-summary-section h2 {
  font-size: 18px;
  margin-top: 0;
}
.legal-history-section {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-history-section h2 {
  font-size: 18px;
  margin-bottom: 0.75rem;
}
.history-list {
  padding-right: 1.25rem;
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================================================
   Download & Changelog Pages
   ========================================================================== */
.download-hero-card,
.download-security-card,
.download-verify-card,
.download-reqs-card,
.changelog-release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.download-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.download-date, .download-os {
  font-size: 13px;
  color: var(--on-variant);
}

.download-heading {
  font-size: 22px;
  margin-bottom: 0.5rem;
}

.download-lead {
  color: var(--on-variant);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.download-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.download-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--surface-mid);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 12px;
  color: var(--on-variant);
}

.spec-val {
  font-size: 14px;
}

/* Signature & SmartScreen */
.signature-status {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
}

.status-unsigned {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.status-signed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.smartscreen-guide h4 {
  font-size: 15px;
  margin-bottom: 0.5rem;
}

/* Hash & Verification */
.hash-display-box {
  background: var(--surface-mid);
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.hash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hash-title {
  font-size: 13px;
  font-weight: 600;
}

.btn-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.hash-code {
  display: block;
  font-family: monospace;
  font-size: 13px;
  direction: ltr;
  text-align: left;
  word-break: break-all;
  color: var(--brand);
}

.powershell-box {
  margin-bottom: 1rem;
}

.ps-label {
  font-size: 13px;
  color: var(--on-variant);
  display: block;
  margin-bottom: 0.25rem;
}

.powershell-box pre {
  margin: 0;
  background: #0f172a;
  color: #38bdf8;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  direction: ltr;
  text-align: left;
  font-size: 12.5px;
}

.virustotal-row {
  margin-top: 1rem;
}

.vt-link {
  font-size: 13.5px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.vt-link:hover {
  text-decoration: underline;
}

/* Requirements list */
.reqs-list {
  padding-right: 1.25rem;
  line-height: 2;
  font-size: 14px;
}

/* Changelog Styles */
.release-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.release-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.release-version {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.release-anchor {
  color: var(--on-variant);
  text-decoration: none;
  font-size: 16px;
}

.release-anchor:hover {
  color: var(--brand);
}

.release-date {
  font-size: 13px;
  color: var(--on-variant);
}

.change-section {
  margin-bottom: 1.5rem;
}

.change-group-title {
  font-size: 15px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.pill-added {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.pill-improved {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.pill-fixed {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.change-list {
  padding-right: 1.25rem;
  line-height: 1.9;
  font-size: 14px;
}

.release-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--on-variant);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-hash {
  direction: ltr;
  display: inline-block;
  background: var(--surface-mid);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}

/* ==========================================================================
   Learn Hub & Article Styles
   ========================================================================== */
.learn-search-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.search-input-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto 0.75rem;
}

.search-input-wrap .ic {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--on-variant);
}

.learn-search-field {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-mid);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 14.5px;
}

.learn-search-field:focus {
  outline: none;
  border-color: var(--brand);
}

.search-hint {
  font-size: 13px;
  color: var(--on-variant);
  margin: 0;
}

/* Common tasks grid */
.common-tasks-section {
  margin-bottom: 3rem;
}

.common-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.common-task-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.common-task-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.task-icon {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.task-title {
  font-size: 15px;
  margin-bottom: 0.25rem;
  color: var(--on-surface);
}

.task-desc {
  font-size: 12.5px;
  color: var(--on-variant);
  line-height: 1.6;
}

/* Category navigation */
.categories-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cat-nav-pill {
  padding: 6px 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--on-surface);
}

.cat-nav-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.learn-category-block {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.cat-title {
  font-size: 18px;
  margin: 0;
}

.cat-count {
  font-size: 13px;
  color: var(--on-variant);
}

.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-meta {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.plan-mini-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-free {
  background: rgba(148, 163, 184, 0.2);
  color: var(--on-variant);
}

.badge-standard {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.badge-pro {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

.article-card-title {
  font-size: 15px;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.article-card-desc {
  font-size: 13px;
  color: var(--on-variant);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-read-more {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 500;
}

.empty-cat-note {
  color: var(--on-variant);
  font-size: 13.5px;
  font-style: italic;
}

/* Media placeholder slots in learn articles */
.learn-media-slot {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.learn-media-slot .learn-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.slot-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--on-variant);
  margin-bottom: 0.5rem;
}

.learn-media-slot p {
  margin: 0;
  font-size: 13px;
  color: var(--on-variant);
  font-weight: 500;
}

/* Error & Utility Pages (404, 500, Maintenance) */
.error-page-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 4rem 1rem;
}

.error-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3rem 2rem;
  max-width: 620px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.error-badge {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #ca8a04;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--on-surface);
}

.error-desc {
  font-size: 14.5px;
  color: var(--on-variant);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.error-search-box {
  margin: 1.5rem 0 2rem;
}

.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.error-quick-links {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.error-quick-links strong {
  display: block;
  font-size: 13px;
  color: var(--on-variant);
  margin-bottom: 0.75rem;
}

.error-quick-links .links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.maintenance-info-box {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  text-align: right;
  margin-bottom: 1.5rem;
}

.maintenance-info-box .info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--border);
}

.maintenance-info-box .info-row:last-child {
  border-bottom: none;
}

/* Status Dashboard Page */
.status-dashboard-page {
  padding-bottom: 3rem;
}

.status-hero-banner {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.status-hero-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #065f46;
  font-size: 15px;
}

.status-dot-pulse {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-last-checked {
  font-size: 12.5px;
  color: #047857;
}

.status-services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 3rem;
}

.status-service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-size: 14.5px;
  color: var(--on-surface);
}

.service-desc {
  font-size: 12.5px;
  color: var(--on-variant);
}

.service-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.state-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #a7f3d0;
}

.state-uptime {
  font-size: 13px;
  color: var(--on-variant);
  font-variant-numeric: tabular-nums;
}

.incident-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.incident-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 8px;
}

.incident-title {
  font-size: 14.5px;
  color: var(--on-surface);
}

.incident-date {
  font-size: 12px;
  color: var(--on-variant);
}

.incident-body {
  font-size: 13.5px;
  color: var(--on-variant);
  margin: 0;
  line-height: 1.6;
}


