/* ============================================
   GeoSync product page
   Extends home.css tokens, buttons, footer, type
   ============================================ */

:root {
  --geosync: #0d9488;
  --geosync-deep: #0b7a70;
  --geosync-soft: #eef8f6;
  --geosync-line: #c5e4de;
}

.gs-hero .btn:focus-visible,
.gs-text-link:focus-visible,
.gs-demo-card:focus-visible,
.gs-deploy-card a:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.gs-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 78% 28%, rgba(13, 148, 136, 0.14), transparent 42%),
    linear-gradient(110deg, #dcecf9 0%, #e7f2f8 48%, #e3f3f1 100%);
}

.gs-hero .eyebrow {
  color: var(--geosync-deep);
}

.gs-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
  max-width: 14em;
}

.gs-hero .hero-kicker {
  color: var(--geosync-deep);
}

.gs-hero .hero-actions {
  align-items: center;
}

.gs-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--geosync-deep);
}

.gs-text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.gs-text-link:hover svg,
.gs-text-link:focus-visible svg {
  transform: translateX(3px);
}

.gs-hero .btn-primary {
  background: var(--geosync);
}

.gs-hero .btn-primary:hover,
.gs-hero .btn-primary:focus {
  background: var(--geosync-deep);
}

.gs-hero .btn-outline {
  color: var(--geosync-deep);
  border-color: var(--geosync);
}

.gs-hero .btn-outline:hover,
.gs-hero .btn-outline:focus {
  background: var(--geosync-soft);
  color: var(--geosync-deep);
}

/* ---------- Architecture visual ---------- */
.gs-arch {
  margin: 0;
  padding: 22px 18px 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(13, 148, 136, 0.08), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
  border: 1px solid var(--geosync-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gs-arch-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--geosync-deep);
}

.gs-arch-stack {
  display: grid;
  justify-items: center;
  gap: 0;
}

.gs-node {
  width: min(100%, 280px);
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.gs-node--hub {
  width: min(100%, 300px);
  border-color: var(--geosync);
  background: linear-gradient(180deg, #f4fbf9 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.gs-node--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 360px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gs-node--split .gs-node {
  width: auto;
}

.gs-node-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--geosync);
}

.gs-node-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.gs-node-meta {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.gs-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: var(--geosync);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.gs-arrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Shared section chrome ---------- */
.gs-section {
  padding: 80px 0;
}

.gs-section--soft {
  background: var(--geosync-soft);
}

.gs-section--alt {
  background: var(--soft);
}

.gs-section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.gs-section-header .eyebrow {
  color: var(--geosync-deep);
}

.gs-section-header h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.gs-section-header p {
  color: var(--muted);
  font-size: 17px;
}

.gs-section-header--left {
  margin-left: 0;
  text-align: left;
}

.gs-lead-center {
  max-width: 46em;
  margin: 0 auto 8px;
  text-align: center;
}

/* ---------- Benefit cards ---------- */
.gs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gs-card {
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.gs-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--geosync-deep);
  margin-bottom: 10px;
}

.gs-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- How it works ---------- */
.gs-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.gs-flow-step {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.gs-flow-step h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.gs-flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.gs-flow-step--hub {
  border-color: var(--geosync);
  background: var(--geosync-soft);
}

.gs-flow-join {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--geosync);
  font-size: 20px;
  font-weight: 700;
}

.gs-flow-note {
  margin: 22px auto 0;
  max-width: 46em;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Split sections ---------- */
.gs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.gs-split--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.gs-split--reverse .gs-split-copy {
  order: 2;
}

.gs-copy-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.gs-copy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.gs-copy-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--geosync);
  flex-shrink: 0;
}

.gs-shot {
  margin: 0;
  overflow: hidden;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gs-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.gs-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* ---------- Field workflow ---------- */
.gs-field-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.gs-field-step {
  position: relative;
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gs-field-step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--geosync);
  font-size: 16px;
  font-weight: 700;
}

.gs-field-step:last-child::after {
  content: none;
}

.gs-field-step p:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--geosync-deep);
  margin-bottom: 6px;
}

