/* Everdeck public site: the marketing pages, the legal centre and the contact form.
   Colours, type, buttons, cards, tables, badges and form controls come from /app/styles.css, which
   base.html loads first. This file adds only what long, mobile-first pages need. */

[hidden] { display: none !important; }

body.site { background: var(--surface); font-size: 16px; line-height: 1.6; }
/* Short pages (a 404, "message sent") keep the footer at the bottom of the window. */
body.site { display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
.site main:focus { outline: none; }
.site .eyebrow { margin-bottom: 12px; font-size: 12px; }
.site .eyebrow a { color: inherit; text-decoration: none; }
.site .eyebrow a:hover { text-decoration: underline; }
.site h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.site h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 9px 14px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.site) { scroll-behavior: smooth; } }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
/* The app's buttons are <button>s; on the site most are links, which must not look like links. */
.site a.btn { text-decoration: none; }
.btn-lg { min-height: 46px; padding: 11px 18px; border-radius: 11px; font-size: 14px; }
.lede { margin: 0 0 26px; max-width: 62ch; color: var(--muted); font-size: clamp(17px, 2vw, 19px); line-height: 1.55; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header: brand and actions on one row, the page links in a scrollable row below on phones. */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; align-items: center; gap: 2px 12px; padding-top: 10px; }
.site-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.site-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.site-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.site-actions .btn { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.site-nav { grid-area: nav; display: flex; gap: 2px; margin: 0 -20px; padding: 4px 14px 8px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--surface-soft); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }
@media (min-width: 860px) {
  .site-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; height: 68px; padding-top: 0; }
  .site-nav { justify-content: center; margin: 0; padding: 0; overflow: visible; }
  .site-actions { gap: 8px; }
  .site-actions .btn { min-height: 38px; padding: 8px 14px; }
}

