/* ====================================================================
   Convert — Design System & Styles
   ==================================================================== */

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;
  --background: #FFFFFF;
  --surface: #F8F8F6;
  --foreground: #171717;
  /* AA on white: #6e6e6e = 5.3:1 */
  --muted: #636363;
  /* decorative only — never for text */
  --light: #A0A0A0;
  --border: #E8E8E8;
  --accent: #D96C92;
  /* AA text accent on light */
  --accent-text: #B03A63;
  --accent-soft: #F3D7E1;
  --danger: #B3261E;
  --danger-bg: #FCEBEA;
  --ok: #1B7F4D;
  --ok-bg: #E8F5EE;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* shadows */
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.06), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* transition */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #0a0a0a;
  --surface: #141414;
  --foreground: #f0f0f0;
  /* AA on #0a0a0a */
  --muted: #a3a3a3;
  --light: #8a8a8a;
  --border: #242424;
  --accent: #E58BA9;
  --accent-text: #EFA9C0;
  --accent-soft: #2a1d23;
  --danger: #ff8a84;
  --danger-bg: #2c1312;
  --ok: #6fd39d;
  --ok-bg: #122a1c;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.15);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.15);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.25), 0 2px 4px -2px rgb(0 0 0 / 0.15);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.15);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.35), 0 8px 10px -6px rgb(0 0 0 / 0.2);
}

/* ------------------------------------------------------------- base */

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

/* class display rules must never defeat the hidden attribute */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main { flex: 1; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--foreground);
  color: var(--background);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: top var(--duration-normal) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-12);
  padding-right: var(--space-12);
}
.container.narrow { max-width: 880px; }
.container.center { text-align: center; }

@media (max-width: 768px) {
  .container { padding-left: var(--space-5); padding-right: var(--space-5); }
  .icon-btn { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
  transition: opacity var(--duration-fast) ease;
}
.brand:hover { opacity: 0.8; }
.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

.nav { display: flex; gap: var(--space-6); }
.nav-link {
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
  transition: color var(--duration-normal) ease;
  position: relative;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active {
  color: var(--foreground);
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: background var(--duration-normal) ease, border-color var(--duration-normal) ease, color var(--duration-normal) ease;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--foreground) 15%, var(--border));
}
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.menu-btn { display: none; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-lg);
  animation: slideDown var(--duration-slow) var(--ease-out);
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-2);
  padding-bottom: var(--space-4);
}
.mobile-nav-link {
  padding: var(--space-3) var(--space-1);
  font-size: 15px;
  font-weight: 450;
  border-bottom: 1px solid var(--border);
  transition: color var(--duration-normal) ease, background var(--duration-fast) ease;
  border-radius: var(--radius-sm);
}
.mobile-nav-link:hover {
  color: var(--foreground);
  background: var(--surface);
}
.mobile-nav-link:last-child { border-bottom: 0; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-normal) ease,
              border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              opacity var(--duration-normal) ease;
}
.btn-primary {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}
[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-sm);
}
.btn-invert {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}
.btn-invert:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn-lg { padding: 13px 24px; font-size: 14px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-link {
  color: var(--accent-text);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--duration-normal) ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.text-link:hover {
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------ hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-5);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-title {
  font-size: clamp(64px, 7vw, 120px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0 0 var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-sub {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto var(--space-8);
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero { min-height: 100svh; }
}

/* ------------------------------------------------------------ sections */

.section { padding: var(--space-20) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 560px; margin-bottom: var(--space-10); }
.section-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
}
.section-cta { margin-top: var(--space-10); }

.page-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
}
.page-sub { max-width: 520px; line-height: 1.6; }

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

/* ------------------------------------------------------------ steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  counter-reset: step;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7, 28px) var(--space-6);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--foreground) 12%, var(--border));
  transform: translateY(-4px);
}
.step-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-10);
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .step-num { margin-bottom: var(--space-4); }
}

/* ------------------------------------------------------------ formats */

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.format-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out);
}
.format-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.format-pair { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.format-desc { font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------ privacy/trust */

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-16);
  align-items: start;
}

