:root {
  --primary: #152B37;
  --accent: #8BD2E9;
  --background: #f6f8f9;
  --surface: #ffffff;
  --line: #d8e0e5;
  --muted: #667781;
  --soft: #eef5f8;
  --soft-2: #f8fbfc;
  --warning: #9f5b16;
  --danger: #9a3412;
  --ok: #1f6f56;
  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 22px 55px rgba(21, 43, 55, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8f9 360px),
    var(--background);
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

button,
select {
  font: inherit;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.toolbar button,
.cta-row button {
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
}

.cta-row button.secondary {
  background: white;
  color: var(--primary);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  max-width: 100%;
  margin: 28px auto 56px;
}

.hero,
.card,
.identity-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(26px, 4vw, 46px);
  margin-bottom: 18px;
  border-radius: 22px;
}

.offer-hero {
  position: relative;
  overflow: hidden;
}

.offer-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.brand-row,
.section-head,
.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 174px;
  height: auto;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-pills span,
.soft-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--primary);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 58px);
  align-items: end;
  margin-top: clamp(48px, 8vw, 90px);
}

.brand-row > *,
.hero-content > *,
.identity-strip > *,
.summary-grid > *,
.price-payment-grid > *,
.proof-grid > *,
.document-grid > *,
.benefit-grid > *,
.profile-layout > *,
.technical-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 790px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-intro {
  max-width: 650px;
  color: #39525f;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.price-card {
  border: 1px solid #c8d8df;
  border-radius: 18px;
  background: #fbfdfe;
  min-width: 0;
  padding: 22px;
}

.price-card strong {
  display: block;
  margin: 10px 0 5px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.price-card span,
.price-card p {
  color: var(--muted);
}

.price-card p {
  margin: 12px 0 0;
}

.demo-note,
.notice,
.footer-note {
  border: 1px solid #c7dce5;
  background: #f7fbfd;
  color: #314854;
}

.demo-note {
  margin: 26px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-small);
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius);
}

.identity-strip div {
  background: white;
  padding: 16px 18px;
}

.identity-strip span,
.detail-item span,
.document-item span,
.proof-card span,
.price-line span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.identity-strip strong,
.detail-item strong,
.document-item strong,
.proof-card strong,
.price-line strong {
  display: block;
  margin-top: 5px;
}

.card {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
}

.intro-card {
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.summary-grid p,
.large-copy,
.profile-summary {
  color: #334b57;
  font-size: 1.02rem;
}

.check-list,
.dash-list,
.compact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.dash-list li,
.compact-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 900;
}

.dash-list li::before,
.compact-list li::before {
  content: "–";
  position: absolute;
  left: 3px;
  top: 0;
  color: var(--muted);
  font-weight: 900;
}

.exclusions-card {
  background: #fffdfc;
}

.mini-metrics,
.detail-grid,
.document-grid,
.proof-grid,
.benefit-grid {
  display: grid;
  gap: 12px;
}

.mini-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

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

.document-grid,
.benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 22px;
}

.detail-item,
.document-item,
.benefit-card,
.proof-card,
.technical-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fbfdfe;
  padding: 14px;
}

.document-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.document-link:hover,
.document-link:focus-visible {
  background: #f4fafc;
  border-color: var(--accent);
}

.benefit-card {
  min-height: 112px;
  hyphens: none;
  overflow-wrap: normal;
}

.benefit-card span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ok);
  font-weight: 900;
}