/* Footer */
.site-footer { padding: 56px 0 28px; background: var(--side); border-top: 1px solid rgba(255, 255, 255, .08); color: var(--side-ink); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand { grid-column: 1 / -1; }
.site-footer .site-brand { color: #fff; }
.footer-brand p { max-width: 36ch; margin: 12px 0 0; color: var(--side-muted); }
.site-footer a { color: var(--side-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-col h2 { margin: 0 0 12px; color: var(--side-muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--side-muted); font-size: 13px; }
.footer-base p { margin: 0; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* Heroes */
.hero { padding: 52px 0 64px; background: radial-gradient(900px 420px at 88% -12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(700px 380px at -12% 8%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 70%), var(--surface); }
.hero-inner { display: grid; gap: 44px; align-items: center; }
.hero h1 { margin: 0 0 18px; font-size: clamp(36px, 6.2vw, 62px); line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 980px) {
  .hero { padding: 88px 0 100px; }
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
}
.page-hero { padding: 52px 0 40px; background: radial-gradient(800px 300px at 82% -24%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 24ch; margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .notice { max-width: 72ch; margin-top: 22px; font-size: 14px; }
@media (min-width: 860px) { .page-hero { padding: 76px 0 56px; } }

/* The hero's product picture: an approval waiting for a person. */
.hero-visual { display: grid; gap: 14px; margin: 0; }
.hero-visual figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.mock { display: grid; gap: 10px; }
.mock-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mock-meta { color: var(--muted); font-size: 12px; }
.mock-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mock-why { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.mock-args { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.mock-args div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.mock-args dt { color: var(--muted); font-size: 11px; font-weight: 650; }
.mock-args dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.mock-chain { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; font-size: 13px; }
.mock-chain li { display: flex; align-items: center; gap: 9px; }
.mock-chain .dot { width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid var(--line-strong); border-radius: 50%; }
.mock-chain .is-done .dot { background: var(--green); border-color: var(--green); }
.mock-chain .is-current .dot { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-actions .btn { pointer-events: none; }
.mock-feed { display: grid; gap: 8px; margin-left: 28px; }
.mock-feed-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; }
@media (max-width: 480px) {
  .mock-args { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-feed { margin-left: 0; }
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.section-foot { margin: 28px 0 0; }
.split { display: grid; gap: 36px; align-items: center; }
.split p { color: var(--muted); }
.split.split-top { align-items: start; }
@media (min-width: 860px) { .section { padding: 88px 0; } }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split-reverse > :first-child { order: 2; }
}

.steps { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 750; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.checks { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 6px; top: .3em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.split .checks li { color: var(--ink); }
@media (min-width: 760px) { .checks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }

.panel { margin: 0; padding: 0; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.site .panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tiers { list-style: none; margin: 0; padding: 0; }
.tiers li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.tiers li:last-child { border-bottom: 0; }
.tiers strong { display: block; font-size: 15px; }
.tiers .tier-desc { color: var(--muted); font-size: 14px; }

/* Work hours: one bar per agent across a 24-hour day. */
.hours { padding: 8px 20px 18px; }
.hours-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hours-label strong { display: block; font-size: 14px; }
.hours-label span { color: var(--muted); font-size: 13px; }
.hours-track { position: relative; height: 14px; border-radius: 99px; background: var(--grey-soft); }
.shift { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / 24 * 100%); width: calc((var(--to) - var(--from)) / 24 * 100%); border-radius: 99px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--blue))); }
.ping { position: absolute; top: 50%; left: calc(var(--at) / 24 * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.hours-axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.hours-note { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (min-width: 600px) {
  .hours-row { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
  .hours-axis { padding-left: 216px; }
}

.wall { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 940px; margin: 0 auto 32px; padding: 0; }
.wall li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 550; }

.features { display: grid; gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }
.feature-icon .icon { width: 20px; height: 20px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan-teasers { display: grid; gap: 14px; margin-bottom: 28px; }
.plan-teaser { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.plan-teaser:hover { border-color: var(--accent); transform: translateY(-2px); }
.plan-teaser-name { font-weight: 700; }
.plan-teaser-price { font-size: 32px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.plan-teaser-price small { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.plan-teaser-line { color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .plan-teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 650; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent-dark); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin: 0; }

.cta-band { padding: 64px 0; background: radial-gradient(800px 320px at 92% 0%, rgba(139, 123, 255, .34), transparent 70%), var(--side); color: #fff; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.site .cta-band h2 { margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0; color: var(--side-ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-on-dark { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .15); }
@media (min-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; } }

/* Product page */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.anchor-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 14px; text-decoration: none; }
.anchor-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.product-row { display: grid; gap: 20px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.product-row:last-child { border-bottom: 0; }
.product-row p { margin: 0; color: var(--muted); }
.product-row .checks { margin-top: 0; }
@media (min-width: 900px) { .product-row { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; padding: 64px 0; } }

/* Pricing */
.pricing { padding-top: 40px; }
.interval-wrap { margin-bottom: 28px; text-align: center; }
.interval { display: none; gap: 4px; min-width: 0; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.interval input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.interval label { padding: 8px 16px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.interval input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.interval input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.interval .save { margin-left: 6px; color: var(--green); font-size: 12px; }
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.plan:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.site .plan h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.plan-tagline { margin: 0; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-size: 42px; font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-note { margin: 0; color: var(--muted); font-size: 13px; }
.plan .btn { width: 100%; }
.plan .checks { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.price-yearly { display: none; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The monthly/yearly switch needs :has(). Without it, monthly prices show and the switch stays
   hidden; each card still names its yearly price. */
@supports selector(:has(*)) {
  .interval { display: inline-flex; }
  .pricing:has(#interval-yearly:checked) .price-monthly { display: none; }
  .pricing:has(#interval-yearly:checked) .plan-price.price-yearly { display: flex; }
  .pricing:has(#interval-yearly:checked) .plan-note.price-yearly { display: block; }
}
.timeline { list-style: none; display: grid; gap: 14px; margin: 0 0 28px; padding: 0; }
.timeline li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.timeline-day { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compare { overflow: hidden; }
.compare table { min-width: 560px; }
.site .compare .table thead th { padding: 12px 18px; font-size: 11px; }
.site .compare .table tbody th { padding: 14px 18px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; }
.site .compare .table td { padding: 14px 18px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Integrations */
.legend { display: grid; gap: 10px; margin-bottom: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); font-size: 14px; }
.legend p { margin: 0; color: var(--muted); }
.wave, .app-mark, .partner-mark { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wave-1 { color: var(--green); background: var(--green-soft); }
.wave-2 { color: var(--blue); background: var(--blue-soft); }
.wave-3 { color: var(--grey); background: var(--grey-soft); }
.app-mark { border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 650; }
.partner-mark { color: var(--amber); background: var(--amber-soft); }
.filters { display: grid; gap: 12px; margin-bottom: 32px; }
.wave-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-status { margin: 0; color: var(--muted); font-size: 13px; }
@media (min-width: 760px) { .filters { grid-template-columns: minmax(0, 320px) auto minmax(0, 1fr); align-items: center; } }
.category { margin-bottom: 40px; scroll-margin-top: 96px; }
.category h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 19px; }
.category .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.connectors { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 135px), 1fr)); gap: 10px; margin: 0; padding: 0; }
@media (min-width: 760px) { .connectors { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.connector { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 96px; }
.connector:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.connector-name { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.connector-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Two cards a row on the narrowest phones leave about 100px inside each. A little less padding and
   a smaller name fit the widest tag and names like ActiveCampaign; anything longer wraps. */
@media (max-width: 380px) {
  .connector { padding-inline: 10px; }
  .connector-name { font-size: 14px; }
}
.empty-filter { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
/* A card is one link to the connector's page; the whole card is the target. */
.connector { position: relative; }
.connector-link { color: var(--ink); text-decoration: none; }
.connector-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.connector:hover, .connector:focus-within { border-color: var(--accent); }
.connector-link:focus-visible { outline: none; }
.connector:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.connector-about { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.own-cards { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
@media (min-width: 760px) { .own-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.own-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.own-card p { margin: 0; color: var(--muted); }
.own-card .card-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; }

/* One connector's page */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; font-weight: 650; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.hero-tags { margin: 14px 0 22px; }
.product-row > div > p + p { margin-top: 12px; }
.facts-inline { margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 760px) {
  .facts.facts-inline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts.facts-inline div { grid-template-columns: none; gap: 2px; border-bottom: 0; border-right: 1px solid var(--line); }
  .facts.facts-inline div:last-child { border-right: 0; }
}
.ways, .actions { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.way, .action { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.way p, .action p { margin: 0; }
.way-head, .action-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px !important; color: var(--ink) !important; }
.action .fine { margin-top: 6px; }
.product-row-wide { display: block; }
.product-row-wide > div:first-child { max-width: 720px; margin-bottom: 28px; }
.behaviour { margin-top: 28px; scroll-margin-top: 96px; }
.behaviour h3 { display: flex; align-items: baseline; gap: 10px; }
.behaviour .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.behaviour-note { max-width: 72ch; margin: 0 0 14px !important; font-size: 15px; }
@media (min-width: 900px) { .behaviour .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.related a { font-weight: 600; text-decoration: none; }

/* Security and about */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; gap: 2px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 650; }
/* An email address is one long word; let it break rather than be clipped by the panel. */
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 600px) { .facts div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; } }
.link-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
.site .contact-form { max-width: none; }
.site .field label { font-size: 14px; }
.site .field .error { margin: 0; font-size: 13px; }
.site .input, .site .select, .site .textarea { min-height: 44px; font-size: 15px; }
.site .textarea { min-height: 180px; }
.site .input[aria-invalid="true"], .site .select[aria-invalid="true"], .site .textarea[aria-invalid="true"] { border-color: var(--red); }
.field-pair { display: grid; gap: 14px; }
.optional { color: var(--muted); font-weight: 500; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-aside .panel dl { margin: 0; }
@media (min-width: 640px) { .field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The aside is too narrow for the facts list's label column: label above value, at every width. */
@media (min-width: 600px) { .contact-aside .facts div { grid-template-columns: none; gap: 2px; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: start; } }

/* Legal centre */
.legal-group { margin-bottom: 40px; }
.site .legal-group h2 { margin-bottom: 14px; font-size: 20px; letter-spacing: -.02em; }
.legal-cards { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.legal-card { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.legal-card:hover { border-color: var(--accent); }
.legal-card span { color: var(--muted); font-size: 14px; }
.legal-card small { color: var(--muted); font-size: 12px; }
@media (min-width: 760px) { .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); font-size: 14px; }
/* minmax(0, 1fr): a wide table scrolls inside its own box instead of widening the page. */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 72px; }
.toc { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); font-size: 14px; }
.toc-title { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
}
.prose { min-width: 0; max-width: 72ch; font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; scroll-margin-top: 96px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-soft); color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose table { display: block; max-width: 100%; margin: 0 0 20px; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-soft); font-weight: 650; }
.prose code { padding: 1px 5px; border-radius: 5px; background: var(--surface-soft); font-family: var(--mono); font-size: .9em; }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }

/* Changelog and errors */
.releases { list-style: none; margin: 0; padding: 0; }
.release { position: relative; padding: 0 0 40px 28px; border-left: 2px solid var(--line); }
.release:last-child { padding-bottom: 8px; }
.release::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.release time { color: var(--muted); font-size: 14px; font-weight: 600; }
.site .release h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.release > p { margin: 0; color: var(--muted); }
.not-found .wrap { text-align: center; }
.not-found h1, .not-found .lede { margin-left: auto; margin-right: auto; }

@media print {
  .site-header, .site-footer, .cta-band, .toc, .skip-link, .anchor-nav { display: none !important; }
  body.site { background: #fff; color: #000; }
  .page-hero { padding: 0 0 16px; background: none; border: 0; }
  .prose { max-width: none; }
}
