/* ============================================
   PUBLIC PAGES - Logged-out marketing pages
   ============================================ */

/* Global link styles for public pages */
.public-page a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
.public-page a:hover {
  color: var(--secondary);
}
/* Strong = medium (500) for body copy */
.public-page strong,
.public-page b {
  font-weight: 500;
}
/* Bold inline text links in body copy = bold (700) */
.landing-hero-detail a:not(.brand-inline),
.landing-section a:not(.btn):not(.brand-inline),
.landing-cta a:not(.btn):not(.brand-inline),
.faq-answer a:not(.brand-inline),
.blog-article a:not(.btn):not(.brand):not(.brand-inline),
.card-detail-content a:not(.brand-inline),
.panel-card a:not(.brand-inline),
.category-card a:not(.brand-inline),
.legal-sheet-content a:not(.brand-inline),
.help-content a:not(.brand-inline):not(.help-screenshot) {
  font-weight: 700;
}
.public-page .btn,
.public-page .btn:hover {
  text-decoration: none;
}
.public-page .btn-primary,
.public-page .btn-primary:hover {
  color: white;
}

/* Inline brand name */
.brand-inline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.brand-inline .brand-ai {
  font-weight: 300;
  color: var(--secondary);
}

/* Nav */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.public-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.public-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.15s;
  /* Fix horizontal jitter on weight change: render the 600-weight version
     invisibly as a pseudo-sibling with height:0 so the link container always
     reserves the wider (bold) width. Requires data-label="..." on the anchor. */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.nav-link::after {
  content: attr(data-label);
  font-weight: 600;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.nav-link:hover,
.nav-link.nav-active {
  color: var(--secondary);
  font-weight: 600;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Sticky-footer scaffold: short pages (e.g. /research) push the footer to viewport bottom */
body.public-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.public-page > .public-main {
  flex: 1 0 auto;
}

/* Main content area */
.public-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Hero */
.public-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.public-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--primary);
}
.public-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* Pricing tiers */
.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 750px;
  margin: 2rem auto 3rem;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 1;
}
.pricing-card-header h2 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0 0;
}
.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
  line-height: 2.5rem;
}
.pricing-price .per-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.pricing-refresh {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.25rem 0 1.5rem;
}
.vat-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.pricing-features .check {
  color: #22c55e;
  flex-shrink: 0;
}
.pricing-features .feature-disabled {
  color: var(--text-tertiary);
}
.pricing-features .feature-disabled svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.pricing-card-footer {
  margin-top: auto;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Credit packs */
.credit-packs {
  text-align: center;
  padding: 2rem 0 3rem;
}
.credit-packs h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.section-sub {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}
.currency-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1.5rem;
}
.currency-btn {
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.currency-btn.active {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.packs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.pack-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.pack-card-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.pack-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.pack-credits {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.pack-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.pack-price .currency {
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.5rem;
}
.pack-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}
.volume-note {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.volume-note a {
  color: var(--primary);
}

/* CTA section */
.public-cta {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.public-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.public-cta p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* FAQ */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.faq-group {
  margin-bottom: 2rem;
}
.faq-group h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--secondary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.faq-item summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  margin-left: 1rem;
  transition: background-color 0.15s, transform 0.3s ease;
}
.faq-item summary:hover::after {
  background-color: var(--secondary);
}
.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-answer {
  padding: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: faqSlideDown 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.faq-answer p {
  margin: 0 0 0.75rem;
}
.faq-answer a {
  color: var(--primary);
}

/* Legal pages */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}
.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.legal-content p {
  margin: 0 0 0.75rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content a {
  color: var(--primary);
}

/* Back-to-top - lower position on public pages (in-app keeps default to clear the toolbar) */
.public-page .back-to-top {
  bottom: 80px;
}

/* Public footer */
.public-footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 90;
}
.public-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-footer-brand {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.public-footer-brand a {
  color: var(--text-secondary);
}
.public-footer-links {
  display: flex;
  gap: 1.5rem;
}
.public-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
}
.public-footer-links a:hover {
  color: var(--text-primary);
}

/* Hamburger button - hidden above breakpoint */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-locked {
  overflow: hidden;
}

/* Help page draft banner */
.help-draft-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FEF3C7;
  color: #92400E;
  border-bottom: 1px solid #FCD34D;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.help-draft-banner > span:first-child {
  font-size: 18px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .help-draft-banner {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* Help page layout */
.help-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
  flex: 1 0 auto;
}
.help-toc {
  position: sticky;
  top: 72px;
  padding: 1rem 0.5rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 0.9rem;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.help-toc h4 {
  margin: 0 0 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.help-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.help-toc li { margin: 0; }
.help-toc a {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--text-primary);
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.3;
}
.help-toc a:hover {
  background: var(--invert-2);
  color: var(--primary);
}
.help-toc a.active {
  background: var(--invert-2);
  color: var(--primary);
  font-weight: 600;
}
/* Top-level entries (both flat and grouped) */
.help-toc > ul > li > a,
.help-toc .toc-group > summary {
  font-weight: 600;
  color: var(--primary);
}
/* Collapsible section groups in TOC */
.help-toc .toc-group {
  margin: 0;
}
.help-toc .toc-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 1.2rem 0.4rem 0.5rem;
  border-radius: 4px;
  line-height: 1.3;
  position: relative;
  user-select: none;
  transition: background 0.15s;
}
.help-toc .toc-group > summary::-webkit-details-marker { display: none; }
.help-toc .toc-group > summary::marker { content: ''; }
.help-toc .toc-group > summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform 0.2s;
}
.help-toc .toc-group[open] > summary::after {
  transform: translateY(-30%) rotate(45deg);
}
.help-toc .toc-group > summary:hover {
  background: var(--invert-2);
}
.help-toc .toc-group > summary:hover::after {
  border-color: var(--primary);
}
.help-toc .toc-group > ul {
  margin: 0.15rem 0 0.5rem 0.35rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--border);
}
.help-toc .toc-group > ul a {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 0.3rem 0.5rem;
}
.help-toc .toc-group > ul a.active {
  font-weight: 500;
}
.help-toc .toc-group > ul li.toc-sub > a {
  padding-left: 1.4rem;
  font-size: 0.8rem;
  opacity: 0.9;
}
.help-content {
  min-width: 0;
}
.help-content section {
  scroll-margin-top: 72px;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.help-content section:last-child {
  border-bottom: 0;
}
.help-content h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.help-content h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.help-content h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
/* FAQ group headings inside help-content - keep the lighter accordion style, don't inherit help h2 */
.help-content .faq-group h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--secondary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.help-content p {
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}
.help-content ul, .help-content ol {
  line-height: 1.6;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.help-content ul ul {
  list-style: disc;
  margin: 0.5rem 0 0.25rem;
}
.help-content li {
  margin-bottom: 0.4rem;
}
.help-callout {
  background: var(--invert-2);
  border-left: 3px solid var(--secondary);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}
.help-callout p {
  margin: 0 0 0.6rem;
}
.help-callout p:last-child {
  margin-bottom: 0;
}
.help-example {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(42,138,129,0.04), rgba(42,138,129,0.08));
  border-left: 4px solid var(--secondary);
  border-radius: 4px;
}
.help-example-label {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.help-example p {
  margin: 0 0 0.6rem;
  line-height: 1.6;
}
.help-example p:last-child {
  margin-bottom: 0;
}

/* Pull-quote: distinct from Tip callouts - used for research stats */
.help-pullquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(42,138,129,0.04), rgba(42,138,129,0.08));
  border-left: 4px solid var(--secondary);
  border-radius: 4px;
  font-family: 'Fredoka', sans-serif;
}
.help-pullquote blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--secondary);
  font-weight: 500;
}
.help-pullquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Progressive disclosure for advanced detail */
details.help-disclosure {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}
details.help-disclosure > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--primary);
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
details.help-disclosure > summary::-webkit-details-marker { display: none; }
details.help-disclosure > summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
}
details.help-disclosure[open] > summary::after { content: '-'; }
details.help-disclosure > *:not(summary) {
  margin-left: 1rem;
  margin-right: 1rem;
}
details.help-disclosure > summary + * {
  margin-top: 0.75rem;
}
details.help-disclosure > *:last-child {
  margin-bottom: 1rem;
}
/* Pull-quotes inside disclosures need a slightly tighter padding to sit nicely in the reduced width, plus matching margins */
details.help-disclosure > .help-pullquote {
  margin: 1.25rem 1rem;
  padding: 1rem 1.25rem;
}
details.help-disclosure > .help-pullquote blockquote {
  font-size: 1.05rem;
}

