/* MITOL Technology: one stylesheet for every page.
   No inline styles (blocked by the CSP in _headers). No external requests. */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1A1F1C;
  --muted: #4D5651;
  --border: #E2E4DF;
  --accent: #1D4E89;
  --accent-dark: #163C6A;
  --accent-soft: #E7EEF6;
  --phone: #1A1F1C;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1875rem;
}

p,
ul {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-dark);
}

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

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: off-screen until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section--surface {
  background: var(--surface);
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  background: var(--bg);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

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

.brand svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 -12px 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  gap: 0 8px;
  margin: 0 -12px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-dark);
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.button--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.button--secondary {
  background: transparent;
  color: var(--accent);
}

.button--secondary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Badge */
.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  border-top: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.25rem;
}

.tagline {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 700;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.section--surface .card {
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

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

.card-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card--feature {
  border-top: 3px solid var(--accent);
}

/* Apps */
.app-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.app-card h3 {
  margin-bottom: 4px;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.app-card .app-line {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
}

.app-card .buttons {
  margin-top: 8px;
}

.more-apps {
  margin: 24px 0 0;
  color: var(--muted);
}

/* Near Miss: privacy + pricing */
.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 32px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.panel ul {
  margin: 0;
  padding-left: 1.25em;
}

.panel li + li {
  margin-top: 8px;
}

.pricing {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.pricing p:last-child {
  margin-bottom: 0;
}

.band {
  text-align: center;
}

.band p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

/* Keep intro paragraphs at their usual width inside a centred band */
.band .section-intro {
  max-width: 640px;
}

/* Text pages */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 4px;
}

.updated {
  color: var(--muted);
}

/* Phone mockup ("screenshot coming soon"), pure CSS */
.phone {
  position: relative;
  flex: none;
  width: 220px;
  height: 440px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid var(--phone);
  border-radius: 34px;
  background: #FFFFFF;
}

.phone--large {
  width: 240px;
  height: 480px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px 14px 14px;
}

.phone-screen span {
  display: block;
  border-radius: 6px;
  background: #ECEDEA;
}

.phone-screen .ph-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 64px;
  height: 14px;
  margin-left: -32px;
  border-radius: 999px;
  background: var(--phone);
}

.phone-screen .ph-title {
  width: 55%;
  height: 16px;
}

.phone-screen .ph-line {
  width: 80%;
  height: 8px;
}

.phone-screen .ph-hero {
  height: 96px;
  border-radius: 12px;
}

.phone-screen .ph-row {
  height: 44px;
}

.phone-screen .ph-row--short {
  width: 70%;
}

.phone-screen .ph-tabs {
  height: 36px;
  margin-top: auto;
}

.phone-frost {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 247, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.phone-band {
  position: absolute;
  top: 50%;
  left: -30%;
  width: 160%;
  padding: 10px 0;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-14deg);
}

/* Tablet */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stack two-column layouts */
@media (max-width: 760px) {
  .hero-split,
  .app-card,
  .split {
    grid-template-columns: 1fr;
  }

  .app-card {
    padding: 28px 24px;
  }
}

/* Phones */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .lead {
    font-size: 1.125rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .pricing {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  .app-card {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
