/* kestrelvoip.com stylesheet. One file for every page; no build step.
   Brand colours come from the owner's logo pack (2026-10-13): charcoal #1C262E
   is the logo ink, kestrel orange #C8562A the tail triangle. Orange is too light
   for small text on white (about 4.3:1), so body links use --orange-ink.
   The angled section edges echo the mark's polygons; keep them subtle. */

:root {
  --charcoal: #1C262E;
  --charcoal-2: #25323C;
  --charcoal-3: #31414D;
  --orange: #C8562A;
  --orange-ink: #A8441D;
  --orange-soft: #F6E6DD;
  --paper: #F6F4F0;
  --white: #FFFFFF;
  --ink: #1C262E;
  --muted: #56626C;
  --line: #E2DED7;
  --on-dark: #E9EDF0;
  --on-dark-muted: #A9B4BC;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Header. The mobile menu is a <details> element so the site needs no JavaScript
   at all (the CSP allows none). */
.site-header { background: var(--charcoal); color: var(--on-dark); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; margin-left: -8px; } /* the SVG carries ~12% padding */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--charcoal-2); color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark);
  border: 1px solid var(--charcoal-3); border-radius: 999px; padding: 5px 12px; margin-left: 10px; white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(200,86,42,.25); }
.menu { display: none; }
@media (max-width: 760px) {
  .nav, .site-header .status-pill { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; color: var(--on-dark); font-weight: 700; font-size: .95rem;
    border: 1px solid var(--charcoal-3); border-radius: 8px; padding: 7px 14px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--charcoal-2); }
  .menu .menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--charcoal-2);
    border: 1px solid var(--charcoal-3); border-radius: 12px; padding: 8px; display: grid; gap: 2px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .menu .menu-panel a { color: var(--on-dark); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
  .menu .menu-panel a:hover, .menu .menu-panel a[aria-current="page"] { background: var(--charcoal-3); color: var(--white); }
}

/* Dark hero band, with an angled bottom edge cut like the mark's wing. */
.hero {
  background: radial-gradient(900px 420px at 80% 45%, #2C3B46 0%, transparent 65%), var(--charcoal);
  color: var(--on-dark);
  padding: 56px 0 120px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
  position: relative;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--on-dark-muted); max-width: 40ch; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero { padding: 48px 0 104px; }
.page-hero h1 { max-width: 20ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #B44C24; color: var(--white); }
.btn-ghost { border-color: var(--charcoal-3); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark-muted); color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); color: var(--white); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Illustrative console panel in the hero. Decorative: aria-hidden in the markup. */
.console {
  background: linear-gradient(180deg, #24313B, #1F2A33);
  border: 1px solid var(--charcoal-3); border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  font-size: .92rem;
}
.console-bar { display: flex; align-items: center; justify-content: space-between; color: var(--on-dark-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal-3); display: block; }
.ext { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--on-dark); }
.ext + .ext { border-top: 1px solid rgba(255,255,255,.05); }
.ext .num { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--white); width: 3.2ch; }
.ext .who small { display: block; color: var(--on-dark-muted); font-size: .78rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.t-avail { background: rgba(74,190,120,.16); color: #7FD6A0; }
.t-away { background: rgba(240,190,80,.16); color: #F0C866; }
.t-dnd { background: rgba(230,90,80,.18); color: #F2918A; }
.t-lunch { background: rgba(140,170,240,.16); color: #A9C0F5; }
.t-call { background: rgba(200,86,42,.22); color: #F0A27F; }
.console-foot { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(0,0,0,.18); display: flex; justify-content: space-between; gap: 10px; color: var(--on-dark-muted); font-size: .82rem; flex-wrap: wrap; }
.console-foot b { color: var(--on-dark); }

/* Content sections. */
section.band { padding: 72px 0; }
section.band.tight { padding: 40px 0 72px; }
.lift { margin-top: -72px; position: relative; z-index: 2; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .4em; }
.card.raised { box-shadow: 0 14px 36px rgba(28,38,46,.10); border-color: transparent; }
.icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--orange-soft); color: var(--orange-ink);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.feature-group { padding: 40px 0; border-top: 1px solid var(--line); }
.feature-group:first-of-type { border-top: 0; padding-top: 8px; }
.feature-group > header { display: grid; gap: 6px; margin-bottom: 22px; max-width: 64ch; }
.feature-group > header p { color: var(--muted); margin: 0; }
.feature-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 46px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 18px; top: 23px; width: 14px; height: 14px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.feature-list li strong { display: block; margin-bottom: 2px; }
.feature-list li span { color: var(--muted); font-size: .96rem; }

/* Roadmap items: the status tag sits on its own line above the title, so long
   titles never collide with it (2026-10-16: "More SIP trunk providers" did). */
.roadmap-list li { padding-left: 20px; }
.roadmap-list li::before { display: none; }
.roadmap-list li.progress { border-color: #EBC9B8; }
.roadmap-list .tag { display: inline-block; margin-bottom: 10px; }
.t-planned { background: #ECEAE6; color: var(--muted); }
.t-progress { background: var(--orange-soft); color: var(--orange-ink); }

.phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 0; list-style: none; }
.phones li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 800; font-size: 1.6rem; color: var(--orange); letter-spacing: -0.02em; margin-bottom: 8px; }
.steps li p { color: var(--muted); margin: 0; }

.callout {
  background: var(--charcoal); color: var(--on-dark); border-radius: 20px; padding: 40px 32px;
  display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden;
}
@media (min-width: 820px) { .callout { grid-template-columns: 1fr auto; padding: 48px; } }
.callout h2 { color: var(--white); }
.callout p { color: var(--on-dark-muted); margin: 0; max-width: 58ch; }
.callout::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px;
  background: var(--orange); opacity: .14; clip-path: polygon(0 0, 100% 40%, 60% 100%);
}
.callout > * { position: relative; z-index: 1; }

.prose { max-width: 68ch; }
.prose p, .prose li { color: #33404A; }
.prose h2 { margin-top: 1.6em; }
.principles { display: grid; gap: 14px; padding: 0; list-style: none; margin: 1em 0 1.5em; }
.principles li { border-left: 4px solid var(--orange); background: var(--white); padding: 14px 18px; border-radius: 0 10px 10px 0; }

.note { font-size: .9rem; color: var(--muted); }

/* Footer. */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding: 48px 0 36px; margin-top: 24px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer img { height: 40px; width: auto; margin: 0 0 10px -7px; }
.site-footer p { margin: 0 0 .4em; max-width: 66ch; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.notfound { text-align: center; padding: 40px 0 20px; }
.notfound h1 { margin-left: auto; margin-right: auto; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Spacing modifiers (inline style attributes are blocked by the CSP). */
section.band.flush { padding-top: 0; }
.actions.flat { margin-top: 0; }

/* Long-form card (about page): .card zeroes paragraph margins for short cards. */
.card.prose { padding: 36px clamp(20px, 4vw, 44px); }
.card.prose p { margin: 0 0 1em; }
.card.prose > h2:first-child { margin-top: 0; }
