/* Layout refinement for /raast-payment-gateway/ only.
   No content changes — spacing, sizing, alignment, grids. */

.raast-page {
  --raast-max: 1240px;
  --raast-gutter: clamp(18px, 3.2vw, 40px);
  --raast-section-lg: clamp(56px, 7vw, 88px);
  --raast-section-md: clamp(48px, 5.5vw, 72px);
  --raast-section-sm: clamp(40px, 4.5vw, 56px);
  --raast-gap: clamp(20px, 2.4vw, 32px);
}

.raast-page .site-header {
  min-height: 68px;
  padding: 12px max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2));
  gap: 20px;
}

.raast-page .top-nav {
  gap: 18px;
  font-size: 13.5px;
}

/* ---------- Hero ---------- */
.raast-page .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding:
    clamp(36px, 4.5vw, 64px)
    max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2));
  min-height: 0;
}

.raast-page .hero-copy {
  max-width: none;
  align-self: center;
}

.raast-page .hero .eyebrow {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 11.5px;
  letter-spacing: .09em;
}

.raast-page .hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 16ch;
}

.raast-page .hero .lede {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: rgba(247, 246, 241, .8);
}

.raast-page .hero .hero-actions {
  margin-top: 20px;
  gap: 10px;
}

.raast-page .hero .trust-row {
  margin-top: 16px;
  gap: 8px;
}

.raast-page .hero .trust-row span {
  padding: 7px 10px;
  font-size: 12.5px;
}

.raast-page .hero-figure {
  align-self: center;
  margin: 0;
}

.raast-page .hero-figure img {
  height: clamp(320px, 42vh, 460px);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 42%;
}

.raast-page .payment-card {
  left: 16px;
  bottom: 36px;
  width: min(280px, 78%);
  padding: 14px;
}

.raast-page .payment-card strong {
  font-size: 26px;
}

.raast-page .payment-card dl {
  gap: 10px;
  margin-top: 12px;
}

.raast-page .payment-card dd {
  font-size: 13.5px;
}

.raast-page .hero-figure figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.35;
}

/* ---------- Platform rail ---------- */
.raast-page .platform-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 max(0px, calc((100% - var(--raast-max)) / 2));
}

.raast-page .platform-rail div {
  min-height: 0;
  padding: 18px var(--raast-gutter);
}

.raast-page .platform-rail strong {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.raast-page .platform-rail p {
  margin: 6px 0 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.45;
}

.raast-page .guide-strip {
  gap: 18px;
  padding: 11px max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2));
}

/* ---------- Shared section shell ---------- */
.raast-page .section {
  padding:
    var(--raast-section-md)
    max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2));
}

.raast-page .section > .eyebrow,
.raast-page .section-label {
  margin: 0 0 8px;
  font-size: 11.5px;
}

.raast-page .section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.raast-page .section h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
}

.raast-page .section-text p,
.raast-page .context-copy p,
.raast-page .methods-section > div > p,
.raast-page .matrix-heading p,
.raast-page .sticky-note p,
.raast-page .integration-section p,
.raast-page .raast-modes-intro p,
.raast-page .faq-list details p {
  font-size: 16.5px;
  line-height: 1.58;
}

.raast-page .section-text p {
  max-width: 62ch;
  margin: 0 0 12px;
}

.raast-page .section-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Shared pair grid: What is + Why ---------- */
.raast-page .raast-pair {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 20px;
  align-items: start;
  padding-block: var(--raast-section-md);
  padding-inline: max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2));
}

.raast-page .raast-pair-intro {
  display: grid;
  gap: 22px;
  align-content: start;
}

.raast-page .raast-pair-intro .section-label,
.raast-page .raast-pair-intro .eyebrow {
  margin: 0;
}

.raast-page .raast-pair-intro h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.12;
}

.raast-page .raast-pair-body {
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.raast-page .raast-pair-body > p {
  margin: 0;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.58;
  color: #34332f;
}

.raast-page .raast-pair-body > p + p {
  margin-top: -12px;
}

/* What is — flow */
.raast-page #what-is-raast .flow {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 2px solid var(--green);
  border-bottom: none;
  color: var(--green-dark);
  font-size: 13px;
}

.raast-page #what-is-raast .flow span {
  padding: 8px 10px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.raast-page #what-is-raast .flow b {
  color: var(--green);
  font-weight: 700;
}

/* Why — feature composition */
.raast-page .raast-feature-stack {
  display: grid;
  gap: 16px;
}

