/*
  greeden insurance agency LP
  - No external dependencies
  - SEO-friendly semantic structure in index.html
  - Accessibility: skip link, focus states, reduced motion, contrast/font controls
*/

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --navy-950: #06162f;
  --navy-900: #082254;
  --navy-800: #063179;
  --blue-700: #0757d9;
  --blue-600: #0969ef;
  --cyan-500: #007eb3;
  --cyan-100: #e8f8ff;
  --gold-500: #f6b338;
  --orange-500: #c2410c;
  --green-600: #0b7a4b;
  --purple-500: #5b45d8;
  --ink: #14213d;
  --text: #26324c;
  --muted: #65708a;
  --line: #dce7f7;
  --line-strong: #b5c8e8;
  --surface: #ffffff;
  --surface-soft: #f5f9ff;
  --surface-blue: #eef6ff;
  --shadow-sm: 0 8px 24px rgba(8, 34, 84, .08);
  --shadow-md: 0 18px 50px rgba(8, 34, 84, .14);
  --shadow-lg: 0 28px 90px rgba(8, 34, 84, .22);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --container: 1180px;
  --header-height: 84px;
  --focus: 0 0 0 4px rgba(0, 166, 232, .32), 0 0 0 7px rgba(255, 255, 255, .92);
  --ease-out: cubic-bezier(.2, .85, .2, 1);
  color-scheme: light;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

html[data-font="large"] {
  font-size: 18px;
}

html[data-contrast="high"] {
  --navy-950: #000b1f;
  --navy-900: #00194b;
  --navy-800: #002e8f;
  --blue-700: #004bd0;
  --blue-600: #0057e8;
  --cyan-500: #007eb3;
  --gold-500: #c77700;
  --orange-500: #b93600;
  --green-600: #007a46;
  --ink: #06101f;
  --text: #101827;
  --muted: #38445d;
  --line: #91a9ca;
  --surface-soft: #f0f6ff;
  --surface-blue: #e6f2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 4%, rgba(0, 166, 232, .12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(246, 179, 56, .10), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 42%, #ffffff 100%);
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 87, 217, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 87, 217, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

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

a:not(.button):not(.brand):not(.step-link):hover {
  color: var(--blue-700);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

::selection {
  color: #fff;
  background: var(--blue-700);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  z-index: 9999;
  padding: .8rem 1rem;
  color: #fff;
  background: var(--navy-900);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  z-index: 9998;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-700), var(--gold-500));
  box-shadow: 0 0 20px rgba(0, 166, 232, .45);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.detail-copy h2,
.final-copy h2 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.24;
  letter-spacing: .02em;
}

.section-head p,
.detail-copy p,
.final-copy p {
  margin: 0 0 1.15rem;
}

.section-head > p:last-child,
.detail-copy > p:last-child,
.final-copy > p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  color: var(--blue-700);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-700));
  box-shadow: 0 0 0 6px rgba(0, 166, 232, .12);
  flex: 0 0 auto;
}

.eyebrow span {
  display: inline-flex;
  color: var(--navy-900);
  background: rgba(246, 179, 56, .2);
  padding: .32rem .68rem;
  border: 1px solid rgba(246, 179, 56, .42);
  border-radius: 999px;
}

.button {
  --button-bg: var(--surface);
  --button-color: var(--navy-900);
  --button-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  color: var(--button-color);
  background: var(--button-bg);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s ease, border-color .22s ease;
}

