/* Public pages on top of kit.css and app.css: landing, legal pages, support and the printable gate notice.
   Token-driven, so light and dark both work. No hover movement. */
.pub{display:flex;flex-direction:column;min-height:100vh}
.pub-wrap{width:100%;max-width:1040px;margin:0 auto;padding:0 16px}
.pub-top{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.pub-top__inner{display:flex;align-items:center;gap:12px;min-height:60px}
.pub-brand{display:flex;align-items:center;text-decoration:none}
.pub-nav{margin-left:auto;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pub-nav > a:not(.btn){color:var(--ink-2);text-decoration:none;font-weight:600;font-size:var(--fs-sm)}
.pub-nav > a:not(.btn):hover{color:var(--brand)}
.pub-main{flex:1;padding:24px 0 40px}
.pub-foot{border-top:1px solid var(--line);background:var(--surface);padding:20px 0;font-size:var(--fs-sm);color:var(--muted)}
.pub-foot__links{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.pub-foot a{color:var(--ink-2)}
.pub-foot__line{margin:0}
.pub-narrow{max-width:880px;margin:0 auto}
.pub-narrow h1,.legal h1{margin:0 0 4px;font-size:28px;line-height:1.25}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* Landing */
.pub-hero{padding:24px 0 8px;max-width:760px}
.pub-hero h1{font-size:36px;line-height:1.2;margin:0 0 12px;color:var(--ink)}
.pub-hero__lede{font-size:var(--fs-lg);color:var(--ink-2);margin:0 0 16px}
.pub-promises{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.pub-promises li{display:flex;align-items:center;gap:6px;font-weight:700;color:var(--ok)}
.pub-hero__actions{display:flex;flex-wrap:wrap;gap:10px}
.pub-section{margin:40px 0 0}
.pub-section h2{font-size:24px;margin:0 0 6px}
.pub-section > .lede{margin:0 0 16px}
.pub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.pub-feature{padding:18px}
.pub-feature h3{margin:8px 0 4px;font-size:var(--fs-lg)}
.pub-feature p{margin:0;color:var(--ink-2)}
.pub-feature__icon{display:inline-flex;padding:8px;border-radius:var(--radius-sm);background:var(--brand-soft);color:var(--brand)}
.pub-plus{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px}
.pub-plus p{margin:0 0 8px}
.pub-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.pub-step{display:flex;gap:12px;align-items:flex-start}
.pub-step h3{margin:0 0 4px;font-size:var(--fs-lg)}
.pub-step p{margin:0;color:var(--ink-2)}
.pub-step__n{flex:none;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:var(--on-brand);font-weight:800}
.pub-section ul{margin:0;padding-left:20px}
.pub-contact p{margin:0}

/* Legal pages */
.legal{max-width:820px;margin:0 auto}
.legal__draft{max-width:820px;margin:0 auto 20px}
.legal__date{margin:4px 0 12px;font-size:var(--fs-sm)}
.legal__section{margin:24px 0 0}
.legal__section h2{font-size:20px;margin:0 0 8px}
.legal__section p{margin:0 0 10px}
.legal__section ul{margin:0 0 10px;padding-left:22px}
.legal__section li{margin:0 0 4px}
.pub-langs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 12px;font-size:var(--fs-sm)}
.pub-lang{display:inline-flex;padding:4px 12px;border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-2);text-decoration:none;font-weight:600;background:var(--surface)}
a.pub-lang:hover{border-color:var(--brand-300);color:var(--brand)}
.pub-lang.is-current{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-300)}
.pub-support .field-grid{grid-template-columns:minmax(0,1fr)}

/* Paying aptzo on the Plan page */
.pay{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin:8px 0 12px}
.pay__text p{margin:0 0 8px}

/* Gate notice: one A4 sheet */
.print-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;max-width:820px;margin:0 auto 16px}
.print-bar .pub-langs{margin:0}
.gate-sheet{max-width:820px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.gate-sheet__head{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-direction:row-reverse;border-bottom:2px solid var(--brand);padding-bottom:12px;margin-bottom:12px}
.gate-sheet__head h1{margin:0;font-size:28px;line-height:1.25}
.gate-sheet__society{margin:2px 0 0;font-weight:700;color:var(--ink-2)}
.gate-sheet__intro{font-size:var(--fs-lg);margin:0 0 4px}
.gate-sheet .legal__section{margin-top:14px}
.gate-sheet .legal__section h2{font-size:18px;margin-bottom:4px}
.gate-sheet__foot{display:flex;gap:16px;align-items:center;margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}
.gate-sheet__foot p{margin:0 0 4px}
.gate-sheet__url{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}

@media (max-width:640px){
  .pub-hero h1{font-size:28px}
  .pub-plus{flex-direction:column;align-items:flex-start}
  .gate-sheet{padding:16px}
  .gate-sheet__head{flex-direction:column-reverse;align-items:flex-start}
  .gate-sheet__head h1,.pub-narrow h1,.legal h1{font-size:22px}
}

@media print{
  @page{size:A4;margin:14mm}
  :root{color-scheme:light}
  body,.pub{background:#fff!important;color:#000}
  .pub-top,.pub-foot,.no-print{display:none!important}
  .pub-main{padding:0}
  .pub-wrap{max-width:none;padding:0}
  .gate-sheet{border:0;padding:0;max-width:none;background:#fff;color:#000}
  .gate-sheet *{color:#000}
  .logo--light{display:block!important}
  .logo--dark{display:none!important}
  .gate-sheet__head{border-bottom-color:#000}
  .gate-sheet__intro{font-size:15pt}
  .gate-sheet .legal__section h2{font-size:14pt}
  .gate-sheet .legal__section p,.gate-sheet .legal__section li{font-size:12pt}
  .gate-sheet__foot{break-inside:avoid}
}