.optional-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.price-payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.price-lines {
  margin-top: 22px;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.price-line.total {
  border-bottom: 0;
  padding-top: 18px;
}

.price-line.total strong {
  font-size: 1.7rem;
}

.payment-summary {
  margin: 20px 0;
  color: #334b57;
  font-size: 1.16rem;
  font-weight: 750;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #b7dfcf;
  border-radius: 999px;
  background: #edf9f3;
  color: var(--ok);
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.status-badge.warning {
  border-color: #f0c674;
  background: #fff8e8;
  color: var(--warning);
}

.status-badge.danger {
  border-color: #f0b49e;
  background: #fff2ed;
  color: var(--danger);
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.proof-card strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.proof-status {
  border-color: #b7dfcf;
  background: #f3fbf7;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-small);
}

.reference-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.selector-label {
  display: grid;
  gap: 6px;
  min-width: 230px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.selector-label select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  padding: 10px;
}

.demo-control {
  opacity: 0.68;
}

.profile-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.profile-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #f8fafb;
}

.profile-visual img {
  width: 132px;
  max-width: 80%;
}

.profile-title {
  margin-bottom: 8px;
  font-size: 1.42rem;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.needs-source {
  border: 1px solid #f0c674;
  border-radius: var(--radius-small);
  background: #fff8e8;
  padding: 14px;
  color: var(--warning);
}

.acceptance-card {
  background: #fbfdfe;
}

.next-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--primary);
  color: white;
}

.next-step-card .eyebrow,
.next-step-card p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-step-card .cta-row button {
  border-color: white;
  background: white;
  color: var(--primary);
}

.next-step-card .cta-row button.secondary {
  background: transparent;
  color: white;
}

.claim-card {
  background: #fbfcfd;
}

.claim-card summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.forbidden li::marker {
  color: var(--danger);
}

.footer-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  font-size: 0.92rem;
}