.button::after {
  content: "";
  width: .85em;
  height: .85em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M5 3l5 5-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button--primary {
  --button-bg: linear-gradient(135deg, #a83200, var(--orange-500) 55%, #b93600);
  --button-color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.button--ghost {
  --button-bg: rgba(255, 255, 255, .78);
  --button-color: var(--navy-900);
  --button-border: rgba(7, 87, 217, .3);
  backdrop-filter: blur(14px);
}

.button--light {
  --button-bg: #fff;
  --button-color: var(--navy-900);
}

.button--large {
  min-height: 58px;
  padding: 1rem 1.55rem;
  font-size: 1rem;
}

.caption {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

.lead-line {
  color: var(--navy-900);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

.large-copy {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: .55rem;
  justify-content: center;
  align-items: center;
  margin-top: .6rem;
  color: var(--navy-900);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 900;
}

.large-copy span {
  display: inline-flex;
  padding: .5rem .75rem;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(7, 87, 217, .14);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(8, 34, 84, .06);
}

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(220, 231, 247, .82);
  backdrop-filter: blur(24px);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 46px rgba(8, 34, 84, .1);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 34px;
  padding: .3rem 1rem;
  color: #fff;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-700));
  font-size: .82rem;
  line-height: 1.3;
}

.notice span {
  display: inline-flex;
  padding: .2rem .55rem;
  color: var(--navy-900);
  background: #fff;
  border-radius: 999px;
  font-weight: 900;
}

.notice strong {
  font-weight: 700;
}

.header-inner {
  width: min(calc(100% - 32px), 1280px);
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 162px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.1rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .2rem .45rem;
  color: var(--navy-900);
  font-size: .92rem;
  font-weight: 800;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: .45rem;
  right: .45rem;
  bottom: .18rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.header-actions .button {
  min-height: 42px;
  padding: .72rem 1rem;
  font-size: .88rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  width: auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem .8rem;
  color: var(--navy-900);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__line {
  position: relative;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__line::before {
  top: -6px;
}

.nav-toggle__line::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::after {
  transform: rotate(-90deg) translateX(6px);
}

/* Hero */
.hero {
  padding-top: clamp(50px, 8vw, 96px);
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(232, 248, 255, .96), rgba(255, 255, 255, .84) 46%, rgba(232, 242, 255, .92)),
    radial-gradient(circle at 75% 42%, rgba(0, 166, 232, .22), transparent 34rem);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 76vw;
  height: 76vw;
  border-radius: 50%;
  background: conic-gradient(from var(--angle), rgba(0, 166, 232, .36), rgba(7, 87, 217, .18), rgba(246, 179, 56, .20), rgba(0, 166, 232, .36));
  filter: blur(56px);
  opacity: .74;
  animation: rotateGradient 22s linear infinite;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(7, 87, 217, .22) 1.5px, transparent 2px),
    linear-gradient(120deg, rgba(7, 87, 217, .10) 1px, transparent 1px),
    linear-gradient(30deg, rgba(0, 166, 232, .08) 1px, transparent 1px);
  background-size: 82px 82px, 130px 130px, 160px 160px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 92%, transparent);
  opacity: .85;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .7;
  animation: float 8s ease-in-out infinite;
}

.orb--one {
  width: 12rem;
  height: 12rem;
  left: 4%;
  top: 20%;
  background: radial-gradient(circle, rgba(246, 179, 56, .2), transparent 68%);
}

.orb--two {
  width: 18rem;
  height: 18rem;
  right: 8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(0, 166, 232, .22), transparent 68%);
  animation-delay: -3s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  color: var(--navy-900);
  font-size: clamp(2.45rem, 6.3vw, 5.55rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.hero-copy h1 span {
  display: block;
  width: fit-content;
  margin-top: .25rem;
  color: var(--blue-700);
}

.hero-lead {
  margin: 0 0 1.15rem;
  color: var(--navy-800);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.55;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 1.4rem;
  color: var(--text);
  font-weight: 500;
}

.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: 680px;
  margin: 0 0 1.55rem;
  padding: 0;
  list-style: none;
}

.hero-checks li,
.feature-list li,
.panel-checks li,
.ba-card li,
.footer-notes li {
  position: relative;
  padding-left: 1.85rem;
}

.hero-checks li {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: .75rem .95rem .75rem 2.7rem;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(7, 87, 217, .14);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(8, 34, 84, .06);
  font-weight: 900;
}

.hero-checks li::before,
.feature-list li::before,
.panel-checks li::before,
.ba-card li::before,
.footer-notes li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .52em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-700));
  box-shadow: 0 0 0 4px rgba(0, 166, 232, .10);
}

.hero-checks li::before {
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
}

.hero-checks li::after,
.feature-list li::after,
.panel-checks li::after,
.ba-card li::after,
.footer-notes li::after {
  content: "";
  position: absolute;
  left: .45rem;
  top: calc(.52em + .25rem);
  width: .46rem;
  height: .27rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero-checks li::after {
  left: 1.3rem;
  top: 50%;
  transform: translateY(-60%) rotate(-45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-bottom: .9rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(14px, 2.5vw, 24px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(7, 87, 217, .0), rgba(0, 166, 232, .86), rgba(246, 179, 56, .88), rgba(7, 87, 217, .0));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateGradient 12s linear infinite;
  pointer-events: none;
}

.visual-card img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-xl) - 12px);
  box-shadow: 0 22px 60px rgba(8, 34, 84, .22);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: .15rem;
  min-width: 150px;
  padding: .85rem 1rem;
  border-radius: 18px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  animation: float 5.5s ease-in-out infinite;
}

