/* Public site: landing, contact, terms, privacy. Teal brand, quiet neutrals, 4px grid. */
.pub {
  --ink: #161816; --ink-2: #4f5551; --ink-3: #737a76;
  --line: rgba(22, 24, 22, .08); --bg: #fff; --bg-2: #f6f7f6;
  --teal: #0A7A6E; --teal-ink: #08665c; --teal-soft: #eaf5f3;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--ui-font); -webkit-font-smoothing: antialiased;
}
[dir=rtl].pub, [dir=rtl] .pub { letter-spacing: 0; }
.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
.pub a { color: inherit; text-decoration: none; }
.pub h1, .pub h2, .pub h3 { margin: 0; font-weight: 600; color: var(--ink); }
.pub p { margin: 0; }
.pub-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.pub .pci { width: 18px; height: 18px; flex: none; }

/* Header */
.pub-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pub-head-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.pub-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.pub-logo img { height: 32px; width: auto; display: block; }
.pub-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; }
.pub-mark .pci { width: 16px; height: 16px; }
.pub-nav { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.pub-nav a:hover { color: var(--ink); }
.pub-head-end { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.pub-link { color: var(--ink-2); white-space: nowrap; }
.pub-link:hover { color: var(--ink); }
.pub-menu { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.pub-lang { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); position: relative; }
.pub-lang .pci { width: 16px; height: 16px; }
.pub-lang select { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 4px 4px; cursor: pointer; }
.pub-lang select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 8px; border: 1px solid rgba(22,24,22,.14); background: #fff; color: var(--ink); font: 500 14px/1 var(--ui-font); cursor: pointer; transition: background .15s, border-color .15s; }
.pub-btn:hover { background: var(--bg-2); }
.pub-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pub-btn-primary { background: var(--teal); border-color: var(--teal); color: #fff !important; }
.pub-btn-primary:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.pub-btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.pub-btn-block { width: 100%; }

/* Hero */
.pub-hero { padding: 80px 0 96px; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #f8f9f8); }
.pub-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pub-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.pub-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.pub-hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; max-width: 14ch; }
[dir=rtl] .pub-hero h1, [dir=rtl] .pub h2 { letter-spacing: 0; line-height: 1.3; }
.pub-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.pub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Product preview: the one detailed piece of the page */
.pub-preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(16, 32, 28, .22), 0 2px 6px rgba(16,32,28,.04); overflow: hidden; }
.pv-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pv-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(22,24,22,.12); }
.pv-body { padding: 20px; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pv-title { font-size: 18px; font-weight: 600; }
.pv-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.pv-stat { text-align: end; }
.pv-num { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--teal-ink); }
.pv-list { list-style: none; margin: 0; padding: 8px 0; }
.pv-list li { display: flex; align-items: center; gap: 12px; height: 56px; border-bottom: 1px solid var(--line); }
.pv-list li:last-child { border-bottom: 0; }
.pv-time { width: 44px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pv-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.pv-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pv-who b { font-weight: 500; font-size: 14px; }
.pv-who small { font-size: 13px; color: var(--ink-3); }
.pv-tag { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.pv-ok { background: #ecf7f0; color: #237a4b; }
.pv-now { background: var(--teal-soft); color: var(--teal-ink); }
.pv-msg { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: #f1f8f2; border: 1px solid #d7ecdc; }
.pv-msg > .pci { color: #1f8a4c; }
.pv-msg div { flex: 1; display: flex; flex-direction: column; }
.pv-msg b { font-size: 14px; font-weight: 500; }
.pv-msg small { font-size: 13px; color: var(--ink-2); }
.pv-ticks { display: flex; color: #2b8fd6; }
.pv-ticks .pci { width: 14px; height: 14px; }
.pv-ticks .pci + .pci { margin-inline-start: -8px; }

/* Sections */
.pub-sec { padding: 96px 0; }
.pub-sec-top { padding-top: 64px; }
.pub-sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.pub-sec-head { max-width: 640px; margin-bottom: 48px; }
.pub h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; }
.pub-sec-head p { font-size: 17px; color: var(--ink-2); margin-top: 12px; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pub-feat { background: #fff; padding: 28px 24px; }
.pub-feat .pci { color: var(--teal); width: 20px; height: 20px; }
.pub-feat h3 { font-size: 16px; margin: 16px 0 8px; }
.pub-feat p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* Pricing */
.pub-plans { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: stretch; }
.pub-plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pub-plan.is-local { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.pub-plan-name { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pub-price { display: flex; align-items: baseline; gap: 8px; }
.pub-price span { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pub-price small { font-size: 14px; color: var(--ink-3); }
.pub-plan-note { font-size: 14px; color: var(--ink-2); flex: 1; }
.pub-incl { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.pub-incl h3 { font-size: 16px; margin-bottom: 16px; }
.pub-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pub-incl li { display: flex; gap: 8px; align-items: flex-start; }
.pub-incl .pci { color: var(--teal); width: 16px; height: 16px; margin-top: 3px; }
.pub-end { text-align: center; max-width: 640px; }
.pub-end p { color: var(--ink-2); margin-top: 12px; }
.pub-end .pub-cta { justify-content: center; }

/* Contact */
.pub-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.pub-contact h1 { font-size: 40px; line-height: 1.15; }
.pub-contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.pub-contact-list li { display: flex; gap: 12px; }
.pub-contact-list .pci { color: var(--teal); margin-top: 2px; }
.pub-contact-list small { display: block; font-size: 13px; color: var(--ink-3); }
.pub-contact-list a { color: var(--ink); font-weight: 500; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 3px rgba(16,24,20,.04); }
.pub-form { display: grid; gap: 16px; }
.pub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pub-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pub-form input, .pub-form textarea { font: 400 15px/1.5 var(--ui-font); color: var(--ink); border: 1px solid rgba(22,24,22,.14); border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%; }
.pub-form input:focus, .pub-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.pub-form .pub-btn { justify-self: start; }
.pub-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.pub-note { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 12px 16px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); margin-bottom: 8px; }
.pub-note-ok { background: var(--teal-soft); color: var(--teal-ink); }
.pub-note-err { background: #fdf0f0; color: #a3302f; }

/* Terms and privacy */
.pub-legal { max-width: 760px; }
.pub-legal h1 { font-size: 36px; line-height: 1.2; }
.pub-meta { font-size: 14px; color: var(--ink-3); margin-top: 8px; margin-bottom: 32px; }
.pub-legal .pub-note { margin-bottom: 24px; }
.pub-prose { font-size: 16px; line-height: 1.75; color: #2e332f; text-align: left; }
.pub-prose h2 { font-size: 20px; margin: 40px 0 12px; letter-spacing: 0; }
.pub-prose h3 { font-size: 17px; margin: 28px 0 8px; }
.pub-prose p { margin: 0 0 16px; }
.pub-prose ul, .pub-prose ol { margin: 0 0 16px; padding-left: 24px; }
.pub-prose li { margin-bottom: 6px; }
.pub-prose strong, .pub-prose b { font-weight: 600; color: var(--ink); }
.pub-prose a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.pub-prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.pub-prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 16px; }
.pub-prose td, .pub-prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* Footer */
.pub-foot { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--ink-3); }
.pub-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pub-foot nav { display: flex; gap: 24px; }
.pub-foot a:hover { color: var(--ink); }

/* Small screens */
@media (max-width: 960px) {
  .pub-hero { padding: 48px 0 64px; }
  .pub-hero-in, .pub-contact { grid-template-columns: 1fr; gap: 40px; }
  .pub-hero h1 { font-size: 36px; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .pub-plans { grid-template-columns: 1fr 1fr; }
  .pub-incl { grid-column: 1 / -1; }
  .pub-sec { padding: 64px 0; }
}
@media (max-width: 720px) {
  .pub-wrap { padding-inline: 20px; }
  .pub-head-in { gap: 12px; }
  .pub-nav { display: none; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px; }
  .pub-nav.open { display: flex; }
  .pub-nav a { padding: 12px 0; }
  .pub-menu { display: inline-flex; }
  .pub-hide-sm { display: none; }
  .pub-hero h1 { font-size: 32px; }
  .pub h2 { font-size: 26px; }
  .pub-lead { font-size: 16px; }
  .pub-grid, .pub-plans, .pub-row { grid-template-columns: 1fr; }
  .pv-list li:nth-child(n+4) { display: none; }
  .pv-head { flex-direction: column; align-items: flex-start; }
  .pv-stat { text-align: start; }
}

/* Sign-in page */
.pub-auth { background: var(--bg-2); min-height: 100vh; }
.pub-auth-top { position: absolute; top: 16px; inset-inline-end: 24px; font-size: 14px; }
.pub-auth .ui-brand { justify-content: center; margin-bottom: 24px; }
.pub-auth-links { display: flex; justify-content: center; gap: 24px; margin-top: 24px; font-size: 13px; color: var(--ink-3); }
.pub-auth-links a:hover { color: var(--ink); }

/* Articles */
.pub-article { max-width: 760px; }
.pub-crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.pub-crumbs a:hover { color: var(--teal-ink); }
.pub-kicker { font-size: 14px; font-weight: 500; color: var(--teal-ink); margin-bottom: 12px; }
.pub-article > h1, .pub-prose-article h1 { font-size: 36px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 24px; font-weight: 600; color: var(--ink); }
.pub-prose-article { font-size: 17px; line-height: 1.75; }
.pub-prose-article figure { margin: 24px 0 32px; }
.pub-prose-article img { max-width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid var(--line); }
.pub-prose-article figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.pub-prose-article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--ink-2); }
.pub-prose-article h2 { font-size: 24px; margin: 48px 0 16px; }
.pub-prose-article h3 { font-size: 19px; margin: 32px 0 12px; }
.pub-prose-article code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.pub-prose-article .wp-block-table, .pub-prose-article table { overflow-x: auto; display: block; }
.pub-article-date { margin-top: 32px; }
.pub-article-end { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pub-article-end h2 { font-size: 20px; }
.pub-article-end p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.pub-page-title { font-size: 36px; line-height: 1.2; }
.pub-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pub-post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.pub-post:hover { border-color: rgba(10,122,110,.35); box-shadow: 0 8px 24px -12px rgba(16,32,28,.18); }
.pub-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-2); }
.pub-post-body { padding: 20px; display: grid; gap: 8px; }
.pub-post h2 { font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.pub-post p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 960px) { .pub-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .pub-posts { grid-template-columns: 1fr; } .pub-article > h1, .pub-prose-article h1 { font-size: 28px; } }
.pub-auth-note { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 20px; line-height: 1.6; }
.pub-auth-note a { color: var(--teal-ink); font-weight: 500; }