.trust-list { display: flex; flex-direction: column; gap: 0; }
.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-normal) ease;
}
.trust-item:hover {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
  margin: 0 calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  border-radius: var(--radius-md);
}
.trust-item:last-child { border-bottom: 0; }
.trust-k { font-weight: 600; font-size: 14px; }
.trust-v { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ------------------------------------------------------------ FAQ */

.faq-list { margin-top: var(--space-6); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-1, 4px) 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  padding: var(--space-4) 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
  transition: color var(--duration-normal) ease;
}
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--duration-normal) var(--ease-out),
              color var(--duration-normal) ease;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent);
}
.faq-item p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 640px;
  animation: fadeIn 0.3s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------ CTA band */

.cta-band {
  background: #111111;
  color: #ffffff;
}
[data-theme="dark"] .cta-band { background: var(--surface); color: var(--foreground); }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
  color: inherit;
}

/* ------------------------------------------------------------ converter */

.converter-section { padding: 72px 0 64px; }

.converter {
  animation: fadeInUp 0.4s var(--ease-out);
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 56px var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-normal) ease,
              background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              transform var(--duration-fast) ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--background));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent);
}
.dropzone:active {
  transform: scale(0.995);
}
.dropzone-icon {
  margin-bottom: var(--space-4);
  color: var(--muted);
  opacity: 0.7;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
}
.dropzone:hover .dropzone-icon,
.dropzone:focus-visible .dropzone-icon,
.dropzone.dragover .dropzone-icon {
  opacity: 1;
  transform: translateY(-4px);
}

.dropzone-title { margin: 0 0 var(--space-1, 6px); font-size: 15px; }
.dropzone strong { font-weight: 600; }
.dropzone p { margin: 0; }
#dz-hint { margin: 0 auto; max-width: 420px; }

.dropzone-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-4);
}

.format-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--foreground) 5%, var(--background));
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all var(--duration-normal) ease;
}
.dropzone:hover .format-tag,
.dropzone:focus-visible .format-tag,
.dropzone.dragover .format-tag {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
}

.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  animation: fadeIn 0.3s var(--ease-out);
}

.file-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  flex: 1;
}

.file-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-name {
  font-weight: 500;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.file-details {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.target-row {
  display: flex;
  align-items: end;
  gap: var(--space-4);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.target-row .label { margin: 0 0 var(--space-2); display: block; }

.target-select-wrap {
  flex: 1;
  min-width: 200px;
}
.target-select-wrap .label {
  margin-bottom: var(--space-2);
}

.select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 12px 40px 12px 14px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
  outline: none;
}

.convert-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-arrow {
  transition: transform var(--duration-normal) ease;
}
.convert-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.progress-wrap { margin-top: var(--space-7, 28px); }
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: var(--space-2);
}
.progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  transition: width 350ms var(--ease-out);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding: 0 var(--space-2);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity var(--duration-normal) ease, color var(--duration-normal) ease;
}
.progress-step.active {
  opacity: 1;
  color: var(--accent);
}
.progress-step.completed {
  opacity: 1;
  color: var(--ok);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}
.progress-step.active .step-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.progress-step.completed .step-dot {
  background: var(--ok);
}

.result {
  margin-top: var(--space-7, 28px);
  border: 1px solid var(--ok);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--ok) 4%, var(--background));
  animation: fadeIn 0.3s var(--ease-out);
}

.result-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  flex: 1;
}

.result-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 10%, var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ok);
}

.result-details { min-width: 0; }
.result-title { margin: 0; font-weight: 600; font-size: 15px; }
.result-sub { margin-top: 2px; }

.notice {
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 14px;
  line-height: 1.55;
  animation: fadeIn 0.3s var(--ease-out);
}
.notice-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.notice code { font-size: 13px; }

.quota-note { margin-top: var(--space-5); }

.know-list { padding-left: 18px; margin: 0; }
.know-list li { margin-bottom: var(--space-3); line-height: 1.6; }

/* ------------------------------------------------------------ error pages */

.error-section { padding: 120px 0; }
.error-section .page-sub { margin-bottom: var(--space-7, 28px); }

/* ------------------------------------------------------------ prose pages */

.prose h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 var(--space-3);
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 6px; }

/* ------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-12);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-grid > div > .brand { margin-bottom: var(--space-2); display: inline-flex; }

.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 var(--space-2);
  transition: color var(--duration-normal) ease;
}
.footer-link:hover { color: var(--foreground); }
.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-bottom { margin-top: var(--space-10); }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.muted { color: var(--muted); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ utilities */

.fade-in { animation: fadeIn 0.4s var(--ease-out) both; }
.slide-up { animation: fadeInUp 0.5s var(--ease-out) both; }
