/* FiberOpticsTools homepage — page-specific styles on the shared frame. Light-theme only; tokens + shared components come from frame.css. */

/* ── full-bleed helper + homepage content wrapper ──
   The homepage renders inside Kadence's constrained content column. Sections
   that must span the viewport get .bleed; their inner content re-centers in a
   .wrap. Scoped so bare section/.shead rules can't leak onto cart/account/shop. */
/* Negative side margins (no 100vw) so the block fills the viewport without adding a
   scrollbar-width horizontal overflow. */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
#fot-home .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#fibers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-grad { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 78% 15%, var(--accent-glow), transparent 55%); pointer-events: none; }
#fot-home .hero .wrap { position: relative; z-index: 2; padding: 62px 24px 54px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 820; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { color: var(--ink-dim); font-size: 17px; max-width: 52ch; margin: 18px 0 0; }

/* ── big search ── */
.bigsearch { margin-top: 30px; max-width: 640px; position: relative; }
.bigsearch input { width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); padding: 0 120px 0 50px; font-size: 16px; font-family: var(--sans); }
.bigsearch input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.bigsearch .ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.bigsearch button { position: absolute; right: 7px; top: 7px; height: 42px; padding: 0 20px;
  border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700;
  font-size: 14px; font-family: var(--sans); cursor: pointer; }
.bigsearch button:hover { background: var(--accent-deep); }

/* ── facets (chip/.chip.sep live in frame.css) ── */
.facets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.facets .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-right: 4px; }

/* ── section scaffolding (scoped to homepage) ── */
#fot-home section { padding: 56px 0; border-bottom: 1px solid var(--line); }
#fot-home .shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
#fot-home .shead h2 { font-size: clamp(21px, 2.6vw, 29px); font-weight: 780; }
#fot-home .shead .link { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.02em; white-space: nowrap; }
#fot-home .shead .link:hover { text-decoration: underline; }
#fot-home .shead p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ── category grid ── */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); min-height: 128px; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat svg { color: var(--accent); }
.cat .nm { font-weight: 650; font-size: 15px; margin-top: auto; letter-spacing: -0.01em; }
.cat .ct { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── product rail (grid only; .card & children come from frame.css) ── */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── job lists feature ── */
.joblists { background: var(--surface); }
.jl-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.jl-copy h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
.jl-copy h2 em { font-style: normal; color: var(--accent); }
.jl-copy p { color: var(--ink-dim); font-size: 16px; margin: 16px 0 0; max-width: 44ch; }
.jl-steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.jl-steps li { display: flex; gap: 13px; align-items: flex-start; }
.jl-steps .n { font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid var(--line-strong);
  border-radius: 6px; width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.jl-steps b { font-weight: 650; }
.jl-steps span { color: var(--muted); font-size: 13.5px; }

.panel { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--ground); overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5); }
.panel .tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.panel .tab { font-family: var(--mono); font-size: 12px; padding: 8px 13px; border-radius: 8px 8px 0 0;
  color: var(--muted); cursor: pointer; border: 1px solid transparent; border-bottom: none; }
.panel .tab.on { color: var(--ink); background: var(--surface); border-color: var(--line); }
.panel .tab.on .cnt { color: var(--accent); }
.panel .add-tab { margin-left: auto; color: var(--accent); }
.panel .phead { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 12px; }
.panel .phead .t { font-weight: 700; font-size: 15px; }
.panel .phead .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.reorder { height: 34px; padding: 0 15px; border-radius: 7px; border: 0; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 12.5px; font-family: var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.li .q { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); width: 30px; font-variant-numeric: tabular-nums; }
.li .glyph { width: 30px; height: 30px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.li .d { flex: 1; min-width: 0; }
.li .d .nm { font-size: 12.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .d .sku { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.li .lp { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.li.total { justify-content: flex-end; gap: 16px; background: var(--surface); }
.li.total .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.li.total .v { font-family: var(--mono); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ── equipment / support band ── */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bcard { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--surface);
  display: flex; flex-direction: column; gap: 12px; }
.bcard .eyebrow { color: var(--signal); }
.bcard h3 { font-size: 21px; font-weight: 740; }
.bcard p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 42ch; }
.bcard .go { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; }
.bcard.support .eyebrow { color: var(--accent); }

/* ── responsive (homepage classes only) ── */
@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .jl-grid, .band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cats, .rail { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { #fibers { display: none; } }
