:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2730;
  --muted: #4a5a66;
  --accent: #0b5d6b;
  --accent-text: #ffffff;
  --border: #d8dde1;
  --accent-soft: #e4f1f3;
  --slate: #2f3e4a;
  --frame: #2b3842;
  --mock-line: #d3dde2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181d;
    --surface: #182229;
    --text: #e8edf0;
    --muted: #aebac2;
    --accent: #6cc3d1;
    --accent-text: #0b1418;
    --border: #2b3a44;
    --accent-soft: #163038;
    --slate: #c5d1d8;
    --frame: #3b4c58;
    --mock-line: #33434d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 1;
}

.site-header,
.page,
.site-footer {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 46% 46% no-repeat,
    linear-gradient(var(--slate), var(--slate)) 100% 0 / 46% 46% no-repeat,
    linear-gradient(var(--slate), var(--slate)) 0 100% / 46% 46% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 46% 46% no-repeat;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.97rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
}

.document h2 {
  margin-top: 2rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.status {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.65rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

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

.button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}

.hero-plain {
  display: block;
}

.feature-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-text p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.feature-text ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-text li {
  margin: 0.3rem 0;
}

.feature-text li::marker {
  color: var(--accent);
}

/* Phone frame. The screen shows a CSS-drawn placeholder; a PNG dropped into site/src/img
   (screenshot-<slot>.png) paints over it with no code change. */
.phone {
  justify-self: center;
  width: min(72vw, 17rem);
  aspect-ratio: 9 / 18.5;
  border: 0.6rem solid var(--frame);
  border-radius: 2.2rem;
  background: var(--surface);
  box-shadow: 0 1.2rem 2.5rem -1rem rgba(20, 40, 50, 0.45);
  position: relative;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 28%;
  height: 0.9rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--frame);
  z-index: 2;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}


.screen {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.9rem 0.7rem 0.7rem;
  background: var(--bg);
  font-size: 0.72rem;
  line-height: 1.3;
}

.m-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.m-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--accent);
}

.m-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.m-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.m-map {
  min-height: 5.5rem;
  background:
    linear-gradient(135deg, transparent 47%, var(--mock-line) 48% 52%, transparent 53%) 0 0 / 1.6rem 1.6rem,
    var(--accent-soft);
}

.m-label {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m-strong {
  font-weight: 700;
}

.m-line {
  display: block;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--mock-line);
}

.w90 { width: 90%; }
.w80 { width: 80%; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.w50 { width: 50%; }

.m-chip {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.66rem;
}

.m-accent .m-chip {
  background: var(--surface);
}

.how {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.steps h3 {
  margin-top: 0.6rem;
}

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

.step-n {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.trust {
  margin: 1rem 0;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--accent-soft);
}

.trust-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent);
}

.trust-list span {
  color: var(--muted);
}

.contact {
  padding: 2.5rem 0 3rem;
}

.contact p {
  margin: 0 0 0.5rem;
}

.document {
  padding-bottom: 3rem;
}

.document h1 {
  margin-top: 2rem;
}

.document table {
  border-collapse: collapse;
  width: 100%;
  overflow-x: auto;
  display: block;
}

.document th,
.document td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.document code {
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (min-width: 48rem) {
  .hero,
  .feature-row {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

  .hero-plain {
    display: block;
  }

  .feature-row:nth-of-type(even) .phone {
    order: -1;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header,
  .page,
  .site-footer {
    width: min(100% - 4rem, 60rem);
  }
}

/* Real app screenshots inside the phone frame. */
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  background: #f2f2f7;
}

.phone::after {
  display: none;
}

/* Hero: the briefing in front, its next steps behind. */
.hero-phones {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1.25;
}

.hero-phones .phone {
  position: absolute;
  width: 64%;
}

.phone-front {
  left: 0;
  top: 6%;
  z-index: 2;
}

.phone-back {
  right: 0;
  top: 0;
  opacity: 0.9;
  transform: rotate(4deg);
}

.eyebrow,
.case-tag {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro {
  max-width: 40rem;
  padding: 3rem 0 0.5rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

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

/* One article per example case: the vignette, then its screens in order. */
.case {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

.case:first-of-type {
  border-top: 0;
}

.case-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.25;
  text-wrap: balance;
}

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

.case-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.shot {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

.shot .phone {
  width: 100%;
  max-width: 15rem;
  justify-self: center;
  border-width: 0.4rem;
  border-radius: 1.7rem;
}

.shot .phone::before {
  height: 0.65rem;
  top: 0.35rem;
}

.shot figcaption {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 16rem;
  justify-self: center;
}

.shot figcaption strong {
  color: var(--text);
}

.more {
  padding-bottom: 1rem;
}

.more-grid {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 0;
}

.more .shot .phone {
  max-width: 13rem;
}

@media (min-width: 48rem) {
  .case {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
  }

  .case-flip {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .case-flip .case-text {
    order: 2;
  }

  .more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  .phone img {
    background: #1c1c1e;
  }
}
