/* =========================================================================
   ViteWeb — Landing Page
   Vanilla CSS (dark cyber theme)
   ========================================================================= */

:root {
  /* Solid colors (hex for maximum browser support) */
  --background: #0d0f15;
  --foreground: #e7eaef;
  --card: #14171f;
  --secondary: #1e222c;
  --muted-foreground: #969fae;
  --neon: #22bfe0;
  --emerald: #2ad9a4;
  --destructive: #ee5c4a;
  --primary-fg: #0b0d13;

  /* RGB channel triplets for translucent rgba() usage */
  --background-rgb: 13, 15, 21;
  --foreground-rgb: 231, 234, 239;
  --card-rgb: 20, 23, 31;
  --secondary-rgb: 30, 34, 44;
  --muted-foreground-rgb: 150, 159, 174;
  --neon-rgb: 34, 191, 224;
  --emerald-rgb: 42, 217, 164;
  --destructive-rgb: 238, 92, 74;

  --border: rgba(46, 51, 62, 0.55);
  --input: rgba(40, 44, 55, 0.6);
  --radius: 0.75rem;

  --font-sans: "Noto Sans JP", sans-serif;
  --font-display: "Rajdhani", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong {
  font-weight: 700;
}

.text-neon {
  color: var(--neon);
}
.text-emerald {
  color: var(--emerald);
}

.gradient-text {
  background: linear-gradient(90deg, var(--neon), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------- Layout -------------------------------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.3;
  z-index: 0;
  background-image: linear-gradient(
      to right,
      rgba(var(--neon-rgb), 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(var(--neon-rgb), 0.12) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    #000 20%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    #000 20%,
    transparent 75%
  );
}

.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 2rem;
  }
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}
.grid--5 {
  grid-template-columns: 1fr;
}
.mt-4 {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  /* 5 steps stay readable: 3 across on tablet, 5 across on desktop. */
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

/* -------------------------------- Cards --------------------------------- */

.card {
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.card--neon {
  border-color: rgba(var(--neon-rgb), 0.35);
  background: rgba(var(--card-rgb), 0.5);
}

.feature-card,
.plan {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover,
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -32px rgba(var(--neon-rgb), 0.7);
}

/* ----------------------------- Typography ------------------------------- */

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(var(--neon-rgb), 0.35);
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  background: rgba(var(--neon-rgb), 0.08);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--neon);
}

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* -------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(90deg, var(--neon), var(--emerald));
  color: var(--primary-fg);
  font-weight: 700;
  box-shadow: 0 14px 40px -14px rgba(var(--neon-rgb), 0.75);
}
.btn--primary:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 20px 52px -16px rgba(var(--emerald-rgb), 0.8);
}

.btn--outline {
  border-color: var(--border);
  background: rgba(var(--background-rgb), 0.4);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  background: rgba(var(--secondary-rgb), 0.6);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.btn--submit {
  height: 3rem;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.link-btn:hover {
  color: var(--emerald);
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  z-index: 1;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("./hero-cyber.png");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    #000 30%,
    transparent 85%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    #000 30%,
    transparent 85%
  );
}

.hero__glow {
  pointer-events: none;
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  max-width: 100%;
  border-radius: 9999px;
  filter: blur(130px);
  background: radial-gradient(
    closest-side,
    rgba(var(--neon-rgb), 0.2),
    transparent
  );
}

.hero__inner {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}
.brand-logo:hover {
  color: var(--neon);
  transform: translateY(-2px);
}
.brand-logo__mark {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--neon);
  filter: drop-shadow(0 0 0.75rem rgba(var(--neon-rgb), 0.45));
}
.brand-logo__accent {
  stroke: var(--emerald);
}
.brand-logo__word {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-logo__word span {
  color: var(--emerald);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.6);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  backdrop-filter: blur(8px);
}
.badge--accent {
  border-color: rgba(var(--emerald-rgb), 0.45);
}
.badge__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--neon);
}
.badge--accent .badge__dot {
  background: var(--emerald);
}
.badge__text {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.hero__title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__lead {
  max-width: 42rem;
  margin: 2rem auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .hero__lead {
    font-size: 1rem;
  }
}

.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
  }
}

.only-md {
  display: none;
}
@media (min-width: 768px) {
  .only-md {
    display: inline;
  }
}

/* -------------------------------- Issues -------------------------------- */

/* Issues are the hook of the page, so they get extra visual weight. */
.section--issues {
  position: relative;
}
.section--issues::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70rem, 130%);
  height: 24rem;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(var(--destructive-rgb), 0.15),
    transparent 68%
  );
  pointer-events: none;
  z-index: -1;
}

