/* Web fonts */
@font-face {
  font-family: "NEXON Lv1 Gothic";
  src: url("../assets/fonts/NEXONLv1GothicLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NEXON Lv1 Gothic";
  src: url("../assets/fonts/NEXONLv1GothicRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NEXON Lv1 Gothic";
  src: url("../assets/fonts/NEXONLv1GothicBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* JS로 토글하는 hidden 속성은 어떤 컴포넌트 클래스의 display 값보다도 항상 우선한다 */
[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* Utilities */
.font-emphasis {
  font-family: var(--font-family-emphasis);
}

/* Scroll Reveal (스크롤 시 부드럽게 나타나는 효과, [data-reveal] + js/reveal.js와 함께 사용) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container--narrow {
  max-width: 1000px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: var(--radius-button);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  transition: var(--transition-button);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: scale(1.03);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  transition: var(--transition-button);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: scale(1.03);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Header / Nav Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 25px;
  font-weight: 700;
  color: var(--color-secondary);
}

.site-logo__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: 20px;
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: var(--color-secondary);
}

.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header__actions .btn-primary {
  padding: var(--space-2) var(--space-5);
  font-size: 14px;
}

/* Header가 히어로 배경 이미지 위에 입체적으로 떠 있는 페이지 (예: index.html) */
/* 맨 위: 배경에 녹아든 투명 헤더 */
.has-photo-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: none;
  transition: top 300ms ease, left 300ms ease, right 300ms ease,
    background 300ms ease, border-radius 300ms ease, box-shadow 300ms ease;
}

.has-photo-hero .site-header__inner {
  padding: 0 var(--space-4);
  transition: padding 300ms ease;
}

.has-photo-hero .site-logo,
.has-photo-hero .site-nav a {
  color: var(--color-surface);
  transition: color 300ms ease;
}

.has-photo-hero .site-nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.has-photo-hero .site-nav a.is-active {
  color: var(--color-surface);
}

/* 스크롤하면: 떠 있는 알약 형태로 전환 */
.has-photo-hero.is-scrolled .site-header {
  top: var(--space-4);
  left: 11%;
  right: 11%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-bottomsheet);
  box-shadow: var(--shadow-dialog);
}

.has-photo-hero.is-scrolled .site-header__inner {
  padding: 0 var(--space-3);
}

.has-photo-hero.is-scrolled .site-logo,
.has-photo-hero.is-scrolled .site-nav a {
  color: var(--color-secondary);
}

.has-photo-hero.is-scrolled .site-nav a:hover {
  color: var(--color-primary);
}

.has-photo-hero.is-scrolled .site-nav a.is-active {
  color: var(--color-primary);
}

.has-photo-hero .hero {
  min-height: 100vh;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* 헤더(64px)가 히어로 위에 고정으로 떠 있으므로, 모바일처럼 콘텐츠가 100vh보다
     길어져도 제목이 헤더 뒤로 들어가지 않도록 상단 여백을 확보해둔다 */
  padding-top: calc(64px + var(--space-6));
  overflow: hidden;
  color: var(--color-surface);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  max-width: 500px;
  padding: var(--space-7) 0 calc(var(--space-7) * 3);
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-surface);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--color-surface);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__cta-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.store-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: left;
  margin-top: var(--space-5);
}

.store-badge-img img {
  display: block;
  height: auto;
  width: 180px;
}

.hero__feature-tags {
  margin-top: var(--space-3);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Features Hero */
.features-hero {
  position: relative;
  padding: calc(var(--space-7) * 2) 0 var(--space-7);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 55%, var(--color-secondary) 100%);
  color: var(--color-surface);
  text-align: center;
  overflow: hidden;
}

.features-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.features-hero__container {
  position: relative;
  z-index: 1;
}

.features-hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
}

.features-hero__title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-surface);
  margin-bottom: var(--space-4);
}

.features-hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto;
}

.features-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

.features-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.features-hero__stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.features-hero__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.features-hero__stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
}

/* Section common */
.section {
  padding: var(--space-7) 0;
}

