/* ==========================================================================
   Lumenar Commerce LLC — stylesheet
   Single file, no external dependencies (no CDN, no web fonts).

   Layout scale
     0     – 419px   small phones      (single column, full-width buttons)
     420   – 639px   phones
     640   – 899px   large phones / small tablets
     900   – 1099px  tablets / small laptops
     1100px+         desktop
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --brand:        #123a6b;
  --brand-dark:   #0b2547;
  --brand-mid:    #1d4e8f;
  --brand-light:  #e8eef7;
  --accent:       #c68a2e;
  --accent-soft:  #e0a94a;
  --accent-light: #fbf3e4;

  --ink:    #101a2b;
  --ink-2:  #26344b;
  --muted:  #5c6b83;
  --line:   #e3e8f0;
  --line-2: #eef2f8;
  --bg:     #ffffff;
  --bg-alt: #f6f8fc;

  --ok: #1b7a4b;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 43, .07);
  --shadow:    0 1px 2px rgba(16, 26, 43, .06), 0 10px 30px rgba(16, 26, 43, .07);
  --shadow-lg: 0 2px 4px rgba(16, 26, 43, .06), 0 18px 46px rgba(16, 26, 43, .12);

  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  /* Fluid type — scales smoothly instead of jumping at breakpoints */
  --fs-body:  clamp(15.5px, 0.95rem + 0.15vw, 17px);
  --fs-lede:  clamp(1.04rem, 1rem + 0.35vw, 1.16rem);
  --fs-h1:    clamp(1.85rem, 1.35rem + 2.3vw, 2.95rem);
  --fs-h2:    clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  --fs-h3:    clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --fs-small: clamp(.86rem, .84rem + .1vw, .92rem);

  --sp-section: clamp(48px, 3.2rem + 3vw, 84px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors (policy TOCs) must not land underneath the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 0 0 .6em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 650; }

img, svg { max-width: 100%; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section        { padding: var(--sp-section) 0; }
.section--tight { padding: calc(var(--sp-section) * .65) 0; }
.section--alt   { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 2rem + 1vw, 44px); }
.section-head p { color: var(--muted); font-size: var(--fs-lede); margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.lede { font-size: var(--fs-lede); color: var(--muted); }

.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }

