:root {
  --dark: #202424;
  --dark-2: #171b1b;
  --ink: #151817;
  --text: #343a39;
  --muted: #6f7775;
  --soft: #f7f5ef;
  --soft-2: #eeeae0;
  --line: #ded8ca;
  --white: #ffffff;
  --orange: #ff6e07;
  --orange-hover: #dd5c00;
  --blue: #1f8795;
  --blue-dark: #116570;
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfaf6;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 14px 30px rgba(255, 110, 7, 0.18);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: var(--orange-hover);
  box-shadow: 0 12px 30px rgba(255, 110, 7, 0.2);
  transform: translateY(-1px);
}

.button.light {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.button.light:hover {
  background: #f6f6f2;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 58%, var(--soft) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  display: none;
}

.hero::before {
  top: -190px;
  right: -110px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 38% 62% 44% 56%;
  transform: rotate(-18deg);
}

.hero::after {
  left: -160px;
  bottom: 80px;
  width: 560px;
  height: 420px;
  border: 1px solid rgba(31, 152, 173, 0.78);
  border-radius: 49% 51% 43% 57%;
  transform: rotate(12deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: 74px;
  align-items: center;
  padding: 52px 0 72px;
}

.process > *,
.final-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 3px;
  background: var(--orange);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 36px;
  color: var(--text);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 36px;
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 840px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-item {
  position: relative;
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--line);
}

.credential-item + .credential-item {
  padding-left: 28px;
}

.credential-item:last-child {
  border-right: 0;
}

.credential-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}

.credential-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.credential-link:hover span {
  color: var(--orange);
}

.credential-item strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.credential-item span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.planfact-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

.hero-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(33, 31, 26, 0.08);
}

.hero-card::before {
  display: none;
}

.portrait {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2c3131;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.85;
  object-fit: cover;
  object-position: center top;
}

.consult-card {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft);
}

.consult-card h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.quick-facts {
  display: grid;
  gap: 0;
  min-width: 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
  color: var(--text);
  font-size: 13px;
}

.quick-facts div + div {
  border-top: 1px solid var(--line);
}

.quick-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  justify-self: start;
  white-space: nowrap;
}

.quick-facts strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.quick-link {
  justify-content: flex-end;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  justify-self: end;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-link:hover span {
  color: var(--orange);
}

.quick-label .planfact-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.youtube-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 17px;
  color: #ff0033;
}

.section {
  padding: 84px 0;
}

.section.dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 920px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-bottom: 16px;
}

.ai-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.ai-app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(33, 31, 26, 0.1);
  border-radius: 15px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 22px rgba(33, 31, 26, 0.07);
}

.ai-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.section-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.section-intro p {
  margin: 0;
}

.section-intro p + p {
  margin-top: 14px;
}

.dark .section-intro {
  color: rgba(255, 255, 255, 0.68);
}

.video-widget {
  --video-widget-offset: clamp(20px, 3vw, 42px);
  position: fixed;
  left: calc(var(--video-widget-offset) * -2.4);
  bottom: var(--video-widget-offset);
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.video-widget-frame {
  position: relative;
  overflow: visible;
  width: min(119px, 100%);
  aspect-ratio: 1 / 1;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #d8d7d0;
  box-shadow: 0 8px 21px rgba(17, 19, 19, 0.14);
  transform-origin: left bottom;
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
  pointer-events: none;
}

.video-widget-frame.is-sound {
  box-shadow: 0 12px 32px rgba(17, 19, 19, 0.18);
  transform: scale(1.55);
}

.video-widget-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.video-widget-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

.video-widget-button:hover,
.video-widget-button:focus-visible {
  opacity: 1;
}

.video-widget-frame:not(.is-sound) .video-widget-button {
  opacity: 0.72;
}

.video-widget-button:hover {
  background: transparent;
}

.video-widget-close {
  position: absolute;
  top: -7px;
  right: -13px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 3px 10px rgba(17, 19, 19, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

.video-widget-frame.is-sound .video-widget-close {
  opacity: 0.78;
  pointer-events: auto;
}

.video-widget-close:hover,
.video-widget-close:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.video-widget-close::before,
.video-widget-close::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 19, 19, 0.82);
}

.video-widget-close::before {
  transform: rotate(45deg);
}

.video-widget-close::after {
  transform: rotate(-45deg);
}

.video-widget-play {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 14px rgba(17, 19, 19, 0.1);
}

.video-widget-play::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 13px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--ink);
}

.video-widget-frame.is-playing .video-widget-play::before {
  top: 10px;
  left: 11px;
  width: 3px;
  height: 12px;
  border: 0;
  background: var(--ink);
  box-shadow: 8px 0 0 var(--ink);
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.line-card {
  padding: 26px 28px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.line-card:last-child {
  border-right: 0;
}

.line-card + .line-card {
  padding-left: 28px;
}

.line-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.28;
}

.line-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.result-box {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 44px;
  margin-top: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.result-box h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.result-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 56px;
  align-items: start;
}

.process-main {
  display: grid;
  gap: 28px;
}

.steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  background: var(--white);
}

.step span {
  color: var(--orange);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-panel {
  position: sticky;
  top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(33, 31, 26, 0.06);
}

.price-panel h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.price {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.price-panel p {
  color: var(--muted);
}

.final {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.final::before {
  display: none;
}

.final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.final h2 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--ink);
}

.final p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.final-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.footer {
  padding: 30px 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-note {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
  }

  .hero-grid,
  .process,
  .result-box,
  .final-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-card {
    max-width: 520px;
  }

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

  .line-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .line-card:nth-child(2),
  .line-card:nth-child(3) {
    border-right: 0;
  }

  .price-panel {
    position: static;
  }

  .final-actions {
    justify-items: start;
  }
}

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

  .hero::before,
  .hero::after,
  .final::before {
    display: none;
  }

  .hero-grid,
  .section,
  .final {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    max-width: 340px;
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 350px;
  }

  .credential-item span,
  .section-intro {
    display: block;
    max-width: 340px;
  }

  h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-lead,
  .section-intro,
  .final p {
    font-size: 16px;
  }

  .ai-icons-row {
    gap: 8px;
    margin-bottom: 20px;
  }

  .ai-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .video-widget {
    position: static;
    margin: -18px 0 38px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .video-widget-button {
    opacity: 1;
  }

  .video-widget-frame {
    width: min(105px, 42vw);
    transform-origin: center center;
  }

  .button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    font-size: 16px;
  }

  .credentials-strip {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 12px;
    padding: 9px 10px;
  }

  .quick-link {
    justify-self: start;
    text-align: left;
  }

  .quick-label {
    gap: 6px;
  }

  .quick-link {
    font-size: 12px;
  }

  .quick-label .planfact-icon {
    width: 18px;
    height: 18px;
  }

  .youtube-icon {
    width: 21px;
    height: 15px;
  }

  .credential-item,
  .credential-item + .credential-item {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credential-item:last-child {
    border-bottom: 0;
  }

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

  .line-card,
  .line-card + .line-card {
    padding: 24px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .line-card:last-child {
    border-bottom: 0;
  }

  .result-box,
  .price-panel {
    padding: 24px;
    border-radius: var(--radius);
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

  .step span {
    font-size: 28px;
  }

  .price {
    font-size: 44px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 135, 149, 0.72);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
