/* ============================================================
   SaltyPay — Internal page system (solutions, pricing, impact, faqs, about)
   Built on tokens.css + base.css. Dark-teal page hero, alternating
   feature rows, info panels, surcharge band, CTA close.
   ============================================================ */

/* ---------- Page hero (dark teal, on-dark) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--tide-900); color: var(--on-dark);
  padding-top: clamp(8rem, 13vh, 10.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 80% at 85% -10%, rgba(231,172,74,0.16), transparent 55%),
    radial-gradient(85% 75% at 0% 110%, rgba(239,152,145,0.14), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--coral-300); margin-bottom: 1rem; }
.page-hero h1 { font-size: var(--display-lg); letter-spacing: -0.03em; color: var(--on-dark); max-width: 20ch; }
.page-hero h1 .accent { color: var(--coral-500); }
.page-hero .lead { font-size: var(--text-lg); color: var(--on-dark-soft); max-width: 58ch; margin-top: 1.15rem; line-height: 1.6; }

/* Tonal bird treatment on flat dark-teal bands (matches homepage human band; guide p.10) */
.page-hero::after, .surcharge::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -12%; right: -6%; width: 46%; height: 132%;
  background: var(--teal-400);
  -webkit-mask: url('../assets/patterns/bird.png') no-repeat right center / contain;
  mask: url('../assets/patterns/bird.png') no-repeat right center / contain;
  opacity: 0.10;
}
.surcharge .container { z-index: 1; }

/* ---------- Feature rows (alternating) ---------- */
.feature { padding-block: var(--section); }
.feature.bg-shell { background: var(--shell); }
.feature.bg-paper { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature.reverse .feature-media { order: -1; }

.feature-glyph { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.25rem; }
.feature-glyph svg { width: 28px; height: 28px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-glyph.teal { background: var(--teal-050); } .feature-glyph.teal svg { stroke: var(--teal-600); }
.feature-glyph.coral { background: var(--coral-100); } .feature-glyph.coral svg { stroke: var(--coral-700); }
.feature-glyph.sand { background: var(--sand-100); } .feature-glyph.sand svg { stroke: var(--sand-600); }

.feature h2 { font-size: var(--display-md); letter-spacing: -0.02em; }
.feature .desc { font-size: var(--text-lg); color: var(--ink-soft); margin: 1rem 0 1.6rem; line-height: 1.6; max-width: 52ch; }

.check-list { list-style: none; display: grid; gap: 0.85rem; margin-bottom: 1.9rem; }
.check-list li { display: flex; gap: 0.7rem; font-size: var(--text-base); line-height: 1.5; color: var(--ink); }
.ico-check { width: 1.3rem; height: 1.3rem; flex-shrink: 0; margin-top: 1px; color: var(--teal-500); }

/* ---------- Info panel (used-by / perfect-for / quote) ---------- */
.panel { background: var(--paper); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }
.feature.bg-paper .panel { background: var(--shell); box-shadow: var(--shadow-sm); }
.panel-label { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.25rem; }
.panel-list { list-style: none; display: grid; gap: 1rem; }
.panel-list li { font-size: var(--text-base); color: var(--ink-soft); line-height: 1.45; padding-left: 1.4rem; position: relative; }
.panel-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral-400, var(--coral-500)); }
.panel-list li strong { color: var(--teal-600); font-weight: 600; }

/* quote variant inside a panel */
.panel.quote blockquote { font-size: var(--text-lg); line-height: 1.55; color: var(--ink); }
.panel.quote .mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.4; color: var(--coral-300); height: 1.1rem; }
.panel.quote figcaption { margin-top: 1.4rem; display: flex; align-items: center; gap: 0.8rem; }
.panel.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-050); color: var(--teal-600); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.panel.quote .who b { display: block; color: var(--ink); font-weight: 600; font-size: var(--text-sm); }
.panel.quote .who span { font-size: var(--text-sm); color: var(--ink-faint); }

/* ---------- Surcharge band (dark, on-dark) ---------- */
.surcharge { background: linear-gradient(150deg, var(--tide-800) 0%, var(--tide-950) 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.surcharge::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 90% 10%, rgba(231,172,74,0.14), transparent 60%); pointer-events: none; }
.surcharge .container { position: relative; }
.surcharge-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.surcharge .stat { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2.4rem + 4vw, 5rem); line-height: 0.9; color: var(--coral-500); letter-spacing: -0.03em; }
.surcharge .stat small { display: block; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 0.6rem; }
.surcharge h2 { font-size: var(--display-sm); color: var(--on-dark); margin-bottom: 0.9rem; }
.surcharge p { color: var(--on-dark-soft); max-width: 56ch; line-height: 1.65; }

/* ---------- Trust strip ---------- */
.trust { background: var(--shell); text-align: center; }
.trust .eyebrow { justify-content: center; margin-bottom: 1.9rem; }

/* ---------- CTA close (shared with home look) ---------- */
.cta { background: var(--shell); }
.cta-inner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--coral-500) 0%, var(--coral-600) 100%); color: var(--ink); text-align: center; padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem); }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -20%, rgba(255,255,255,0.35), transparent 60%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: var(--display-lg); color: var(--ink); letter-spacing: -0.03em; }
.cta-inner p { font-size: var(--text-lg); color: rgba(20,51,58,0.82); max-width: 46ch; margin: 1.1rem auto 2.2rem; }
.cta-note { margin-top: 1.6rem; font-size: var(--text-sm); color: var(--ink); }
.cta-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .feature.reverse .feature-media { order: 0; }
  .surcharge-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
}

