/* ruggedsoft website. Colours are tokens; dark mode follows the system setting. */
:root {
  --ground: #F3F0E8;      /* page */
  --surface: #FFFFFF;     /* cards */
  --ink: #0E1A33;         /* text */
  --muted: #4A5774;       /* secondary text */
  --line: #D9D3C4;        /* borders */
  --accent: #1D4FB8;      /* links */
  --navy: #0B2B66;        /* SUMMIT ground, always dark */
  --navy-2: #123A80;
  --cream: #F3F0E8;
  --sky: #9CBBF5;
  --pink: #F2558A;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1222; --surface: #121C31; --ink: #ECE8DE; --muted: #A9B4CC; --line: #26324C; --accent: #9CBBF5;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; line-height: 1.02;
  text-transform: uppercase; letter-spacing: .005em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.eyebrow { display: block; font: 500 12px/1.4 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; text-decoration: none; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 26px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .01em; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a, .site-footer nav a { font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.site-header nav a:hover, .site-footer nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
nav a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; }
.footer-row p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.site-footer nav a { color: var(--muted); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 0 22px;
  border-radius: 10px; font: 600 14px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; border: 2px solid transparent; }
.btn::after { content: '→'; font-family: Inter, system-ui, sans-serif; font-size: 18px; }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 45%, transparent); color: inherit; }
.btn-ghost::after { content: none; }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn:hover { filter: brightness(1.08); }

/* SUMMIT panels: always navy, whatever the theme */
.summit { background: var(--navy); color: var(--cream); --muted: #B4C3DF; --accent: var(--sky); }
.summit a:not(.btn) { color: var(--sky); }

/* home: intro and hero */
.intro { padding-block: 72px 40px; }
.intro h1 { max-width: 12em; }
.hero { border-radius: 24px; overflow: hidden; position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: 24px; padding: 56px; isolation: isolate; }
.hero h2 { font-size: clamp(56px, 9vw, 112px); line-height: .9; margin-bottom: 18px; }
.hero .lead { color: #D5DEEF; }
.hero-art { position: relative; min-height: 520px; }
.hero-art .phone { position: absolute; right: 8%; top: 0; width: 56%; z-index: 2; }
.hero-art .map { position: absolute; width: 50%; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero-art .map-a { left: 0; bottom: 4%; }
.hero-art .map-b { right: -6%; bottom: -10%; width: 38%; z-index: 3; }
.phone { border-radius: 30px; overflow: hidden; border: 8px solid #05070C; background: #05070C;
  box-shadow: 0 30px 60px rgba(0,0,0,.4); aspect-ratio: 540 / 1127; }
.phone img { width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em;
  border: 1px solid rgba(243,240,232,.35); border-radius: 6px; padding: 6px 10px; }

.section { padding-top: 96px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--accent); }

/* product page */
.product-head { padding-block: 72px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.product-head .phone { max-width: 320px; margin-left: auto; transform: rotate(2deg); }
.band { border-radius: 24px; padding: 56px; margin-top: 24px; }
.feature { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: 320px 1fr; }
.feature.flip .feature-art { order: -1; }
.feature ul { padding-left: 1.1em; margin: 0; }
.feature li { margin-bottom: 6px; }
.feature li::marker { color: var(--accent); }
.maps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 8px; padding: 0; list-style: none; }
.maps figure { margin: 0; }
.maps figcaption { font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); text-align: center; margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--sky);
  border-bottom: 3px solid var(--sky); transform: rotate(-45deg); }
.note { font-size: 14px; color: var(--muted); }

/* blog */
.page-head { padding: 72px 24px 24px; }
.post-list { list-style: none; padding: 0; margin: 24px 0 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 28px 0; color: inherit; text-decoration: none; }
.post-list a:hover h2 { color: var(--accent); }
.post-list h2, .post-list h3 { font-size: 36px; margin-bottom: 8px; }
.post-list a:hover h3 { color: var(--accent); }
.post-list p { color: var(--muted); margin: 0; }
.post { padding-top: 64px; }
.post h1 { font-size: clamp(40px, 6vw, 68px); }
.post .meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.back { margin-bottom: 28px; }
a.eyebrow:hover { color: var(--accent); }

/* long text: blog posts and legal pages */
.prose { font-size: 18px; }
.prose h2 { font-size: 34px; margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 10px; }
.prose code { font: 500 .88em 'IBM Plex Mono', ui-monospace, monospace; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--navy); color: var(--cream); padding: 18px 20px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.legal { padding-top: 64px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal .prose { font-size: 16px; }
.legal .prose h2 { font-size: 26px; }
.legal .prose h3 { font: 500 12px 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .12em; color: var(--muted); margin: 1.6em 0 .5em; }
address { font-style: normal; }
.table { overflow-x: auto; margin: 0 0 1.2em; }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font: 500 11px 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.notfound { padding: 120px 24px 40px; }

@media (max-width: 900px) {
  .hero, .product-head, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .hero { padding: 36px 24px 0; }
  .hero-art { min-height: 0; height: 460px; margin: 8px -24px 0; overflow: hidden; }
  .hero-art .phone { width: 230px; right: auto; left: 50%; transform: translateX(-50%); top: 8px; }
  .hero-art .map-a { width: 220px; left: -40px; bottom: 30px; }
  .hero-art .map-b { width: 170px; right: -30px; bottom: -10px; }
  .product-head .phone { margin: 0 auto; max-width: 260px; }
  .feature { gap: 32px; padding: 48px 0; }
  .feature-art .phone { max-width: 280px; margin: 0 auto; }
  .cols { grid-template-columns: 1fr; }
  .maps { grid-template-columns: repeat(2, 1fr); }
  .ticks { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .page-head { padding: 48px 16px 16px; }
  .intro { padding-block: 48px 28px; }
  .site-header nav a { padding: 8px 6px; letter-spacing: .06em; }
  .hero { padding: 28px 20px 0; border-radius: 18px; }
  .hero-art { margin: 8px -20px 0; height: 420px; }
  .btn { width: 100%; }
  .section { padding-top: 72px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-link, .btn { transition: border-color .15s, filter .15s; }
}
.feature.wide { display: block; }
.after-list { margin: 28px 0 0; }
.fake-link { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