.section--band {
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    color-mix(in srgb, var(--color-primary) 4%, var(--color-surface)) 100%
  );
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--full {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.section--full:not(.section--band) {
  background:
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--color-primary) 7%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 88% 85%, color-mix(in srgb, var(--color-primary) 6%, transparent) 0%, transparent 55%);
}

.has-photo-hero .section--full {
  min-height: 100vh;
}

.section--full .container {
  width: 100%;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-5);
}

.section__title--lg {
  font-size: 28px;
}

/* Section Intro (네컷모아 스타일 — 크게, 가운데 정렬) */
.section-intro {
  /* max-width: 640px; */
  margin: 0 auto;
  text-align: center;
}

.feature-grid__heading {
  margin-top: var(--space-7);
  margin-bottom: var(--space-2);
  text-align: center;
}

.feature-grid__subheading {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* Problem -> Solution */
.problem-solution__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-4);
}

.chip--on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-surface);
}

.flow-arrow {
  font-size: 20px;
  color: var(--color-primary);
}

.solution-chip {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-surface);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-5);
}

.problem-solution__desc {
  color: var(--color-text-muted);
  /* max-width: 560px; */
  padding-top: 15px;
  margin: 0 auto;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: var(--transition-card), box-shadow 200ms ease, transform 200ms ease;
}

.feature-grid--portrait {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 820px;
  margin: 0 auto;
}

.feature-grid--portrait .feature-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 4;
}

.feature-grid--portrait .feature-card__desc {
  flex: 1;
}

.feature-grid--portrait .feature-card__icon {
  font-size: 40px;
  line-height: 1;
}

.feature-card:hover,
.feature-card:focus-within {
  box-shadow: var(--shadow-dialog);
  transform: translateY(calc(var(--space-1) * -1));
}

.feature-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.feature-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.feature-section__footer {
  margin-top: var(--space-6);
}

.feature-section__footer a {
  font-weight: 700;
  color: var(--color-primary);
}

/* Feature Showcase (텍스트+이미지 스크롤 리빌) */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.feature-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  text-align: center;
  min-height: calc(100vh - 64px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.feature-showcase__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-showcase__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.feature-showcase__icon {
  width: 100%;
  height: auto;
}

.feature-showcase__text {
  max-width: 480px;
}

.feature-showcase__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.feature-showcase__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Feature Category (기능 소개 페이지 - 카테고리별 묶음) */
.feature-category {
  margin-top: var(--space-7);
}

.feature-category:first-of-type {
  margin-top: 0;
}

.feature-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.feature-category__icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.feature-category__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.feature-category__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-chip);
  padding: var(--space-1) var(--space-3);
  line-height: 1;
}

.feature-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.feature-subcard {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.feature-subcard__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  background: rgba(37, 99, 235, 0.06);
  font-size: 18px;
  line-height: 1;
}

.feature-subcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.feature-subcard__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-secondary);
}

