:root {
  --brand-primary: #0d5c63;
  --brand-secondary: #f59e0b;
  --ink-900: #112227;
  --ink-700: #35535b;
  --ink-500: #5d7b83;
  --surface: #f7f5ee;
  --surface-strong: #fffdf8;
  --border: rgba(17, 34, 39, 0.12);
  --shadow: 0 24px 60px rgba(17, 34, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Aptos Display", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 24rem),
    radial-gradient(circle at top right, rgba(13, 92, 99, 0.14), transparent 26rem),
    linear-gradient(180deg, #fcfaf4 0%, #f3efe4 100%);
  font-family: var(--font-body);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

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

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(252, 250, 244, 0.88);
  border-bottom: 1px solid rgba(17, 34, 39, 0.08);
}

.shell--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-lockup__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(17, 34, 39, 0.08);
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand-lockup__text strong {
  font-size: 1rem;
  color: var(--ink-900);
}

.brand-lockup__text small {
  color: var(--ink-500);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink-900);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-700);
  font-weight: 600;
}

.nav-cta,
.btn-main,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 0;
}

.nav-cta,
.btn-main {
  background: linear-gradient(135deg, var(--brand-primary), #1a7b83);
  color: white;
  box-shadow: 0 16px 30px rgba(13, 92, 99, 0.22);
}

.nav-cta--ghost,
.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-tertiary {
  background: transparent;
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgba(13, 92, 99, 0.18);
}

.btn-main:hover,
.btn-secondary:hover,
.btn-tertiary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.btn-main--sm {
  padding: 0.7rem 1rem;
}

.site-main {
  padding: 2rem 0 4rem;
}

.section-block {
  padding: 1.5rem 0;
}

.section-block--alt {
  padding: 2rem 0;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero__grid,
.two-column,
.three-column,
.card-grid,
.stats-grid,
.split-panel,
.hero-metrics,
.feature-stack,
.widget-stack {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.hero h1,
.page-head h1,
.section-heading h2,
.auth-card h1,
.prose-block h1 {
  margin: 0.2rem 0 0.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.page-head h1,
.section-heading h2,
.auth-card h1,
.prose-block h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.lede,
.page-copy,
.section-heading p,
.muted-copy,
.prose-block p {
  color: var(--ink-700);
  line-height: 1.7;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.hero-metrics div,
.bill-chip,
.mini-card,
.stat-card,
.value-panel,
.content-card,
.auth-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-metrics div,
.bill-chip,
.mini-card,
.stat-card {
  padding: 1.2rem;
}

.hero-metrics strong,
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.hero-metrics span,
.stat-card span,
.mini-card span,
.bill-chip {
  color: var(--ink-700);
}

.value-panel,
.content-card,
.auth-card {
  padding: 1.4rem;
}

.value-panel {
  background:
    linear-gradient(160deg, rgba(13, 92, 99, 0.96), rgba(17, 34, 39, 0.98));
  color: white;
}

.value-panel h2,
.value-panel__label {
  margin-top: 0;
}

.value-panel p,
.value-panel li {
  color: rgba(255, 255, 255, 0.88);
}

.flow-list,
.check-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.feature-card {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature-card h3,
.content-card h2,
.mini-card strong,
.card-head h2 {
  margin: 0 0 0.6rem;
}

.split-panel {
  align-items: stretch;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.alert-inline {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(13, 92, 99, 0.12);
  color: var(--brand-primary);
  font-weight: 700;
}

.alert-inline--error {
  background: rgba(148, 32, 32, 0.12);
  color: #8b1d1d;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #915600;
  font-size: 0.82rem;
  font-weight: 800;
}

.list-stack,
.mini-table {
  display: grid;
  gap: 0.9rem;
}

.mini-table__row {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(17, 34, 39, 0.08);
}

.mini-table__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-table__row span,
.mini-table__row small,
.empty-state,
.sample-note {
  color: var(--ink-700);
}

.pipeline-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(17, 34, 39, 0.08);
}

.pipeline-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.pipeline-card__actions {
  display: grid;
  gap: 0.6rem;
  min-width: 140px;
}

.form-card {
  display: grid;
  gap: 0.75rem;
}

.form-card--inline {
  padding: 0;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink-900);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 34, 39, 0.14);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink-900);
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 92, 99, 0.18);
  border-color: rgba(13, 92, 99, 0.34);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-row input {
  width: auto;
}

.checkbox-row--stack {
  align-items: flex-start;
  padding: 0.2rem 0;
}

.checkbox-copy {
  display: grid;
  gap: 0.25rem;
}

.checkbox-label {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.65rem;
  text-align: left;
  border-top: 1px solid rgba(17, 34, 39, 0.08);
  vertical-align: top;
}

.data-table thead th {
  border-top: 0;
  color: var(--ink-500);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.widget-stack {
  margin-top: 1.25rem;
}

.auth-shell {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(640px, 100%);
}

.auth-card--status {
  text-align: center;
}

.auth-foot {
  margin: 0;
  color: var(--ink-700);
}

.auth-divider {
  position: relative;
  margin: 0.4rem 0 0.1rem;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(17, 34, 39, 0.1);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.85rem;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink-500);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-sso-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.btn-sso {
  min-height: 3.1rem;
}

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

.prose-block {
  max-width: 760px;
}

.site-footer {
  border-top: 1px solid rgba(17, 34, 39, 0.08);
  background: rgba(255, 253, 248, 0.82);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.site-footer__inner p {
  margin: 0.35rem 0 0;
  color: var(--ink-700);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.billing-explainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.12);
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  outline: none;
}

.help-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  width: min(18rem, 70vw);
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(17, 34, 39, 0.96);
  color: white;
  line-height: 1.5;
  font-size: 0.82rem;
  box-shadow: 0 18px 38px rgba(17, 34, 39, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.help-tooltip:hover::after,
.help-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(17, 34, 39, 0.22);
}

.toast .toast-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.toast--success {
  background: linear-gradient(160deg, #0d5c63, #15383d);
  color: white;
}

.toast--success .toast-header,
.toast--success .btn-close {
  color: white;
  filter: invert(1);
}

.toast--error {
  background: linear-gradient(160deg, #8b1d1d, #4f1111);
  color: white;
}

.toast--error .toast-header,
.toast--error .btn-close {
  color: white;
  filter: invert(1);
}

.toast--warning {
  background: linear-gradient(160deg, #f59e0b, #a86300);
  color: white;
}

.toast--info {
  background: linear-gradient(160deg, #1f6b94, #17374a);
  color: white;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero--immersive {
  padding-top: 2.75rem;
}

.hero__grid--immersive {
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .lede {
  max-width: 58ch;
}

.hero-metrics--immersive div {
  min-height: 142px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-visual__halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.88;
  animation: float 8s ease-in-out infinite;
}

.hero-visual__halo--gold {
  inset: 1rem auto auto 2rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.34), transparent 68%);
}

.hero-visual__halo--teal {
  right: 2rem;
  bottom: 2rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(13, 92, 99, 0.28), transparent 70%);
  animation-delay: -2s;
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(17, 34, 39, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(17, 34, 39, 0.14);
}

.visual-card--brand {
  top: 1rem;
  left: 0;
  width: min(27rem, 92%);
  padding: 1.4rem;
  animation: float 7s ease-in-out infinite;
}

.visual-card--phone {
  right: 0;
  bottom: 1.5rem;
  width: min(22rem, 88%);
  padding: 1.35rem;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 248, 0.88));
  animation: float 8.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.visual-card__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.visual-card__brand strong,
.visual-message strong,
.visual-card--phone h2 {
  font-family: var(--font-display);
}

.visual-card__brand span,
.visual-card__kpis small,
.visual-card--phone p,
.visual-card__tag,
.visual-message span {
  color: var(--ink-700);
}

.visual-card__logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.45rem;
}

.visual-card__kpis {
  display: grid;
  gap: 0.8rem;
}

.visual-card__kpis div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(13, 92, 99, 0.07);
}

.visual-card__kpis strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.visual-card__tag {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 0.76rem;
  font-weight: 800;
}

.visual-card--phone h2 {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1;
}

.visual-message {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(17, 34, 39, 0.05);
}

.visual-message--accent {
  background: linear-gradient(135deg, rgba(13, 92, 99, 0.94), rgba(26, 123, 131, 0.92));
}

.visual-message--accent span,
.visual-message--accent strong {
  color: white;
}

.floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(17, 34, 39, 0.92);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(17, 34, 39, 0.18);
  animation: float 9s ease-in-out infinite;
}

.floating-pill--one {
  top: 8.5rem;
  right: 1.5rem;
}

.floating-pill--two {
  left: 1.5rem;
  bottom: 9.5rem;
  animation-delay: -2.5s;
}

.floating-pill--three {
  right: 2.2rem;
  bottom: 0;
  animation-delay: -4s;
}

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

/* CCL widget shell styling */
.asc-branding-panel,
.asc-cfp-panel,
.asc-cb-admin-panel,
.asc-pv-panel,
.asc-notif-settings,
.edom-panel,
#edom-root {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 34, 39, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.asc-branding-panel input,
.asc-branding-panel select,
.asc-branding-panel textarea,
.asc-cb-admin-panel input,
.asc-cb-admin-panel select,
.asc-cb-admin-panel textarea,
.asc-pv-panel input,
.asc-pv-panel select,
.asc-pv-panel textarea {
  border-radius: 12px;
}

.asc-btn,
.asc-branding-save,
.asc-copy-btn,
.asc-cfp-card button,
.asc-notif-save {
  border-radius: 999px !important;
}

.asc-cfp-panel,
.asc-cb-admin-panel,
.asc-branding-panel,
.asc-pv-panel {
  overflow: hidden;
}

.asc-cfp-card,
.asc-cb-admin-section,
.asc-branding-preview,
.asc-pv-create {
  border-radius: 16px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav--open {
    display: flex;
  }

  .hero__grid,
  .two-column,
  .three-column,
  .card-grid--three,
  .stats-grid,
  .split-panel,
  .form-grid,
  .hero-metrics,
  .stats-grid--compact {
    grid-template-columns: 1fr;
  }

  .page-head,
  .site-footer__inner,
  .pipeline-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pipeline-card__actions {
    width: 100%;
    min-width: 0;
  }

  .hero--immersive {
    padding-top: 1.4rem;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .visual-card,
  .floating-pill,
  .hero-visual__halo {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .floating-pill {
    justify-content: center;
  }

  .help-tooltip::after {
    left: auto;
    right: 0;
    width: min(16rem, 72vw);
  }
}
