/* Aikaisin story: deep-field night surface, chlorophyll sprout accent, and dry ochre urgency front.
   Asymmetric clipped-field panels echo the app's approaching-edge geometry. Built for Chromium 67 compatibility. */
@font-face {
  font-family: 'AK Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'AK Space';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-aikaisin {
  --head: 'AK Space', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'AK Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0B110D;
  --surface: #131D16;
  --raised: #19261D;
  --bar: rgba(11, 17, 13, .94);
  --hair: rgba(218, 236, 218, .10);
  --hair-2: rgba(218, 236, 218, .22);
  --text: #EFF5EF;
  --text-2: #C2D0C4;
  --muted: #8FA293;
  --accent: #7AD67E;
  --accent-ink: #07210B;
  --accent-soft: rgba(122, 214, 126, .13);
  --ak-ochre: #E69F45;
  --ak-ochre-soft: rgba(230, 159, 69, .12);
  --ak-rain: #7AC4E6;
  --live: #7AD67E;
}

@media (prefers-color-scheme: light) {
  body.page-aikaisin {
    --bg: #0B110D;
    --surface: #131D16;
    --raised: #19261D;
    --bar: rgba(11, 17, 13, .94);
    --hair: rgba(218, 236, 218, .10);
    --hair-2: rgba(218, 236, 218, .22);
    --text: #EFF5EF;
    --text-2: #C2D0C4;
    --muted: #8FA293;
    --accent: #7AD67E;
    --accent-ink: #07210B;
    --accent-soft: rgba(122, 214, 126, .13);
    --live: #7AD67E;
  }
}

/* Frame and reading column */
.page-aikaisin main { padding-bottom: 52px; }
.page-aikaisin main .wrap { max-width: 824px; }
.page-aikaisin main > .wrap:first-child { padding-top: 40px; }
.page-aikaisin .crumb { margin: 0 0 26px; font-size: 14px; }
.page-aikaisin .crumb a { color: var(--muted); text-decoration: none; }
.page-aikaisin .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-aikaisin .crumb a:hover { color: var(--accent); }
.page-aikaisin .story-app { margin-bottom: 36px; }
.page-aikaisin main strong { color: var(--text); font-weight: 600; }

/* Inline links */
.page-aikaisin main p:not(.crumb) a:not(.btn),
.page-aikaisin main li a {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.page-aikaisin main p:not(.crumb) a:not(.btn):hover,
.page-aikaisin main li a:hover {
  color: var(--accent);
}

/* Hero */
.ak-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hair-2);
}
.ak-eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ak-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}
.ak-lead {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}

/* Three-stage corroboration strip inside hero */
.ak-stages {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
  margin: 0;
}
.ak-stage {
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--muted);
  border-radius: 2px 18px 2px 8px;
}
.ak-stage-sparse { border-top-color: var(--ak-ochre); }
.ak-stage-solid { border-top-color: var(--accent); }
.ak-stage-label {
  margin: 0 0 6px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ak-stage-sparse .ak-stage-label { color: var(--ak-ochre); }
.ak-stage-solid .ak-stage-label { color: var(--accent); }
.ak-stage p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Sections */
.ak-band { padding-top: 40px; }
.ak-band h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.24;
}
.ak-band h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.3;
}
.ak-band p {
  margin: 0 0 18px;
  color: var(--text-2);
}
.ak-band p:last-child { margin-bottom: 0; }

