/* Can I Ship This? — ITase-aligned static tool styles */

:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-2: #0b1728;
  --surface: #101c2d;
  --surface-2: #132235;
  --border: #26364d;
  --border-strong: #3b4c65;
  --text: #eef4ff;
  --text-muted: #9aa8bb;
  --text-soft: #c6d0df;
  --accent: #c9e63e;
  --accent-ink: #101500;
  --green: #4ade80;
  --red: #fb7185;
  --yellow: #facc15;
  --gray: #94a3b8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', ui-monospace, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 230, 62, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--bg), #050a12 76%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 230, 62, 0.55);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.top-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top-nav a { color: var(--text-muted); font-size: 0.92rem; }
.top-nav a:hover { color: var(--text); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  gap: 32px;
  align-items: start;
}

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

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sample-chip {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--mono);
}
.sample-chip:hover,
.sample-chip:focus-visible {
  outline: none;
  border-color: rgba(201, 230, 62, 0.7);
  color: var(--text);
}

.checker-card,
.result-card,
.support-grid article,
.content-page article {
  background: linear-gradient(180deg, rgba(19, 34, 53, 0.94), rgba(11, 23, 40, 0.94));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.checker-card { padding: 24px; }
.card-heading { margin-bottom: 20px; }
.card-heading h2 { margin-bottom: 4px; font-size: 1.1rem; }
.card-heading p { color: var(--text-muted); font-size: 0.9rem; }

.search-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 7px; }
label,
.field-label {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(5, 10, 18, 0.75);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

select:focus,
input[type="text"]:focus,
button:focus-visible {
  outline: 2px solid rgba(201, 230, 62, 0.55);
  outline-offset: 2px;
}

select:disabled { opacity: 0.55; cursor: not-allowed; }
input::placeholder { color: #65758b; }

#check-btn,
.cta-button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  padding: 0 18px;
  text-decoration: none;
}
#check-btn:hover,
.cta-button:hover { filter: brightness(1.05); text-decoration: none; }

.result-panel { margin-top: 32px; }
.result-card { padding: 26px; }
.verdict-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.verdict-icon { font-size: 1.65rem; }
.verdict-label { margin: 0; font-size: 1.18rem; font-weight: 800; }
.verdict-context { margin: 0; color: var(--text-muted); font-size: 0.86rem; }
.verdict-label.green { color: var(--green); }
.verdict-label.red { color: var(--red); }
.verdict-label.yellow { color: var(--yellow); }
.verdict-label.gray { color: var(--gray); }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.package-name { font-weight: 800; }
.package-version { color: var(--text-muted); font-family: var(--mono); font-size: 0.88rem; }
.license-name {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.74);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 5px 9px;
}
.verdict-description { color: var(--text-soft); }

.conditions-section,
.attribution-notice,
.alternatives-section,
.error-panel {
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px 16px;
}
.conditions-section {
  border: 1px solid rgba(250, 204, 21, 0.26);
  background: rgba(250, 204, 21, 0.07);
}
.conditions-section ul,
.alternatives-section ul { margin: 8px 0 0; padding-left: 20px; }
.attribution-notice {
  border: 1px solid rgba(250, 204, 21, 0.32);
  background: rgba(250, 204, 21, 0.10);
  color: #fde68a;
}
.alternatives-section {
  border: 1px solid rgba(201, 230, 62, 0.22);
  background: rgba(201, 230, 62, 0.07);
}
.alternatives-section h3 { margin-bottom: 4px; font-size: 1rem; }
.alternatives-section p { color: var(--text-soft); font-size: 0.92rem; }
.error-panel {
  border: 1px solid rgba(251, 113, 133, 0.36);
  background: rgba(251, 113, 133, 0.10);
  color: #fecdd3;
}
.error-panel p { margin: 0; }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.support-grid article,
.content-page article { padding: 24px; }
.support-grid h2,
.content-page h2 { font-size: 1.25rem; letter-spacing: -0.03em; }
.definition-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.definition-list li { display: grid; gap: 2px; }
.definition-list span { color: var(--text-muted); }
.guide-links { display: grid; gap: 10px; margin-top: 14px; }
.guide-links a {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text-soft);
}
.guide-links a:hover { border-color: rgba(201, 230, 62, 0.55); color: var(--text); text-decoration: none; }

.content-page { max-width: 820px; margin: 0 auto; }
.content-page article { box-shadow: none; }
.content-page .lead { color: var(--text-soft); font-size: 1.08rem; }
.content-page section { margin-top: 26px; }
.content-page li { margin: 7px 0; }
pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.76);
  padding: 16px;
}
code { font-family: var(--mono); }
.breadcrumb { margin-top: 12px; }
.breadcrumb a { color: var(--text-muted); }

footer { margin-top: 38px; text-align: center; }
.disclaimer { color: var(--text-muted); font-size: 0.8rem; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .hero-grid,
  .support-grid,
  .result-grid { grid-template-columns: 1fr; }
  .checker-card { padding: 20px; }
  .page-shell { width: min(100% - 24px, 1120px); }
}
