/* IronKernel — single-page site
   No inline styles anywhere: the CSP forbids them. */

:root {
  /* Palette derived from the logo: brand blue #1381ee, ink #232223, white.
     Applied 60 / 30 / 10 —
       60%  white + near-white surfaces (--bg, --bg-2)   page, cards, header
       30%  ink neutrals (--ink .. --muted)              type, footer, nav CTA
       10%  blue (--brand, --accent)                     CTAs, badge, links
     --brand is the untouched logo blue; it is only used where no text sits on
     it. --accent is that same hue/sat darkened 4.5% L so white button text
     clears WCAG AA (4.59:1 vs 3.89:1 for the raw blue). */
  --ink:        #232324;
  --ink-2:      #3a3a3d;
  --body:       #55555c;
  --muted:      #6e6e77;
  --line:       #e5e5e7;
  --line-2:     #d1d1d4;
  --bg:         #ffffff;
  --bg-2:       #f7f7f8;
  --brand:      #1381ee;
  --accent:     #1075da;
  --accent-dk:  #0c59a6;
  --accent-sf:  #f1f7fe;
  --focus:      #1381ee;

  --wrap: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(35, 35, 38, .06), 0 1px 3px rgba(35, 35, 38, .04);
  --shadow-md: 0 4px 6px -1px rgba(35, 35, 38, .07), 0 2px 4px -2px rgba(35, 35, 38, .05);
  --shadow-lg: 0 12px 24px -6px rgba(35, 35, 38, .12), 0 4px 8px -4px rgba(35, 35, 38, .06);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, 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; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Intrinsic 231x80 (2x) so it stays sharp on HiDPI; width/height attrs on the
   <img> reserve the box and keep the sticky header from shifting on load. */
.brand-logo { display: block; height: 40px; width: auto; }

.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  color: var(--body); text-decoration: none;
  font-size: .95rem; font-weight: 550;
  padding: 8px 14px; border-radius: 7px;
  transition: color .15s, background-color .15s;
}
.site-header nav a:hover { color: var(--ink); background: var(--bg-2); }
.site-header nav .nav-cta {
  color: #fff; background: var(--ink); margin-left: 6px;
}
.site-header nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .97rem; font-weight: 600;
  padding: 13px 24px; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; padding: 15px 24px; font-size: 1.02rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dk); box-shadow: var(--shadow-md); }
.btn-primary:disabled { background: var(--line-2); cursor: not-allowed; box-shadow: none; }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-2); }

/* ---------- hero ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px; align-items: center;
}
/* width/height attrs on the <img> reserve the box, so the LCP text never
   reflows when the art decodes. srcset: 1x is 56 KB, 2x only for HiDPI. */
.hero-art { width: 100%; height: auto; justify-self: end; }

.hero {
  padding: 104px 0 88px;
  background:
    radial-gradient(900px 380px at 15% -8%, var(--accent-sf) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.1rem);
  letter-spacing: -.045em;
  margin-bottom: 20px;
}
.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink-2); font-weight: 550;
  margin-bottom: 14px; max-width: 44ch;
}
.sub { font-size: 1.05rem; max-width: 56ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 44px; }

.services { padding: 88px 0; }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card p { font-size: .96rem; }
.card p:last-of-type { margin-bottom: 20px; }

.card-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }
.card-featured:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-top h3 { font-size: 1.22rem; }
.badge {
  flex: none;
  background: var(--accent-sf); color: var(--accent-dk);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; border: 1px solid #c4dffb;
}

.card-foot {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price {
  display: flex; flex-direction: column;
  font-family: var(--mono); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.02em;
}
.price-note {
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0; margin-top: 1px;
}

/* ---------- contact ---------- */

.contact {
  padding: 88px 0 96px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid; gap: 56px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { justify-self: center; max-width: 520px; }
}
.contact-copy .section-sub { margin-bottom: 20px; }
.contact-blurb { max-width: 42ch; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .87rem; font-weight: 650;
  color: var(--ink-2); margin-bottom: 7px;
}
.req { color: var(--muted); font-weight: 500; }

.field input, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(19, 129, 238, .18);
}
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid input:focus, .field.invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .13);
}

.err { color: #dc2626; font-size: .84rem; margin: 6px 0 0; min-height: 0; }

/* Filled by app.js when a package CTA is clicked, so the visitor sees which
   enquiry they're sending. Stays hidden ([hidden]) without JS. */
.form-context {
  font-size: .85rem; font-weight: 650;
  color: var(--accent-dk);
  background: var(--accent-sf);
  border: 1px solid #c4dffb;
  border-radius: 8px;
  padding: 9px 13px;
  margin: 0 0 20px;
}

.form-status { margin: 14px 0 0; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-status.ok  { color: #15803d; }
.form-status.bad { color: #dc2626; }

/* Honeypot: hidden with CSS, not type="hidden" — bots detect the latter. */
.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 0; opacity: 0; overflow: hidden;
}

.form-done {
  text-align: center; padding: 30px 10px;
}
.form-done h3 { font-size: 1.3rem; margin-bottom: 10px; }
.form-done p { color: var(--muted); margin: 0; }
.thanks-back { margin-top: 24px !important; }
.form-done .tick {
  width: 46px; height: 46px; margin: 0 auto 18px;
  border-radius: 50%; background: #dcfce7; color: #15803d;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg); color: var(--body);
  border-top: 1px solid var(--line);
  padding: 48px 0; font-size: .92rem;
}
.footer-inner { text-align: center; }
/* The footer is a light surface (--bg-2), not an ink slab: that keeps it in the
   60% neutral band of the 60/30/10 split, and lets the ONE logo file work in both
   header and footer. Ink now carries its 30% through type, the nav CTA and the
   hero art's dark panel. */
.footer-logo { display: inline-block; height: 40px; width: auto; }
.site-footer p { margin: 10px 0 0; }
.copyright { color: var(--muted); font-size: .85rem; margin-top: 14px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 72px 0 60px; }
  .services, .examples, .contact { padding: 64px 0; }
  .site-header nav a { padding: 8px 10px; font-size: .9rem; }
  .brand-logo, .footer-logo { height: 32px; }
  .form { padding: 22px; }
  .hero-actions .btn { width: 100%; }
}
