:root {
  --blue-900: #082558;
  --blue-800: #0a367f;
  --blue-700: #0057d9;
  --blue-600: #1468e8;
  --blue-500: #2b7dff;
  --blue-200: #cfe1ff;
  --blue-100: #edf5ff;
  --cyan-100: #eaf8ff;
  --ink: #0c244d;
  --muted: #51657f;
  --line: #d8e5f6;
  --surface: #ffffff;
  --soft: #f6faff;
  --yellow: #ffd84a;
  --yellow-dark: #e3a900;
  --green: #0dba72;
  --shadow: 0 18px 50px rgba(8, 37, 88, 0.12);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
  background:
    linear-gradient(180deg, rgba(234, 248, 255, 0.7), transparent 420px),
    #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
}

.text-nowrap {
  white-space: nowrap;
}

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

.hero-title-first {
  display: inline;
}

.hero-title-first span {
  display: inline;
}

.hero-tool-line {
  display: inline;
}

.mobile-break {
  display: inline;
}

.tool-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  max-width: 100%;
  margin-right: 0.08em;
  line-height: 1;
  vertical-align: -0.08em;
}

.tool-logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: min(52vw, 270px);
  height: 0.82em;
}

.tool-separator {
  flex: 0 0 auto;
  color: #7891b4;
  font-size: 0.86em;
  font-weight: 900;
  line-height: 1;
}

.codex-wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 78px;
  padding: 10px clamp(20px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 229, 246, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-900);
}

.brand-lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.service-logo-image {
  display: block;
  width: auto;
  height: clamp(34px, 3.1vw, 44px);
}

.service-name {
  color: var(--blue-900);
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.brand-by {
  color: #5b6f8c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(112px, 10vw, 146px);
  height: auto;
}

.site-header .brand-by {
  color: #0d59d7;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 900;
}

.site-header .brand-logo {
  width: clamp(58px, 5.5vw, 78px);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: #1a3b6d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a + a::before,
.site-footer nav a + a::before {
  margin-right: 18px;
  color: #9ab1ce;
  content: "/";
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 87, 217, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) 0 54px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 4px 12px;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(32px, 3.3vw, 40px);
  line-height: 1.36;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 22px;
  color: #38506e;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-badges,
.final-cta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #2c578f;
  font-size: 13px;
  font-weight: 800;
}

.hero-badges li,
.final-cta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badges li::before,
.final-cta li::before,
.check-list li::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  content: "✓";
  background: var(--blue-700);
  border-radius: 50%;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(420px, 100%);
  min-height: 66px;
  margin-top: 26px;
  padding: 0 28px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #2786ff, #0058d8);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(0, 87, 217, 0.28);
}

