/* ============================================
   Atlas Survey product page
   Extends home.css tokens, buttons, footer, type
   ============================================ */

:root {
  --as: #0f766e;
  --as-deep: #0b5c56;
  --as-mid: #14857c;
  --as-soft: #e7f5f3;
  --as-line: #c5e4de;
}

.as-hero .btn:focus-visible,
.as-text-link:focus-visible,
.as-demo-card:focus-visible,
.as-deploy-card a:focus-visible,
.as-option:focus-within,
.as-location:focus-visible,
.as-summary a:focus-visible,
.as-faq summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.as-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 80% 18%, rgba(15, 118, 110, 0.14), transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(21, 101, 192, 0.08), transparent 42%),
    linear-gradient(110deg, #dcecf9 0%, #e7f2f8 46%, #e3f3f1 100%);
}

.as-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 80% at 78% 42%, #000 20%, transparent 72%);
}

.as-hero .container {
  position: relative;
}

.as-hero .eyebrow {
  color: var(--as-deep);
}

.as-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
  max-width: 14em;
}

.as-hero .hero-kicker {
  color: var(--as-deep);
}

.as-hero .hero-actions {
  align-items: center;
}

.as-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.as-badge img {
  width: 40px;
  height: 40px;
}

.as-badge-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--as-deep);
}

.as-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--as-deep);
}

.as-text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.as-text-link:hover svg,
.as-text-link:focus-visible svg {
  transform: translateX(3px);
}

.as-hero .btn-primary,
.as-deploy-card .btn-primary,
.as-summary .btn-primary {
  background: var(--as);
  color: var(--white);
}

.as-hero .btn-primary:hover,
.as-hero .btn-primary:focus,
.as-deploy-card .btn-primary:hover,
.as-deploy-card .btn-primary:focus,
.as-summary .btn-primary:hover,
.as-summary .btn-primary:focus {
  background: var(--as-deep);
}

.as-hero .btn-outline,
.as-deploy-card .btn-outline {
  color: var(--as-deep);
  border-color: var(--as);
}

.as-hero .btn-outline:hover,
.as-hero .btn-outline:focus,
.as-deploy-card .btn-outline:hover,
.as-deploy-card .btn-outline:focus {
  background: var(--as-soft);
  color: var(--as-deep);
}

/* ---------- Architecture visual ---------- */
.as-arch {
  margin: 0;
  padding: 22px 18px 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(15, 118, 110, 0.08), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
  border: 1px solid var(--as-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.as-arch-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--as-deep);
}

.as-arch-stack {
  display: grid;
  justify-items: center;
  gap: 0;
}

.as-node {
  width: min(100%, 300px);
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.as-node--hub {
  width: min(100%, 320px);
  border-color: var(--as);
  background: linear-gradient(180deg, #f4fbf9 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}

.as-node--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 360px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.as-node--split .as-node {
  width: auto;
}

.as-node-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--as);
}

.as-node-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.as-node-meta {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.as-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: var(--as);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.as-arrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Shared section chrome ---------- */
.as-section {
  padding: 80px 0;
}

.as-section--soft {
  background: var(--as-soft);
}

.as-section--alt {
  background: var(--soft);
}

.as-section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.as-section-header .eyebrow {
  color: var(--as-deep);
}

.as-section-header h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.as-section-header p {
  color: var(--muted);
  font-size: 17px;
}

.as-section-header--left {
  margin-left: 0;
  text-align: left;
}

.as-lead-center {
  max-width: 46em;
  margin: 0 auto 8px;
  text-align: center;
}

/* ---------- Benefit / feature cards ---------- */
.as-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.as-card-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.as-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.as-card-grid--stack {
  grid-template-columns: 1fr;
}

.as-card {
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.as-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--as-deep);
  margin-bottom: 10px;
}

.as-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.as-card-num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--as);
}

/* ---------- Video ---------- */
.as-video {
  max-width: 980px;
  margin: 0 auto;
}

.as-video-frame {
  overflow: hidden;
  background: #071e33;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.as-video-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0f172a;
}