.section-title--xl {
  font-size: 2.25rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .section-title--xl {
    font-size: 3.25rem;
  }
}

.marker {
  position: relative;
  display: inline-block;
  padding: 0 0.12em;
  color: var(--neon);
}
.marker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.38em;
  background: rgba(var(--neon-rgb), 0.25);
  border-radius: 0.12em;
  z-index: -1;
}

.issue-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(var(--destructive-rgb), 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.issue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--destructive-rgb), 0.6);
  box-shadow: 0 24px 60px -32px rgba(var(--destructive-rgb), 0.7);
}
.issue-card__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(var(--destructive-rgb), 0.85);
}
.issue-card__title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-wrap: balance;
}
.issue-card__text {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(var(--foreground-rgb), 0.78);
  text-wrap: pretty;
}

.solution {
  margin-top: 2rem;
  border: 1px solid rgba(var(--emerald-rgb), 0.4);
  background: rgba(var(--card-rgb), 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px -30px rgba(var(--emerald-rgb), 0.6);
}
@media (min-width: 768px) {
  .solution {
    padding: 2rem;
  }
}
.solution__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--emerald);
}
.solution__text {
  max-width: 48rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .solution__text {
    font-size: 1.125rem;
  }
}

/* ------------------------------- Features ------------------------------- */

.feature-card {
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
@media (min-width: 768px) {
  .feature-card {
    padding: 1.75rem;
  }
}
.feature-card:hover {
  border-color: rgba(var(--neon-rgb), 0.45);
}
.feature-card__bar {
  height: 0.25rem;
  width: 2.5rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--neon), var(--emerald));
  transition: width 0.3s ease;
}
.feature-card:hover .feature-card__bar {
  width: 4rem;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-wrap: balance;
}
.feature-card__body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* -------------------------------- Pricing ------------------------------- */

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.5);
  border-radius: 1.5rem;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}
@media (min-width: 768px) {
  .plan {
    padding: 2rem;
  }
}
.plan--recommended {
  border-color: rgba(var(--emerald-rgb), 0.55);
  box-shadow: 0 30px 90px -45px rgba(var(--emerald-rgb), 0.7);
}
.plan__ribbon {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary-fg);
  background: var(--emerald);
}
/* HTML plan is the recommended one, so it uses the neon accent. */
.plan--recommended-neon {
  border-color: rgba(var(--neon-rgb), 0.55);
  box-shadow: 0 30px 90px -45px rgba(var(--neon-rgb), 0.7);
}
.plan__ribbon--neon {
  background: var(--neon);
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ------------------------- Transparent fee model ------------------------ */
.fee-breakdown {
  margin-bottom: 2.5rem;
  border: 1px solid rgba(var(--neon-rgb), 0.3);
  border-radius: 1.5rem;
  background: rgba(var(--card-rgb), 0.55);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
}
@media (min-width: 768px) {
  .fee-breakdown {
    padding: 2.25rem 2rem;
  }
}
.fee-breakdown__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .fee-breakdown__title {
    font-size: 1.75rem;
  }
}
.fee-breakdown__formula {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .fee-breakdown__formula {
    flex-direction: row;
    align-items: center;
  }
}
.fee-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(var(--background-rgb), 0.55);
  padding: 1rem;
}
.fee-item__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.fee-item__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon);
}
.fee-item__note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(var(--foreground-rgb), 0.75);
}
.fee-item__note strong {
  color: var(--emerald);
  font-weight: 700;
}
.fee-op {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(var(--foreground-rgb), 0.55);
}
.fee-breakdown__note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.plan__price {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
.plan__price-main {
  margin-left: auto;
  text-align: right;
}
.plan__price-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.plan__price-initial {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.plan__price-monthly {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
}
.plan__price-yearly {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.plan__features {
  margin-top: 1.5rem;
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(var(--foreground-rgb), 0.9);
  text-wrap: pretty;
}
.plan__cta {
  margin-top: 1.75rem;
  background: transparent;
}

.dot {
  margin-top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
}
.dot--neon {
  background: var(--neon);
}
.dot--emerald {
  background: var(--emerald);
}

/* --------------------------------- Flow --------------------------------- */

.flow-card__step {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon);
}
.flow-card__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.flow-card__body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* -------------------------------- Options ------------------------------- */

.option-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}
.option-card__value {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.option-card__note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.rule-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.rule-card__body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.rule-card__link {
  margin-top: 1rem;
}

/* ------------------------------- Accordion ------------------------------ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.accordion__item {
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.4);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}
.accordion__icon {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--neon);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.accordion__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.accordion__icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__content p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* --------------------------------- Form --------------------------------- */

.form-wrap {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}
.form-card {
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.5);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), 0.08),
    0 40px 120px -50px rgba(var(--neon-rgb), 0.55);
}
@media (min-width: 768px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form {
  display: grid;
  gap: 1.25rem;
}
.form[hidden] {
  display: none;
}
.field-row {
  gap: 1.25rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.required {
  vertical-align: middle;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--destructive);
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--input);
  background: rgba(var(--background-rgb), 0.6);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea {
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(var(--muted-foreground-rgb), 0.8);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), 0.25);
}