/* Report screenshots: full-width, natural aspect ratio */
.help-screenshot {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--invert-2);
}
.help-screenshot-figure {
  margin: 1rem 0;
}
.help-content .help-screenshot-figure figcaption,
.help-screenshot-figure figcaption {
  font-size: 0.8rem !important;
  line-height: 1.5;
  color: var(--mid-grey);
  font-style: italic;
  margin-top: 0.4rem;
  max-width: 860px;
}

/* Comparison / data tables inside help content */
.help-content table {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.help-content table th,
.help-content table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.help-content table th {
  background: var(--invert-2);
  color: var(--primary);
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.help-content table tr:last-child td {
  border-bottom: 0;
}
.help-content table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.help-content table .num-bold {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.help-screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  border: 2px dashed var(--border);
  border-radius: 6px;
  background: var(--invert-2);
  text-align: center;
  padding: 1rem;
}

/* Contact form */
.help-contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 620px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.help-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}
.help-contact-form input,
.help-contact-form select,
.help-contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text-primary);
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s;
}
.help-contact-form input:focus,
.help-contact-form select:focus,
.help-contact-form textarea:focus {
  border-color: var(--secondary);
}
.help-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M0 0l7 8 7-8z' fill='%232A8A81'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 8px,
    linear-gradient(to right, transparent calc(100% - 38px), var(--border) calc(100% - 38px), var(--border) calc(100% - 37px), transparent calc(100% - 37px)) no-repeat,
    white;
  cursor: pointer;
}
.help-contact-form select:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M0 0l7 8 7-8z' fill='white'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 8px,
    linear-gradient(to right, transparent calc(100% - 38px), var(--secondary) calc(100% - 38px)) no-repeat,
    white;
  border-color: var(--secondary);
}
.help-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.help-contact-form button {
  justify-self: start;
}
.help-contact-status {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
.help-contact-status.ok { color: #2a8a81; }
.help-contact-status.err { color: #c0392b; }

/* Research placeholder */
.research-placeholder {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.research-placeholder h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 1rem;
}
.research-placeholder p {
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 1rem;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-hamburger {
    display: flex;
  }
  .public-nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 99;
  }
  .public-nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .public-nav-links .nav-link,
  .public-nav-links .btn {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    text-align: left;
  }
  .public-nav-links .btn {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0;
  }
  .help-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .help-toc {
    position: static;
  }
}
@media (max-width: 768px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
  .packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-hero h1 {
    font-size: 1.6rem;
  }
}
@media (max-width: 480px) {
  .packs-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .help-content h1 {
    font-size: 1.5rem;
  }
  .help-content h2 {
    font-size: 1.2rem;
  }
}

/* Legal sheet overlay - shared across all public pages */
.legal-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 140;
  background: var(--surface);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow-y: auto;
  padding: 2rem 1.5rem 4rem;
}
.legal-sheet.open {
  transform: translateY(0);
}
.legal-close {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mid-grey);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.legal-close:hover {
  color: var(--primary);
  background: rgba(2,96,92,0.06);
}
.legal-sheet-inner {
  max-width: 700px;
  margin: 0 auto;
}
.legal-sheet-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.25rem;
  text-transform: none;
  letter-spacing: normal;
}
.legal-sheet .legal-date {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin: 0 0 1.5rem;
}
.legal-sheet-content {
  color: var(--mid-grey);
  font-size: 0.9rem;
  line-height: 1.7;
}
.legal-sheet-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--body-color);
  margin: 1.75rem 0 0.5rem;
}
.legal-sheet-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body-color);
  margin: 1.25rem 0 0.4rem;
}
.legal-sheet-content p {
  margin: 0 0 0.75rem;
}
.legal-sheet-content ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.legal-sheet-content li {
  margin-bottom: 0.4rem;
}
.legal-sheet-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-sheet-content a:hover {
  color: var(--secondary);
}