/* Quoted rule block */
.ak-cite-box {
  margin: 22px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ak-ochre);
  border-radius: 2px 14px 2px 8px;
}
.ak-cite-box p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
}
.ak-cite-box cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* Tables */
.ak-table-wrap {
  margin: 22px 0 24px;
  border: 1px solid var(--hair-2);
  border-radius: 2px 16px 2px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ak-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ak-table caption {
  padding: 13px 16px;
  background: var(--raised);
  border-bottom: 1px solid var(--hair-2);
  color: var(--text);
  text-align: left;
  font: 600 15px/1.38 var(--head);
}
.ak-table th,
.ak-table td {
  padding: 12px 15px;
  border-top: 1px solid var(--hair);
  vertical-align: top;
  line-height: 1.5;
}
.ak-table thead th {
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 13px/1.35 var(--head);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ak-table tbody th {
  color: var(--text);
  font-family: var(--head);
  font-weight: 600;
  white-space: nowrap;
}
.ak-table tbody td {
  color: var(--text-2);
}

/* Four scouting cards in a 2x2 grid */
.ak-steps {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  counter-reset: akstep;
}
.ak-steps li {
  position: relative;
  counter-increment: akstep;
  padding: 18px 18px 18px 60px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 2px 16px 2px 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.58;
}
.ak-steps li:before {
  content: "0" counter(akstep);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 28px;
  border-radius: 2px 8px 2px 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 13px/28px var(--head);
  text-align: center;
}
.ak-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 16px;
}

/* Worked demo box */
.ak-demo-strip {
  margin: 22px 0 26px;
  padding: 20px 22px;
  background: var(--raised);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--ak-ochre);
  border-radius: 2px 18px 2px 8px;
}
.ak-demo-kicker {
  margin: 0 0 10px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ak-ochre);
}
.ak-demo-strip p {
  margin: 0 0 12px;
  color: var(--text-2);
}
.ak-demo-strip p:last-child { margin-bottom: 0; }

/* Side-by-side phone figures (250-300px wide) */
.ak-pair {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  grid-gap: 24px;
  margin: 26px auto 28px;
  padding: 24px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.ak-shot {
  width: 100%;
  max-width: 274px;
  margin: 0;
}
.ak-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
}
.ak-shot figcaption {
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Split report + transfer panel */
.ak-split {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  margin: 24px 0 22px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 2px 18px 2px 10px;
  -webkit-align-items: center;
  align-items: center;
}
.ak-split-copy h3 {
  margin: 0 0 12px;
}
.ak-split .ak-shot {
  margin: 0 auto;
  max-width: 260px;
}

/* Bullet list with custom :before markers */
.ak-list {
  list-style: none;
  margin: 10px 0 22px;
  padding: 0;
}
.ak-list li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text-2);
  line-height: 1.6;
}
.ak-list li:last-child { margin-bottom: 0; }
.ak-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .65em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

/* Honest limits and What was not checked */
.ak-limits {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ak-ochre);
  border-radius: 2px 18px 2px 10px;
}
.ak-limits h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.ak-limits h3 {
  margin: 20px 0 10px;
  font-size: 18px;
  color: var(--ak-ochre);
}
.ak-limits .ak-list li:before {
  background: var(--ak-ochre);
}

/* Closing bar */
.ak-end { margin: 38px 0 0; }
.ak-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-aikaisin .ak-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .ak-table { min-width: 0; font-size: 13px; }
  .ak-table caption { padding: 11px 12px; font-size: 14px; }
  .ak-table th,
  .ak-table td { min-width: 0; padding: 9px 8px; }
  .ak-table thead th { font-size: 11px; }
  .ak-table tbody th { white-space: normal; }
}

@media (min-width: 680px) {
  .ak-stages { grid-template-columns: 1fr 1fr 1fr; }
  .ak-steps { grid-template-columns: 1fr 1fr; }
  .ak-pair { grid-template-columns: 1fr 1fr; max-width: 584px; }
}

@media (min-width: 720px) {
  .ak-split { grid-template-columns: 1fr 260px; padding: 26px; }
}

@media (min-width: 900px) {
  .page-aikaisin main > .wrap:first-child { padding-top: 64px; }
  .ak-band { padding-top: 56px; }
  .ak-hero h1 { font-size: 44px; }
  .ak-lead { font-size: 20px; }
  .ak-band h2 { font-size: 29px; }
  .ak-limits h2 { font-size: 25px; }
}
