/* Patriot Router - patriotrouter.com
   Tokens mirror the Patriot Router brand system. No inline styles anywhere, so the CSP can stay strict. */
:root {
  --surface: #F5F7FB;
  --surface-raised: #FFFFFF;
  --night: #0B1028;
  --navy: #1B2350;
  --ink: #0F1530;
  --ink-soft: #2A3150;
  --ink-muted: #535B78;
  --on-dark: #F2F4FA;
  --on-dark-soft: #C9CFE2;
  --on-dark-muted: #A3ABC6;
  --line: #D7DCE8;
  --red: #B22234;
  --red-bright: #CC3344;
  --red-deep: #8E1B2A;
  --red-on-dark: #F07583;
  --red-halo: #F6D3D8;
  --led: #2F7BFF;
  --led-on-dark: #4D9BFF;
  --led-label: #8FBCFF;
  --led-soft: #E3EDFF;
  --brass: #D4A64A;
  --success: #15803D;
  --success-on-dark: #4ADE80;
  --danger: #C2410C;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 14px;
  --max: 1200px;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/26px var(--font-body);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--led-on-dark); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface-raised); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-md); z-index: 20; }
.skip:focus { top: 12px; }

/* Layout */
.band { padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 96px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.dark { background: var(--night); color: var(--on-dark); }
.navyband { background: var(--navy); color: var(--on-dark); }
.white { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.redband { background: var(--red); color: #FFFFFF; }

/* Type */
.eyebrow { font: 600 12px/16px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0; }
.eyebrow.muted { color: var(--ink-muted); }
.eyebrow.led { color: var(--led-on-dark); }
.eyebrow.ledlabel { color: var(--led-label); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.h1 { font: 900 clamp(56px, 8vw, 108px)/0.9 var(--font-display); letter-spacing: -0.5px; }
.h2 { font: 800 clamp(40px, 5vw, 60px)/0.95 var(--font-display); }
.h2.sm { font-size: clamp(36px, 4.5vw, 52px); }
.h3 { font: 800 32px/1 var(--font-display); }
.lede { margin: 0; font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.dark .lede { color: var(--on-dark-soft); }
p { margin: 0; }
.mono { font: 400 14px/22px var(--font-mono); }

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: 16px; line-height: 20px; padding: 14px 26px; border-radius: var(--radius-md); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: var(--red-deep); color: #FFFFFF; }
.dark .btn-red, .site-header .btn-red { background: var(--red-bright); }
.dark .btn-red:hover, .site-header .btn-red:hover { background: var(--red); }
.btn-outline { border-color: var(--on-dark-muted); color: var(--on-dark); padding: 12px 24px; }
.btn-outline:hover { border-color: var(--on-dark); color: #FFFFFF; }

/* Announcement + header */
.announce { background: var(--red); color: #FFFFFF; text-align: center; padding: 10px 24px; font: 600 13px/18px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.site-header { background: var(--night); color: var(--on-dark); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.nav { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 44px; height: 44px; }
.wordmark { font: 900 26px/1 var(--font-display); letter-spacing: 0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--on-dark); text-decoration: none; }
.nav-links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.nav-links a.btn { padding: 12px 20px; font-size: 15px; text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 56px 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lede { max-width: 34em; }
.hero-art { flex: 1 1 520px; min-width: 0; }
.hero-art img {
  width: 100%; max-width: 720px; margin: 0 auto;
  /* Soft fade on all four edges so the photo melts into the section. The photo's background is the same navy. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

.stripes { display: grid; }
.stripes span { height: 6px; background: var(--red); }
.stripes span:nth-child(2) { background: #FBFCFE; }

/* Trust strip */
.trust { background: var(--surface-raised); border-bottom: 1px solid var(--line); padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 28px; }
.trust ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; font: 600 13px/18px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.trust li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--led); flex: none; }

/* Feature cards */
.section-gap { display: flex; flex-direction: column; gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.spec-chip { font: 400 14px/22px var(--font-mono); background: var(--led-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: auto; }

/* DNS flow */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; list-style: none; margin: 0; padding: 0; }
.flow li.node { flex: 1 1 180px; min-width: 0; background: var(--night); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.flow li.node.hot { border: 2px solid var(--led-on-dark); }
.flow .node-title { font: 800 22px/1.1 var(--font-display); }
.flow .node-text { font-size: 15px; line-height: 22px; color: var(--on-dark-muted); }
.flow li.arrow { flex: 0 0 auto; align-self: center; font: 600 13px/18px var(--font-mono); color: var(--led-label); text-align: center; }
.flow li.arrow b { display: block; font-size: 22px; line-height: 26px; }
.beforeafter { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--on-dark-soft); }
.before { color: var(--red-on-dark); }
.after { color: var(--success-on-dark); }

/* Configurator */
.config { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.stage-col { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stage { background: var(--night); border-radius: var(--radius-lg); padding: 32px 24px; }
.stage img { width: 100%; max-width: 640px; margin: 0 auto; }
.stage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 400 14px/20px var(--font-mono); color: var(--ink-muted); }
.controls { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.controls legend { padding: 0; margin-bottom: 12px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { background: var(--surface-raised); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-md); cursor: pointer; text-align: left; min-height: 44px; }
.choice:hover { border-color: var(--ink-muted); }
.choice[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-halo); }
.choice.tile { display: flex; flex-direction: column; gap: 8px; padding: 8px; font-weight: 600; font-size: 14px; line-height: 18px; }
.choice.row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; }
.choice.row .label { font-weight: 600; font-size: 15px; }
.choice.row .desc { font-size: 14px; color: var(--ink-muted); }
.ant-list { display: flex; flex-direction: column; gap: 8px; }
.swatch { display: block; height: 36px; border-radius: var(--radius-sm); }
.sw-liberty { background: #FBFCFE; border: 1px solid #C3C9D8; }
.sw-old-glory { background: linear-gradient(#1B2350, #1B2350) 0 0 / 45% 55% no-repeat, repeating-linear-gradient(180deg, #B22234 0 5px, #FBFCFE 5px 10px); }
.sw-eagle { background: radial-gradient(circle at 72% 45%, #FBFCFE 0 26%, transparent 27%), #3B2A1E; }
.sw-rushmore { background: linear-gradient(180deg, #7FA9DE 0 38%, #9B9A97 38% 72%, #24402E 72%); }
.sw-subdued { background: linear-gradient(#14161C, #14161C) 0 0 / 45% 55% no-repeat, repeating-linear-gradient(180deg, #14161C 0 5px, #3A3F4B 5px 10px); }
.sw-custom { background: #EEF1F7; border: 2px dashed #6E788C; }
.color-row { display: flex; flex-wrap: wrap; gap: 12px; }
.color { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #C3C9D8; cursor: pointer; padding: 0; }
.color[aria-pressed="true"] { border: 3px solid #FFFFFF; box-shadow: 0 0 0 3px var(--red); }
.c-white { background: #FBFCFE; } .c-red { background: #B22234; } .c-navy { background: #1B2350; } .c-gunmetal { background: #2E3340; }
.upload { display: flex; flex-direction: column; gap: 8px; background: var(--surface-raised); border: 1px dashed var(--ink-muted); border-radius: var(--radius-md); padding: 16px; }
.upload label { font-weight: 600; font-size: 15px; }
.upload input { font-size: 14px; max-width: 100%; }
.fine { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.config .btn { align-self: flex-start; }

/* Software columns */
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.col { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--red); padding-top: 20px; }
.col.navy { border-top-color: var(--navy); }
.col.led { border-top-color: var(--led); }
.col .h3 { font-size: 28px; }
.col p { color: var(--ink-soft); }

/* Specs */
.specs { display: flex; flex-wrap: wrap; gap: 48px; }
.specs-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.specs-intro p { color: var(--ink-muted); }
.spec-table { flex: 2 1 560px; min-width: 0; margin: 0; border-top: 2px solid var(--ink); }
.spec-table div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font: 600 12px/22px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.spec-table dd { margin: 0; }

/* Origin */
.origin { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.seal { flex: 0 0 auto; width: 168px; height: 168px; border-radius: 50%; border: 4px solid var(--brass); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.seal small { font: 600 11px/14px var(--font-mono); letter-spacing: 0.14em; color: var(--on-dark-muted); }
.seal strong { font: 900 40px/0.9 var(--font-display); }
.origin-copy { flex: 1 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.origin-copy p { font-size: 18px; line-height: 28px; color: var(--on-dark-soft); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 19px; line-height: 26px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 600 22px/26px var(--font-mono); color: var(--red); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--ink-soft); padding-bottom: 20px; max-width: 65ch; }

/* Reserve */
.reserve { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.reserve-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.reserve-copy .h1 { font-size: clamp(48px, 6vw, 80px); line-height: 0.92; }
.reserve-copy p { font-size: 20px; line-height: 30px; }
.reserve-card { flex: 1 1 400px; min-width: 0; background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-md); padding: 32px; }
.reserve-card form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-raised); }
.field input:focus { border-color: var(--led); }
.build-line { font: 400 14px/20px var(--font-mono); background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; }
.reserve-card button { border: 0; font-size: 17px; padding: 15px 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-size: 15px; font-weight: 600; }
.done { display: flex; flex-direction: column; gap: 12px; }
.done .eyebrow { color: var(--success); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; font-size: 15px; }
.site-footer .brand img { width: 36px; height: 36px; }
.site-footer .wordmark { font-size: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--on-dark-soft); text-decoration: none; }
.foot-links a:hover { color: #FFFFFF; text-decoration: underline; }
.legal { width: 100%; font-size: 13px; }

/* 404 */
.lost { min-height: 70vh; display: flex; align-items: center; }
.lost .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

@media (max-width: 520px) {
  .nav { flex-wrap: nowrap; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 34px; height: 34px; }
  .wordmark { font-size: 20px; }
  .nav-links a.btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .band { padding-block: 72px; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .reserve-card { padding: 24px; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
}