.raast-page .raast-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.raast-page .raast-feature-primary {
  padding: 28px 26px;
  border-color: rgba(11, 107, 72, .28);
  background:
    linear-gradient(105deg, rgba(11, 107, 72, .07), transparent 42%),
    var(--paper-2);
}

.raast-page .raast-feature-icon {
  width: 44px;
  height: 44px;
  color: var(--green-dark);
  flex-shrink: 0;
}

.raast-page .raast-feature-primary .raast-feature-icon {
  width: 56px;
  height: 56px;
}

.raast-page .raast-feature-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.raast-page .raast-feature-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.raast-page .raast-feature-copy span {
  margin: 0;
  color: var(--clay);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.raast-page .raast-feature-copy h3 {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.25;
  color: var(--ink);
}

.raast-page .raast-feature-primary .raast-feature-copy h3 {
  font-size: clamp(20px, 1.7vw, 24px);
}

.raast-page .raast-feature-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.52;
  color: #3d3b36;
}

.raast-page .raast-feature-primary .raast-feature-copy p {
  max-width: 48ch;
  font-size: 15.5px;
  line-height: 1.55;
}

.raast-page .raast-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.raast-page .raast-feature-row .raast-feature {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 22px 18px;
  min-height: 100%;
}

.raast-page .raast-feature-row .raast-feature-icon {
  width: 40px;
  height: 40px;
}

/* ---------- Modes / image grid ---------- */
.raast-page #how-raast-works.raast-modes-section {
  padding-block: var(--raast-section-md);
}

.raast-page .raast-modes-intro {
  max-width: 58ch;
  margin-bottom: 22px;
}

.raast-page .raast-modes-intro h2 {
  margin-bottom: 8px;
}

.raast-page .raast-modes-intro p {
  margin: 0;
  font-size: 16px;
  max-width: none;
}

.raast-page .raast-mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.raast-page .raast-mode-grid figure {
  aspect-ratio: 16 / 9;
}

.raast-page .raast-mode-grid .mode-copy {
  gap: 4px;
  padding: 12px 14px 14px;
}

.raast-page .raast-mode-grid span {
  font-size: 18px;
}

.raast-page .raast-mode-grid h3 {
  font-size: clamp(16px, 1.35vw, 19px);
}

.raast-page .raast-mode-grid p {
  font-size: 14.5px;
  line-height: 1.45;
  max-width: none;
}

.raast-page .raast-modes-note {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
}

/* ---------- Three steps / checklist ---------- */
.raast-page #three-steps.checklist-section {
  grid-template-columns: minmax(240px, .38fr) minmax(0, .62fr);
  gap: var(--raast-gap);
  align-items: start;
  padding-block: var(--raast-section-md);
}

.raast-page #three-steps .sticky-note {
  position: static;
}

.raast-page #three-steps .sticky-note h2 {
  margin-bottom: 8px;
}

.raast-page #three-steps .sticky-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
}

.raast-page #three-steps .checklist {
  columns: 2;
  column-gap: 20px;
  margin: 0;
}

.raast-page #three-steps .checklist p {
  margin: 0 0 0;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  line-height: 1.4;
}

.raast-page #three-steps .checklist p::before {
  top: 14px;
  width: 10px;
  height: 10px;
}

/* ---------- Integration ---------- */
.raast-page #integrate-raast.integration-section {
  grid-template-columns: minmax(0, .48fr) minmax(0, .52fr);
  gap: var(--raast-gap);
  align-items: start;
  padding-block: var(--raast-section-md);
}

.raast-page #integrate-raast .code-panel {
  padding: 18px;
  position: sticky;
  top: 84px;
}

.raast-page #integrate-raast pre {
  font-size: 13px;
  line-height: 1.55;
}

.raast-page #integrate-raast > div:last-child h2 {
  margin-bottom: 4px;
}

.raast-page #integrate-raast > div:last-child h3 {
  margin: 14px 0 4px;
}

.raast-page #integrate-raast > div:last-child h3:first-of-type {
  margin-top: 10px;
}

.raast-page #integrate-raast > div:last-child p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Comparison table ---------- */
.raast-page #raast-vs-wallets.matrix-section {
  padding-block: var(--raast-section-md);
}

.raast-page #raast-vs-wallets .matrix-heading {
  grid-template-columns: minmax(0, .45fr) minmax(0, .55fr);
  gap: var(--raast-gap);
  align-items: end;
  margin-bottom: 18px;
}

.raast-page #raast-vs-wallets .matrix-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.raast-page #raast-vs-wallets .table-wrap {
  width: 100%;
}

.raast-page #raast-vs-wallets table {
  min-width: 720px;
  font-size: 14px;
}

