/* ============================================================================
   MachiNation — support/marketing website styles
   Independent from the application CSS (js/… app is untouched). Reuses the
   MachiNation brand palette (navy / brushed-steel / TiN-gold) so the site
   reads as part of the same product family without copying the app's UI.
   Plain CSS, no framework, no build step. Light by default; a dark variant
   follows the visitor's OS preference via one variable override block.
   ========================================================================== */

:root {
  --navy:        #0B1634;  /* brand primary (hero, footer) */
  --gold:        #A87424;  /* TiN-gold accent, readable on light */
  --gold-bright: #F4D27A;  /* gold on dark surfaces */

  --bg:       #F5F7FA;
  --surface:  #FFFFFF;
  --surface-2:#EEF2F7;
  --border:   #DCE3EC;
  --text:     #1B2432;
  --muted:    #56626F;
  --link:     #0B1634;
  --accent:   var(--gold);

  --maxw: 960px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 22, 52, .06), 0 8px 24px rgba(11, 22, 52, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0B1634;
    --surface:  #12203F;
    --surface-2:#172749;
    --border:   #26375F;
    --text:     #E7ECF3;
    --muted:    #A2B2C7;
    --link:     #F4D27A;
    --accent:   var(--gold-bright);
    --shadow:   0 1px 2px rgba(0,0,0,.30), 0 8px 24px rgba(0,0,0,.28);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }

p, li { color: var(--text); }
.muted { color: var(--muted); }
small, .small { font-size: .875rem; }

/* --- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand .word { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #D7DEEA; padding: 7px 12px; border-radius: 8px; font-size: .95rem;
}
.nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(244,210,122,.16); }

/* --- hero --------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #EAF0F8;
  text-align: center;
  padding: 56px 0 60px;
}
.hero img.hero-mark { width: 96px; height: 96px; border-radius: 20px; box-shadow: var(--shadow); }
.hero h1 { color: #fff; margin-top: 18px; }
.hero .tagline { color: #C6D2E4; font-size: 1.2rem; max-width: 40ch; margin: 0 auto 6px; }
.hero .lede { color: #AFBED6; max-width: 52ch; margin: 14px auto 0; }

.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 8px 16px; color: #EAF0F8; font-weight: 600; font-size: .95rem;
}
.availability { margin-top: 18px; color: #9FB0C6; font-size: .95rem; }

/* --- sections / cards --------------------------------------------------- */
main { padding: 8px 0 40px; }
section { margin-top: 8px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: baseline; gap: 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.15rem; }
.card li { margin: .3rem 0; }

.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.updated { color: var(--muted); font-size: .9rem; margin-top: -.4rem; }

/* --- placeholders (clearly marked, for Craig's review) ------------------ */
.placeholder {
  display: inline-block;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
  font-size: .95em;
}

/* --- contact block ------------------------------------------------------ */
.contact { border-left: 4px solid var(--accent); }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #AFBED6;
  padding: 30px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.site-footer a { color: #D7DEEA; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer small { color: #8296B2; }

/* --- utility ------------------------------------------------------------ */
.center { text-align: center; }
.notfound { text-align: center; padding: 70px 0; }
.notfound .code { font-size: 3rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.btn {
  display: inline-block; margin-top: 8px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 10px 20px; border-radius: 10px; font-weight: 600;
}
.btn:hover { text-decoration: none; background: #0f1e46; }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--gold-bright); color: #241a05; border-color: var(--gold-bright); }
  .btn:hover { background: #f7dc92; }
}