.gs-field-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.gs-field-step p:last-child {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Open stack ---------- */
.gs-tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.gs-tech {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gs-tech img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.gs-tech span {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-deep);
}

.gs-provider-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.gs-provider-row span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--geosync-soft);
  color: var(--geosync-deep);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Deploy ---------- */
.gs-deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gs-deploy-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gs-deploy-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--geosync-deep);
  margin-bottom: 10px;
}

.gs-deploy-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
}

.gs-deploy-card .btn-primary,
.gs-price-card .btn-primary {
  background: var(--geosync);
}

.gs-deploy-card .btn-primary:hover,
.gs-deploy-card .btn-primary:focus,
.gs-price-card .btn-primary:hover,
.gs-price-card .btn-primary:focus {
  background: var(--geosync-deep);
}

.gs-deploy-card .btn-outline,
.gs-price-card .btn-outline {
  color: var(--geosync-deep);
  border-color: var(--geosync);
}

.gs-deploy-card .btn-outline:hover,
.gs-deploy-card .btn-outline:focus,
.gs-price-card .btn-outline:hover,
.gs-price-card .btn-outline:focus {
  background: var(--geosync-soft);
  color: var(--geosync-deep);
}

/* ---------- Demo ---------- */
.gs-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.gs-demo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
}

.gs-demo-card:hover,
.gs-demo-card:focus-visible {
  border-color: var(--geosync-line);
  box-shadow: var(--shadow-lg);
}

.gs-demo-media {
  position: relative;
  background: #0b3d38;
  min-height: 220px;
}

.gs-demo-media img,
.gs-demo-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gs-demo-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  flex: 1;
}

.gs-demo-body h3 {
  font-size: 20px;
}

.gs-demo-body p {
  font-size: 15px;
  color: var(--muted);
}

.gs-demo-tech {
  font-size: 12px;
  font-weight: 700;
  color: var(--geosync-deep);
}

.gs-demo-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--geosync);
}

/* ---------- Pricing ---------- */
.gs-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gs-price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.gs-price-card--featured {
  border-color: var(--geosync);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
}

.gs-price-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.gs-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--geosync-deep);
  margin-bottom: 4px;
}

.gs-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.gs-price-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.gs-price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.gs-price-card li {
  font-size: 14.5px;
  color: var(--text);
}

.gs-price-card .btn {
  margin-top: auto;
}

.gs-price-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Atlas relationship ---------- */
.gs-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);
}

.gs-atlas .eyebrow {
  color: var(--blue);
}

.gs-atlas h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}

.gs-atlas p {
  font-size: 16px;
  color: var(--muted);
  max-width: 42em;
}

/* ---------- Final CTA ---------- */
.gs-cta.cta {
  background: linear-gradient(135deg, #0b7a70 0%, #0f4c75 100%);
}

.gs-cta .btn-outline-light:hover,
.gs-cta .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gs-card-grid,
  .gs-field-flow,
  .gs-price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gs-split,
  .gs-split--reverse,
  .gs-demo,
  .gs-atlas {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gs-split--reverse .gs-split-copy {
    order: 1;
  }

  .gs-atlas .product-cta,
  .gs-atlas .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .gs-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gs-flow-join {
    min-height: 28px;
    transform: rotate(90deg);
  }

  .gs-deploy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gs-hero,
  .gs-section {
    padding: 48px 0;
  }

  .gs-hero h1 {
    font-size: 32px;
  }

  .gs-card-grid,
  .gs-field-flow,
  .gs-price-grid,
  .gs-node--split {
    grid-template-columns: 1fr;
  }

  .gs-field-step::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
  }

  .gs-field-flow {
    gap: 22px;
  }

  .gs-hero .hero-actions .btn,
  .gs-cta .btn {
    width: 100%;
  }

  .gs-atlas {
    padding: 22px 18px;
  }

  .gs-node,
  .gs-node--hub,
  .gs-node--split {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-text-link svg,
  .gs-demo-card {
    transition: none;
  }

  .gs-text-link:hover svg,
  .gs-text-link:focus-visible svg {
    transform: none;
  }
}
