/* Adapted from OpenDesign design-templates/wireframe-mobile-flow at 53231d40b778d88eba23f35547bf99485d3ae9fc. Apache-2.0. */

:root {
  --board: #f4f4f2;
  --board-grid: #e7e7e3;
  --frame: #1c1b1a;
  --screen: #ffffff;
  --box: #e3e3e6;
  --box-dark: #cfcfd4;
  --box-line: #d7d7db;
  --text-bar: #b9b9c0;
  --ink: #1c1b1a;
  --muted: #6f6f72;
  --accent: #ff5a2a;
  --accent-soft: #ffe2d8;
  --note: #fff3a8;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, ui-monospace, monospace;
  --hand: Georgia, cursive;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      0deg,
      var(--board-grid) 0 1px,
      transparent 1px 28px
    ),
    repeating-linear-gradient(
      90deg,
      var(--board-grid) 0 1px,
      transparent 1px 28px
    ),
    var(--board);
  font: 15px/1.5 var(--sans);
}
.board {
  padding: 30px 40px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

/* ---- header ---- */
.head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.head h1 {
  font: 800 38px/1.05 var(--sans);
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--mono);
  padding: 7px 11px;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  transform: rotate(-1.6deg);
  letter-spacing: 0.16em;
  background: #fff;
  white-space: nowrap;
}
.pin .x {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.head .sub {
  font: 500 15px/1.4 var(--sans);
  color: var(--muted);
  margin-top: 8px;
  max-width: 64ch;
}
.head .meta {
  font: 500 11px/1.5 var(--mono);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.head .meta b {
  color: var(--ink);
}

/* ---- flow row ---- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 40px 4px 20px;
  overflow-x: auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.step .caption {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.step .caption b {
  color: var(--ink);
  display: block;
  font-size: 12px;
}

/* ---- phone frame ---- */
.phone {
  width: 258px;
  height: 524px;
  background: var(--frame);
  border-radius: 34px;
  padding: 11px;
  box-shadow: 7px 10px 0 -3px rgba(28, 27, 26, 0.16);
  position: relative;
}
.phone .scr {
  width: 100%;
  height: 100%;
  background: var(--screen);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 17px;
  background: var(--frame);
  border-radius: 0 0 12px 12px;
  z-index: 5;
}
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px 4px;
  font: 600 9px/1 var(--mono);
  color: var(--muted);
}
.status .dots {
  display: flex;
  gap: 3px;
}
.status .dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--box-dark);
  display: block;
}
.body {
  flex: 1;
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* generic greybox primitives */
.ph {
  background: var(--box);
  border-radius: 8px;
  position: relative;
}
.ph.media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph.media::before,
.ph.media::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  background: var(--box-dark);
}
.ph.media::before {
  transform: rotate(20deg);
}
.ph.media::after {
  transform: rotate(-20deg);
}
.bar {
  height: 11px;
  border-radius: 6px;
  background: var(--text-bar);
}
.bar.title {
  height: 16px;
  background: var(--box-dark);
}
.bar.w90 {
  width: 90%;
}
.bar.w80 {
  width: 80%;
}
.bar.w70 {
  width: 70%;
}
.bar.w60 {
  width: 60%;
}
.bar.w50 {
  width: 50%;
}
.bar.w40 {
  width: 40%;
}
.bar.w30 {
  width: 30%;
}
.btn {
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--box-dark);
  color: var(--muted);
}
.gap {
  flex: 1;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* screen 2: search + chips + feed + tabs */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 8px;
}
.topbar .logo {
  width: 34px;
  height: 14px;
  background: var(--box-dark);
  border-radius: 4px;
}
.topbar .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--box-dark);
}
.search {
  height: 30px;
  border-radius: 999px;
  background: var(--box);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.search .mag {
  width: 11px;
  height: 11px;
  border: 2px solid var(--text-bar);
  border-radius: 50%;
  position: relative;
}
.search .mag::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: var(--text-bar);
  transform: rotate(45deg);
}
.search .ph-bar {
  height: 7px;
  width: 55%;
  border-radius: 5px;
  background: var(--text-bar);
}
.chips {
  display: flex;
  gap: 7px;
  margin: 12px 0;
}
.chip {
  height: 22px;
  border-radius: 999px;
  background: var(--box);
  flex: 0 0 auto;
}
.chip.a {
  width: 46px;
  background: var(--ink);
}
.chip.b {
  width: 40px;
}
.chip.c {
  width: 52px;
}
.chip.d {
  width: 36px;
}
.feed {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  min-height: 0;
}
.card {
  display: flex;
  gap: 10px;
  align-items: center;
}
.card .thumb {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  flex: 0 0 auto;
}
.card .lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tabbar {
  display: flex;
  justify-content: space-between;
  padding: 11px 6px 2px;
  margin-top: 8px;
  border-top: 1px solid var(--box-line);
}
.tabbar i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--box);
  display: block;
}
.tabbar i.on {
  background: var(--ink);
}

