/* ==========================================================================
   Public site — SEO/AEO pages
   Loaded after the shared app design system.
   ========================================================================== */

.public-body {
  background: var(--cream);
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 238, 0.9);
  border-bottom: 1px solid rgba(229, 226, 215, 0.85);
  backdrop-filter: blur(14px);
}

.site-header .public-nav {
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .nav-links a[aria-current="page"] {
  color: var(--green-800);
  font-weight: 700;
}

.site-menu {
  display: none;
  position: relative;
}
.site-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 38px;
}
.site-menu summary::-webkit-details-marker {
  display: none;
}
.site-menu[open] summary {
  background: rgba(15, 61, 46, 0.08);
}
.site-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.site-menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.site-menu-panel a:hover {
  background: var(--green-50);
  color: var(--green-800);
  text-decoration: none;
}

.install-app-btn {
  white-space: nowrap;
}
.site-install {
  display: none;
  margin-left: auto;
}
.footer-links button.footer-install {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}
.footer-links button.footer-install:hover {
  color: var(--green-700);
}

.hero-copy {
  min-width: 0;
}

.hero-card h2 {
  margin: 20px 0 4px;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 500;
}

.hero-card .balance-sub {
  margin: 0;
  color: rgba(234, 242, 237, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card .role-chip {
  color: #f4dfb2;
  border: 1px solid rgba(244, 223, 178, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.answer-section {
  padding-top: 20px;
}

.answer-first {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber-600);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.answer-first h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}
.answer-first p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.68;
}
.answer-first p + p {
  margin-top: 12px;
}

.fact-list,
.check-list,
.contact-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.fact-list li,
.check-list li,
.contact-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.fact-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}
.check-list li::before {
  display: none;
}
.check-list .icon {
  color: var(--green-600);
  margin-top: 1px;
}
.contact-list li {
  padding-left: 0;
}

.eyebrow-light {
  color: #f1d7a0;
}
.eyebrow-light::before {
  background: #e6b35c;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(35, 141, 104, 0.36), transparent 62%),
    radial-gradient(600px 320px at -8% 110%, rgba(192, 122, 24, 0.2), transparent 60%),
    var(--green-900);
  color: #eaf2ed;
  padding: 34px 0 58px;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.page-hero h1 {
  max-width: 920px;
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-hero .eyebrow {
  color: #f1d7a0;
}
.page-hero .eyebrow::before {
  background: #e6b35c;
}
.page-hero .lede {
  max-width: 760px;
  color: rgba(234, 242, 237, 0.78);
}
.page-hero .meta {
  margin-top: 18px;
  color: rgba(234, 242, 237, 0.56);
  font-size: 0.8rem;
}

.breadcrumbs {
  margin-bottom: 22px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: rgba(234, 242, 237, 0.65);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(234, 242, 237, 0.34);
}
.breadcrumbs a {
  color: rgba(234, 242, 237, 0.78);
}
.breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs [aria-current="page"] {
  color: #fff;
}

.prose-section {
  padding-top: 46px;
}
.prose-page {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow-xs);
}
.prose-page > h2 {
  margin: 34px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.prose-page > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 30px;
}
.prose-page p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.68;
}
.prose-page p:last-child {
  margin-bottom: 0;
}
.prose-page code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 5px;
  padding: 1px 5px;
}
.prose-page .answer-first {
  margin: 0 0 30px;
  max-width: none;
}
.prose-page .check-list {
  margin-bottom: 18px;
}

.faq-section {
  max-width: 980px;
}
.faq-section .answer-first {
  max-width: none;
  margin-bottom: 26px;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}
.faq-item h2,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.faq-item h2 {
  font-size: 1.18rem;
}
.faq-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.small-print {
  max-width: 72ch;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(35, 141, 104, 0.4), transparent 65%),
    var(--green-900);
  color: #eaf2ed;
  box-shadow: var(--shadow-md);
}
.cta-band h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}
.cta-band p {
  max-width: 58ch;
  color: rgba(234, 242, 237, 0.72);
  font-size: 0.9rem;
}
.cta-band .hero-actions {
  margin-top: 0;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 1fr));
  gap: 30px;
  align-items: start;
}
.site-footer-brand p {
  max-width: 38ch;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
}
.footer-links strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a,
.footer-contact span {
  color: var(--ink-3);
}
.footer-links a:hover {
  color: var(--green-700);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 0.74rem;
}

.prose {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.66;
}
.prose p + p {
  margin-top: 11px;
}
.prose a {
  font-weight: 600;
}

#main [id] {
  scroll-margin-top: 82px;
}

@media (max-width: 1040px) {
  .nav-actions .install-app-btn {
    display: none;
  }
  .site-install {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header .public-nav {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .site-header .nav-links,
  .site-header .nav-actions {
    display: none;
  }
  .site-menu {
    display: block;
  }
  .page-hero {
    padding: 24px 0 42px;
  }
  .page-hero-inner {
    padding: 0 18px;
  }
  .answer-first {
    padding: 22px 20px;
    border-left-width: 4px;
  }
  .prose-page {
    padding: 22px 20px;
  }
  .faq-item {
    padding: 18px 18px;
  }
  .cta-band {
    padding: 26px 20px;
  }
  .cta-band .hero-actions {
    width: 100%;
  }
  .cta-band .hero-actions .btn {
    flex: 1;
  }
  .footer-bottom {
    padding: 16px 18px 26px;
  }
}

@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer-brand {
    grid-column: auto;
  }
  .fact-list li,
  .check-list li,
  .contact-list li {
    font-size: 0.86rem;
  }
}

@media print {
  .site-header,
  .skip-link,
  .public-footer,
  .cta-band {
    display: none;
  }
  .public-shell,
  .public-body {
    background: #fff;
  }
  .prose-page,
  .answer-first,
  .faq-item {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
