/* Kintigo website: navy & gold, matching the app (src/constants/palette.ts). No build step. */
:root {
  --navy: #0a1b3d;
  --surface: #132b5e;
  --royal: #1e4fb0;
  --border: #27467f;
  --text: #ffffff;
  --muted: #a9bde2;
  --gold: #ffc629;
  --gold-shade: #e0a100;
  --ice: #7fd3f7;
  --purple: #b990ff;
  --radius: 20px;
  --max: 1080px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd85c;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

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

/* ----- Header & footer -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 27, 61, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.brand:hover {
  color: var(--text);
}

/* The ™ beside the brand: small and raised, without changing the line height or wrapping. */
.tm {
  font-size: 0.4em;
  font-weight: 800;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.08em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--gold);
}

.site-footer {
  margin-top: 64px;
  border-top: 2px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .credits {
  flex-basis: 100%;
  order: 3;
  margin: 0;
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text);
}

/* ----- Low-poly backdrops ---------------------------------------------- */
.poly {
  position: relative;
  isolation: isolate;
  background: linear-gradient(170deg, var(--royal) 0%, var(--navy) 75%);
  overflow: hidden;
}

.poly::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/low-poly.svg') center / cover no-repeat;
  opacity: 0.8;
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 56px 0 64px;
}

.hero-logo {
  width: min(420px, 86vw);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}

.wordmark {
  display: inline-block;
  margin: 8px 0 0;
  font-size: clamp(44px, 10vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.wordmark::after {
  content: '';
  display: block;
  height: 0.14em;
  margin-top: 4px;
  border-radius: 99px;
  background: var(--gold);
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 800;
}

.lede {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* Store buttons. Swap in Apple's and Google's official badges at launch (see website/README.md). */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--gold);
  border-bottom: 4px solid var(--gold-shade);
  color: var(--navy);
  text-decoration: none;
  text-align: left;
}

.store:hover {
  color: var(--navy);
  filter: brightness(1.05);
}

.store svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.store small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.store strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.store[aria-disabled='true'] {
  cursor: default;
}

/* ----- Download (store buttons + QR codes; links live in stores.js) ------ */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-body {
  min-width: 0;
}

.download h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.download .status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.download .store {
  min-width: 0;
}

.qr {
  flex: none;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px dashed var(--border);
  background: rgba(10, 27, 61, 0.6);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.qr.live {
  border: 0;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 420px) {
  .downloads {
    grid-template-columns: 1fr;
  }

  .download {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Sections ---------------------------------------------------------- */
section {
  padding: 56px 0 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 6vw, 38px);
  margin: 0 0 8px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 600;
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom-width: 5px;
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #1f3f86;
  border: 2px solid var(--gold);
  font-size: 24px;
}

.audiences {
  display: grid;
  gap: 40px;
}

/* Safety: the highlighted section. */
.safety {
  margin-top: 56px;
  border-radius: 28px;
  border: 2px solid var(--gold);
  padding: 36px 24px;
}

.safety .grid {
  margin-top: 8px;
}

.safety .card {
  background: rgba(10, 27, 61, 0.78);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--gold);
  border-bottom: 4px solid var(--gold-shade);
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.button:hover {
  color: var(--navy);
  filter: brightness(1.05);
}

.button.ghost {
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ----- Pricing ----------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  margin-top: 8px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom-width: 5px;
  border-radius: var(--radius);
  padding: 26px 20px 20px;
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(170deg, #1f3f86 0%, var(--surface) 70%);
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
}

.ribbon {
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 3px 12px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.price {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.price .amount {
  color: var(--text);
  font-size: 36px;
  font-weight: 900;
}

.trial {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 99px;
  border: 2px solid var(--ice);
  color: var(--ice);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.price-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.plan-option {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: rgba(10, 27, 61, 0.5);
}

.plan-option.best {
  border-color: var(--gold);
  background: rgba(255, 198, 41, 0.08);
}

.option-label {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-option .price {
  margin-top: 4px;
}

.amount.small {
  font-size: 26px;
}

.math {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #e3ebfa;
  line-height: 1.5;
}

.math strong {
  color: var(--gold);
}

.price-card .checks {
  margin-top: 18px;
}

.price-card .checks li {
  font-size: 15px;
}

#pricing .fine {
  margin-top: 16px;
}

/* ----- Legal & support pages ------------------------------------------- */
.page-hero {
  padding: 44px 0 36px;
}

.page-hero h1 {
  font-size: clamp(32px, 7vw, 46px);
  margin: 0;
}

.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.doc {
  max-width: 760px;
}

.doc h2 {
  font-size: 26px;
  margin: 40px 0 10px;
  padding-top: 8px;
}

.doc h3 {
  font-size: 19px;
  margin: 24px 0 6px;
}

.doc p,
.doc li {
  color: #e3ebfa;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.toc {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 8px;
}

.toc strong {
  display: block;
  margin-bottom: 6px;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
}

.notice {
  background: #1f3f86;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
}

.notice p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 2px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

details {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0 18px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style-position: outside;
}

details[open] summary {
  color: var(--gold);
}

details p,
details ol,
details ul {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  min-height: 30px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  display: grid;
  place-items: center;
}

form.contact {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #7f96c6;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button.button {
  border: 0;
  border-bottom: 4px solid var(--gold-shade);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  justify-self: start;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
