/* Repkivo showcase — same "ballpoint logbook" tokens as the app (app/brand.config.json). */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --sunken: #e9ebe5;
  --rule: #d3d7ce;
  --rule-strong: #848a80;
  --ink: #15181d;
  --ink-muted: #4b5159;
  --ink-faint: #61676f;
  --accent: #2340c8;
  --accent-soft: #e3e8fb;
  --on-accent: #ffffff;
  --record: #8a5a00;
  --record-soft: #fbefd5;
  --ok: #1e6b45;
  --warn: #8a5a00;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --sunken: #0b0d10;
    --rule: #2c3038;
    --rule-strong: #737a85;
    --ink: #eef0ec;
    --ink-muted: #b5bab2;
    --ink-faint: #9aa098;
    --accent: #8fa3ff;
    --accent-soft: #1f2747;
    --on-accent: #0b1030;
    --record: #f2c46b;
    --record-soft: #3a2e14;
    --ok: #7fd3a5;
    --warn: #f2c46b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; min-height: 44px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 10px 10px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); background: var(--sunken); }
@media (max-width: 760px) { .site-nav .optional { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy .lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 36em; }
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts span:first-child { font: 700 0.78rem/1.6 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--accent); }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { color: var(--ink); border-color: var(--rule-strong); background: var(--surface); }
.hero-visual { display: flex; gap: 20px; justify-content: center; align-items: flex-start; min-width: 0; }
.phone { margin: 0; flex: 0 1 260px; min-width: 0; }
.phone .screen { border-radius: 30px; border: 6px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 1px 0 var(--rule-strong), 0 24px 48px -28px rgba(20, 24, 32, 0.45); }
.phone .screen img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }
.phone.android .screen img { aspect-ratio: 1080 / 2400; }
.phone figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-faint); text-align: center; }
.hero-visual .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 36px; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-visual { gap: 12px; }
  .phone .screen { border-width: 4px; border-radius: 22px; }
  .hero-visual .phone:nth-child(2) { margin-top: 28px; }
}

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: 36px; }

.journeys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.journey { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.journey .num { font: 500 0.85rem/1 var(--mono); color: var(--accent); }
.journey ol { margin: 0; padding-left: 1.2em; color: var(--ink-muted); display: grid; gap: 6px; }
.journey .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--sunken); }
.journey .shot img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .journeys { grid-template-columns: minmax(0, 1fr); } .journey { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); align-items: start; } .journey .shot { grid-row: 1 / span 3; grid-column: 2; } }
@media (max-width: 560px) { .journey { grid-template-columns: minmax(0, 1fr); } .journey .shot { grid-row: auto; grid-column: auto; max-width: 280px; } }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.detail { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; min-width: 0; }
.detail:nth-child(odd) { border-right: 1px solid var(--rule); }
.detail:nth-child(even) { padding-left: 24px; }
@media (max-width: 760px) { .details { grid-template-columns: minmax(0, 1fr); } .detail, .detail:nth-child(even) { padding: 20px 0; border-right: 0; } .detail:nth-child(odd) { border-right: 0; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--sunken); }
.gallery img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }
.gallery .android img { aspect-ratio: 1080 / 2400; }
.gallery figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--ink-faint); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.code-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }
pre { margin: 0; background: var(--ink); color: #eef0ec; border-radius: 12px; padding: 18px; font-size: 0.86rem; line-height: 1.7; overflow-x: auto; max-width: 100%; }
@media (prefers-color-scheme: dark) { pre { background: var(--sunken); border: 1px solid var(--rule); } }
pre .c { color: #9aa1ab; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: grid; gap: 12px; min-width: 0; }
.list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 700 0.78rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
tr:last-child td { border-bottom: 0; }
/* Phones: each verification row becomes a small card instead of a sideways-scrolling table. */
@media (max-width: 600px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { display: block; padding: 0; border: 0; min-width: 0; }
  tbody td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; }
  tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-muted); }
  tbody td:nth-child(3) { grid-column: 2; grid-row: 1; }
}
.status { display: inline-block; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.status.pass { background: var(--accent-soft); color: var(--accent); }
.status.notrun { background: var(--record-soft); color: var(--record); }

.not-list { columns: 2; column-gap: 32px; padding-left: 1.2em; margin: 0; }
.not-list li { break-inside: avoid; margin-bottom: 8px; color: var(--ink-muted); }
@media (max-width: 640px) { .not-list { columns: 1; } }

details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; min-height: 44px; list-style-position: outside; }
details p { padding: 0 0 16px; color: var(--ink-muted); }

.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--ink-faint); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 8px; }

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