.public-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.public-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 54px);
}
.public-header .brand { align-self: center; }
.public-header nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.public-header nav a, .public-login { color: var(--ink); font-weight: 650; text-decoration: none; }
.public-header nav a:hover, .public-header nav a[aria-current], .public-login:hover { color: var(--accent); text-decoration: underline; }
.public-header .actions { gap: 14px; }
.landing-content { max-width: 1400px; padding: clamp(20px, 4vw, 60px); }
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  margin: 6px 0 36px;
}
.landing-copy h1 { max-width: 15ch; font-size: clamp(2.35rem, 4.5vw, 4.35rem); }
.landing-copy p { max-width: 45ch; margin: 18px 0 24px; color: var(--muted); font-size: 1.12rem; }
.landing-copy .actions { gap: 12px 20px; }
.product-capture { min-width: 0; margin: 0; }
.product-capture-open,
.product-capture-open:not(:disabled):hover { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.product-capture img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.product-capture figcaption { margin-top: 6px; color: var(--muted); font-size: .84rem; }
.product-capture-dialog { width: min(1466px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.product-capture-dialog::backdrop { background: #172a25aa; }
.product-capture-dialog form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.product-capture-viewport { max-height: calc(100dvh - 90px); overflow: auto; overscroll-behavior: contain; }
.product-capture-viewport img { min-width: 900px; border: 0; border-radius: 0; }
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 26px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.landing-benefits p { color: var(--muted); margin-bottom: 0; }
.landing-price-history { margin-top: 34px; }
.landing-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-charts .price-chart { min-width: 0; margin-top: 8px; }
.landing-charts .chart-plot canvas { height: 240px; }
.landing-analytics { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; }
.landing-analytics p { max-width: 42ch; }
.landing-plans, .landing-analytics { margin-top: 34px; }
.landing-plans .panel-heading p { margin-bottom: 0; color: var(--muted); }
.plan-comparison table { min-width: 505px; }
.plan-comparison td { min-width: 92px; }
.guide-steps { display: grid; gap: 18px; padding-left: 2.1rem; }
.guide-steps > li { padding: clamp(12px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 15px; }
.guide-steps > li::marker { color: var(--accent); font-size: 1.15rem; font-weight: 750; }
.guide-steps p, .guide-steps ul { max-width: 78ch; }
.guide-steps .product-capture { margin-top: 14px; }
.faq-list { max-width: 900px; }
.faq-list details { padding: 12px 0; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { max-width: 76ch; margin-bottom: 0; }
@media (max-width: 760px) {
  .landing-hero, .landing-analytics, .landing-benefits, .landing-charts { grid-template-columns: minmax(0, 1fr); }
  .public-header-inner { gap: 8px 12px; }
  .public-header .brand { font-size: 1rem; }
  .public-header .brand-mark { width: 32px; height: 32px; border-width: 7px; }
  .public-header .actions { gap: 8px; font-size: .85rem; }
  .public-header nav { order: 1; flex-basis: 100%; }
  .plan-comparison table { min-width: 0; table-layout: fixed; }
  .plan-comparison .records :is(th, td) { min-width: 0; padding: 9px 4px; font-size: .8rem; overflow-wrap: anywhere; }
  .plan-comparison thead th:first-child { width: 40%; }
  .plan-comparison button { width: 100%; padding-inline: 3px; white-space: normal; font-size: .72rem; }
}