.feature-subcard__desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Match Section */
.match-section__desc {
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.match-block {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.match-block__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.match-input__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.match-input__row .text-input {
  flex: 1 1 160px;
}

.text-input,
.select-input {
  font-family: var(--font-family-base);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
}

.text-input {
  flex: 1;
}

.select-input {
  flex: 0 0 auto;
  cursor: pointer;
}

.text-input:focus-visible,
.select-input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.participant-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.badge--total {
  background: var(--color-primary);
  color: var(--color-surface);
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.participant-list__empty {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-2) var(--space-4);
  font-size: 16px;
}

.participant-item__main {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.participant-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.participant-item__edit {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.participant-item__remove {
  background: none;
  border: none;
  color: var(--color-error);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.participant-item--editing {
  flex-direction: column;
  align-items: stretch;
}

.participant-item__edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.participant-item__edit-row .participant-item__edit-name {
  flex: 1 1 160px;
}

.participant-item__edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-chip);
  padding: 2px var(--space-3);
}

.badge--grade {
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-text-muted);
}

.badge--grade-s {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.badge--grade-a {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.badge--grade-b {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.badge--grade-c {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.badge--grade-d {
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.badge--grade-e {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.badge--grade-f {
  background: rgba(168, 85, 247, 0.12);
  color: #7e22ce;
}

.badge--gender-m {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
}

.badge--gender-f {
  background: #fdf2f8;
  color: #db2777;
}

.badge--age {
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-text-muted);
}

.badge--age-10 {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.badge--age-20 {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.badge--age-30 {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.badge--age-40 {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.badge--age-45 {
  background: rgba(217, 70, 239, 0.12);
  color: #a21caf;
}

.badge--age-50 {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.badge--age-55 {
  background: rgba(146, 64, 14, 0.14);
  color: #78350f;
}

.badge--age-60 {
  background: rgba(120, 113, 108, 0.15);
  color: #57534e;
}

.match-input__app-note {
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* 테스트 편의용 붙여넣기 일괄 추가 — 나중에 이 블록 통째로 지우면 제거됨 */
#paste-import-toggle {
  margin-top: var(--space-3);
}

.paste-import {
  margin-top: var(--space-3);
}

.paste-import__textarea {
  display: block;
  width: 100%;
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.form-note {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.match-actions {
  margin-bottom: var(--space-2);
}

/* Generation Mode (대진 생성 방식 라디오 카드) */
.generation-mode__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.generation-mode__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  background: var(--color-surface);
  transition: border-color 200ms ease, background 200ms ease;
}

.generation-mode__card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.generation-mode__card.is-selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

.generation-mode__card-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.generation-mode__card-head input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.generation-mode__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

.generation-mode__card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

.match-input__team-panel {
  margin-bottom: var(--space-3);
}

/* Mode Tabs */
.mode-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.mode-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 700;
  padding: var(--space-3) var(--space-2);
  cursor: pointer;
}

.mode-tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Match Options */
.match-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-5);
}

.match-options__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  flex: 1 1 200px;
}

.match-options__row .select-input {
  width: 100%;
  max-width: 100%;
}

.match-options__row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
}

.match-options__hint {
  margin-top: calc(var(--space-4) * -1);
}

/* 고정 파트너 설정 */
.fixed-partner {
  margin-bottom: var(--space-5);
}

.fixed-partner__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.fixed-partner__pool {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.fixed-partner__chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.fixed-partner__chip:hover {
  border-color: var(--color-primary);
}

.fixed-partner__chip.is-picked {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-weight: 700;
}

.fixed-partner__chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.fixed-partner__list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.fixed-partner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.fixed-partner__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  font-weight: 700;
}

.fixed-partner__tag-remove {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.btn-secondary--sm {
  font-size: 13px;
  padding: var(--space-2) var(--space-4);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.badge--group-a {
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
}

.badge--group-b {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.badge--group-unassigned {
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-text-muted);
}

.badge--group-toggle {
  border: none;
  cursor: pointer;
}

/* Manual Team Builder */
.manual-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.manual-builder__pool-header,
.manual-builder__courts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.manual-builder__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

.manual-builder__hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.manual-pool {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.manual-pool__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
  cursor: pointer;
}

.manual-pool__item:hover {
  border-color: var(--color-primary);
}

.manual-pool__item[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.manual-courts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.manual-court {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.manual-court__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.manual-court__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.manual-court__remove {
  background: none;
  border: none;
  color: var(--color-error);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.manual-court__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.manual-court__team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.manual-court__slot {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

.manual-court__slot.is-filled {
  border-style: solid;
  border-color: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  background: rgba(37, 99, 235, 0.06);
}

/* Matchup Board / Card */
.matchup-board-wrap {
  margin-bottom: var(--space-2);
}

.session-summary {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.session-summary__stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.session-summary__stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.session-summary__stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.session-summary__section {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.session-summary__section + .session-summary__section {
  margin-top: var(--space-4);
}

.session-summary__heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.session-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.badge--count {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-secondary);
}

.session-summary__table-wrap {
  overflow-x: auto;
}

.session-summary__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.session-summary__table th,
.session-summary__table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.session-summary__table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.session-summary__table td {
  color: var(--color-secondary);
}

.session-summary__table tbody tr:last-child td {
  border-bottom: none;
}

.session-summary__table td.is-numeric {
  font-weight: 700;
  color: var(--color-primary);
}

.session-group__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.session-group__title:first-child {
  margin-top: 0;
}

.session-round {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.session-round__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  background: var(--color-background);
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-family-base);
  cursor: pointer;
  text-align: left;
}

.session-round__header.is-collapsed {
  border-bottom: none;
}

.session-round__header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.session-round__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.session-round__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.session-round__chevron {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-muted);
  transform: rotate(180deg);
  transition: transform 150ms ease;
}

.session-round__header.is-collapsed .session-round__chevron {
  transform: rotate(0deg);
}

.session-round__body {
  padding: var(--space-5);
}

.matchup-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.matchup-board:last-child {
  margin-bottom: 0;
}

.matchup-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  overflow: hidden;
}

.matchup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 50%, var(--color-warning) 50%, var(--color-warning) 100%);
}

.matchup-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.matchup-card__header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.matchup-card__court {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-chip);
  padding: var(--space-1) var(--space-4);
}

.matchup-card__doubles-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-chip);
  padding: var(--space-1) var(--space-3);
}

.matchup-card__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
}

.matchup-card__team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-input);
  padding: var(--space-3);
}

.matchup-card__team--b {
  background: rgba(245, 158, 11, 0.09);
  align-items: flex-end;
}

.matchup-card__team--winner {
  outline: 2px solid var(--color-success);
  outline-offset: -2px;
}

.matchup-card__fixed-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(51, 65, 85, 0.12);
  border-radius: var(--radius-chip);
  padding: 1px var(--space-2);
}

.matchup-card__team--b .matchup-card__fixed-badge {
  align-self: flex-end;
}

.matchup-card__player {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* 팀 B는 부모가 align-items: flex-end라 기본적으로 내용물 너비만큼만 차지한다 —
   행 자체는 전체 너비로 넓히고, 내용만 오른쪽으로 정렬해 클릭 영역을 팀 A와 동일하게 맞춘다 */
.matchup-card__team--b .matchup-card__player {
  width: 100%;
  justify-content: flex-end;
}

.matchup-card__player .badge {
  font-size: 11px;
  padding: 1px var(--space-2);
}

.matchup-card__player--clickable {
  cursor: pointer;
  border-radius: var(--radius-input);
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 150ms ease;
}

.matchup-card__player--clickable:hover {
  background: rgba(15, 23, 42, 0.06);
}

.matchup-card__player--selected {
  background: rgba(37, 99, 235, 0.18);
  outline: 2px solid var(--color-primary);
}

.matchup-card__vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.matchup-card__vs {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-muted);
}

.matchup-card__score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.matchup-card__score-input {
  width: 64px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  color: var(--color-secondary);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-1) var(--space-2);
}

.matchup-card__score-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.matchup-card__score-sep {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-muted);
}

.matchup-card__score-toggle {
  background: none;
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-chip);
  padding: var(--space-1) var(--space-4);
  cursor: pointer;
}