/* ============================================================
   Page extras (about / pricing / impact / faqs)
   ============================================================ */

/* Photo media (About) */
.media-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }
.media-photo figcaption { position: absolute; left: 1rem; bottom: 0.9rem; background: rgba(12,49,55,0.6); color: var(--on-dark); font-size: var(--text-xs); padding: 0.45rem 0.85rem; border-radius: var(--r-pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.media-photo .credit { position: absolute; right: 0.9rem; bottom: 1rem; font-size: 0.7rem; color: rgba(244,248,247,0.88); background: rgba(12,49,55,0.5); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Fact row (About "by the numbers") */
.fact-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--hairline-light); }
.fact .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: var(--teal-600); letter-spacing: -0.02em; }
.fact .t { font-size: var(--text-sm); color: var(--ink-faint); margin-top: 0.2rem; }

/* Numbered steps (a real ordered sequence — numbers earn their place here) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-600); color: var(--on-dark); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 1.1rem; }
.step h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); line-height: 1.6; }

/* Highlight coral card (Pricing guarantee) */
.highlight-card { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--coral-500) 0%, var(--coral-600) 100%); color: var(--ink); border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.highlight-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(75% 120% at 50% -15%, rgba(255,255,255,0.32), transparent 60%); }
.highlight-card > * { position: relative; z-index: 1; }
.highlight-card .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.highlight-card p { color: rgba(20,51,58,0.82); max-width: 56ch; margin: 0 auto; line-height: 1.65; font-size: var(--text-lg); }

/* Impact cards */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.impact-card { background: var(--paper); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.1rem); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-quint), box-shadow 0.35s var(--ease-quint); }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.impact-card .tag { display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-700); background: var(--coral-100); padding: 0.35rem 0.8rem; border-radius: var(--r-pill); margin-bottom: 1rem; }
.impact-card h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.impact-card p { color: var(--ink-soft); line-height: 1.6; }

/* 50% ring (Impact) */
.ring-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ring-wrap { display: grid; place-items: center; padding: 1rem; }
.ring { position: relative; width: min(320px, 80%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--coral-500), var(--coral-600) 60%, var(--coral-700)); display: grid; place-items: center; box-shadow: var(--shadow-coral); }
.ring::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgba(224,122,113,0.45); }
.ring .pct { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 3rem + 5vw, 5.5rem); color: var(--paper); line-height: 0.82; letter-spacing: -0.03em; text-align: center; }
.ring .pct small { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-top: 0.6rem; }

/* Dark logo tile (for white logos like Transition Salt Spring) */
.logo-tile.is-dark { background: var(--tide-900); border-color: transparent; }

/* ---------- Full-width photo band (place imagery) ---------- */
.photo-band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(340px, 42vw, 480px); display: flex; align-items: center; background: var(--tide-950); color: var(--on-dark); }
.photo-band .photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.photo-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,44,50,0.92) 0%, rgba(10,44,50,0.74) 38%, rgba(12,49,55,0.34) 70%, rgba(12,49,55,0.10) 100%); }
.photo-band .container { position: relative; z-index: 2; }
.photo-band .copy { max-width: 40rem; }
.photo-band h2 { font-size: var(--display-md); color: var(--on-dark); }
.photo-band p { font-size: var(--text-lg); color: var(--on-dark-soft); margin-top: 1rem; max-width: 44ch; line-height: 1.6; }
.photo-band .credit { position: absolute; right: 1rem; bottom: 0.8rem; z-index: 2; font-size: var(--text-xs); color: rgba(244,248,247,0.65); text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.photo-band .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-aside { background: var(--shell-deep); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-aside h3 { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.contact-aside p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.25rem; }
.contact-aside a.mail { font-family: var(--font-display); font-weight: 700; color: var(--teal-600); font-size: var(--text-lg); text-decoration: underline; text-underline-offset: 3px; }
.contact-aside .note { font-size: var(--text-sm); color: var(--ink-faint); margin-top: 1.25rem; margin-bottom: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--coral-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-base); color: var(--ink); width: 100%;
  background: var(--paper); border: 1.5px solid rgba(20,51,58,0.16); border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(42,128,139,0.16); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.form-note { font-size: var(--text-sm); color: var(--ink-soft); }
.form-status { grid-column: 1 / -1; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-size: var(--text-base); }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--teal-050); color: var(--tide-800); border: 1px solid var(--teal-100); }
.form-status.err { background: var(--coral-100); color: var(--coral-700); border: 1px solid var(--coral-300); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* FAQ — native <details>, accessible, no JS needed */
.faq { display: grid; gap: 0.85rem; max-width: 800px; margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--hairline-light); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq details[open] { border-color: var(--coral-300); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--teal-600); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--tide-800); }
.faq summary .chev { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--coral-600); transition: transform 0.3s var(--ease-quint); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 1.4rem 1.4rem; }
.faq .answer p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 0.8rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .ring-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .media-photo { aspect-ratio: 4 / 3; max-width: 460px; }
}
