/* ==========================================================================
   帯差し替えツール LP — styles.css
   Design base: DESIGN.md (note-inspired)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: auto;
}

body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    Arial, "Noto Sans JP", Meiryo, sans-serif;
  color: #08131a;
  background: #ffffff;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — from DESIGN.md */
  --color-text-primary: #08131a;
  --color-text-secondary: rgba(8, 19, 26, 0.66);
  --color-text-invert: #ffffff;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f8fa;
  --color-border: rgba(8, 19, 26, 0.14);
  --color-border-strong: rgba(8, 19, 26, 0.22);
  --color-surface-primary: #08131a;
  --color-surface-reaction: #202a30;
  --color-accent: #5ac8b8;
  --color-accent-subdued: #e6f6f2;
  --color-danger: #b22323;
  --color-danger-subdued: #fdf3f3;
  --color-success: #1e7b65;
  --color-success-subdued: #e6f6f2;

  /* Shadows — from DESIGN.md elevation */
  --elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.14),
    0px 1px 2px 0px rgba(0, 0, 0, 0.22);
  --elevation-4: 0px 4px 8px 3px rgba(0, 0, 0, 0.14),
    0px 1px 3px 0px rgba(0, 0, 0, 0.22);
  --elevation-6: 0px 6px 10px 4px rgba(0, 0, 0, 0.14),
    0px 2px 3px 0px rgba(0, 0, 0, 0.22);

  /* Layout */
  --content-width: 1100px;
  --article-width: 820px;
  --section-padding: 80px 24px;
  --section-padding-sm: 56px 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  font-weight: 700;
  line-height: 1.4;
}

p {
  color: var(--color-text-primary);
  line-height: 2.0;
  letter-spacing: normal;
  font-feature-settings: normal;
}

.text-secondary {
  color: var(--color-text-secondary);
}

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

.container--narrow {
  max-width: var(--article-width);
}

section {
  padding: var(--section-padding);
}

.bg-white {
  background: var(--color-bg-primary);
}

.bg-gray {
  background: var(--color-bg-secondary);
}

.bg-dark {
  background: var(--color-surface-primary);
  color: var(--color-text-invert);
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 28px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: var(--color-accent-subdued);
  color: var(--color-success);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.nav-cta-secondary:hover {
  background: var(--color-bg-secondary);
}

.nav-cta-accent {
  background: var(--color-accent);
  color: #fff;
}

.nav-cta-accent:hover {
  filter: brightness(0.92);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 200, 184, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 200, 184, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-subdued);
  color: var(--color-success);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 36px;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}

.hero-description {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.hero-visual img {
  border-radius: 12px;
  box-shadow: var(--elevation-4);
  width: 100%;
  aspect-ratio: 16 / 13;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-surface-primary);
  color: var(--color-text-invert);
}

.btn-primary:hover {
  background: var(--color-surface-reaction);
  transform: translateY(-1px);
  box-shadow: var(--elevation-1);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-bg-secondary);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: var(--elevation-1);
}

.btn-invert {
  background: #fff;
  color: var(--color-surface-primary);
}

.btn-invert:hover {
  background: var(--color-bg-secondary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* ---------- Pain Points Section ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.pain-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition-fast);
}

.pain-card:hover {
  box-shadow: var(--elevation-1);
}

.pain-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-danger-subdued);
  color: var(--color-danger);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.pain-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* ---------- Solution Section ---------- */
.solution-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.solution-before,
.solution-after {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
}

.solution-before {
  background: var(--color-danger-subdued);
  border: 1px solid rgba(178, 35, 35, 0.12);
}

.solution-after {
  background: var(--color-success-subdued);
  border: 1px solid rgba(30, 123, 101, 0.12);
}

.solution-before-label,
.solution-after-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.solution-before-label {
  color: var(--color-danger);
}

.solution-after-label {
  color: var(--color-success);
}

.solution-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: inherit;
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-before .solution-icon {
  color: var(--color-danger);
}

.solution-after .solution-icon {
  color: var(--color-success);
}

.solution-text {
  font-size: 15px;
  line-height: 1.7;
}

.solution-arrow {
  font-size: 32px;
  color: var(--color-text-secondary);
}