.primary-button svg,
.secondary-button svg,
.step-options svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-note {
  margin: 14px 0 0 74px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.support-note::before {
  margin-right: 8px;
  content: "◎";
  color: var(--blue-700);
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mock-panel,
.small-card,
.result-card,
.menu-card,
.topic-grid article {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mock-panel {
  padding: 18px;
}

.mock-panel h2 {
  margin: 0 0 13px;
  font-size: 15px;
  line-height: 1.45;
}

.video-panel,
.summary-panel {
  grid-column: 1;
}

.metrics-panel,
.trend-panel,
.channel-panel {
  grid-column: 2;
}

.video-panel {
  grid-row: span 2;
}

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

.video-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #a9cdf5, #f8fbff);
  border: 1px solid #cadaf0;
  border-radius: 6px;
}

.video-tile::after {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 30px;
  height: 10px;
  content: "";
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

.video-tile.product {
  background:
    radial-gradient(circle at 55% 42%, rgba(255, 231, 135, 0.95) 0 12px, transparent 13px),
    linear-gradient(90deg, transparent 42%, rgba(154, 97, 32, 0.75) 43% 58%, transparent 59%),
    linear-gradient(180deg, #9fd7ff, #eef7ff 62%, #d7c2a8);
}

.video-tile.product-alt {
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 225, 101, 0.95) 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 45%, rgba(147, 92, 39, 0.82) 46% 58%, transparent 59%),
    linear-gradient(180deg, #c3e7ff, #fff5db 65%, #c7b49d);
}

.video-tile.person-a {
  background:
    radial-gradient(circle at 52% 28%, #f1d0b7 0 11px, transparent 12px),
    linear-gradient(90deg, transparent 38%, #132c4b 39% 64%, transparent 65%),
    linear-gradient(180deg, #f9fbff 0 54%, #adc9df 55% 100%);
}

.video-tile.person-b {
  background:
    radial-gradient(circle at 54% 31%, #e9c5a9 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 42%, #1d3d65 43% 62%, transparent 63%),
    linear-gradient(180deg, #e9f3ff 0 50%, #d3bd9e 51% 100%);
}

.video-tile.person-c {
  background:
    radial-gradient(circle at 50% 30%, #e5bf9d 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 40%, #ffffff 41% 61%, transparent 62%),
    linear-gradient(180deg, #e4f2ff 0 55%, #b8c9d6 56% 100%);
}

.video-tile.studio {
  background:
    linear-gradient(90deg, transparent 56%, rgba(27, 53, 89, 0.65) 57% 66%, transparent 67%),
    linear-gradient(180deg, #f7fbff 0 58%, #d8e4ee 59% 100%);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-row div {
  min-width: 0;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin-top: 2px;
  color: #14294a;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.metric-row em {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.line-chart {
  width: 100%;
  height: auto;
}

.grid-line {
  fill: none;
  stroke: #e5eefb;
  stroke-width: 2;
}

.chart-line,
.dashboard-preview polyline {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 700;
}

.summary-panel p {
  margin: 0 0 12px;
  color: #3c5575;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.summary-panel a {
  display: inline-flex;
  padding: 5px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--blue-700);
  border-radius: 5px;
}

.channel-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.channel-panel h2 {
  grid-column: 1 / -1;
}

.donut,
.small-donut {
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#0057d9 0 42%, #2b7dff 42% 71%, #93bfff 71% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 39%, #000 40%);
  mask: radial-gradient(circle, transparent 0 39%, #000 40%);
}

.channel-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
  color: #3e5572;
  font-size: 11px;
  font-weight: 700;
}

.channel-panel li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.facebook {
  background: #0057d9;
}

.instagram {
  background: #2b7dff;
}

.audience {
  background: #93bfff;
}

.section {
  padding: 46px 0;
}

.section-heading {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #102a54;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.45;
}

.section-heading p {
  margin: 4px 0 0;
  color: #213a5c;
  font-size: 17px;
  font-weight: 800;
}

.pains,
.diagnosis,
.steps {
  background:
    linear-gradient(180deg, rgba(237, 245, 255, 0.72), rgba(255, 255, 255, 0.9)),
    #fff;
  border-top: 1px solid rgba(216, 229, 246, 0.8);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.small-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 260px;
  padding: 27px 20px 24px;
  text-align: center;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 50%;
}

.icon-circle svg,
.topic-grid svg,
.step-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-card h3 {
  margin: 0 0 11px;
  color: #112b54;
  font-size: 19px;
  line-height: 1.55;
}

.small-card p {
  margin: 0;
  color: #3d5676;
  font-size: 14px;
  font-weight: 700;
}

.center-note {
  width: min(var(--container), calc(100% - 40px));
  margin: 28px auto 0;
  color: #203b62;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.center-note::first-letter {
  color: var(--blue-700);
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 40px;
  align-items: stretch;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.check-list {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  color: #2b4468;
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 230px;
  padding: 34px;
}

.bulb {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #fff5ad 0 22%, #ffd84a 23% 35%, transparent 36%);
  border: 6px solid #7aa7ff;
  border-radius: 50%;
}

.bulb::after {
  position: absolute;
  left: 41px;
  bottom: 24px;
  width: 18px;
  height: 18px;
  content: "";
  background: #e7b831;
  border-radius: 3px 3px 8px 8px;
}

.result-card p {
  margin: 0;
  color: #183153;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.55;
}

.result-card strong {
  color: var(--blue-700);
}

.workshop {
  background: #fff;
}

.select-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(820px, calc(100% - 40px));
  min-height: 48px;
  margin: 0 auto -24px;
  padding: 0 26px;
  color: var(--blue-700);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 900;
  text-align: center;
  background: #fff;
  border: 2px solid var(--blue-200);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 87, 217, 0.09);
}

.select-ribbon::before {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: 12px;
  color: #fff;
  content: "✓";
  background: var(--blue-700);
  border-radius: 50%;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 16px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-card {
  padding: 26px;
  box-shadow: none;
}

.menu-title {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.menu-title span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  border-radius: 7px;
}

.menu-title h3 {
  margin: 0 0 6px;
  color: #152b4d;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.35;
}

.menu-title p {
  margin: 0;
  color: #3c5574;
  font-size: 15px;
  font-weight: 700;
}

.creative-preview,
.dashboard-preview {
  display: grid;
  min-height: 250px;
  margin-bottom: 22px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.creative-preview {
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.phone-frame {
  display: grid;
  place-items: center;
  width: 112px;
  height: 220px;
  padding: 8px;
  background: #0a2145;
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(10, 33, 69, 0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 218, 85, 0.95) 0 14px, transparent 15px),
    linear-gradient(90deg, transparent 36%, rgba(143, 96, 45, 0.85) 37% 62%, transparent 63%),
    linear-gradient(180deg, #99d7ff, #f3fbff 55%, #d9c0a5);
  border-radius: 20px;
}

.creative-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.creative-mosaic .summary-strip {
  grid-column: 1 / -1;
  height: 88px;
  background:
    linear-gradient(90deg, rgba(0, 87, 217, 0.92) 0 42%, transparent 43%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 7px, transparent 8px 17px),
    #173d72;
  border-radius: 7px;
}

.dashboard-preview {
  grid-template-columns: 1fr 150px;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.mini-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-metrics strong {
  padding: 10px;
  color: #122a50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-preview svg {
  width: 100%;
  height: 110px;
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.bar-row {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 110px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.bar-row span {
  flex: 1;
  min-width: 10px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  border-radius: 4px 4px 0 0;
}

.bar-row span:nth-child(1) { height: 22%; }
.bar-row span:nth-child(2) { height: 35%; }
.bar-row span:nth-child(3) { height: 48%; }
.bar-row span:nth-child(4) { height: 61%; }
.bar-row span:nth-child(5) { height: 88%; }
.bar-row span:nth-child(6) { height: 72%; }

.small-donut {
  width: 92px;
  align-self: center;
  justify-self: center;
}

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

.feature-cols h4 {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 12px;
  color: #fff;
  font-size: 14px;
  background: var(--blue-700);
  border-radius: 5px;
}

.feature-cols ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #284261;
  font-size: 14px;
  font-weight: 700;
}

.feature-cols li {
  display: flex;
  gap: 8px;
}

.feature-cols li::before {
  content: "・";
  color: var(--blue-700);
  font-weight: 900;
}

.caution {
  margin: 24px auto 0;
  color: #ff527a;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.step-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-chain::after {
  position: absolute;
  top: 92px;
  left: calc(50% - 35px);
  width: 70px;
  height: 3px;
  content: "";
  background: var(--blue-700);
}

.step-chain li {
  position: relative;
  text-align: center;
}

.step-number,
.step-options span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  background: var(--blue-700);
  border-radius: 50%;
}

.step-number {
  position: absolute;
  left: 30px;
  top: 0;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 20px auto 14px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 50%;
}

.step-icon svg {
  width: 74px;
  height: 74px;
}

.step-chain strong {
  display: block;
  color: var(--blue-700);
  font-size: 20px;
}

.step-chain p,
.step-options p {
  margin: 4px 0 0;
  color: #3a5575;
  font-size: 14px;
  font-weight: 700;
}

.step-options {
  display: grid;
  gap: 14px;
}

.step-options a {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(8, 37, 88, 0.08);
}

.step-options strong {
  color: var(--blue-700);
  font-size: 20px;
  line-height: 1.35;
}

.topics {
  background: #fff;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topic-grid article {
  display: grid;
  place-items: center;
  min-height: 155px;
  padding: 16px 12px;
  color: var(--blue-700);
  text-align: center;
  box-shadow: none;
}

.topic-grid h3 {
  margin: 8px 0 0;
  color: var(--blue-700);
  font-size: 14px;
  line-height: 1.35;
}

.final-cta {
  padding: clamp(52px, 8vw, 78px) 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(58, 132, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #063884, #0057d9 48%, #003e9d);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.55;
}

.final-cta p {
  margin: 16px 0 4px;
  font-size: 19px;
  font-weight: 800;
}

.secondary-button {
  color: #082558;
  background: linear-gradient(180deg, #ffe677, var(--yellow));
  box-shadow: 0 18px 35px rgba(255, 216, 74, 0.24);
}

.final-cta ul {
  justify-content: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.final-cta li::before {
  color: #082558;
  background: var(--yellow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 56px);
  color: #fff;
  background: #082558;
}

.footer-brand {
  color: #fff;
}

.footer-brand .service-name {
  color: #fff;
}

.footer-brand .brand-by {
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.site-footer nav a + a::before {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 760px;
  }

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

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

  .menu-grid,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .step-chain {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 64px;
    padding: 12px 16px;
    gap: 10px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand-by {
    font-size: 11px;
  }

  .site-header .brand-logo {
    width: 46px;
  }

  .site-header .brand-by {
    font-size: 9px;
  }

  .brand {
    justify-content: center;
    gap: 9px;
  }

  .brand-lockup {
    flex-direction: column;
    gap: 2px;
  }

  .service-logo-image {
    height: 36px;
    max-width: min(100%, 320px);
  }

  .service-name {
    font-size: 20px;
  }

  .header-cta {
    width: 100%;
    min-height: 32px;
    padding: 0 11px;
    font-size: 10px;
  }

  .hero {
    width: min(calc(100% - 28px), var(--container));
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .tool-lockup {
    gap: 8px;
    margin-top: 0.18em;
    vertical-align: -0.04em;
  }

  .hero-tool-line,
  .hero-tool-suffix,
  .mobile-break {
    display: block;
  }

  .tool-logo {
    max-width: min(49vw, 184px);
    height: 0.64em;
  }

  .codex-wordmark {
    font-size: 0.76em;
  }

  .lead {
    font-size: 15px;
  }

  .hero-visual,
  .diagnosis-layout,
  .pain-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-first,
  .hero-title-first span {
    display: block;
  }

  .metrics-panel,
  .trend-panel,
  .channel-panel,
  .video-panel,
  .summary-panel {
    grid-column: auto;
  }

  .channel-panel {
    grid-template-columns: 110px 1fr;
  }

  .primary-button,
  .secondary-button {
    min-height: 58px;
    font-size: 17px;
  }

  .support-note {
    margin-left: 0;
    text-align: center;
  }

  .section {
    padding: 38px 0;
  }

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

  .result-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .menu-grid {
    width: calc(100% - 24px);
    padding: 50px 10px 16px;
  }

  .menu-card {
    padding: 18px;
  }

  .menu-title {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .menu-title span {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .creative-preview {
    grid-template-columns: 92px 1fr;
    padding: 14px;
  }

  .phone-frame {
    width: 88px;
    height: 174px;
    border-radius: 22px;
  }

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

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .bar-row {
    height: 120px;
  }

  .small-donut {
    width: 110px;
  }

  .feature-cols,
  .step-chain {
    grid-template-columns: 1fr;
  }

  .step-chain {
    gap: 26px;
  }

  .step-chain::after {
    display: none;
  }

  .step-options a {
    grid-template-columns: 36px 1fr 24px;
    min-height: 98px;
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand {
    justify-content: center;
  }

  .header-cta {
    width: 100%;
  }

  .hero-badges,
  .final-cta ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  h1 {
    font-size: 24px;
    line-height: 1.48;
  }

  .lead {
    font-size: 14px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .channel-panel {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 150px;
    margin: 0 auto;
  }
}
