/* Flow Autobody brand
   Primary: Navy #000045  /  White #FFFFFF
   Secondary: Electric Blue #0031FF  /  Electric Teal #06F1F2
   Type: Gilroy (local) → Montserrat (web fallback)
*/

@font-face {
  font-family: "Gilroy";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-Light.otf") format("opentype");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-Regular.otf") format("opentype");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-Medium.otf") format("opentype");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-SemiBold.otf") format("opentype");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Gilroy-Bold.otf") format("opentype");
}

:root {
  --navy: #000045;
  --white: #ffffff;
  --electric-blue: #0031ff;
  --electric-teal: #06f1f2;
  --ink-soft: rgba(0, 0, 69, 0.7);
  --ink-faint: rgba(0, 0, 69, 0.12);
  --shadow-soft: 0 6px 24px rgba(0, 0, 69, 0.08);
  --shadow-lift: 0 12px 40px rgba(0, 0, 69, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Gilroy", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em; /* tracking 20 per brand */
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HERO (Navy) ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 56px 28px 80px;
  overflow: hidden;
}

.hero::before {
  /* Halftone design device - subtle radial ambient */
  content: "";
  position: absolute;
  inset: -10% -30% auto auto;
  width: 520px;
  height: 520px;
  background-image: radial-gradient(circle at center, rgba(6, 241, 242, 0.5) 1px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -20%;
  width: 420px;
  height: 420px;
  background-image: radial-gradient(circle at center, rgba(0, 49, 255, 0.55) 1px, transparent 1.5px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 30% 70%, #000 0%, transparent 55%);
          mask-image: radial-gradient(circle at 30% 70%, #000 0%, transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.brand-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  z-index: 1;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.brand-wordmark span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric-teal);
  margin-top: 4px;
}

.identity {
  position: relative;
  z-index: 1;
}

.name {
  font-weight: 600;
  font-size: clamp(36px, 9vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.title .accent {
  color: var(--electric-teal);
}

/* ===== CARD SHEET ===== */
.sheet {
  position: relative;
  flex: 1;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  margin-top: -32px;
  padding: 32px 24px 32px;
  box-shadow: 0 -8px 32px rgba(0, 0, 69, 0.12);
  z-index: 2;
}

/* ===== QR ===== */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.qr {
  width: 200px;
  height: 200px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  display: block;
}

.qr img,
.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-caption {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===== DIVIDER ===== */
.rule {
  height: 1px;
  background: var(--ink-faint);
  margin: 24px 0;
  border: none;
}

/* ===== ACTIONS ===== */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  background: var(--electric-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 49, 255, 0.28);
}

.cta:hover,
.cta:focus-visible {
  background: #0028d6;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 49, 255, 0.34);
  outline: none;
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  width: 18px;
  height: 18px;
}

/* ===== ACTION GRID ===== */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.action:hover,
.action:focus-visible {
  border-color: var(--electric-blue);
  background: rgba(0, 49, 255, 0.04);
  transform: translateY(-1px);
  outline: none;
}

.action-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--electric-teal);
}

.action-icon svg {
  width: 18px;
  height: 18px;
}

.action-body {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.action-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.action-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action--full {
  grid-column: 1 / -1;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-faint);
  text-align: center;
}

.footer-address {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.footer-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== DESKTOP REFINEMENT ===== */
@media (min-width: 520px) {
  .page {
    box-shadow: var(--shadow-lift);
    margin-top: 32px;
    margin-bottom: 32px;
    border-radius: 28px;
    overflow: hidden;
    min-height: calc(100vh - 64px);
  }
  body {
    background: linear-gradient(180deg, #f5f6fb 0%, #eaecf5 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .qr {
    transition: transform 0.4s ease;
  }
  .qr:hover {
    transform: scale(1.04);
  }
}
