/* IronHamlet marketing site — single stylesheet, no build step. */

:root {
  --ink: #0c141d;
  --ink-2: #121d29;
  --ink-3: #1a2734;
  --line-dark: #253545;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --line: #dde3e9;
  --text: #17212c;
  --text-muted: #556270;
  --text-on-dark: #e8edf2;
  --muted-on-dark: #9aabbb;
  --accent: #2b7bcc;
  --accent-strong: #1f63a8;
  --accent-on-dark: #5ea6ee;
  --signal: #e2a72e;
  --ok: #2f9e6e;
  --alarm: #d4543f;
  --radius: 6px;
  --max: 1160px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 8px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 .9em;
}
.dark .eyebrow { color: var(--accent-on-dark); }

.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 44em; }
.dark .lead { color: var(--muted-on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 20, 29, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-on-dark); text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 600; letter-spacing: .16em; font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted-on-dark); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent-on-dark); border-radius: 0; }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--text-on-dark);
  border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: .9rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-on-dark); }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(43, 123, 204, .08); }
.dark .btn-secondary { color: var(--text-on-dark); border-color: #3c5266; }
.dark .btn-secondary:hover { border-color: var(--accent-on-dark); background: rgba(94, 166, 238, .08); color: #fff; }
.nav .btn { padding: 9px 16px; font-size: .92rem; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 60px 0; } }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--text-on-dark); }
.section-head { max-width: 760px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 88px;
  background:
    linear-gradient(rgba(12,20,29,.0), rgba(12,20,29,.0)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 44px),
    var(--ink);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { margin-bottom: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 600px) { .hero { padding: 60px 0 56px; } }

.page-hero { padding: 72px 0 64px; background: var(--ink); color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Schematic figure ---------- */
.schematic {
  margin: 0;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px; padding: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.schematic figcaption { font-size: .8rem; color: var(--muted-on-dark); margin-top: 10px; font-family: var(--mono); letter-spacing: .04em; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 26px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); font-size: .98rem; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: var(--muted-on-dark); }
.dark .card h3 { color: #fff; }

.icon {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(43,123,204,.1); color: var(--accent-strong); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.dark .icon { background: rgba(94,166,238,.12); color: var(--accent-on-dark); }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 14px;
}
.tag-alarm { color: var(--alarm); }
.tag-signal { color: #b07f17; }
.dark .tag-signal { color: var(--signal); }

.scenario { border-top: 3px solid var(--accent); }
.scenario.view { border-top-color: var(--signal); }
.scenario .lesson { font-size: .95rem; color: var(--text); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.scenario .lesson strong { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 4px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--mono); font-weight: 500; font-size: .95rem;
  color: var(--accent-strong); border: 1px solid var(--accent); border-radius: 999px; width: 38px; height: 38px;
  display: grid; place-items: center; background: var(--paper);
}
.steps li::after { content: ""; position: absolute; top: 19px; left: 46px; right: -10px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .95rem; color: var(--text-muted); margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 58px; min-height: 38px; }
  .steps li::after { top: 46px; left: 19px; right: auto; width: 1px; height: calc(100% - 30px); }
}

/* ---------- Feature list ---------- */
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature .icon { margin: 0; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--text-muted); margin: 0; }
.feature .benefit { color: var(--text); margin-top: 8px; font-size: .96rem; }
.feature .benefit b { font-weight: 600; }

/* ---------- Screenshot frame ---------- */
.shot { margin: 0; }
.shot .frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px rgba(12,20,29,.14); }
.shot .bar { height: 30px; background: #1d2a37; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot .bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a4c5e; }
.shot figcaption { font-size: .9rem; color: var(--text-muted); margin-top: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.dark ul.checks li { color: var(--text-on-dark); }

/* ---------- Pilot ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.facts div { background: var(--ink-2); padding: 22px 20px; }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1.35rem; font-weight: 600; color: #fff; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

.note {
  border-left: 3px solid var(--signal); background: rgba(226,167,46,.08); padding: 14px 18px; border-radius: 0 6px 6px 0;
  font-size: .95rem; color: var(--text);
}
.dark .note { color: var(--text-on-dark); background: rgba(226,167,46,.1); }

table.schedule { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.schedule th, table.schedule td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.schedule th { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
table.schedule td:first-child { font-family: var(--mono); font-size: .88rem; white-space: nowrap; color: var(--text-muted); }
table.schedule td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
@media (max-width: 640px) {
  table.schedule thead { display: none; }
  table.schedule tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.schedule td { display: block; padding: 2px 0; border: 0; white-space: normal !important; }
}

details.faq { border-top: 1px solid var(--line); padding: 18px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-strong); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--text-muted); margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #12304d, var(--ink) 70%); color: var(--text-on-dark); padding: 72px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--muted-on-dark); margin: 0; max-width: 40em; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid #c3ccd5; border-radius: var(--radius); padding: 11px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; min-height: 1.6em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--alarm); }
.fineprint { font-size: .86rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 48px 0 36px; font-size: .92rem; border-top: 1px solid var(--line-dark); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--text-on-dark); font-size: .78rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 20px; margin-top: 8px; font-size: .84rem; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.page-hero .lead { color: var(--muted-on-dark); }
.page-hero .eyebrow { color: var(--accent-on-dark); }

/* Pricing / packages (2026-11-02) */
.price { font-size: 1.55rem; color: var(--text); margin: .15em 0 .55em; }
.price strong { color: var(--accent-strong); }
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: .98rem; }
.pricing-table th, .pricing-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pricing-table thead th { color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--line); }
.pricing-table tbody th { font-weight: 600; color: var(--text); }
.pricing-table td { color: var(--text-muted); }
@media (max-width: 680px) { .pricing-table { font-size: .9rem; } .pricing-table th, .pricing-table td { padding: 10px 8px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
