/* HestiaLine marketing site. Plain CSS, system fonts, no external resources. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --tint: #eaf0f8;
  --ink: #0f1b2d;
  --muted: #475569;
  --line: #d7dfeb;
  --navy: #0f2742;
  --accent: #0b57d0;
  --accent-ink: #ffffff;
  --accent-hover: #0a47a8;
  --ember: #b8400a;
  --on-navy: #f1f5fb;
  --on-navy-muted: #c3d0e2;
  --bubble-caller: #eef2f8;
  --bubble-assistant: #0f2742;
  --bubble-assistant-ink: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px rgba(15, 27, 45, .08);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #111c2e;
    --tint: #0e1829;
    --ink: #e8eef8;
    --muted: #aebbd0;
    --line: #25344b;
    --navy: #0a1a30;
    --accent: #7fb0ff;
    --accent-ink: #06142b;
    --accent-hover: #a5c8ff;
    --ember: #ff9b66;
    --bubble-caller: #1a2740;
    --bubble-assistant: #2a5fb8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: .75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: var(--navy); position: relative; flex: none;
}
.brand-mark::after {
  content: "H"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: 0;
}
.brand-name { font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; margin: 0; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .98rem; font-weight: 550; }
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  padding: .85rem 1.5rem; border-radius: 10px; font-weight: 650; font-size: 1.02rem;
  border: 2px solid var(--accent);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--tint); color: var(--accent-hover); border-color: var(--accent-hover); }

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750; color: var(--ember); margin-bottom: 1rem; }
.eyebrow.on-dark { color: #ffb68a; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.25rem; }
.fine { font-size: .9rem; color: var(--muted); max-width: 38rem; }

.hero-card { margin: 0; }
.convo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: .75rem;
}
.bubble { padding: .75rem 1rem; border-radius: 16px; max-width: 92%; font-size: .98rem; line-height: 1.5; }
.bubble .who { display: block; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: .15rem; }
.bubble.caller { background: var(--bubble-caller); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.assistant { background: var(--bubble-assistant); color: var(--bubble-assistant-ink); border-bottom-right-radius: 4px; justify-self: end; }
.hero-card figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; text-align: center; }

/* Sections */
.band { background: var(--navy); color: var(--on-navy); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band h2 { margin-bottom: .5em; }
.band p { color: var(--on-navy-muted); font-size: 1.15rem; margin: 0; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5em; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 1rem;
}
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) translateY(-30%);
}
.checks strong { color: var(--ink); }

.limits-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.limits-section .section-head { margin-bottom: 1.5rem; }
.limits-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ember);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1rem;
}
.callout p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.callout strong { color: var(--ink); }
.limit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.limit-grid li {
  background: var(--tint); border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: .95rem; line-height: 1.5; color: var(--muted);
}
.limit-grid strong { display: block; color: var(--ink); margin-bottom: .2rem; }

/* Contact */
.contact { background: var(--navy); color: var(--on-navy); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.contact h2 { color: #fff; }
.contact p { color: var(--on-navy-muted); font-size: 1.1rem; }
.contact-cta { margin: 1.75rem 0 1rem; }
.contact-line { font-size: 1.05rem; }
.contact a:not(.btn) { color: #fff; text-underline-offset: .2em; }
.contact a:not(.btn):hover { color: var(--on-navy); }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: #e6eefb; border-color: #e6eefb; color: var(--navy); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.footer-inner p { margin: 0; }
.footer-inner .brand-name { color: var(--ink); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .limit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .cards, .split, .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .bubble { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
