/* Post2Portal public website. Brand colours from the logo: navy #0b3f7f, green #2eb04b, blue #1a8fdb. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #16202b;
  --muted: #5b6672;
  --line: #e2e7ee;
  --navy: #0b3f7f;
  --navy-ink: #ffffff;
  --green: #2eb04b;
  --blue: #1a8fdb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(11, 63, 127, .06), 0 8px 24px rgba(11, 63, 127, .08);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1520; --bg-soft: #141e2b; --text: #e8edf3; --muted: #9eabb8; --line: #243244;
    --navy: #7db3f2; --navy-ink: #0b1a2e; --green: #4cc56a; --blue: #4ea9ec; --card: #172231;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }
nav.links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
nav.links a:hover { color: var(--navy); }
.lang { font-size: .85rem; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; text-decoration: none; }
@media (max-width: 760px) { nav.links .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 7px 14px; font-size: .9rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); padding: 4px 12px; border-radius: 99px; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* hero illustration: one listing → many portals */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.listing { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.listing .ph { aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(160deg, #8fc0e8 0 45%, #6d9a4f 45% 100%); }
.listing strong { display: block; }
.portal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.portal-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pill { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.pill.sent { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.pill.no { background: var(--bg-soft); color: var(--muted); }

/* grids & cards */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--navy-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.icon { font-size: 1.5rem; margin-bottom: 8px; }
.heading { margin-bottom: 36px; }

/* portals */
.portal-group h3 { margin-bottom: 4px; }
.portal-group p { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 12px; font-size: .9rem; }
.chip.own { border-color: var(--navy); color: var(--navy); font-weight: 600; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* form */
form.demo { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
form.demo .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { form.demo { grid-template-columns: 1fr; } }
form.demo label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
form.demo input, form.demo textarea { font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
form.demo textarea { min-height: 96px; resize: vertical; }
form.demo .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
form.demo .check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.notice.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.notice.err { background: color-mix(in srgb, #c23b30 12%, transparent); color: #c23b30; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* plain text pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* header logo: icon + wordmark (the stacked logo.webp is for social previews) */
.logo { gap: 9px; text-decoration: none; }
.logo img { height: 34px; width: 34px; }
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--navy); }
.wordmark b { color: var(--green); font-weight: 800; }

/* portal chips are links to each portal's site */
a.chip { text-decoration: none; color: var(--text); transition: border-color .15s, color .15s; }
a.chip:hover { border-color: var(--navy); color: var(--navy); }
a.chip.own { color: var(--navy); }
a.chip::after { content: " ↗"; font-size: .8em; color: var(--muted); }