.btn--outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--outline:hover { background: var(--bg-alt); color: var(--brand-dark); border-color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- Header ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
  min-width: 0;
}
.brand-name span {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-light); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  min-width: 42px;
  padding: 9px 11px;
  border: 0;
  background: #fff;
  font: inherit;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { background: var(--bg-alt); color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(90rem 40rem at 82% -10%, rgba(224, 169, 74, .16), transparent 60%),
    linear-gradient(158deg, var(--brand-dark) 0%, #10305c 55%, #16406f 100%);
  color: #e9eef6;
  padding: clamp(52px, 3rem + 4vw, 92px) 0 clamp(48px, 3rem + 3vw, 84px);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { color: var(--accent-soft); }
.hero p { font-size: var(--fs-lede); max-width: 56ch; color: #c9d6e7; }
.hero a:not(.btn) { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 2rem + 3vw, 60px);
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: var(--radius);
  padding: clamp(20px, 1rem + 1.6vw, 28px);
}
.hero-card h2 {
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-card dl { margin: 0; display: grid; gap: 14px; }
.hero-card dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9db2cc;
}
.hero-card dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.hero-card dd a { color: #fff; }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 1rem + .8vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 1rem + 1.2vw, 26px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: #d6deea;
  transform: translateY(-2px);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
}
.card-icon svg { width: 22px; height: 22px; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* Fact list (entity details) */
.facts {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 14px clamp(16px, 1rem + .8vw, 24px);
}
.facts > div + div { border-top: 1px solid var(--line-2); }
.facts > div:nth-child(odd) { background: #fcfdff; }
.facts dt { font-size: .87rem; font-weight: 650; color: var(--muted); }
.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; margin: 0; font-size: .98rem; }
.checks svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--ok); }

/* Callout */
.callout {
  border: 1px solid #f0e2c4;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  padding: clamp(15px, 1rem + .4vw, 20px) clamp(16px, 1rem + .6vw, 22px);
  font-size: .95rem;
}
.callout p { margin-bottom: .6em; }

/* CTA band */
.cta-band {
  background: var(--brand-dark);
  color: #c9d6e7;
  padding: clamp(44px, 2.5rem + 3vw, 66px) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* --- Legal / prose pages ----------------------------------------------- */
.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 2.2rem + 2.4vw, 58px) 0 clamp(32px, 2rem + 2vw, 48px);
}
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); margin-bottom: 0; }
.page-head .meta { font-size: var(--fs-small); }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.36rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.04rem; margin-top: 1.6em; }
.prose li { font-size: .98rem; }
.prose address { font-style: normal; overflow-wrap: anywhere; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: clamp(16px, 1rem + .6vw, 22px) clamp(18px, 1rem + .8vw, 26px);
  margin-bottom: clamp(28px, 2rem + 1vw, 40px);
}
.toc h2 {
  font-size: .76rem !important;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px !important;
}
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 34px; }
.toc li { font-size: .91rem; margin-bottom: .35em; break-inside: avoid; }
.toc a { display: inline-block; padding: 2px 0; }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(34px, 2rem + 2.4vw, 56px);
  align-items: start;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 650;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 16px;             /* 16px stops iOS Safari zooming on focus */
  color: var(--ink);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(18, 58, 107, .16);
  outline-offset: 0;
}
.form-note { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #a9b6c9;
  padding: clamp(40px, 2.5rem + 2vw, 58px) 0 28px;
  font-size: .92rem;
}
.site-footer a { color: #d3dcea; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.3fr);
  gap: clamp(26px, 1.5rem + 1.6vw, 42px);
  padding-bottom: 34px;
}
.footer-grid h2 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-grid a { display: inline-block; padding: 2px 0; }
.footer-grid p { font-size: .9rem; line-height: 1.6; }

.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: #8fa0b8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: #8fa0b8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablets / small laptops */
@media (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  /* Four footer columns get cramped before the nav collapses */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Nav collapses — everything below is the mobile layout */
@media (max-width: 899px) {
  :root { --gutter: 20px; }

  .header-inner { flex-wrap: wrap; gap: 12px; padding-block: 11px; }

  .nav-toggle { display: block; order: 3; }

  /* 44px tap targets on touch screens */
  .lang-switch { order: 2; }
  .lang-switch button { min-height: 42px; min-width: 46px; }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 12px;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px; font-size: 1rem; }

  .hero-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Large phones */
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }

  /* Inline style="gap:56px" on two-column sections would otherwise stay huge */
  .grid[style] { gap: 32px !important; }

  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 13px 16px; }
  .facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

  .toc ol { columns: 1; }

  .step { padding-left: 50px; }
  .step::before { width: 34px; height: 34px; font-size: .9rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Small phones */
@media (max-width: 419px) {
  :root { --gutter: 16px; }

  .brand-name { font-size: .92rem; }
  .brand-name span { font-size: .56rem; letter-spacing: .07em; }
  .brand svg { width: 30px; height: 30px; }

  .btn-row { gap: 10px; }
  .btn-row .btn { width: 100%; }

  .hero-card { padding: 18px; }
  .card-icon { width: 40px; height: 40px; }
}

/* Coarse pointers: no hover lift, larger targets */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .lang-switch, .skip-link,
  .toc { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section, .page-head { padding: 12pt 0; background: #fff; }
  .prose { max-width: none; }
  .ph { background: none; box-shadow: none; }
  .card, .facts, .callout { box-shadow: none; border-color: #bbb; }
  a { color: #000; text-decoration: underline; }
  /* Policy pages are often printed or exported to PDF for compliance files */
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  h2, h3 { break-after: avoid; }
  .facts > div, .card { break-inside: avoid; }
}