.floating-card span {
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.floating-card strong {
  font-size: .9rem;
  line-height: 1.4;
}

.floating-card--cms {
  left: -5px;
  bottom: 60px;
}

.floating-card--doctor {
  right: -18px;
  top: 42px;
  animation-delay: -2.6s;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.metric {
  display: grid;
  gap: .1rem;
  justify-items: center;
  padding: .95rem .5rem;
  border-radius: 20px;
  color: var(--navy-900);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(7,87,217,.12);
  box-shadow: 0 10px 24px rgba(8, 34, 84, .08);
}

.metric span {
  font-size: .78rem;
  font-weight: 800;
}

.metric strong {
  color: var(--orange-500);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
}

/* Problem */
.problem {
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.problem-card,
.why-card,
.reason-card,
.recommend-item,
.flow-item,
.ba-card,
.detail-panel,
.preview-card {
  position: relative;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(7, 87, 217, .12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.problem-card {
  min-height: 260px;
  padding: 1.55rem;
  overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s ease;
}

.problem-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 166, 232, .12), transparent 70%);
}

.problem-card:hover,
.reason-card:hover,
.recommend-item:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(7, 87, 217, .22);
}

.problem-card img {
  width: 58px;
  margin-bottom: .75rem;
}

.problem-card h3,
.reason-card h3,
.why-card h3,
.detail-panel h3,
.flow-item h3,
.ba-card h3 {
  margin: 0 0 .65rem;
  color: var(--navy-900);
  font-size: 1.15rem;
  line-height: 1.45;
}

.problem-card p,
.reason-card p,
.why-card p,
.detail-panel p,
.flow-item p,
.ba-card p {
  margin: 0;
  color: var(--text);
}

.problem-card--answer {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 34, 84, .96), rgba(7, 87, 217, .92)),
    radial-gradient(circle at 90% 0%, rgba(0, 166, 232, .4), transparent 28rem);
  border: 1px solid rgba(255, 255, 255, .2);
}

.problem-card--answer h3,
.problem-card--answer p {
  color: #fff;
}

