/* Epic Loupes — proof-of-concept static rebuild.
   One stylesheet for every page. Colors/spacing are tokens on :root. */
:root {
  --blue: #0b7fc0;
  --blue-dark: #075a8a;
  --ink: #0f1f2e;
  --muted: #55677a;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f3f7fa;
  --radius: 14px;
  --max: 1120px;
  font-size: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* poc banner */
.poc { background: var(--ink); color: #cfe3f1; font-size: .82rem; text-align: center; padding: 6px 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); 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: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; white-space: nowrap; }
.brand svg { width: 36px; height: 36px; }
.brand span b { color: var(--blue); }
nav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; }
nav a { display: block; padding: 8px 9px; white-space: nowrap; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
nav a:hover { background: var(--bg-soft); }
nav a[aria-current="page"] { color: var(--blue); background: var(--bg-soft); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.icon-link:hover { background: var(--bg-soft); }
.icon-link svg { width: 20px; height: 20px; }
.cart-count { background: var(--blue); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; padding: 0 6px; text-align: center; }
.menu-toggle { display: none; }

/* buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.light { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* hero */
.hero { background: linear-gradient(135deg, #062b45 0%, #0b5f95 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero p { color: #d5e8f5; font-size: 1.2rem; max-width: 34rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.page-hero { background: linear-gradient(135deg, #062b45 0%, #0b5f95 100%); color: #fff; padding: 56px 0; }
.page-hero p { color: #d5e8f5; max-width: 44rem; margin: 0; font-size: 1.1rem; }

/* cards & grids */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.quote { border-left: 4px solid var(--blue); padding: 6px 0 6px 20px; font-size: 1.15rem; }
.quote cite { display: block; font-size: .9rem; color: var(--muted); margin-top: 8px; font-style: normal; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
.logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.logos img { height: 56px; width: auto; filter: grayscale(1); opacity: .8; }
.frame-tile img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* cta band */
.cta { background: var(--blue); color: #fff; text-align: center; padding: 56px 0; }
.cta p { color: #e3f1fa; }

/* configurator */
.config { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; }
.step-title:first-child { margin-top: 0; }
.step-title .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; flex: none; }
.step-title h2 { margin: 0; font-size: 1.4rem; }
.opts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt label { display: block; height: 100%; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.opt label img { border-radius: 8px; margin-bottom: 10px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.opt input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,127,192,.18); }
.opt input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt .name { font-weight: 700; display: block; }
.opt .price { color: var(--blue-dark); font-weight: 700; font-size: .95rem; }
.opt .price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.opt .desc { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; line-height: 1.45; }
.summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary h3 { margin-bottom: 14px; }
.summary dl { margin: 0 0 16px; }
.summary dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 12px; }
.summary dd { margin: 2px 0 0; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.summary .total { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.summary .btn { width: 100%; text-align: center; }
.summary .note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.notice { background: #fff8e1; border: 1px solid #f0d98a; border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-bottom: 24px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 30; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* faq */
details.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 22px 18px; color: var(--muted); }
.narrow { max-width: 760px; margin: 0 auto; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* footer */
.site-footer { background: #08202f; color: #b9cddb; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3f1fa; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; }

@media (max-width: 1100px) {
  nav a { padding: 8px 7px; font-size: .9rem; }
  .icon-link span.label { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .config { grid-template-columns: 1fr; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .grid.c2, .grid.c3, .grid.c4, .checks { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .icon-link span.label { display: none; }
}

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav a { font-size: 1rem; padding: 10px 9px; }
}
