:root {
  --bg: #f6f2ea;
  --bg-strong: #efe5d2;
  --panel: rgba(255, 251, 245, 0.92);
  --panel-strong: rgba(255, 248, 238, 0.98);
  --line: rgba(64, 39, 12, 0.12);
  --text: #1d1b18;
  --muted: #665f57;
  --accent: #0c6c67;
  --accent-strong: #104b54;
  --warm: #c7682f;
  --danger: #a53a2a;
  --success: #216843;
  --shadow: 0 18px 48px rgba(74, 47, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 104, 47, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(12, 108, 103, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f3eee6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 108, 103, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 104, 47, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 28px auto 40px;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(255, 248, 238, 0.98), rgba(246, 242, 234, 0.94)),
    var(--panel);
}

.hero-copy h1,
.panel h2,
.panel p,
.panel ol {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.hero-text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.inline-hint,
.note,
small {
  color: var(--muted);
  line-height: 1.7;
}

.hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-chip {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(12, 108, 103, 0.12);
}

.hero-chip span,
.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-chip strong {
  font-size: 1.1rem;
}

.grid-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 340px;
  gap: 20px;
  margin-top: 22px;
}

.main-column,
.side-column {
  display: grid;
  gap: 20px;
  align-content: start;
}

.panel {
  padding: 24px;
}

.accent-panel {
  background:
    linear-gradient(180deg, rgba(12, 108, 103, 0.08), rgba(255, 251, 245, 0.98)),
    var(--panel);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(64, 39, 12, 0.08);
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.flash {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  line-height: 1.7;
}

.flash[data-tone="success"] {
  background: rgba(33, 104, 67, 0.08);
  border-color: rgba(33, 104, 67, 0.16);
  color: var(--success);
}

.flash[data-tone="error"] {
  background: rgba(165, 58, 42, 0.08);
  border-color: rgba(165, 58, 42, 0.16);
  color: var(--danger);
}

.flash[data-tone="info"] {
  background: rgba(12, 108, 103, 0.08);
  border-color: rgba(12, 108, 103, 0.16);
  color: var(--accent-strong);
}

.url-stack,
.form-stack {
  display: grid;
  gap: 14px;
}

.url-row span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.url-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

label > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

textarea,
input[type="text"],
input[type="password"],
input[readonly] {
  width: 100%;
  border: 1px solid rgba(64, 39, 12, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.96);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 180px;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[readonly]:focus {
  border-color: rgba(12, 108, 103, 0.42);
  box-shadow: 0 0 0 4px rgba(12, 108, 103, 0.1);
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(64, 39, 12, 0.1);
  background: rgba(255, 248, 238, 0.88);
}

.checkbox-card span {
  margin: 0;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.64;
  cursor: wait;
  transform: none;
}

#startBtn,
.secondary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 12px 28px rgba(16, 75, 84, 0.18);
}

.ghost-button {
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(64, 39, 12, 0.12);
  color: var(--text);
}

.ghost-button.small {
  padding-inline: 14px;
}

.details-card {
  border-radius: 20px;
  border: 1px solid rgba(64, 39, 12, 0.08);
  background: rgba(255, 248, 238, 0.84);
  padding: 16px;
}

.details-card summary {
  cursor: pointer;
  font-weight: 700;
}

.preferred-list {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.flat-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-panel,
  .grid-shell {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 16px, 1240px);
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .hero-panel,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

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

  .url-actions {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }
}