.tag {
  display: inline-flex;
  padding: .32rem .6rem;
  margin-bottom: .8rem;
  color: var(--navy-900);
  background: #fff;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Steps */
.steps {
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 0%, rgba(0, 166, 232, .12), transparent 30rem),
    linear-gradient(180deg, var(--surface-soft), #fff);
}

.step-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-link {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}

.step-link:nth-child(2) {
  background: linear-gradient(135deg, #005e91, var(--cyan-500));
}

.step-link:nth-child(3) {
  background: linear-gradient(135deg, #09623e, var(--green-600));
}

.step-link:nth-child(4) {
  background: linear-gradient(135deg, #3e2ca1, var(--purple-500));
}

.step-link::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  z-index: -1;
}

.step-link::after {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  align-self: flex-end;
  background: currentColor;
  opacity: .9;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step-link:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.step-link span {
  display: inline-flex;
  width: fit-content;
  padding: .3rem .65rem;
  color: var(--navy-900);
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.step-link strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

/* Step details */
.step-detail {
  background: #fff;
}

.step-detail--alt {
  background: linear-gradient(180deg, var(--surface-soft), #fff);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.detail-grid--reverse {
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.1fr);
}

.detail-grid--reverse .detail-copy {
  grid-column: 2;
}

.detail-grid--reverse .detail-panel {
  grid-column: 1;
  grid-row: 1;
}

.detail-copy h2 span,
.final-copy h2 span {
  color: var(--blue-700);
}

.detail-copy h3 {
  margin: 1.6rem 0 .85rem;
  color: var(--navy-900);
  font-size: 1.18rem;
}

.feature-list,
.panel-checks,
.ba-card ul,
.footer-notes,
.footer-links {
  display: grid;
  gap: .65rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

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

.feature-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-top: .2rem;
  padding-bottom: .2rem;
  color: var(--navy-900);
  font-weight: 700;
}

.detail-panel {
  padding: clamp(1.5rem, 4vw, 2rem);
  overflow: hidden;
}

.detail-panel > img {
  width: 74px;
  margin-bottom: .8rem;
}

.detail-panel h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.panel-checks {
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.panel-checks li {
  color: var(--navy-900);
  font-weight: 700;
}

.mini-screen,
.cms-demo,
.domain-map,
.doctor-chart {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin: 1.25rem 0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(238, 246, 255, .98)),
    radial-gradient(circle at 80% 20%, rgba(0, 166, 232, .24), transparent 18rem);
  border: 1px solid rgba(7, 87, 217, .14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.64);
  overflow: hidden;
}

.mini-screen::before {
  content: "";
  position: absolute;
  inset: 22px 24px auto;
  height: 30px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-700));
}

.mini-screen span {
  position: absolute;
  display: block;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(7, 87, 217, .12);
  box-shadow: 0 10px 30px rgba(8, 34, 84, .08);
}

.mini-screen span:nth-child(1) { left: 24px; top: 72px; width: calc(58% - 24px); height: 98px; }
.mini-screen span:nth-child(2) { right: 24px; top: 72px; width: calc(42% - 36px); height: 98px; }
.mini-screen span:nth-child(3) { left: 24px; right: 24px; top: 184px; height: 24px; }
.mini-screen span:nth-child(4) { left: 24px; right: 35%; top: 220px; height: 24px; }

.cms-toolbar {
  display: flex;
  gap: .45rem;
  height: 44px;
  padding: 14px 18px;
  background: var(--navy-900);
}

.cms-toolbar span {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #fff;
  opacity: .82;
}

.cms-demo p {
  height: 14px;
  margin: 20px 24px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(7,87,217,.20), rgba(0,166,232,.16));
}

.cms-demo p:nth-of-type(2) { width: 70%; }
.cms-demo p.short { width: 46%; }

.ai-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: .7rem .9rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(7, 87, 217, .24);
}

.domain-map {
  min-height: 260px;
}

.domain-map::before,
.domain-map::after {
  content: "";
  position: absolute;
  inset: 50% 20% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(7, 87, 217, .42), transparent);
}

.domain-map::after {
  transform: rotate(90deg);
}

.node {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(7, 87, 217, .28);
  box-shadow: var(--shadow-sm);
}

.node::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--cyan-500));
}

.node--main {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-color: var(--gold-500);
}

.node--main::before {
  inset: 20px;
  background: linear-gradient(135deg, var(--gold-500), var(--orange-500));
}

.node:nth-child(2) { left: 17%; top: 18%; }
.node:nth-child(3) { right: 17%; top: 18%; }
.node:nth-child(4) { left: 17%; bottom: 18%; }
.node:nth-child(5) { right: 17%; bottom: 18%; }

