/* ==========================================================================
   AURA TECHNICAL BOOKLET LANDING PAGE
   Scoped styles (prefixed .ag-) built on the site's existing design tokens
   defined in colors.css. No global site styles are modified by this file.
   ========================================================================== */

.ag-page {
  background: var(--primary_background_color);
}

.ag-eyebrow-row {
  display: flex;
  justify-content: center;
}

.ag-page .section-tag {
  margin-bottom: 24px;
}

/* ---------- HERO ---------- */

.ag-hero {
  padding: 190px 0 100px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(107, 125, 92, 0.14), transparent 60%),
    var(--primary_background_color);
  position: relative;
  overflow: hidden;
}

.ag-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.ag-hero-content .section-tag {
  margin-bottom: 26px;
}

.ag-hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  color: var(--primary_color);
  margin-bottom: 24px;
}

.ag-hero-subhead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color_shade8);
  margin-bottom: 34px;
  max-width: 620px;
}

.ag-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ag-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--primary_dark_color);
  font-weight: 600;
  line-height: 1.5;
}

.ag-feature-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color_shade1);
  border: 1.5px solid var(--secondary_dark_color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ag-feature-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary_color);
  stroke-width: 2;
  fill: none;
}

.ag-stat-callout {
  background: var(--color_shade1);
  border-left: 4px solid var(--secondary_dark_color);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 32px;
}

.ag-stat-callout p {
  font-size: 0.98rem;
  color: var(--color_shade8);
  line-height: 1.6;
  margin: 0;
}

.ag-stat-callout strong {
  color: var(--primary_color);
}

.ag-pullquote {
  border: none;
  margin: 0 0 40px;
  padding-left: 22px;
  border-left: 3px solid var(--primary_color);
}

.ag-pullquote p {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--primary_color);
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}

.ag-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ag-cta-btn {
  gap: 10px;
}

.ag-cta-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ag-cta-hint {
  font-size: 0.88rem;
  color: var(--color_shade7);
  font-style: italic;
  margin: 0;
}

/* Hero visual / floating booklet mockup */

.ag-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-booklet-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 70px -20px rgba(31, 61, 43, 0.35), 0 15px 30px -10px rgba(31, 61, 43, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: ag-float 6s ease-in-out infinite;
  aspect-ratio: 1650 / 1885;
}

.ag-booklet-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-mockup-chip {
  position: absolute;
  bottom: -18px;
  right: 6%;
  background: var(--primary_color);
  color: var(--color_shade1);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 12px 24px -8px rgba(31, 61, 43, 0.5);
}

@keyframes ag-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

/* ---------- PDF PREVIEW SECTION ---------- */

.ag-preview {
  background: var(--primary_background_shade2);
}

.ag-preview-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.ag-preview-visual {
  display: flex;
  justify-content: center;
}

.ag-booklet-mockup.large {
  max-width: 440px;
  animation-duration: 7s;
}

.ag-preview-content h2 {
  color: var(--primary_color);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.ag-preview-content > p {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.ag-chapter-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 38px;
}

.ag-chapter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--primary_background_shade);
  font-size: 0.92rem;
  color: var(--color_shade8);
}

.ag-chapter-num {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 800;
  color: var(--secondary_dark_color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- REQUEST FORM SECTION ---------- */

.ag-request {
  background: var(--primary_background_color);
}

.ag-request-card {
  background: var(--color_shade1);
  border-radius: 18px;
  padding: 64px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  box-shadow: 0 30px 60px -30px rgba(31, 61, 43, 0.25);
  position: relative;
  overflow: hidden;
}

.ag-request-intro .section-tag {
  margin-bottom: 24px;
}

.ag-request-intro h2 {
  color: var(--primary_color);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.ag-request-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color_shade7);
}

.ag-request-note {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--primary_background_shade);
  font-size: 0.9rem;
  color: var(--color_shade6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ag-request-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--secondary_dark_color);
  stroke-width: 1.8;
  fill: none;
  margin-top: 2px;
}

.ag-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ag-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary_dark_color);
}

.ag-form-row .ag-optional {
  font-weight: 400;
  color: var(--color_shade6);
  text-transform: none;
  letter-spacing: 0;
}

.ag-form-row input,
.ag-form-row textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--primary_background_shade2);
  border: 1px solid var(--primary_background_shade);
  border-radius: 8px;
  color: var(--primary_dark_color);
  font-size: 0.98rem;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ag-form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.ag-form-row input:focus,
.ag-form-row textarea:focus {
  border-color: var(--secondary_dark_color);
  box-shadow: 0 0 0 3px rgba(107, 125, 92, 0.15);
}

.ag-form-row.ag-invalid input,
.ag-form-row.ag-invalid textarea {
  border-color: var(--danger_color);
}

.ag-error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--danger_color);
}

.ag-form-row.ag-invalid .ag-error-msg {
  display: block;
}

