/* Over The Line client platform. Plain, large and calm: big fields, strong labels, no decoration for its own sake.
   Colours come from the Over The Line logo: ink #141414, and the three chevrons (green, orange, red). */

:root {
  --ink: #141414;
  --ink-2: #3a3833;
  --muted: #5d5a53;
  --line: #dedbd2;
  --line-strong: #8a867c;
  --paper: #ffffff;
  --bg: #f6f5f1;
  --green: #7ed957;
  --green-ink: #276a0f;
  --green-wash: #edf9e6;
  --orange: #ff914d;
  --orange-ink: #9a4a12;
  --orange-wash: #fff2e9;
  --red: #eb6165;
  --red-ink: #b42318;
  --red-wash: #fdeceb;
  --focus: 0 0 0 4px rgba(126, 217, 87, 0.55);
  --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.testbar {
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  padding: 8px 16px;
  font-size: 16px;
}

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-inner.wide { max-width: 1140px; }
.brand img { display: block; width: 200px; height: auto; }
.who { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted); }
.who form { margin: 0; }
.linkbtn {
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Page */
main { margin: 0 auto; padding: 32px 20px 80px; }
main.narrow { max-width: 760px; }
main.wide { max-width: 1140px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 12px; }
h3, h4 { font-size: 1.1rem; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 24px; }
.eyebrow { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.after { margin-top: 20px; }
.back { margin: 0 0 18px; font-size: 16px; }
.back a::before { content: "\2190  "; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: #efede6; padding: 2px 6px; border-radius: 6px; font-size: 0.92em; overflow-wrap: anywhere; }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.headrow h1 { margin: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid2 > .card { margin-top: 0; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}
.card-quiet { background: transparent; border-style: dashed; }

/* Forms: big and clear */
.stack { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 1.05rem; }
.hint { margin: 0; color: var(--muted); font-size: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"],
input:not([type]), textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 58px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
textarea.mono { font-size: 1rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
input.file { font-size: 1rem; padding: 18px 16px; border: 2px dashed var(--line-strong); border-radius: 10px; background: var(--paper); width: 100%; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; cursor: pointer; padding: 6px 0; }
.check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--green-ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  padding: 16px 26px;
  min-height: 58px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}
.stack > .btn { align-self: flex-start; }
.btn-primary { background: var(--green); }
.btn-primary:hover { background: #6fcb47; }
.btn-secondary:hover { background: #f1efe9; }
.btn-danger { color: var(--red-ink); border-color: var(--red-ink); background: var(--paper); }
.btn-danger:hover { background: var(--red-wash); }
.btn-danger-solid { color: #fff; background: var(--red-ink); border-color: var(--red-ink); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
form.inline { display: inline; margin: 0; }
.items .btn, .table .btn { min-height: 46px; padding: 10px 18px; font-size: 1rem; }

/* Notices */
.notice { border-radius: 12px; padding: 16px 20px; margin: 0 0 20px; border: 2px solid; font-size: 1.02rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-info { background: var(--paper); border-color: var(--line-strong); }
.notice-success { background: var(--green-wash); border-color: var(--green); }
.notice-warn { background: var(--orange-wash); border-color: var(--orange); }
.notice-error { background: var(--red-wash); border-color: var(--red); }
.notice .btn { margin-top: 8px; }

/* Pills */
.pill { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid; vertical-align: middle; margin-left: 4px; }
.pill-green { background: var(--green-wash); border-color: var(--green); color: var(--green-ink); }
.pill-orange { background: var(--orange-wash); border-color: var(--orange); color: var(--orange-ink); }
.pill-red { background: var(--red-wash); border-color: var(--red); color: var(--red-ink); }
.pill-grey { background: #efede6; border-color: var(--line-strong); color: var(--ink-2); }

/* The client's steps */
.tasks { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.task {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.task h2 { font-size: 1.25rem; margin: 0 0 4px; }
.task h2 a { text-decoration: none; }
.task h2 a:hover { text-decoration: underline; }
.task p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.task-mark {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; border: 3px solid var(--ink); background: var(--paper);
}
.task-done .task-mark { background: var(--green); }
.task-waiting { opacity: 0.6; }
.task-waiting .task-mark { border-color: var(--line-strong); color: var(--muted); }
.task-go { font-weight: 700; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; white-space: nowrap; }
.task-todo .task-go { background: var(--green); }

/* Lists of things */
.items { list-style: none; padding: 0; margin: 0; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 4px; }
.item > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.item .muted { font-size: 16px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; }
.biglist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.biglist a { display: flex; flex-direction: column; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.biglist a span { color: var(--muted); }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 16px; }
.table th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.card .table { background: transparent; }
.prices { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.prices td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices .num { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 16px; }
.prices tfoot td { border-bottom: 0; font-weight: 800; }

/* Record */
.day { margin: 28px 0; }
.day h2 { font-size: 1.1rem; color: var(--ink-2); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.record { list-style: none; padding: 0; margin: 0; }
.record li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--line); }
.record li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-right: 3px solid var(--green-ink); border-top: 3px solid var(--green-ink); transform: rotate(45deg); }
.count { color: var(--muted); }
.record-table td { font-size: 15px; }

/* Bits */
.qr { margin: 14px 0; }
.qr svg { width: 240px; height: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.secret { font-size: 1.1rem; letter-spacing: 0.08em; }
.steps-plain { padding-left: 24px; }
.steps-plain li { margin-bottom: 16px; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.codes code { font-size: 1.15rem; display: block; text-align: center; padding: 10px; }
.copybox { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 2px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; margin: 16px 0 24px; }
.copybox code { flex: 1; background: none; padding: 0; font-size: 15px; }
.secretbox { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1efe9; border: 2px solid var(--line-strong); border-radius: 10px; padding: 14px; font-size: 1rem; margin: 6px 0 10px; }
.reveal dt { font-weight: 700; margin-top: 18px; }
.reveal dd { margin: 6px 0 0; }
details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
details.note { border-top: 1px solid var(--line); padding: 8px 0; }
details.note:first-of-type { border-top: 0; }
.howto ol { padding-left: 22px; }
.prose h2, .prose h3 { margin-top: 22px; }
.prose ul, .prose ol { padding-left: 24px; }
.terms-text { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin-bottom: 18px; background: #fcfbf8; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 22px; }
.subnav a { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 16px; background: var(--paper); }
.subnav a:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  :root { font-size: 17px; }
  h1 { font-size: 1.65rem; }
  .grid2 { grid-template-columns: 1fr; }
  .brand img { width: 160px; }
  .who-name { display: none; }
  .task { grid-template-columns: 44px 1fr; padding: 18px; }
  .task-mark { width: 44px; height: 44px; font-size: 1.1rem; }
  .task-go { grid-column: 2; justify-self: start; }
  .item { flex-direction: column; align-items: flex-start; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: block; border: 0; padding: 4px 0; }
  .card { padding: 18px; }
  .btn { width: 100%; }
  form.inline .btn, .items .btn { width: auto; }
}
