/* Meraki Technologies. Layout: left-aligned editorial pages on a light ground,
   one black band for the call to action. Colour is borrowed from data-centre
   cable identification: blue, yellow, red, green, orange tags on a neutral page. */
:root {
  --bg: #F4F5F5;
  --surface: #FFFFFF;
  --fg: #0A0D0E;
  --muted: #455055;
  --line: #D6DCDD;
  --band: #050808;
  --band-fg: #F4F5F5;
  --band-muted: #A9B3B6;
  --band-line: #232B2D;
  --blue: #2D5BE3;
  --yellow: #F2B705;
  --red: #D4343C;
  --green: #1B9A57;
  --orange: #EE7A1F;
  --grey: #8A9498;
  --on-blue: #FFFFFF;
  --on-yellow: #14120A;
  --on-red: #FFFFFF;
  --on-green: #FFFFFF;
  --on-orange: #1A0F05;
  --on-grey: #0A0D0E;
  --focus: #2D5BE3;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0D0E; --surface: #11171A; --fg: #EEF1F1; --muted: #A3ADB0; --line: #253033;
    --band: #172023; --band-line: #2B383C; --focus: #7C9BFF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0D0E; --surface: #11171A; --fg: #EEF1F1; --muted: #A3ADB0; --line: #253033;
  --band: #172023; --band-line: #2B383C; --focus: #7C9BFF; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.025em; font-stretch: 88%; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -0.018em; font-stretch: 92%; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { --mark-in: var(--bg); width: 40px; height: 40px; flex: none; color: var(--fg); }
.mark .m { fill: var(--mark-in); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--fg); }
.nav a[aria-current="page"] { border-bottom-color: var(--fg); font-weight: 700; }
.nav a.btn { border-bottom: 1.5px solid var(--fg); padding: 0.55em 1em; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--fg); color: var(--fg); border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; text-align: center; justify-content: center; }
  .header-row { position: relative; }
}

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.85em 1.35em; border-radius: 6px; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.band .btn { border-color: var(--band-fg); color: var(--band-fg); }
.band .btn:hover { background: var(--band-fg); color: var(--band); }
.band .btn-primary { background: var(--band-fg); color: var(--band); }
.band .btn-primary:hover { background: transparent; color: var(--band-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; padding: 0.15em 0.65em; border-radius: 3px; font-size: 0.82rem; font-weight: 700; line-height: 1.5; background: var(--chip, var(--grey)); color: var(--on, var(--on-grey)); }
.c-blue { --chip: var(--blue); --on: var(--on-blue); }
.c-yellow { --chip: var(--yellow); --on: var(--on-yellow); }
.c-red { --chip: var(--red); --on: var(--on-red); }
.c-green { --chip: var(--green); --on: var(--on-green); }
.c-orange { --chip: var(--orange); --on: var(--on-orange); }
.c-grey { --chip: var(--grey); --on: var(--on-grey); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-copy { display: grid; gap: 28px; max-width: 880px; }
.bundle { margin-top: clamp(32px, 6vw, 64px); }
.bundle svg { display: block; width: 100%; height: auto; overflow: visible; }
.bundle .line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(.3,.7,.2,1) both; }
.bundle .line:nth-of-type(2) { animation-delay: .08s; }
.bundle .line:nth-of-type(3) { animation-delay: .16s; }
.bundle .line:nth-of-type(4) { animation-delay: .24s; }
.bundle .line:nth-of-type(5) { animation-delay: .32s; }
.bundle .tie { fill: var(--fg); }
.bundle .tag-text { font: 700 17px var(--f-body); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.legend { display: none; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
@media (max-width: 760px) {
  .bundle .tag { display: none; }
  .legend { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .bundle .line { animation: none; } html { scroll-behavior: auto; } }

/* Divisions */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--fg); background: var(--surface); }
.split > article { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split > article + article { border-left: 1.5px solid var(--fg); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split > article + article { border-left: 0; border-top: 1.5px solid var(--fg); } }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; background: var(--tick, var(--fg)); border-radius: 1px; }
.split > article:first-child { --tick: var(--blue); }
.split > article:last-child { --tick: var(--yellow); }
.more { margin-top: auto; padding-top: 6px; font-weight: 700; }

/* Section heads */
.head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { color: var(--muted); max-width: 60ch; }

/* Steps (real sequences only) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; counter-reset: step; border-top: 1.5px solid var(--fg); }
.steps li { counter-increment: step; padding: 24px 24px 24px 0; min-width: 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 700 2.4rem var(--f-display); line-height: 1; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 700px) { .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Two-column text blocks */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 64px); }
.cols > * { min-width: 0; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(150px, 0.34fr) 1fr; gap: 12px 32px; padding-block: 22px; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.15rem; }
.row > * { min-width: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--surface); padding: 0.3em 0.8em; border-radius: 999px; font-size: 0.95rem; }

/* Product families */
.family { display: grid; grid-template-columns: minmax(200px, 0.34fr) 1fr; gap: 12px 40px; padding-block: 28px; border-top: 1.5px solid var(--fg); }
.family:last-of-type { border-bottom: 1.5px solid var(--fg); }
.family .who { display: grid; gap: 10px; align-content: start; }
.family .items { columns: 2 260px; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.family .items li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } }

/* Rack elevation */
.rack { max-width: 760px; border-inline: 10px solid var(--fg); background: var(--surface); }
.rack .u { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.rack .u:last-child { border-bottom: 0; }
.rack .num { font: 500 0.82rem var(--f-mono); color: var(--muted); }
.rack .free { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--line) 8px 9px); color: var(--muted); }
.rack .name { min-width: 0; }
.rack .name small { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
@media (max-width: 520px) { .rack .u { grid-template-columns: 56px 1fr; } .rack .u .chip { grid-column: 2; justify-self: start; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 700; background: var(--bg); }
td.num, th.num { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: 0 0 10px; font-weight: 600; caption-side: top; }

/* Insights */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1.5px solid var(--fg); }
.post { padding: 28px 28px 28px 0; display: grid; gap: 12px; align-content: start; }
.post + .post { padding-left: 28px; border-left: 1px solid var(--line); }
.post a.title { text-decoration: none; }
.post a.title:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post h3 { font-size: 1.5rem; }
@media (max-width: 700px) { .post, .post + .post { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.meta { color: var(--muted); font-size: 0.92rem; }
.prose { max-width: 66ch; font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.9em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.article-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: 40px; }
.back { font-weight: 600; }

/* FAQ */
details.faq { border-top: 1px solid var(--line); padding-block: 4px; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 700; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--f-body); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding-bottom: 18px; color: var(--muted); max-width: 66ch; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 6px; padding: 0.75em 0.9em; width: 100%;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { min-height: 150px; resize: vertical; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.status { min-height: 1.5em; font-weight: 600; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr { font: 500 1.05rem var(--f-mono); user-select: all; word-break: break-all; }

/* Black band */
.band { background: var(--band); color: var(--band-fg); --mark-in: var(--band); }
.band .muted, .band .lede { color: var(--band-muted); }
.band a { color: inherit; }
.band .mark { --mark-in: var(--band); color: var(--band-fg); }
.cta { padding-block: clamp(56px, 8vw, 96px); }
.cta .wrap { display: grid; gap: 24px; }
.cta h2 { max-width: 20ch; }
.site-footer { padding-block: 48px 32px; border-top: 1px solid var(--band-line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h3 { font: 700 0.95rem var(--f-body); color: var(--band-muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-line); color: var(--band-muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.note { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px; color: var(--muted); max-width: 62ch; }