/* screen 3: detail */
.spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spec .k {
  height: 8px;
  width: 32%;
  border-radius: 5px;
  background: var(--text-bar);
}
.spec .v {
  height: 8px;
  width: 24%;
  border-radius: 5px;
  background: var(--box-dark);
}
.sticky-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--box-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-cta .price {
  height: 16px;
  width: 40px;
  border-radius: 5px;
  background: var(--ink);
}
.sticky-cta .btn {
  flex: 1;
}

/* screen 4: confirm */
.confirm {
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 24px;
}
.check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check svg {
  width: 38px;
  height: 38px;
}
.summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 4px;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary .row .l {
  height: 8px;
  width: 40%;
  border-radius: 5px;
  background: var(--text-bar);
}
.summary .row .r {
  height: 8px;
  width: 22%;
  border-radius: 5px;
  background: var(--box-dark);
}

/* ---- connectors ---- */
.conn {
  flex: 0 0 auto;
  align-self: center;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  position: relative;
}
.conn .label {
  font: 600 10px/1.2 var(--mono);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: center;
  background: #fff;
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  padding: 4px 6px;
  white-space: nowrap;
}
.conn svg {
  width: 88px;
  height: 26px;
  display: block;
}

/* ---- annotations ---- */
.note {
  position: absolute;
  padding: 10px 13px;
  font: 600 17px/1.25 var(--hand);
  color: var(--ink);
  background: var(--note);
  box-shadow: 4px 6px 0 -2px rgba(28, 27, 26, 0.18);
  max-width: 168px;
  z-index: 8;
}
.note .tape {
  position: absolute;
  top: -9px;
  left: 24px;
  width: 56px;
  height: 16px;
  background: rgba(28, 27, 26, 0.16);
  transform: rotate(-4deg);
}
.note.a {
  top: -8px;
  left: 70px;
  transform: rotate(-3deg);
}
.note.b {
  bottom: -6px;
  right: 60px;
  transform: rotate(2.6deg);
  background: var(--accent-soft);
}
.note .ptr {
  font: 600 12px/1 var(--mono);
  color: var(--accent);
  display: block;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend .sw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.legend .sw.box {
  background: var(--box);
  border: 1px solid var(--box-dark);
}
.legend .sw.ink {
  background: var(--ink);
}
.legend .sw.acc {
  background: var(--accent);
}

@media (max-width: 1100px) {
  .board {
    padding: 24px 20px 48px;
  }
  .head {
    grid-template-columns: 1fr;
  }
  .head .meta {
    text-align: left;
  }
  .flow {
    padding: 28px 0 16px;
  }
  .note.a,
  .note.b {
    display: none;
  }
}

/* Modified by Skilly, 2026: offline fonts, honest content, fluid grids, keyboard and print support. */
@font-face {
  font-family: DM Sans;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a34c31;
  outline-offset: 4px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #fff;
  z-index: 100;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sitefoot {
  padding: 30px max(20px, 4vw);
  font-size: 11px;
  color: #625d53;
  line-height: 1.8;
}
.empty {
  border: 1px dashed #b2ac9f;
  padding: 24px;
  color: #615d54;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.controls button,
.controls input,
.controls select {
  border: 1px solid #918b7c;
  background: #fffaf1;
  color: #24251f;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 5px;
  max-width: 100%;
}
.controls button[aria-pressed="true"],
.controls button[aria-selected="true"] {
  background: #23251f;
  color: #fffaf1;
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #cfc7b7;
  text-align: left;
  overflow-wrap: anywhere;
}
th {
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dt {
  font-size: 11px;
  text-transform: uppercase;
  color: #605b51;
}
dd {
  margin: 4px 0 20px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
section[id] {
  scroll-margin-top: 20px;
}
@media (max-width: 600px) {
  .topline {
    font-size: 10px;
  }
  th,
  td {
    padding: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .controls,
  .skip {
    display: none !important;
  }
  [hidden] {
    display: block !important;
  }
  body {
    background: white !important;
  }
  .sitefoot {
    break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  article,
  .card,
  .phone,
  .theme {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  .panel {
    display: block !important;
    break-before: page;
  }
}
:root {
  --sans: "DM Sans", sans-serif;
  --mono: ui-monospace, monospace;
  --accent: #a6452b;
  --accent-soft: #f1d6c8;
  --muted: #686a65;
  --board: #f3f0e8;
  --board-grid: #e5e2d9;
}
.board {
  max-width: 1440px;
  padding: 28px 40px 44px;
}
.board > .topline {
  margin-bottom: 48px;
}
.head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding-bottom: 26px;
}
.board-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.head h1 {
  font:
    400 clamp(46px, 5.5vw, 72px)/1.05 "Instrument Serif",
    serif;
  display: block;
  margin: 16px 0;
}
.head .sub {
  font-size: 15px;
  line-height: 1.65;
  max-width: 650px;
}
.pin {
  align-self: end;
  white-space: normal;
  font-size: 9px;
  line-height: 1.7;
  max-width: 240px;
  background: #f8f7f0;
}
.flow-intent {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #d3d0c6;
}
.flow-intent > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding-top: 5px;
}
.flow-intent > p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 750px;
}
.flow-intent nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.flow-intent nav a {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.flow {
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: 28px;
  padding: 34px 0;
  overflow: visible;
  align-items: start;
}
.step {
  display: flex;
  align-items: stretch;
  gap: 20px;
  position: relative;
  scroll-margin-top: 20px;
}
.step-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
}
.step-heading > span {
  font:
    30px/1 "Instrument Serif",
    serif;
  color: var(--accent);
}
.step-heading h2 {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
  align-self: center;
}
.step-heading small {
  grid-column: 2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.phone {
  width: 100%;
  height: auto;
  min-height: 500px;
  padding: 9px;
  border-radius: 29px;
  box-shadow: 5px 7px 0 -3px #b9b7ad;
}
.phone .scr {
  min-height: 480px;
  height: auto;
  border-radius: 21px;
  overflow: visible;
}
.notch {
  width: 80px;
}
.status {
  padding: 10px 12px;
}
.phone .body {
  overflow: visible;
  min-height: 450px;
  flex: 1;
  padding: 20px 14px;
  gap: 14px;
}
.body > .ph.media {
  height: 130px;
  flex: none;
}
.body h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
}
.body p,
.body li {
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}
.body ul {
  padding-left: 16px;
  margin: 0;
}
.screen-action {
  margin-top: auto;
  padding-top: 22px;
}
.btn {
  height: auto;
  min-height: 42px;
  padding: 12px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  background: #2b302a;
}
.btn.terminal {
  background: #d6decd;
  color: #26332a;
}
.feed {
  gap: 14px;
}
.list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
}
.list-item .thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.search-facsimile {
  padding: 9px;
  border: 1px solid #bbbdb5;
  font-size: 9px;
  border-radius: 20px;
  color: #696c62;
}
.form-preview {
  display: grid;
  gap: 7px;
  font-size: 11px;
}
.form-preview > div {
  height: 35px;
  background: #edede8;
  border: 1px solid #bfc1b8;
  border-radius: 4px;
}
.annotation {
  background: #ece6cb;
  border: 1px solid #d8d0ae;
  padding: 15px;
  min-height: 115px;
  position: relative;
}
.annotation > span {
  font-size: 8px;
  letter-spacing: 0.09em;
  color: #746b49;
}
.annotation p {
  font-size: 12px;
  line-height: 1.6;
  margin: 9px 0 0;
}
.connector {
  font-size: 10px;
  color: var(--accent);
  border-top: 1px dashed var(--accent);
  padding-top: 12px;
  text-decoration: none;
  line-height: 1.7;
}
.connector > span {
  font-size: 22px;
  margin-right: 8px;
}
.terminal-note {
  color: #5a6b54;
  border-color: #84947e;
}
.legend-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid #b8b9ac;
  padding-top: 30px;
}
.legend-panel h2 {
  font:
    38px/1.1 "Instrument Serif",
    serif;
  font-weight: 400;
  margin: 0;
}
.legend-panel p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 540px;
  margin: 0;
}
.step:target {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}
@media (max-width: 1150px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  .phone {
    max-width: 330px;
    align-self: center;
  }
  .step-heading,
  .annotation,
  .connector {
    width: 100%;
    max-width: 330px;
    align-self: center;
  }
  .head {
    grid-template-columns: 1fr;
  }
  .pin {
    justify-self: start;
  }
  .head .meta {
    white-space: normal;
  }
}
@media (max-width: 630px) {
  .board {
    padding: 22px;
  }
  .board > .topline {
    margin-bottom: 32px;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-intent {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-intent nav {
    grid-column: auto;
  }
  .legend-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .phone {
    max-width: 330px;
  }
  .head h1 {
    font-size: 48px;
  }
}
