/* =============================================================================
   SiteSign marketing site -- base CSS
   Tokens lifted directly from the SiteSign design system (brand kit + codebase).
   No new colours, no new fonts.
   ============================================================================= */

:root {
  /* Brand */
  --ss-midnight-blue:  #2C3E50;
  --ss-midnight-hover: #1F2D3D;
  --ss-safety-yellow:  #EED202;
  --ss-silver:         #C8CFD7;

  /* Text + surfaces */
  --ss-dark-text:      #4A4A4A;
  --ss-grey-mid:       #888888;
  --ss-grey-light:     #CCCCCC;
  --ss-white:          #FFFFFF;
  --ss-bg-grey:        #F5F7FA;
  --ss-bg-yellow:      #FDF8E1;

  /* Status */
  --ss-success:        #1B7F3A;
  --ss-amber:          #E68A00;
  --ss-danger:         #B00020;

  /* Tokens */
  --ss-radius:         10px;
  --ss-radius-sm:      6px;
  --ss-shadow-card:    0 1px 2px rgba(44,62,80,.06), 0 2px 8px rgba(44,62,80,.08);
  --ss-shadow-lift:    0 4px 16px rgba(44,62,80,.10), 0 2px 4px rgba(44,62,80,.06);

  /* Type */
  --font-primary: 'Montserrat', Arial, Helvetica, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ss-white);
  color: var(--ss-dark-text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--ss-midnight-blue); }

/* Focus ring -- Safety Yellow, matches in-app rule */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ss-safety-yellow), 0 0 0 5px rgba(44,62,80,0.3);
  border-radius: 4px;
}

/* ---------- Type scale ---------- */

.t-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ss-midnight-blue);
}
.t-eyebrow--accent::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--ss-safety-yellow);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

.t-display {
  /* Hero -- 900 weight per brand kit ("Bold or Black for headings") */
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ss-midnight-blue);
  margin: 0;
  text-wrap: balance;
}
.t-h1 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ss-midnight-blue);
  margin: 0 0 12px;
  text-wrap: balance;
}
.t-h2 {
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--ss-midnight-blue);
  margin: 0 0 8px;
  text-wrap: balance;
}
.t-h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ss-midnight-blue);
  margin: 0 0 6px;
}
.t-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ss-dark-text);
  text-wrap: pretty;
}
.t-body { font-size: 16px; line-height: 1.6; color: var(--ss-dark-text); }
.t-small { font-size: 14px; line-height: 1.55; color: var(--ss-dark-text); }
.t-meta { font-size: 13px; color: var(--ss-grey-mid); }
.t-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1320px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }
.section--midnight {
  background: var(--ss-midnight-blue);
  color: var(--ss-white);
}
.section--midnight .t-h1,
.section--midnight .t-h2,
.section--midnight .t-h3,
.section--midnight .t-eyebrow { color: var(--ss-white); }
.section--midnight .t-lead,
.section--midnight .t-body,
.section--midnight .t-small { color: rgba(255,255,255,0.82); }
.section--grey { background: var(--ss-bg-grey); }

/* Yellow rule -- chrome motif from in-product */
.rule-safety {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--ss-safety-yellow);
  margin: 0 0 20px;
  border: 0;
}
.rule-safety--center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--ss-radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--cta {
  background: var(--ss-safety-yellow);
  color: var(--ss-midnight-blue);
}
.btn--cta:hover { background: #d8be02; }
.btn--primary {
  background: var(--ss-midnight-blue);
  color: var(--ss-white);
}
.btn--primary:hover { background: var(--ss-midnight-hover); }
.btn--secondary {
  background: var(--ss-white);
  color: var(--ss-midnight-blue);
  border-color: var(--ss-midnight-blue);
}
.btn--secondary:hover { background: var(--ss-bg-grey); }
.btn--ghost {
  background: transparent;
  color: var(--ss-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Cards ---------- */

.card {
  background: var(--ss-white);
  border: 1px solid rgba(200,207,215,0.5);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow-card);
  padding: 24px;
}
.card--accent-left {
  border-left: 3px solid var(--ss-safety-yellow);
}
.card--accent-top {
  border-top: 4px solid var(--ss-safety-yellow);
  padding-top: 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ss-midnight-blue);
  color: var(--ss-white);
  border-bottom: 4px solid var(--ss-safety-yellow);
  height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ss-white);
}
.site-header__brand img { height: 32px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header__nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-header__nav a:hover { color: var(--ss-white); }
.site-header__nav a.is-active { color: var(--ss-safety-yellow); }
.site-header__cta { display: flex; align-items: center; gap: 12px; }
.site-header__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--ss-white);
  border-radius: var(--ss-radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ss-midnight-blue);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--ss-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--ss-white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.site-footer__bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--ss-white); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer__brand img { height: 28px; }

/* ---------- UI helpers ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--ss-radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--review { background: var(--ss-safety-yellow); color: var(--ss-midnight-blue); }
.badge--success { background: rgba(27,127,58,0.1); color: var(--ss-success); }
.badge--warning { background: rgba(238,210,2,0.2); color: var(--ss-dark-text); }
.badge--neutral { background: rgba(200,207,215,0.3); color: var(--ss-dark-text); }
.badge--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--ss-white);
  border: 1px solid rgba(255,255,255,0.18);
  height: 28px;
  padding: 0 12px;
}

/* Image placeholders -- subtly striped, monospace label */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--ss-bg-grey) 0,
      var(--ss-bg-grey) 12px,
      rgba(200,207,215,0.35) 12px,
      rgba(200,207,215,0.35) 24px);
  border-radius: var(--ss-radius);
  border: 1px solid rgba(200,207,215,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.placeholder__label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ss-grey-mid);
  background: var(--ss-white);
  border-radius: var(--ss-radius-sm);
  padding: 8px 12px;
  max-width: 80%;
  line-height: 1.45;
  border: 1px solid rgba(200,207,215,0.6);
}

/* Dotted "site grid" accent used behind hero etc */
.site-grid-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(200,207,215,0.5) 1px, transparent 0);
  background-size: 28px 28px;
}

/* Mobile rules */
@media (max-width: 880px) {
  .site-header__nav { display: none; }
  .site-header__menu-btn { display: inline-flex; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
