/* Hajiz story: a call-flow page. Amber accent, a reading column, three "layers" as numbered bands, the call check as a
   vertical timeline, example numbers as stacked rows (no wide table), phone pictures side by side from 640px.
   Chromium 67 safe (no flex gap, clamp, inset or aspect-ratio). */
@font-face { font-family: 'HJ UI'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'HJ Display'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
body.page-hajiz {
  --accent: #FF9A52; --accent-ink: #2A1100; --accent-soft: rgba(255, 154, 82, .12);
  --head: 'HJ Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'HJ UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame */
.page-hajiz main .wrap { max-width: 820px; }
.page-hajiz main > .wrap:first-child { padding-top: 40px; }
.page-hajiz .crumb { margin: 0 0 28px; font-size: 14px; }
.page-hajiz .crumb a { color: var(--muted); text-decoration: none; }
.page-hajiz .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-hajiz .crumb a:hover { color: var(--accent); }
.page-hajiz .story-app { margin-bottom: 36px; }
.page-hajiz main strong { color: var(--text); font-weight: 600; }
.hjz-a, .page-hajiz .hjz-end a:not(.btn) { color: var(--text); text-decoration: underline; -webkit-text-decoration-color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.hjz-a:hover, .page-hajiz .hjz-end a:not(.btn):hover { color: var(--accent); }

/* Title block */
.hjz-hero { padding: 0 0 34px; border-bottom: 2px solid var(--accent); }
.hjz-tag { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.hjz-hero h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.15; }
.hjz-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Sections */
.hjz-sec { padding-top: 40px; }
.hjz-sec > .wrap:after { content: ""; display: table; clear: both; }
.hjz-h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.hjz-p { margin: 0 0 18px; color: var(--text-2); }
.hjz-quote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--text); font-size: 16px; }
.hjz-quote span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* The three layers: bands with a big numeral */
.hjz-layers { list-style: none; margin: 8px 0 24px; padding: 0; counter-reset: hjzl; }
.hjz-layers li { position: relative; margin: 0 0 14px; padding: 16px 18px 16px 70px; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; color: var(--text-2); counter-increment: hjzl; }
.hjz-layers li:before { content: counter(hjzl); position: absolute; left: 16px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 18px/38px var(--head); text-align: center; }
.hjz-layers strong { display: block; margin-bottom: 4px; font-family: var(--head); font-size: 17px; }

/* The check order: a vertical timeline */
.hjz-flow { list-style: none; margin: 8px 0 26px; padding: 0 0 0 4px; }
.hjz-flow li { position: relative; margin: 0; padding: 0 0 22px 36px; color: var(--text-2); }
.hjz-flow li:before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -2px; width: 2px; background: var(--hair-2); }
.hjz-flow li:last-child { padding-bottom: 0; }
.hjz-flow li:last-child:before { display: none; }
.hjz-flow li:after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #0b0e17; box-sizing: content-box; }
.hjz-flow strong { display: block; color: var(--text); }

/* Example numbers: stacked rows that fit a phone */
.hjz-rows { margin: 8px 0 24px; border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; }
.hjz-row { padding: 14px 16px; border-top: 1px solid var(--hair); }
.hjz-row:first-child { border-top: 0; }
.hjz-num { display: inline-block; margin: 0 10px 6px 0; padding: 2px 10px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); font: 600 15px/1.6 Consolas, Menlo, monospace; }
.hjz-out { display: inline-block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.hjz-why { margin: 0; font-size: 15px; color: var(--text-2); }

/* Permissions list */
.hjz-perms { list-style: none; margin: 6px 0 24px; padding: 0; }
.hjz-perms li { position: relative; margin: 0 0 12px; padding: 2px 0 2px 20px; color: var(--text-2); }
.hjz-perms li:before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* Phone pictures */
.hjz-shot { margin: 26px auto 30px; max-width: 280px; text-align: center; }
.hjz-pic { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--hair-2); }
.hjz-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Limits box and the close */
.hjz-limits { margin-top: 14px; padding: 26px 22px 10px; background: var(--surface); border: 1px solid var(--hair-2); border-top: 3px solid var(--accent); border-radius: 16px; }
.hjz-limits .hjz-h2 { font-size: 22px; }
.hjz-end { margin: 40px 0 48px; }
.hjz-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-hajiz .hjz-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (min-width: 640px) {
  .hjz-shot { float: left; width: 250px; max-width: none; margin: 6px 28px 24px 0; text-align: left; }
  .hjz-shot + .hjz-shot { margin-right: 0; }
}
@media (min-width: 900px) {
  .page-hajiz main > .wrap:first-child { padding-top: 64px; }
  .hjz-hero h1 { font-size: 44px; }
  .hjz-lead { font-size: 20px; }
  .hjz-sec { padding-top: 56px; }
  .hjz-h2 { font-size: 28px; }
  .hjz-row { padding: 14px 20px; }
}
