/* Polaris website. Colours are taken from the Polaris logo. */
:root {
  --navy: #011b48;
  --navy-2: #0a2a5e;
  --navy-3: #13386f;
  --teal: #049daa;
  --teal-dark: #0b6c89;
  --teal-soft: #e3f5f6;
  --ink: #14213d;
  --muted: #55657e;
  --line: #dbe3ee;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --warn: #b45309;
  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(1, 27, 72, .06), 0 8px 24px rgba(1, 27, 72, .08);
  --shadow-lg: 0 2px 4px rgba(1, 27, 72, .06), 0 24px 60px rgba(1, 27, 72, .18);
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-small { padding: .55em 1.05em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a {
  display: block; padding: .45em .7em; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.site-nav ul a:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav ul a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .75em .8em; font-size: 1.02rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(4,157,170,.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(11,108,137,.45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  padding: 88px 0 0;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 535px;
  background: url("../img/polaris-icon.png") center / contain no-repeat;
  opacity: .07; pointer-events: none;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: #d5e3f2; font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-shot { position: relative; margin: 64px auto 0; max-width: 1020px; }
.hero-shot .browser { margin-bottom: -2px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--teal); margin-bottom: 1em;
}
.hero .eyebrow { color: #6fd6de; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(4,157,170,.30), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 72px 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lede { color: #d5e3f2; font-size: 1.18rem; max-width: 64ch; margin: 0; }
.page-hero .eyebrow { color: #6fd6de; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #d5e3f2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #b9cbe0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(1,27,72,.04);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card ul { color: var(--muted); padding-left: 1.1em; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-link .more { color: var(--teal-dark); font-weight: 600; font-size: .95rem; }

.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }

/* The four needs */
.needs .card { border-top: 4px solid var(--teal); }
.needs .card:nth-child(2) { border-top-color: var(--teal-dark); }
.needs .card:nth-child(3) { border-top-color: var(--navy-3); }
.needs .card:nth-child(4) { border-top-color: var(--navy); }
.needs .label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }

/* Split layout: text beside a picture */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-narrow { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) {
  .split, .split-narrow { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .75em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b6c89' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.section-navy .checks li::before { background-color: rgba(4,157,170,.25); }

/* Screenshot frames */
.browser {
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(1,27,72,.12);
}
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e3; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.hero figcaption { color: #9fb5ce; text-align: center; padding-bottom: 12px; }

.phone {
  width: 100%; max-width: 260px; border-radius: 34px; padding: 10px; background: #0b1426;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 26px; }
.phones { display: flex; justify-content: center; gap: 24px; align-items: flex-start; }
.phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 640px) {
  .phones { gap: 12px; }
  .phones .phone { padding: 6px; border-radius: 22px; }
  .phones .phone img { border-radius: 17px; }
  .phones .phone:nth-child(3) { display: none; }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.fact strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { color: #b9cbe0; font-size: .98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Act references */
.act-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.act-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-small); }
.act-list .ref { font-weight: 700; color: var(--teal-dark); font-size: .95rem; }
@media (max-width: 560px) { .act-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 2em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
td.where { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap td { border: 0; padding: 2px 0; white-space: normal; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
}

/* Sub navigation within a long page */
.subnav { position: sticky; top: 72px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav li { margin: 0; flex: none; }
.subnav a { display: block; padding: .4em .9em; border-radius: 999px; background: var(--bg-soft); color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600; }
.subnav a:hover { background: var(--teal-soft); }
[id] { scroll-margin-top: 140px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; }
.steps > li { counter-increment: step; position: relative; padding: 28px 28px 28px 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 28px; top: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.steps > li.aftercare::before { content: "+"; background: var(--teal); }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); }
.steps .done { font-size: .95rem; color: var(--ink); background: var(--teal-soft); border-radius: var(--radius-small); padding: 10px 14px; margin: 12px 0 0; }
.steps-compact > li { padding: 22px 22px 22px 80px; }
.steps-compact > li::before { left: 22px; top: 20px; width: 40px; height: 40px; }
@media (max-width: 560px) {
  .steps > li, .steps-compact > li { padding: 76px 20px 22px; }
  .steps > li::before, .steps-compact > li::before { left: 20px; top: 20px; }
}

/* Questions */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.5rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-small); margin-bottom: 10px; }
details[open] { border-color: var(--teal); box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > div { padding: 0 20px 18px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* Notes */
.note { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 16px 20px; border-radius: 0 var(--radius-small) var(--radius-small) 0; color: var(--ink); }
.note p:last-child { margin: 0; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2em .65em; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.pill-plan { background: #fdf2e3; color: var(--warn); }

/* Contact */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { flex: none; margin: 0; }
.contact-card h3 { margin-bottom: .2em; }
.contact-card p { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: #fff; padding: 64px 0;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 26ch; }
.cta-band p { margin: 0; color: #e4f7f8; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: #b9cbe0; padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: #e0ecf8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand strong { color: #fff; }
.footer-by { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-by img { background: #fff; border-radius: 6px; padding: 4px 6px; width: 125px; margin: 0; box-sizing: content-box; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #6fd6de; margin-bottom: 1em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; line-height: 1.8; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .85rem; color: #8ea6c2; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 40px; }
  .page-hero { padding: 52px 0 44px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