.doctor-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1rem;
  min-height: 260px;
  padding: 2rem 2rem 2.6rem;
}

.doctor-chart::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2.2rem;
  height: 2px;
  background: rgba(7, 87, 217, .18);
}

.doctor-chart span {
  position: relative;
  width: clamp(28px, 5vw, 44px);
  height: var(--h);
  min-height: 64px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, var(--cyan-500), var(--blue-700));
  box-shadow: 0 12px 28px rgba(7, 87, 217, .20);
  animation: barPulse 3.4s ease-in-out infinite;
}

.doctor-chart span:nth-child(2) { animation-delay: -.4s; }
.doctor-chart span:nth-child(3) { animation-delay: -.8s; }
.doctor-chart span:nth-child(4) { animation-delay: -1.2s; }
.doctor-chart span:nth-child(5) { animation-delay: -1.6s; }

/* Why */
.why {
  background:
    radial-gradient(circle at 90% 10%, rgba(246, 179, 56, .14), transparent 22rem),
    linear-gradient(180deg, #fff, var(--surface-soft));
}

.why-grid,
.reasons-grid,
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.why-card {
  padding: 1.45rem;
  overflow: hidden;
}

.why-card span,
.reason-number,
.flow-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(7, 87, 217, .20);
}

.why-card:nth-child(2) span { background: linear-gradient(135deg, #006c96, var(--cyan-500)); }
.why-card:nth-child(3) span { background: linear-gradient(135deg, #087444, var(--green-600)); }
.why-card:nth-child(4) span { background: linear-gradient(135deg, #4f35c7, var(--purple-500)); }

/* Before/After */
.before-after {
  background: #fff;
}

.ba-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.ba-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.ba-card h3 {
  font-size: 1.45rem;
}

.ba-card--before {
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.ba-card--before li::before {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
}

.ba-card--before li::after {
  border-left: 0;
  border-bottom: 0;
  left: .44rem;
  top: calc(.52em + .18rem);
  width: .42rem;
  height: .42rem;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 2l8 8M10 2 2 10' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}

.ba-card--after {
  background: linear-gradient(135deg, rgba(232, 248, 255, .84), rgba(255,255,255,.92));
  border-color: rgba(0, 166, 232, .22);
}

.ba-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.preview-card {
  padding: clamp(.75rem, 2vw, 1.15rem);
  overflow: hidden;
}

.preview-card img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-lg) - 12px);
}

/* Recommend / reasons */
.recommend {
  background: linear-gradient(180deg, var(--surface-soft), #fff);
}

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

.recommend-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 120px;
  padding: 1.2rem;
  color: var(--navy-900);
  font-weight: 800;
}

.recommend-item img {
  width: 58px;
}

.reasons {
  background:
    radial-gradient(circle at 16% 16%, rgba(0, 166, 232, .14), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(246, 179, 56, .14), transparent 22rem),
    #fff;
}

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

.reason-card {
  padding: 1.55rem;
  overflow: hidden;
}

.reason-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-700), var(--gold-500));
}

.reason-number {
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
}

/* Flow */
.flow {
  background:
    linear-gradient(135deg, rgba(8, 34, 84, .96), rgba(7, 87, 217, .92)),
    radial-gradient(circle at 90% 10%, rgba(0, 166, 232, .6), transparent 28rem);
  color: #fff;
  overflow: hidden;
}

.flow .section-head h2,
.flow .section-head p,
.flow .eyebrow {
  color: #fff;
}

.flow .eyebrow::before {
  background: var(--gold-500);
  box-shadow: 0 0 0 6px rgba(246, 179, 56, .18);
}

.flow-list {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-item {
  padding: 1.25rem;
  color: var(--text);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255,255,255,.44);
}

.flow-item > span {
  height: auto;
  min-height: 2rem;
  padding: .35rem .65rem;
  margin-bottom: .85rem;
  color: var(--navy-900);
  background: var(--gold-500);
  font-size: .75rem;
}

.flow-item h3 {
  font-size: 1.04rem;
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}

.faq-list {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: .85rem;
}

.faq-list details {
  border: 1px solid rgba(7, 87, 217, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  color: var(--navy-900);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  font-size: 1.2rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
}

/* Final CTA */
.final-cta {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 22, 47, .98), rgba(8, 34, 84, .96) 52%, rgba(7, 87, 217, .92)),
    radial-gradient(circle at 18% 12%, rgba(0, 166, 232, .52), transparent 28rem),
    radial-gradient(circle at 82% 80%, rgba(246, 179, 56, .3), transparent 28rem);
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  opacity: .45;
}

.final-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.final-copy h2,
.final-copy h2 span,
.final-copy p,
.final-copy .eyebrow {
  color: #fff;
}

.final-copy .eyebrow::before {
  background: var(--gold-500);
  box-shadow: 0 0 0 6px rgba(246, 179, 56, .2);
}

.final-note {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.final-note h3 {
  margin: 0 0 1rem;
  color: var(--navy-900);
}


/* Footer */
.site-footer {
  color: #d8e7ff;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr) minmax(180px, .5fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 56px 0 36px;
}

.site-footer p {
  margin: 1rem 0 0;
}

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

.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.footer-notes {
  gap: .45rem;
  margin: 0;
  font-size: .82rem;
  line-height: 1.65;
}

.footer-notes li::before {
  background: var(--gold-500);
  box-shadow: none;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.copyright {
  padding: 18px 20px 28px;
  color: #aec7eb;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .82rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateGradient {
  to { --angle: 360deg; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); filter: brightness(1); }
  50% { transform: scaleY(1.06); filter: brightness(1.06); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

html[data-motion="reduced"] .reveal {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 42px);
    display: grid;
    gap: .25rem;
    justify-self: auto;
    padding: 1rem;
    border: 1px solid rgba(7, 87, 217, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transform: translateY(-14px) scale(.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s var(--ease-out), visibility .22s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    min-height: 48px;
    padding: .7rem .8rem;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: var(--surface-blue);
  }

  .site-nav a::after {
    display: none;
  }

  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding-bottom: .75rem;
  }

  .header-inner {
    min-height: auto;
    padding: .9rem 0 .2rem;
  }

  :root {
    --header-height: 96px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-grid,
  .detail-grid--reverse,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid--reverse .detail-copy,
  .detail-grid--reverse .detail-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
  }

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

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

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

  .flow-item:last-child {
    grid-column: 1 / -1;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .notice {
    flex-direction: column;
    gap: .35rem;
    text-align: center;
  }

  .brand img {
    width: 142px;
  }

  .header-actions {
    display: none;
  }

  :root {
    --header-height: 76px;
  }

  .site-nav {
    top: calc(var(--header-height) + 38px);
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-checks,
  .two-columns,
  .problem-grid,
  .reasons-grid,
  .recommend-grid,
  .step-ribbon,
  .why-grid,
  .ba-grid,
  .flow-list,
  .footer-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 14vw, 4.2rem);
  }

  .floating-card {
    display: none;
  }

  .ba-arrow {
    width: 48px;
    height: 48px;
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .large-copy {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .recommend-item {
    grid-template-columns: 52px 1fr;
  }

  .a11y-panel {
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(3, 1fr);
    width: calc(100vw - 20px);
    border-radius: 16px;
  }

  .a11y-panel button {
    font-size: .72rem;
    line-height: 1.35;
  }

  .site-footer {
    padding-bottom: 82px;
  }
}

@media (max-width: 460px) {
  body {
    letter-spacing: .01em;
  }

  .section {
    padding: 64px 0;
  }

  .hero-checks li {
    border-radius: 20px;
  }

  .visual-card,
  .detail-panel,
  .problem-card,
  .reason-card,
  .why-card,
  .ba-card,
  .preview-card {
    border-radius: 22px;
  }

  .flow-item,
  .recommend-item {
    border-radius: 20px;
  }
}
