/* Better Built Apps LLC. Colours are sampled from the logo artwork
   (assets/logo.png), so change them there first if the brand ever moves.

   Light only, on purpose: the logo is navy on transparent and disappears on a
   dark background. color-scheme keeps form controls light to match. */

:root {
  color-scheme: light;
  --navy: #002453;
  --navy-80: #2a4670;
  --orange: #fc8d28;
  --orange-ink: #b85a00; /* orange dark enough for text on white (4.6:1) */
  --bg: #ffffff;
  --surface: #f5f7fa;
  --line: #dfe4ec;
  --text: #0f1b2d;
  --muted: #55627a;
  --radius: 14px;
  --wrap: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 800; letter-spacing: -0.2px; text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--navy); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.hero-logo { width: clamp(180px, 26vw, 260px); margin: 0 auto 32px; }
.hero h1 {
  margin: 0 auto; max-width: 680px;
  color: var(--navy);
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -1px;
}
.hero p { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 19px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--surface); }
.eyebrow {
  margin: 0 0 10px; color: var(--orange-ink);
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.section h2 {
  margin: 0; color: var(--navy);
  font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.6px;
}
.section-intro { margin: 12px 0 0; max-width: 560px; color: var(--muted); }

/* Product card */
.product {
  margin-top: 36px;
  display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: start;
  padding: 32px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.product-icon {
  width: 112px; height: 112px; border-radius: 26px;
  background: #1a1a1a; padding: 18px;
}
.product h3 { margin: 0; color: var(--navy); font-size: 24px; letter-spacing: -0.3px; }
.product .platforms { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.product p.desc { margin: 14px 0 0; max-width: 620px; }
.product-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  border: 2px solid var(--navy);
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-80); border-color: var(--navy-80); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 36, 83, 0.15); }
.field textarea { min-height: 150px; resize: vertical; }
.honeypot { display: none !important; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 15px; }
.form-status[data-state="sent"] { color: #1d7a3a; }
.form-status[data-state="error"] { color: #b42318; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.8px; }
.legal .updated { margin: 8px 0 32px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 36px 0 8px; color: var(--navy); font-size: 21px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .brand span { display: none; }
  .product { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .product-icon { width: 88px; height: 88px; border-radius: 20px; padding: 14px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { grid-template-columns: 1fr; }
}