.footer-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .hero-content,
  .identity-strip,
  .summary-grid,
  .price-payment-grid,
  .proof-grid,
  .document-grid,
  .benefit-grid,
  .profile-layout,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .brand-row,
  .section-head,
  .profile-head,
  .next-step-card {
    display: grid;
  }

  .hero-pills {
    justify-content: flex-start;
  }

  .price-card strong {
    white-space: normal;
  }

  .selector-label {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .toolbar {
    position: sticky;
    justify-content: flex-end;
    padding: 8px 12px;
  }

  .toolbar button {
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 12px auto 36px;
  }

  .hero {
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .brand-row {
    gap: 14px;
  }

  .brand-logo {
    width: 136px;
    max-width: 58vw;
  }

  .hero-pills {
    gap: 6px;
  }

  .hero-pills span {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2.35rem, 10.7vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .hero-intro {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .price-card {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .price-card strong {
    font-size: clamp(1.85rem, 9.5vw, 2.45rem);
    white-space: nowrap;
  }

  .demo-note {
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .identity-strip {
    gap: 0;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .identity-strip div {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .identity-strip div:last-child {
    border-bottom: 0;
  }

  .card {
    margin-top: 12px;
    padding: 18px;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 16px, 100%);
  }

  .hero {
    padding: 18px;
  }

  .brand-logo {
    width: 124px;
  }

  .hero-content {
    margin-top: 22px;
  }

  h1 {
    font-size: clamp(2.05rem, 9.8vw, 2.65rem);
    letter-spacing: -0.035em;
  }

  .price-card strong {
    font-size: clamp(1.72rem, 8.7vw, 2.08rem);
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  body {
    background: white;
    color: #111;
    font-size: 9.6pt;
    line-height: 1.28;
  }

  .toolbar,
  .demo-control,
  .internal-only {
    display: none !important;
  }

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

  .hero,
  .card,
  .identity-strip,
  .footer-note,
  .price-payment-grid,
  .section-head,
  .benefit-card,
  .proof-card,
  .document-item,
  .technical-item {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hero {
    padding: 8mm 8mm 5mm;
    margin-bottom: 3mm;
    border-radius: 0;
  }

  .offer-hero::before {
    height: 3px;
  }

  .brand-row {
    display: flex;
    align-items: flex-start;
  }

  .hero-pills span {
    padding: 3px 7px;
    font-size: 8pt;
  }

  .card {
    margin-top: 3.2mm;
    padding: 6mm;
  }

  .hero-content {
    grid-template-columns: 1fr 52mm;
    gap: 6mm;
    align-items: end;
    margin-top: 7mm;
  }

  .price-payment-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-logo {
    width: 34mm;
  }

  h1 {
    margin-bottom: 3.5mm;
    font-size: 30pt;
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: 14.2pt;
  }

  h3 {
    font-size: 9.6pt;
    margin-bottom: 2mm;
  }

  .hero-intro {
    max-width: none;
    font-size: 9.5pt;
  }

  .price-card {
    padding: 5mm;
    border-radius: 0;
  }

  .price-card strong {
    margin: 1mm 0;
    font-size: 17pt;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .price-card p {
    margin-top: 2mm;
  }

  .demo-note {
    margin-top: 4mm;
    padding: 2mm 2.5mm;
    font-size: 8pt;
  }

  .identity-strip {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 3mm;
    border-radius: 0;
  }

  .identity-strip div {
    padding: 3mm;
  }

  .intro-card {
    break-after: page;
    page-break-after: always;
  }

  .price-payment-grid {
    break-before: page;
    page-break-before: always;
  }

  .profile-card {
    break-before: page;
    page-break-before: always;
  }

  .mini-metrics,
  .detail-grid,
  .document-grid,
  .technical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm;
  }

  .check-list,
  .dash-list,
  .compact-list {
    margin-top: 3mm;
  }

  .check-list li,
  .dash-list li,
  .compact-list li {
    margin: 1.4mm 0;
    padding-left: 5mm;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5mm 5mm;
    margin-top: 3mm;
  }

  .benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 2mm;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid #bbb;
    padding: 1.2mm 0;
    background: white !important;
    font-size: 9.2pt;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .benefit-card span {
    width: 4.2mm;
    height: 4.2mm;
    margin: 0;
    border: 1px solid #777;
    background: white !important;
    color: #111 !important;
    font-size: 7.2pt;
    flex: 0 0 auto;
  }

  .optional-note {
    margin-top: 3mm;
    padding-top: 2.5mm;
  }

  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2mm;
    margin-top: 3mm;
  }

  .proof-card,
  .detail-item,
  .document-item,
  .technical-item {
    padding: 2.4mm;
  }

  .proof-card strong {
    font-size: 9.8pt;
  }

  .notice {
    margin-top: 3mm;
    padding: 2.4mm;
  }

  .profile-layout {
    grid-template-columns: 24mm 1fr;
    gap: 4mm;
  }

  .profile-visual {
    min-height: 24mm;
  }

  .profile-visual img {
    width: 18mm;
  }

  .summary-grid {
    gap: 5mm;
    margin-top: 4mm;
  }

  .large-copy,
  .profile-summary,
  .summary-grid p {
    font-size: 9.5pt;
  }

  .price-payment-grid {
    gap: 5mm;
    margin-top: 0;
  }

  .price-lines {
    margin-top: 4mm;
  }

  .price-line {
    padding: 2mm 0;
  }

  .price-line.total {
    padding-top: 3mm;
  }

  .price-line.total strong {
    font-size: 13.5pt;
  }

  .payment-summary {
    margin: 4mm 0 3mm;
    font-size: 10pt;
  }

  .payment-details {
    display: block;
  }

  .payment-details .detail-item {
    display: flex;
    justify-content: space-between;
    gap: 8mm;
    border: 0;
    border-bottom: 1px solid #bbb;
    padding: 1.8mm 0;
  }

  .payment-details .detail-item span,
  .payment-details .detail-item strong {
    display: inline;
    margin: 0;
    white-space: nowrap;
  }

  .payment-details .detail-item strong {
    text-align: right;
  }

  .next-step-card {
    background: white;
    color: #111;
  }

  .next-step-card .eyebrow,
  .next-step-card p {
    color: #333;
  }

  .cta-row {
    display: none;
  }

  .footer-note {
    margin-top: 3mm;
    padding: 2.4mm;
    font-size: 8pt;
  }

  .status-badge,
  .metric,
  .scope-box,
  .detail-item,
  .document-item,
  .benefit-card,
  .proof-card,
  .technical-item,
  .notice,
  .demo-note,
  .footer-note,
  .price-card {
    background: white !important;
    color: #111 !important;
    border-color: #777 !important;
  }

  .profile-visual {
    background: white;
  }
}