.matchup-card__score-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.matchup-card__score-toggle--filled {
  border-style: solid;
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.matchup-card__score-save,
.matchup-card__score-cancel {
  border: none;
  border-radius: var(--radius-chip);
  font-size: 12px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
}

.matchup-card__score-save {
  background: var(--color-primary);
  color: var(--color-surface);
}

.matchup-card__score-cancel {
  background: none;
  color: var(--color-text-muted);
}

.matchup-card__score-cancel:hover {
  color: var(--color-error);
}

.matchup-card__slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.matchup-card__slot-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.bench-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: var(--color-background);
  border-radius: var(--radius-input);
}

.bench-picker__option {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  font-size: 13px;
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
}

.bench-picker__option:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.waiting-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* App Install Card */
.install-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dialog);
  padding: var(--space-6);
}

.install-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: var(--space-4);
}

.install-card__desc {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.install-card__list {
  margin-bottom: var(--space-5);
}

.install-card__list li {
  position: relative;
  padding-left: var(--space-4);
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.install-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Section CTA (centered) */
.section-cta {
  text-align: center;
}

/* Legal Content Block */
.legal-content {
  max-width: 720px;
}

.legal-content__notice {
  color: var(--color-error);
  font-size: 13px;
  font-weight: 700;
  background: #fef2f2;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-input);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.legal-content__updated {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.legal-content__article {
  margin-bottom: var(--space-6);
}

.legal-content__article h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.legal-content__article p,
.legal-content__article li {
  margin-bottom: var(--space-2);
}

.legal-content__article ol,
.legal-content__article ul {
  padding-left: var(--space-5);
  list-style: decimal;
  margin-bottom: var(--space-2);
}

.legal-content__article ul {
  list-style: disc;
}

.legal-placeholder {
  color: var(--color-error);
  font-weight: 700;
}

/* Agree Checkbox (재사용 대비 — v1.0 가입/결제 플로우에는 아직 연결되지 않음) */
.agree-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: var(--space-4);
}

.agree-checkbox__input {
  margin-top: 3px;
}

.agree-checkbox__label {
  font-size: 16px;
  color: var(--color-text);
}

.agree-checkbox__note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Closing Section (출시 알림 + Footer 한 화면) */
.closing-section {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
}

.closing-section__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  padding: var(--space-6) 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__links {
  display: flex;
  gap: var(--space-4);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__links a:hover {
  color: var(--color-surface);
}

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 20px;
  box-shadow: var(--shadow-fab);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  transform: scale(1.05);
}

/* Guide Page */
.guide-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.guide-sidebar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.guide-sidebar__link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}

