/* =========================================================
   Brand site — base stylesheet
   Replace brand colours below to re-skin the whole site.
   Fonts: system stacks only (no hosted/licensed font files).

   Colour system: three layers, not one flat white.
     1. deep navy    — footer, dark surfaces, gradient stops
     2. brand blue   — buttons, links, headings accents, tints
     3. amber accent — eyebrows, notices, small highlights
   Intensity is tunable from the :root block alone.
   ========================================================= */

:root {
  /* brand blue */
  --brand: #0d4f8b;
  --brand-mid: #1568b0;        /* gradient top stop */
  --brand-dark: #073a63;
  --brand-soft: #e7f0fa;
  --brand-tint: #f2f8fd;       /* very light section wash */

  /* deep navy — dark surfaces */
  --navy: #072c4a;
  --navy-2: #0b3a5e;

  /* amber accent */
  --accent: #ef8a1b;
  --accent-soft: #fff6ea;

  /* text */
  --ink: #0d141d;
  --muted: #55677a;
  --muted-soft: #7d8fa3;

  /* structure */
  --line: #dfe7f0;
  --line-strong: #cad9e8;
  --bg: #ffffff;
  --soft: #f4f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;

  --shadow: 0 1px 2px rgba(13, 31, 51, .05), 0 10px 28px rgba(13, 50, 90, .08);
  --shadow-lg: 0 2px 6px rgba(13, 31, 51, .06), 0 20px 48px rgba(13, 50, 90, .15);
  --glow: 0 26px 60px -24px rgba(13, 79, 139, .45);

  /* signature gradient, reused by the top bar and buttons */
  --grad-brand: linear-gradient(180deg, var(--brand-mid) 0%, var(--brand) 100%);
  --grad-bar: linear-gradient(90deg, var(--brand) 0%, var(--brand-mid) 46%, var(--accent) 100%);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-soft); color: var(--brand-dark); }

/* `height: auto` is required, not optional: any <img> carrying width/height
   attributes would otherwise keep its attribute height while max-width clamps
   the width, stretching the picture. Do not remove it. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 12px; top: 12px; z-index: 99;
  background: #fff; padding: 8px 14px; border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* thin signature bar — the one flash of colour that runs across every page */
.site-header::before {
  content: ""; display: block; height: 4px;
  background: var(--grad-bar);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.logo {
  font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--ink); white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--accent); }

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--muted); font-size: .94rem; font-weight: 550;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }

.header-cta { margin-left: 4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .94rem; font-weight: 600;
  background: var(--grad-brand); color: #fff;
  border: 1px solid var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 79, 139, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.btn:hover {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand-dark);
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 79, 139, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-ghost {
  background: #fff; color: var(--brand); border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: #fff; border-color: var(--brand); color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(13, 50, 90, .12);
}
.btn-sm { padding: 8px 16px; font-size: .88rem; }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
/* tinted bands — deliberately a step darker than a flat near-white, so the page
   reads as layered instead of one continuous white sheet */
.section-soft { background: linear-gradient(180deg, #eef5fc 0%, #e8f1fa 100%); }
.section-tight { padding: 48px 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #f7be78);
}
.section-head.center .eyebrow::before { display: none; }
.lede { font-size: 1.08rem; color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(880px 420px at 88% 4%, rgba(239, 138, 27, .13), transparent 62%),
    radial-gradient(820px 560px at 2% -8%, rgba(21, 104, 176, .22), transparent 66%),
    linear-gradient(180deg, #dceaf9 0%, #eef6ff 58%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
/* faint dot grid, faded out before it reaches the fold */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(13, 79, 139, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, transparent 72%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero p.lede { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-art {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  padding: 26px;
}
.hero-art img { width: 100%; height: auto; border-radius: 10px; }
.hero-art .art-note {
  font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0;
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(13, 31, 51, .04);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad-brand); color: #fff;
  font-size: .85rem; font-weight: 700; margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(13, 79, 139, .26);
}

/* product card */
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-thumb {
  aspect-ratio: 1 / 1;
  min-height: 0;              /* keep the aspect ratio authoritative: as a flex item,
                                 min-height:auto would let the image inflate the box */
  background:
    radial-gradient(120% 95% at 50% 0%, #f4f9ff 0%, #e6eff9 58%, #d9e6f5 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted-soft); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .28s ease; }
.product-card:hover .product-thumb img { transform: scale(1.035); }

/* ---------- image tiles inside product thumbs ---------- */

/* a photo cropped to fill the square thumb (overrides the default contain).
   The image is taken OUT OF FLOW: while it stays in flow, its intrinsic
   aspect ratio (4:5 for the category photo) inflates the thumb box and the
   square aspect-ratio above silently loses, which used to expose the top of
   the picture — including the marketing banner that must stay cropped out. */
.thumb-photo { position: relative; display: block; }
.thumb-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* optional inset laid over a photo tile.
   height is set explicitly because `.product-thumb img` sets height:100%,
   which would otherwise stretch any inset into a tall bar. */
.thumb-inset {
  position: absolute; right: 7%; bottom: 7%;
  height: 38%; width: auto; max-width: 42%;
  background: #fff; border-radius: 10px; padding: 7px;
  box-shadow: 0 3px 12px rgba(16, 22, 31, .16);
}

/* ---------- product media (detail page) ---------- */

.media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 31, 51, .04);
  margin: 0 0 22px;
}
.media img { width: 100%; height: auto; display: block; }
.media figcaption {
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff, #f5f9fd);
  font-size: .86rem; color: var(--muted);
}
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body .sku {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.product-body p { color: var(--muted); font-size: .94rem; }
.product-body .card-link { margin-top: auto; font-weight: 600; font-size: .92rem; }

/* ---------- trust / feature strip ---------- */

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 1px 2px rgba(13, 31, 51, .04);
}
.strip > div {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}
.strip > div:last-child { border-right: 0; }
.strip strong {
  display: block; margin-bottom: 4px; font-size: .97rem;
  color: var(--brand-dark);
}
.strip span { color: var(--muted); font-size: .9rem; }

/* ---------- table ---------- */

.spec-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-size: .95rem;
  background: #fff;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  background: linear-gradient(180deg, #f3f8fd 0%, #e9f1f9 100%);
  font-weight: 600; width: 34%;
  color: var(--brand-dark);
}
.spec-table td { color: var(--muted); }

/* ---------- notice ---------- */

.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .93rem;
  color: #6b4a1c;
}
.notice strong { color: #4d3311; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 0;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  padding: 52px 0 34px;
  margin-top: 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .74);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-grid h4 {
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255, 255, 255, .52); font-weight: 700; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: rgba(255, 255, 255, .82); }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
/* the footer wordmark reuses .logo, whose default colour is near-black —
   on the navy footer it must be forced light or it disappears. */
.site-footer .logo { color: #fff; }
.footer-about p { color: rgba(255, 255, 255, .68); max-width: 30em; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  color: rgba(255, 255, 255, .58); font-size: .86rem;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, .68); }
.footer-legal a:hover { color: #fff; }

/* ---------- long-form (legal / about) ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.28rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.prose ul { padding-left: 1.15em; color: var(--muted); }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--muted-soft); font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(13, 50, 90, .08);
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 600; font-size: 1.25rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--brand); border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 16px 20px; color: var(--muted); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-soft); display: block; margin-bottom: 6px;
}
.contact-list .value { font-size: 1.02rem; font-weight: 550; }

/* ---------- page header ---------- */

.page-head {
  position: relative;
  padding: 56px 0 44px;
  background:
    radial-gradient(720px 300px at 92% 0%, rgba(239, 138, 27, .11), transparent 62%),
    linear-gradient(180deg, #dceaf9 0%, #eef6ff 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- comparison table ---------- */

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 640px; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-size: .92rem;
  background: #fff;
}
.compare th, .compare td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.compare thead th {
  background: linear-gradient(180deg, #eef6fd 0%, #e2eef9 100%);
  font-weight: 600; color: var(--brand-dark);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 20%; }
.compare td { color: var(--muted); }
.compare tbody tr:nth-child(even) { background: #fafcff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--brand); font-weight: 600; }

/* ---------- utility ---------- */

.muted { color: var(--muted-soft); font-size: .94em; }

/* ---------- mobile sticky purchase bar (product pages) ----------
   The buy block sits far down the page; on a phone that is a lot of scrolling.
   This bar is display:none by default and only appears on narrow screens,
   so desktop markup is unaffected. `.has-buybar` on <body> reserves room at
   the bottom so the fixed bar never covers the footer. */

.buybar { display: none; }

@media (max-width: 640px) {
  body.has-buybar { padding-bottom: 78px; }

  .buybar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(13, 50, 90, .10);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }
  .buybar-inner {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
  }
  .buybar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .buybar-model {
    font-size: .76rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--accent);
  }
  .buybar-note { font-size: .74rem; color: var(--muted); }
  .buybar-note a { color: var(--muted); text-decoration: underline; }
  .buybar .btn { flex: 0 0 auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .site-nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .header-cta { margin-left: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 56px 0 52px; }
  .site-footer { padding: 40px 0 28px; }
}
