/* Radar-aligned public surface for Clip License Hub. */
:root {
  --radar-bg: #f6f8fb;
  --radar-surface: #ffffff;
  --radar-line: #dbe4ef;
  --radar-ink: #111827;
  --radar-midnight: #252238;
  --radar-muted: #64748b;
  --radar-primary: #0891b2;
  --radar-primary-dark: #075985;
  --radar-cyan: #0e9fb4;
  --radar-alert: #c2410c;
  --radar-container: min(1240px, calc(100% - 72px));
  --radar-gutter: max(36px, calc((100% - 1240px) / 2));
}

html,
body {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.05), transparent 320px),
    var(--radar-bg);
  color: var(--radar-ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

h1,
h2,
h3,
.page-title,
.section-title,
.empty-state h2 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.topbar {
  display: flex;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0 var(--radar-gutter);
  border: 0;
  border-bottom: 1px solid var(--radar-line);
  background: var(--radar-surface);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.topbar__label,
.eyebrow,
.section-kicker {
  color: var(--radar-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__title,
.topbar__nav a {
  color: var(--radar-ink);
  font-weight: 900;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__nav a {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.topbar__nav a.is-active,
.topbar__nav a:hover {
  color: var(--radar-primary);
  border: 0;
}

.topbar__nav a.nav-global {
  color: var(--radar-muted);
}

.topbar__nav a.nav-global:hover {
  color: var(--radar-primary);
}

.topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--radar-line);
}

.hero,
.hero--product {
  display: grid;
  width: var(--radar-container);
  margin: 0 auto;
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--radar-line);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 48px;
  align-items: center;
}

.hero-panel,
.hero-panel--aside {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero h1,
h1 {
  max-width: 780px;
  color: var(--radar-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
  writing-mode: horizontal-tb;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--radar-midnight);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.button,
.button-primary,
.button-secondary {
  border: 1px solid var(--radar-primary);
  background: var(--radar-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
}

.button:hover,
.button-primary:hover,
.button-secondary:hover {
  border-color: var(--radar-primary-dark);
  background: var(--radar-primary-dark);
}

.button-ghost {
  border: 1px solid var(--radar-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--radar-ink);
  box-shadow: none;
}

.verify-console {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--radar-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--radar-line);
  color: var(--radar-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.console-head strong {
  color: var(--radar-cyan);
}

.verify-console p {
  color: var(--radar-muted);
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 48px;
  border: 1px solid var(--radar-line);
  border-radius: 12px;
  background: #fff;
  color: var(--radar-ink);
  padding: 0 14px;
}

.guideline-form {
  display: grid;
  gap: 28px;
}

.form-intro,
.policy-builder__intro {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--radar-line);
}

.form-intro h2,
.policy-builder__intro h2 {
  margin: 0;
  color: var(--radar-ink);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.form-intro p,
.policy-builder__intro p {
  max-width: 760px;
  color: var(--radar-muted);
  font-size: 14px;
  line-height: 1.9;
}

.policy-builder {
  display: grid;
  gap: 34px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.choice-section {
  display: grid;
  gap: 14px;
}

.choice-heading {
  display: grid;
  gap: 6px;
}

.choice-heading h3 {
  margin: 0;
  color: var(--radar-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.choice-heading p {
  margin: 0;
  color: var(--radar-muted);
  font-size: 13px;
  line-height: 1.75;
}

.choice-options {
  border-top: 1px solid var(--radar-line);
}

.choice-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--radar-line);
  cursor: pointer;
}

.choice-option input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 4px 0 0;
  padding: 0;
  accent-color: var(--radar-primary);
}

.choice-option span {
  display: grid;
  gap: 4px;
}

.choice-option strong {
  color: var(--radar-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.choice-option small {
  color: var(--radar-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.choice-option input:checked + span strong {
  color: var(--radar-primary-dark);
}

.choice-option input:disabled + span {
  opacity: 0.7;
}

.section {
  padding: 56px 0;
}

.section.split-grid,
.section > #verify-result,
.section > #report-result,
.section > #creator-onboarding-result,
.section > #creator-dashboard-result {
  width: var(--radar-container);
  margin-inline: auto;
}

.guideline-builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.guideline-builder-layout > article {
  max-width: none;
}

.section-white,
.section-tint {
  background: transparent;
}

.section-dark {
  background: var(--radar-ink);
  color: #fff;
}

.split-rule,
.dark-grid,
.final-band {
  width: var(--radar-container);
  margin-inline: auto;
}

.split-rule,
.dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.split-rule h2,
.dark-grid h2,
h2,
.section-title,
.page-title {
  max-width: 720px;
  color: var(--radar-ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.section-dark h2,
.section-dark h3,
.section-dark .comparison-rows span {
  color: #fff;
}

.section-dark p,
.section-dark .comparison-rows p {
  color: #cbd5e1;
}

.data-grid,
.matrix-table,
.public-list,
.feature-list,
.comparison-rows {
  border-top: 1px solid var(--radar-line);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.data-grid > div,
.matrix-table > div,
.feature-row,
.comparison-rows > div,
.public-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--radar-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-row {
  grid-template-columns: 132px minmax(0, 1fr) minmax(120px, 0.25fr);
}

.data-grid span,
.matrix-table span,
.feature-row h3,
.comparison-rows span,
.public-row--head,
.public-row--head span,
.public-row span:first-child {
  color: var(--radar-cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.data-grid strong {
  color: var(--radar-ink);
  font-size: 18px;
}

.data-grid p,
.matrix-table p,
.feature-row p,
.comparison-rows p {
  grid-column: 2;
  color: var(--radar-muted);
  font-size: 13px;
}

.matrix-table a {
  grid-column: 2;
  color: var(--radar-primary);
  font-weight: 900;
}

.public-row:hover,
.matrix-table a:hover {
  color: var(--radar-primary-dark);
}

.final-band {
  margin-bottom: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--radar-line);
  border-bottom: 1px solid var(--radar-line);
  background: transparent;
}

@media (max-width: 1023px) {
  .hero,
  .hero--product,
  .section.split-grid,
  .section > #verify-result,
  .section > #report-result,
  .section > #creator-onboarding-result,
  .section > #creator-dashboard-result,
  .split-rule,
  .dark-grid,
  .final-band {
    width: min(100% - 40px, 1240px);
  }

  .topbar {
    padding-inline: 20px;
  }

  .hero,
  .hero--product,
  .split-rule,
  .dark-grid {
    grid-template-columns: 1fr !important;
  }

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

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

@media (max-width: 640px) {
  .hero,
  .hero--product,
  .section.split-grid,
  .section > #verify-result,
  .section > #report-result,
  .section > #creator-onboarding-result,
  .section > #creator-dashboard-result,
  .split-rule,
  .dark-grid,
  .final-band {
    width: min(100% - 28px, 1240px);
  }

  .topbar {
    display: grid;
    align-items: start;
    width: 100%;
    padding: 12px 14px;
  }

  .topbar__nav {
    overflow-x: visible;
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar__divider {
    display: none;
  }

  .hero,
  .hero--product {
    display: block !important;
    padding: 34px 0 20px;
  }

  .hero h1,
  h1 {
    width: 100%;
    max-width: none !important;
    font-size: 29px !important;
    line-height: 1.35;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: keep-all;
    line-break: strict;
  }

  .lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .verify-console {
    margin-top: 22px;
    padding: 18px;
  }

  .section {
    padding: 44px 0;
  }

  .split-rule h2,
  .dark-grid h2,
  h2,
  .section-title,
  .page-title {
    font-size: 24px;
    line-height: 1.35;
    word-break: keep-all;
    line-break: strict;
  }

  .data-grid > div,
  .matrix-table > div,
  .feature-row,
  .comparison-rows > div,
  .public-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 15px 0;
  }

  .data-grid p,
  .matrix-table p,
  .matrix-table a,
  .feature-row p,
  .comparison-rows p {
    grid-column: 1;
  }

  .button,
  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