.ag-submit-btn {
  margin-top: 6px;
  border: none;
  border-radius: 50px;
  background: var(--primary_color);
  color: var(--color_shade1);
  padding: 17px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.ag-submit-btn:hover:not(:disabled) {
  background: var(--primary_btn_hover);
}

.ag-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.ag-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--color_shade1);
  border-radius: 50%;
  animation: ag-spin 0.7s linear infinite;
  display: none;
}

.ag-submit-btn.is-loading .ag-spinner {
  display: inline-block;
}

@keyframes ag-spin {
  to { transform: rotate(360deg); }
}

/* Success state */

.ag-success-state {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
}

.ag-success-state.is-visible {
  display: flex;
  animation: ag-fade-up 0.6s ease forwards;
}

.ag-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary_background_shade2);
  border: 2px solid var(--primary_color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ag-success-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary_color);
  stroke-width: 2.5;
  fill: none;
}

.ag-success-state h3 {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--primary_color);
}

.ag-success-state p {
  color: var(--color_shade7);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 440px;
}

/* Error banner */

.ag-error-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(166, 2, 2, 0.08);
  border: 1px solid rgba(166, 2, 2, 0.25);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 4px;
}

.ag-error-banner.is-visible {
  display: flex;
}

.ag-error-banner p {
  color: var(--danger_color);
  font-size: 0.92rem;
  margin: 0;
}

.ag-retry-btn {
  border: 1px solid var(--danger_color);
  background: transparent;
  color: var(--danger_color);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.25s ease;
}

.ag-retry-btn:hover {
  background: var(--danger_color);
  color: var(--color_shade1);
}

/* ---------- SCROLL REVEAL ---------- */

.ag-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ag-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ag-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ag-booklet-mockup {
    animation: none;
  }
}

/* ---------- DIVIDER STRIP ---------- */

.ag-divider {
  padding: 60px 0;
  background: var(--primary_background_color);
}

.ag-divider-strip {
  width: 100%;
  max-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px -25px rgba(31, 61, 43, 0.3);
}

.ag-divider-strip img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* ---------- COMMUNITY SECTION ---------- */

.ag-community {
  background: var(--primary_background_shade2);
}

.ag-community-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.ag-community-content h2 {
  color: var(--primary_color);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
}

.ag-community-content p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color_shade8);
  max-width: 560px;
  margin-bottom: 26px;
}

.ag-community-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--color_shade1);
  border-radius: 12px;
  padding: 18px 26px;
}

.ag-community-stat .ag-stat-number {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary_color);
  line-height: 1;
}

.ag-community-stat .ag-stat-label {
  font-size: 0.88rem;
  color: var(--color_shade7);
  max-width: 180px;
  line-height: 1.4;
}

.ag-community-visual {
  display: flex;
  justify-content: center;
}

.ag-community-visual img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 30px 55px -25px rgba(31, 61, 43, 0.35);
  display: block;
}

/* ---------- WATER COMPARISON SECTION ---------- */

.ag-water {
  background: var(--primary_background_color);
}

.ag-water-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.ag-water-visual {
  display: flex;
  justify-content: center;
}

.ag-water-visual img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  box-shadow: 0 30px 55px -25px rgba(31, 61, 43, 0.35);
  display: block;
}

.ag-water-content h2 {
  color: var(--primary_color);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
}

.ag-water-content > p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color_shade8);
  max-width: 560px;
  margin-bottom: 34px;
}

.ag-water-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.ag-water-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-water-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary_dark_color);
}

.ag-water-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 50px;
  background: var(--primary_background_shade2);
  overflow: hidden;
}

.ag-water-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--secondary_dark_color);
}

.ag-water-bar-fill.ag-water-fill-primary {
  background: var(--primary_color);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1080px) {
  .ag-request-card {
    padding: 46px;
    gap: 44px;
  }
}

@media (max-width: 991px) {
  .ag-hero {
    padding: 150px 0 80px;
  }

  .ag-hero-grid,
  .ag-preview-grid,
  .ag-community-grid,
  .ag-water-grid,
  .ag-request-card {
    grid-template-columns: 1fr;
  }

  .ag-hero-visual {
    margin-top: 20px;
  }

  .ag-preview-visual,
  .ag-water-visual {
    order: -1;
  }

  .ag-booklet-mockup {
    max-width: 300px;
  }

  .ag-booklet-mockup.large {
    max-width: 320px;
  }

  .ag-community-visual img,
  .ag-water-visual img {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .ag-hero-title {
    font-size: 2.1rem;
  }

  .ag-request-card {
    padding: 32px 24px;
    border-radius: 14px;
  }

  .ag-chapter-index {
    grid-template-columns: 1fr;
  }

  .ag-hero-cta {
    width: 100%;
  }

  .ag-cta-btn {
    width: 100%;
  }
}