.agree-box {
  border: 1px solid var(--border);
  background: rgba(var(--background-rgb), 0.4);
  border-radius: var(--radius);
  padding: 1rem;
}
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkbox {
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid var(--input);
  border-radius: 0.35rem;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.checkbox__mark {
  font-size: 0.75rem;
  line-height: 1;
  color: var(--primary-fg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.checkbox[aria-checked="true"] {
  background: var(--neon);
  border-color: var(--neon);
}
.checkbox[aria-checked="true"] .checkbox__mark {
  opacity: 1;
  transform: scale(1);
}
.agree-label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(var(--foreground-rgb), 0.9);
  cursor: pointer;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0;
}
.form-success[hidden] {
  display: none;
}
.form-success__check {
  margin-bottom: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emerald);
  border-radius: 9999px;
  font-size: 1.5rem;
  color: var(--emerald);
}
.form-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.form-success__text {
  max-width: 28rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* -------------------------------- Footer -------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.site-footer__text,
.site-footer__copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.site-footer__copy {
  margin-top: 0.5rem;
}

/* --------------------------------- Modal -------------------------------- */

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] {
  display: none;
}
.modal__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(var(--neon-rgb), 0.5);
  animation: pop-in 0.22s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}
.modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal__close:hover {
  background: rgba(var(--secondary-rgb), 0.6);
}
.modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.modal__footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.8);
}

.terms-intro {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Keypoints callout */
.keypoints {
  border: 1px solid rgba(var(--neon-rgb), 0.35);
  background: rgba(var(--card-rgb), 0.5);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), 0.08),
    0 20px 60px -30px rgba(var(--neon-rgb), 0.6);
}
@media (min-width: 768px) {
  .keypoints {
    padding: 1.5rem;
  }
}
.keypoints__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--emerald);
}
.keypoints__bang {
  font-size: 1rem;
}
.keypoints__list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .keypoints__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.keypoints__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(var(--background-rgb), 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(var(--foreground-rgb), 0.9);
  text-wrap: pretty;
}

/* Articles */
.articles {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.article__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.article__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(var(--neon-rgb), 0.6);
}
.article__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .article__title {
    font-size: 1.125rem;
  }
}
.article__body {
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.4);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(var(--foreground-rgb), 0.85);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px) {
  .article__body {
    padding: 1.5rem;
    font-size: 0.9375rem;
  }
}
.article__body .mb {
  margin-bottom: 1.25rem;
}
.article__body p + p {
  margin-top: 1rem;
}

.ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ol::marker {
  color: var(--neon);
}
.ol li::marker {
  color: var(--neon);
}

.emphasis {
  font-weight: 600;
  color: var(--emerald);
}
.strong {
  font-weight: 700;
  color: var(--foreground);
}

