:root {
  --paper: #f5f8f8;
  --surface: #ffffff;
  --surface-soft: #eef5f4;
  --ink: #13201f;
  --muted: #5d6c6a;
  --line: #dbe4e2;
  --teal: #05736d;
  --teal-dark: #004f4b;
  --silver: #8d9896;
  --clay: #a7663c;
  --amber: #c99b36;
  --shadow: 0 22px 60px rgba(28, 45, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(5, 115, 109, 0.11), transparent 30%),
    linear-gradient(315deg, rgba(141, 152, 150, 0.16), transparent 36%),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: 0;
  height: 42vh;
  background:
    linear-gradient(165deg, transparent 0 20%, rgba(5, 115, 109, 0.14) 20% 42%, transparent 42%),
    linear-gradient(170deg, transparent 0 32%, rgba(255, 255, 255, 0.82) 32% 55%, transparent 55%),
    linear-gradient(176deg, transparent 0 44%, rgba(141, 152, 150, 0.18) 44% 48%, transparent 48%);
  opacity: 0.9;
  pointer-events: none;
}

.site-header,
main,
.site-footer,
.edit-bar {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(19, 32, 31, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.site-header nav,
.hero-actions,
.contact-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(310px, 46vw);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.site-header nav a,
.ghost-link,
.hero-actions a,
.contact-section a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.ghost-link,
.hero-actions a,
.contact-section a {
  padding: 12px 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
}

.hero-actions a,
.contact-section a {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.hero-actions .secondary {
  color: var(--teal-dark);
  background: transparent;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 48px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
}

p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(5, 115, 109, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(141, 152, 150, 0.2), transparent 45%),
    #eef5f4;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% -12%;
  height: 56%;
  pointer-events: none;
}

.hero-visual::before {
  background:
    linear-gradient(170deg, transparent 0 34%, rgba(5, 115, 109, 0.22) 34% 52%, transparent 52%),
    linear-gradient(176deg, transparent 0 46%, rgba(255, 255, 255, 0.86) 46% 64%, transparent 64%),
    linear-gradient(181deg, transparent 0 58%, rgba(141, 152, 150, 0.34) 58% 61%, transparent 61%);
}

.hero-visual::after {
  inset: 0 0 0 auto;
  width: 46%;
  height: auto;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58)),
    repeating-linear-gradient(90deg, rgba(141, 152, 150, 0.12) 0 2px, transparent 2px 54px);
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(88%, 680px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(24, 32, 31, 0.16));
}

.product-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 360px;
  margin-top: -34px;
}

.product-preview article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.product-preview span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
}

.screen {
  width: min(92%, 420px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(24, 32, 31, 0.2);
}

.screen-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #24302e;
}

.screen-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.screen-body {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.screen-body small {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
}

.screen-body strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.progress-line {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.progress-line.short {
  width: 68%;
  background: linear-gradient(90deg, var(--clay), var(--amber));
}

.product-section,
.function-section,
.problem-solution-section,
.benefit-section,
.target-section,
.pricing-section,
.qualification-section,
.video-section,
.material-section,
.split-section,
.contact-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 58px 0 70px;
}

.product-detail-hero > div > p:not(.eyebrow) {
  max-width: 780px;
}

.product-detail-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.product-detail-logo {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.product-detail-panel span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.product-detail-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.website-video-card {
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.website-video-card video {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  border-radius: 8px;
  background: #0f1f1f;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 26px;
}

.feature-grid,
.comparison-grid,
.benefit-grid,
.qualification-grid,
.service-list,
.function-grid,
.sales-grid,
.product-actions,
.included-grid,
.pill-grid,
.product-overview {
  display: grid;
  gap: 16px;
}

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

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

.product-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.product-overview-card,
.product-focus {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.product-overview-card.is-active {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: var(--shadow);
}

.product-logo-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 260px;
}

.product-card-logo {
  display: block;
  width: min(100%, 520px);
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

.product-overview-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
}

.product-overview-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 13px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.product-focus {
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(238, 245, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.product-focus p:last-child {
  max-width: 840px;
}

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

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

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

.qualification-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.7;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
  object-position: top left;
}

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

.product-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.included-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.pricing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.pricing-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.license-callout {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow);
}

.license-callout p {
  max-width: 760px;
  margin-bottom: 0;
}

.license-callout a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

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

.pill-grid span {
  display: flex;
  min-height: 74px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.purchase-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow);
}

.purchase-flow ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 800;
}

.legal-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 86px;
}

.legal-page-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.legal-page-card h1 {
  max-width: none;
  margin-bottom: 30px;
  font-size: clamp(38px, 5vw, 68px);
  overflow-wrap: normal;
  word-break: normal;
}

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

.legal-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.legal-grid h2 {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 22px;
}

.legal-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-grid a {
  color: var(--teal-dark);
  font-weight: 800;
}

.feature-grid article,
.comparison-grid article,
.benefit-grid article,
.function-grid article,
.qualification-grid article,
.service-list article,
  .sales-card,
  .product-actions article,
  .included-grid article,
  .resource-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.function-grid article,
.comparison-grid article,
.benefit-grid article,
.included-grid article {
  box-shadow: none;
}

.feature-grid span,
.comparison-grid span,
.qualification-grid span,
.sales-card span,
.product-actions span,
.resource-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
}

.comparison-grid ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.sales-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.sales-card img {
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7faf9;
}

.sales-card a,
.product-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.flyer-card,
.video-card {
  grid-column: span 1;
}

.included-grid ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 34px;
}

.contact-section {
  justify-content: space-between;
  align-items: center;
  padding-bottom: 90px;
}

.contact-section > div {
  max-width: 760px;
}

.site-footer {
  display: flex;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  gap: 20px;
  justify-content: space-between;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.edit-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  max-width: min(720px, calc(100% - 36px));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.edit-bar button,
.edit-bar a {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  background: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

[data-editable].is-editing {
  outline: 3px solid #7cc7ff;
  outline-offset: 4px;
  background: rgba(124, 199, 255, 0.16);
}

.external-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(24, 32, 31, 0.58);
}

.external-notice-backdrop.is-open {
  display: grid;
}

.external-notice {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.external-notice h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
}

.external-notice p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.external-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.external-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.external-notice-actions button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.external-notice-actions button[data-external-cancel] {
  color: var(--teal-dark);
  background: white;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .product-detail-hero,
  .split-section,
  .contact-section,
  .feature-grid,
  .comparison-grid,
  .benefit-grid,
  .function-grid,
  .qualification-grid,
  .sales-grid,
  .sales-card,
  .product-actions,
  .included-grid,
  .pricing-summary,
  .license-callout,
  .resource-grid,
  .pill-grid,
  .product-overview,
  .purchase-flow,
  .legal-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .legal-note {
    grid-column: auto;
  }

  .license-callout {
    display: grid;
    align-items: stretch;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .contact-section {
    align-items: flex-start;
  }

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

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

  .edit-bar {
    left: 18px;
    flex-wrap: wrap;
  }
}