.raast-page #raast-vs-wallets th,
.raast-page #raast-vs-wallets td {
  padding: 12px 12px;
}

.raast-page #raast-vs-wallets tbody th {
  width: 160px;
}

/* ---------- Security / ops ---------- */
.raast-page #security-settlement.context-section {
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  gap: var(--raast-gap);
  align-items: start;
  padding-block: var(--raast-section-md);
}

.raast-page #security-settlement h2 {
  margin-bottom: 12px;
  max-width: 18ch;
}

.raast-page .raast-ops-figure {
  margin: 0;
  max-width: none;
}

.raast-page .raast-ops-figure img {
  aspect-ratio: 16 / 10;
  max-height: 280px;
  width: 100%;
}

.raast-page .raast-ops-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
}

.raast-page #security-settlement .context-copy {
  display: grid;
  gap: 10px;
}

.raast-page #security-settlement .context-copy p {
  margin: 0;
  max-width: none;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.raast-page #raast-faq.faq-section {
  grid-template-columns: minmax(200px, .32fr) minmax(0, .68fr);
  gap: var(--raast-gap);
  align-items: start;
  padding-block: var(--raast-section-md);
}

.raast-page #raast-faq > div:first-child h2 {
  max-width: 12ch;
}

.raast-page #raast-faq details {
  padding: 12px 0;
}

.raast-page #raast-faq summary {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3;
  padding: 2px 0;
}

.raast-page #raast-faq details p {
  margin: 8px 0 2px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Final CTA ---------- */
.raast-page #enable-raast.intro-section {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--raast-gap);
  padding-block: var(--raast-section-sm);
  align-items: start;
}

.raast-page #enable-raast .section-text h2 {
  margin-bottom: 8px;
}

.raast-page #enable-raast .section-text p {
  max-width: 54ch;
}

.raast-page #enable-raast .hero-actions {
  margin-top: 16px;
  gap: 10px;
}

.raast-page #enable-raast .button-primary {
  background: var(--green);
  color: #fff8ea;
  border-color: var(--green);
}

.raast-page #enable-raast .button-primary:hover {
  background: #095a3c;
  border-color: #095a3c;
  color: #fff8ea;
}

.raast-page #enable-raast .button-secondary {
  color: var(--green-dark);
  border-color: var(--rule);
  background: transparent;
}

.raast-page #enable-raast .button-secondary:hover {
  background: var(--paper-2);
  color: var(--green-dark);
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
.raast-page .site-footer {
  gap: 28px;
  padding:
    36px
    max(var(--raast-gutter), calc((100% - var(--raast-max)) / 2))
    28px;
}

.raast-page .site-footer h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.raast-page .site-footer a {
  margin: 6px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .raast-page .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 36px;
  }

  .raast-page .hero h1 {
    max-width: none;
    font-size: clamp(34px, 7vw, 46px);
  }

  .raast-page .hero-figure img {
    height: clamp(260px, 48vw, 360px);
  }

  .raast-page .platform-rail {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .raast-page #enable-raast.intro-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .raast-page .raast-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .raast-page .raast-pair-intro h2 {
    max-width: none;
  }

  .raast-page .raast-feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .raast-page #three-steps.checklist-section,
  .raast-page #integrate-raast.integration-section,
  .raast-page #raast-vs-wallets .matrix-heading,
  .raast-page #security-settlement.context-section,
  .raast-page #raast-faq.faq-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .raast-page #security-settlement h2,
  .raast-page #raast-faq > div:first-child h2 {
    max-width: none;
  }

  .raast-page .raast-mode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .raast-page #integrate-raast .code-panel {
    position: static;
  }

  .raast-page .raast-ops-figure img {
    max-height: 240px;
  }
}

@media (max-width: 640px) {
  .raast-page .section {
    padding-block: 40px;
  }

  .raast-page .hero {
    padding-block: 28px;
  }

  .raast-page .hero h1 {
    font-size: 34px;
  }

  .raast-page .section h2 {
    font-size: 28px;
  }

  .raast-page .platform-rail div {
    padding: 16px var(--raast-gutter);
  }

  .raast-page .raast-feature-row {
    grid-template-columns: 1fr;
  }

  .raast-page .raast-mode-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .raast-page .raast-mode-grid figure {
    aspect-ratio: 16 / 10;
  }

  .raast-page #three-steps .checklist {
    columns: 1;
  }

  .raast-page #enable-raast .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .raast-page #enable-raast .button-primary,
  .raast-page #enable-raast .button-secondary {
    width: 100%;
  }

  .raast-page .payment-card {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .raast-page .hero-figure img {
    height: 240px;
  }
}