.opt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.opt-list li {
  border: 1px solid var(--border);
  background: rgba(var(--card-rgb), 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}
.sub-block {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Terms table */
.table-wrap {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow-x: auto;
}
.terms-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.terms-table th {
  background: rgba(var(--secondary-rgb), 0.6);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.terms-table td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: rgba(var(--foreground-rgb), 0.85);
  line-height: 1.6;
}
.terms-table tbody tr:last-child td {
  border-bottom: none;
}
.terms-table .sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.feature-card__index {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-reassurance {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--emerald);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------------------- Inquiry type radio selector --------------------- */
.field-legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.optional {
  vertical-align: middle;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.radio-card {
  flex: 1 1 12rem;
  cursor: pointer;
}
.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.radio-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  height: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: rgba(var(--background-rgb), 0.6);
  padding: 0.875rem 1rem;
  transition: border-color 160ms ease, background 160ms ease;
}
.radio-card__dot {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border: 2px solid rgba(var(--muted-foreground-rgb), 0.7);
  border-radius: 50%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.radio-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.radio-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
}
.radio-card__note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.radio-card:hover .radio-card__inner {
  border-color: rgba(var(--neon-rgb), 0.6);
}
.radio-card input:checked + .radio-card__inner {
  border-color: var(--neon);
  background: rgba(var(--neon-rgb), 0.12);
}
.radio-card input:checked + .radio-card__inner .radio-card__dot {
  border-color: var(--neon);
  box-shadow: inset 0 0 0 3px rgba(var(--neon-rgb), 0.9);
}

/* --------------------------- Service comparison ------------------------- */
.comparison-frame {
  position: relative;
}
.comparison-scroll-hint {
  display: none;
}
.comparison-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(var(--card-rgb), 0.5);
  box-shadow: 0 24px 70px -42px rgba(var(--neon-rgb), 0.8);
}
.comparison-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: middle;
  line-height: 1.55;
}
.comparison-table thead th {
  background: rgba(var(--background-rgb), 0.9);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--foreground);
}
.comparison-table thead th:first-child {
  width: 13%;
}
.comparison-table small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted-foreground);
}
.comparison-table tbody th,
.comparison-table tfoot th {
  background: rgba(var(--background-rgb), 0.45);
  font-weight: 700;
  color: var(--foreground);
}
.comparison-table__vite {
  position: relative;
  border-left: 2px solid rgba(var(--neon-rgb), 0.55) !important;
  border-right: 2px solid rgba(var(--neon-rgb), 0.55) !important;
  background: rgba(var(--neon-rgb), 0.11) !important;
}
.comparison-table thead .comparison-table__vite {
  border-top: 3px solid var(--neon) !important;
  background: linear-gradient(180deg, rgba(var(--neon-rgb), 0.25), rgba(var(--neon-rgb), 0.1)) !important;
}
.comparison-table tfoot .comparison-table__vite {
  border-bottom: 3px solid var(--neon) !important;
}
.comparison-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  background: var(--neon);
  color: var(--primary-fg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.rating {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.rating--good { color: var(--emerald); }
.rating--ok { color: var(--neon); }
.rating--low { color: var(--muted-foreground); }
.comparison-table tfoot td,
.comparison-table tfoot th {
  border-bottom: 0;
  font-weight: 600;
}
.comparison-table tfoot td {
  color: rgba(var(--foreground-rgb), 0.8);
}
.comparison-fade {
  display: none;
}

@media (max-width: 767px) {
  .comparison-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: -1rem 0 0.9rem;
    color: var(--neon);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: comparison-hint-pulse 2s ease-in-out infinite;
  }
  .comparison-scroll-hint__arrow {
    font-size: 1.25rem;
    line-height: 1;
  }
  .comparison-wrap {
    margin-inline: -0.35rem;
    border-color: rgba(var(--neon-rgb), 0.5);
    border-radius: 1rem;
    box-shadow: 0 18px 45px -28px rgba(var(--neon-rgb), 0.9);
    scrollbar-color: var(--neon) rgba(var(--foreground-rgb), 0.12);
    scrollbar-width: thin;
  }
  .comparison-wrap::-webkit-scrollbar {
    height: 0.55rem;
  }
  .comparison-wrap::-webkit-scrollbar-track {
    background: rgba(var(--foreground-rgb), 0.12);
    border-radius: 9999px;
  }
  .comparison-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--neon), var(--emerald));
    border-radius: 9999px;
  }
  .comparison-fade {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0.55rem;
    width: 1.5rem;
    z-index: 2;
    pointer-events: none;
  }
  .comparison-fade--left {
    left: 0;
    background: linear-gradient(90deg, rgba(var(--background-rgb), 0.95), transparent);
  }
  .comparison-fade--right {
    right: 0;
    background: linear-gradient(270deg, rgba(var(--background-rgb), 0.95), transparent);
  }
  .comparison-table {
    min-width: 760px;
    font-size: 0.75rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem 0.75rem;
  }
  .comparison-table thead th {
    font-size: 0.78rem;
  }
  .comparison-table thead th:first-child {
    width: 15%;
  }
}

@keyframes comparison-hint-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
.radio-card input:focus-visible + .radio-card__inner {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), 0.25);
}

/* ------------------------ Conditional field groups --------------------- */
.mode-group {
  display: grid;
  gap: 1.25rem;
}
.mode-group[hidden] {
  display: none;
}

/* Select matches the text inputs */
.field select {
  width: 100%;
  border: 1px solid var(--input);
  background: rgba(var(--background-rgb), 0.6);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--foreground);
  appearance: none;
  -webkit-appearance: none;
}
.field select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), 0.25);
}
.field select option {
  background: var(--card);
  color: var(--foreground);
}
