:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-strong: #f9fafb;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --accent: #111827;
  --accent-hover: #374151;
  --focus: #2563eb;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(17, 24, 39, 0.12), transparent 28rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--accent);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 3rem 0;
}

.hero {
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.panel,
.result-card,
.note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.project-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-form legend {
  grid-column: 1 / -1;
  margin-bottom: 0.3rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.choice-card {
  display: flex;
  gap: 0.9rem;
  min-height: 8.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #9ca3af;
  background: #ffffff;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice-card input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.choice-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.primary-button,
.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.primary-button {
  margin-top: 1rem;
}

.install-button {
  margin-top: 1.4rem;
}

.primary-button:hover,
.install-button:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
}

.primary-button:focus-visible,
.install-button:focus-visible,
.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.result-card,
.note-card {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.result-kicker {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.result-card h2,
.note-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.result-grid div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.result-grid h3 {
  margin-bottom: 0.7rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.note-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.note-card dl > div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.note-card dt {
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.note-card dd {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 1rem, 980px);
    padding: 0.5rem 0 1.5rem;
  }

  .hero,
  .panel,
  .result-card,
  .note-card {
    border-radius: 22px;
  }

  .project-form fieldset,
  .result-grid,
  .note-card dl {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
  }
}