.solution-message {
  font-size: 18px;
  line-height: 2.0;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.solution-message strong {
  color: var(--color-text-primary);
}

/* ---------- Features Section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-subdued);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-success);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.feature-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

/* ---------- Video Section ---------- */
.video-section {
  padding: var(--section-padding);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--color-bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--elevation-1);
}

.video-container video,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #f5f8fa 0%, #e8edf0 100%);
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: var(--color-surface-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--elevation-4);
}

.video-play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-placeholder:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--color-surface-reaction);
}

.video-placeholder-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.video-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ---------- Steps Section ---------- */
.steps-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.steps-list {
  display: flex;
  gap: 0;
  justify-content: center;
  position: relative;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

/* Connection line */
.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -2px;
  width: calc(100% - 56px);
  height: 2px;
  background: var(--color-border);
  transform: translateX(50%);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-surface-primary);
  color: var(--color-text-invert);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--color-text-secondary);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.step-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ---------- All Features Grid ---------- */
.all-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.all-feature-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  transition: all var(--transition-fast);
}

.all-feature-item:hover {
  background: var(--color-bg-primary);
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}

.all-feature-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--color-success);
}

.all-feature-icon svg {
  width: 100%;
  height: 100%;
}

.all-feature-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.all-feature-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ---------- Comparison Table ---------- */
.comparison-wrapper {
  max-width: 820px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--elevation-1);
}

.comparison-table thead th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

.comparison-table thead th:first-child {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  width: 25%;
}

.comparison-table thead th:nth-child(2) {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}

.comparison-table thead th:nth-child(3) {
  background: var(--color-accent-subdued);
  color: var(--color-success);
}

.comparison-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.comparison-table tbody td:nth-child(3) {
  color: var(--color-text-primary);
  font-weight: 600;
  background: rgba(90, 200, 184, 0.04);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.check {
  color: var(--color-success);
  font-weight: 700;
}

.cross {
  color: var(--color-danger);
  opacity: 0.6;
}

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--elevation-1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: inherit;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.faq-question::before {
  content: "Q.";
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 28px;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.faq-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding: 0 24px 20px 66px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 80px 24px;
  background: var(--color-surface-primary);
  color: var(--color-text-invert);
  text-align: center;
}

.cta-section .section-title {
  color: var(--color-text-invert);
  margin-bottom: 16px;
}

.cta-description {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-surface-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.footer-brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-company {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
  }

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

  .steps-list {
    flex-direction: column;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .hero {
    padding: 72px 16px 56px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-description {
    font-size: 15px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .solution-visual {
    flex-direction: column;
    gap: 16px;
  }

  .solution-arrow {
    transform: rotate(90deg);
  }

  .all-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 14px;
  }

  .nav-logo {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .all-features-grid {
    grid-template-columns: 1fr;
  }

  .faq-answer-inner {
    padding-left: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: 100px 24px 80px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: var(--article-width);
}

.legal-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.legal-page .legal-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h3 {
  font-size: 16px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.legal-page ol {
  list-style: decimal;
  padding-left: 24px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-page th,
.legal-page td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.legal-page th {
  background: var(--color-bg-secondary);
  font-weight: 600;
  color: var(--color-text-primary);
  width: 30%;
}

.legal-page td {
  color: var(--color-text-secondary);
}

.legal-page .legal-date {
  margin-top: 40px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: right;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.legal-back:hover {
  color: var(--color-text-primary);
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

/* ---------- Contact Page ---------- */
.contact-page {
  padding: 100px 24px 80px;
  min-height: 100vh;
}

.contact-page .container {
  max-width: 640px;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.contact-form {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--elevation-1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-required {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--color-danger);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-optional {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(8, 19, 26, 0.35);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(90, 200, 184, 0.15);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  min-width: 240px;
  padding: 16px 40px;
  font-size: 16px;
}

.form-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.form-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-note a:hover {
  color: var(--color-success);
}

@media (max-width: 480px) {
  .contact-form {
    padding: 24px 20px;
  }

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

/* ---------- Thanks Page ---------- */
.thanks-page {
  padding: 60px 24px 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page .container {
  max-width: 560px;
}

.thanks-card {
  text-align: center;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: var(--elevation-1);
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--color-success);
}

.thanks-icon svg {
  width: 100%;
  height: 100%;
}

.thanks-card h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.thanks-message {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.thanks-sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.thanks-btn {
  min-width: 200px;
}