.as-video-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.as-video-bar i:nth-child(1) { background: #f87171; }
.as-video-bar i:nth-child(2) { background: #fbbf24; }
.as-video-bar i:nth-child(3) { background: #34d399; }

.as-video-bar p {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.as-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #071e33;
}

/* ---------- Workflow ---------- */
.as-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.as-flow-step {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.as-flow-step h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.as-flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.as-flow-step--hub {
  border-color: var(--as);
  background: var(--as-soft);
}

.as-flow-join {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--as);
  font-size: 20px;
  font-weight: 700;
}

.as-flow-note {
  margin: 22px auto 0;
  max-width: 46em;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.as-includes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.as-includes span {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--as-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--as-deep);
}

/* ---------- Split / copy lists ---------- */
.as-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.as-split--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.as-split--reverse .as-split-copy {
  order: 2;
}

.as-copy-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.as-copy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.as-copy-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--as);
  flex-shrink: 0;
}

.as-shot {
  margin: 0;
  overflow: hidden;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.as-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.as-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.as-card-grid--sync {
  margin-top: 28px;
}

.as-stack-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--as-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.as-stack-card p:first-child {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--as);
}

.as-stack-list {
  display: grid;
  gap: 12px;
}

.as-stack-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.as-stack-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.as-stack-list strong {
  font-size: 15px;
  color: var(--navy-deep);
}

.as-stack-list span {
  font-size: 13px;
  color: var(--muted);
}

.as-provider-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.as-provider-row span {
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--as-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--as-deep);
}

/* ---------- Deploy ---------- */
.as-deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.as-deploy-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.as-deploy-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--as-deep);
  margin-bottom: 10px;
}

.as-deploy-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

.as-deploy-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.as-deploy-card li {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Pricing configurator ---------- */
.as-price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.as-price-group {
  margin-bottom: 28px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.as-price-group h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.as-price-group > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.as-options {
  display: grid;
  gap: 10px;
}

.as-options--resources {
  grid-template-columns: 1fr 1fr;
}

.as-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.as-option.is-checked,
.as-option:has(input:checked) {
  border-color: var(--as);
  background: var(--as-soft);
}

.as-option input {
  margin-top: 4px;
  accent-color: var(--as);
}

.as-option strong {
  display: block;
  font-size: 16px;
  color: var(--navy-deep);
}

.as-option strong span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.as-option small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.as-location {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-deep);
}

.as-summary {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.as-summary h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.as-summary-deploy {
  font-size: 14px;
  font-weight: 700;
  color: var(--as-deep);
  margin-bottom: 12px;
}

.as-summary-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.as-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.as-summary-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--as);
  flex-shrink: 0;
  position: relative;
}

.as-summary-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.as-summary-total {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
  margin: 0 0 16px;
  line-height: 1.2;
}

.as-summary-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.as-summary .btn {
  width: 100%;
}

.as-summary .btn.is-disabled,
.as-mobile-bar .btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.as-summary-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--as-deep);
}

.as-price-tax {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- FAQ ---------- */
.as-faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.as-faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 4px 18px;
}

.as-faq-list summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
}

.as-faq-list details p {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Atlas relationship ---------- */
.as-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 28px 32px;
  background: var(--cloud-soft);
  border: 1px solid #d7e4f2;
  border-radius: var(--radius-lg);
}

.as-atlas .eyebrow {
  color: var(--blue);
}

.as-atlas h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}

.as-atlas p {
  font-size: 16px;
  color: var(--muted);
  max-width: 42em;
}

/* ---------- Final CTA ---------- */
.as-cta.cta {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 133, 124, 0.24), transparent 55%),
    linear-gradient(135deg, #0b5c56 0%, #0f4c75 100%);
}

.as-cta .btn-outline-light:hover,
.as-cta .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Mobile bar ---------- */
.as-mobile-bar {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .as-card-grid,
  .as-card-grid--4,
  .as-card-grid--5,
  .as-card-grid--sync,
  .as-options--resources {
    grid-template-columns: 1fr 1fr;
  }

  .as-card-grid--stack {
    grid-template-columns: 1fr;
  }

  .as-split,
  .as-split--reverse,
  .as-price-layout,
  .as-atlas,
  .as-deploy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .as-split--reverse .as-split-copy {
    order: 1;
  }

  .as-summary {
    position: static;
  }

  .as-atlas .product-cta,
  .as-atlas .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .as-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .as-flow-join {
    min-height: 28px;
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  .as-hero {
    padding: 40px 0 48px;
  }

  .as-section {
    padding: 56px 0;
  }

  .as-card-grid,
  .as-card-grid--4,
  .as-card-grid--5,
  .as-card-grid--sync,
  .as-options--resources,
  .as-node--split {
    grid-template-columns: 1fr;
  }

  .as-hero .hero-actions .btn,
  .as-cta .btn,
  .as-deploy-card .btn {
    width: 100%;
  }

  .as-price-group {
    padding: 18px 16px;
  }

  .as-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }

  .as-mobile-bar p {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-deep);
  }

  html:has(.as-mobile-bar) {
    padding-bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-text-link svg,
  .as-shot,
  .as-option {
    transition: none;
  }

  .as-text-link:hover svg,
  .as-text-link:focus-visible svg {
    transform: none;
  }
}