.guide-sidebar__link.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  min-width: 0;
}

.guide-section {
  scroll-margin-top: calc(64px + var(--space-4));
}

.guide-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.guide-section__icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.guide-section__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.guide-section__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.guide-section__desc:last-child {
  margin-bottom: 0;
}

.guide-section__list {
  padding-left: var(--space-5);
  list-style: disc;
}

.guide-section__list li {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.guide-section__list li:last-child {
  margin-bottom: 0;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps li {
  counter-increment: guide-step;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.guide-steps li::before {
  content: counter(guide-step);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-compare-wrap {
  overflow-x: auto;
}

.guide-compare {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.guide-compare th,
.guide-compare td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.guide-compare th {
  background: var(--color-secondary);
  color: var(--color-surface);
  font-weight: 700;
}

.guide-compare tbody tr:last-child td {
  border-bottom: none;
}

.guide-compare td:first-child {
  color: var(--color-text-muted);
}

.guide-compare td.is-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.guide-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guide-faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.guide-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.guide-faq__item summary::-webkit-details-marker {
  display: none;
}

.guide-faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform 200ms ease;
}

.guide-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.guide-faq__answer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* Tablet (>= 600px) */
@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .generation-mode__options {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid--portrait {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-7);
  }

  .guide-sidebar {
    flex-direction: column;
    flex-shrink: 0;
    width: 160px;
    position: sticky;
    top: calc(64px + var(--space-5));
    overflow-x: visible;
    gap: var(--space-1);
    padding-bottom: 0;
    border-bottom: none;
  }

  .guide-sidebar__link {
    background: none;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-3);
  }

  .guide-sidebar__link.is-active {
    background: none;
    border-left-color: var(--color-primary);
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .manual-builder {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .has-photo-hero.is-scrolled .site-header {
    left: 20%;
    right: 20%;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .features-hero__title {
    font-size: 44px;
  }

  .features-hero__subtitle {
    font-size: 18px;
    max-width: 640px;
  }

  .features-hero__stat-value {
    font-size: 40px;
  }

  .section__title--lg {
    font-size: 40px;
  }

  .feature-showcase__title {
    font-size: 40px;
  }

  .feature-showcase__desc {
    font-size: 20px;
  }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .guide-sidebar {
    width: 200px;
  }

  .hero__title {
    font-size: 56px;
  }

  .features-hero__title {
    font-size: 56px;
  }

  .section__title--lg {
    font-size: 50px;
  }

  .feature-showcase__title {
    font-size: 56px;
  }

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

  .feature-grid--portrait {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-solution__flow {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .feature-showcase__item {
    flex-direction: row;
    justify-content: space-around;
    text-align: left;
    gap: var(--space-7);
  }

  .feature-showcase__item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .feature-showcase__visual {
    flex: none;
    max-width: 480px;
  }

  .feature-showcase__text {
    flex: none;
    max-width: 480px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-showcase__item,
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
