/* AlwaysNoticed — one stylesheet, no build step.
   Type: Archivo variable (wght 100-900, wdth 62-125) with a system fallback.
   Colour: cool bone paper, chromatic slate ink, one dark "night" panel,
           brass = an action the engine took, steel = the engine standing down. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap');

:root {
  --paper:      #edeee9;
  --paper-sunk: #e5e7e0;
  --ink:        #171e24;
  --ink-soft:   #4c565d;
  --ink-faint:  #5a6369;
  --line:       #cdd0c8;
  --line-soft:  #dcdfd7;

  --night:      #131b22;
  --night-ink:  #dfe3e0;
  --night-dim:  #8c979d;
  --night-line: #2a343c;

  --brass:      #c8912f;
  --brass-deep: #855b12;
  --steel:      #6e93a6;
  --steel-deep: #3f6577;

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(3.75rem, 8vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #10161b;
    --paper-sunk: #161e24;
    --ink:        #e3e6e1;
    --ink-soft:   #a4aeb3;
    --ink-faint:  #7d878d;
    --line:       #2c353c;
    --line-soft:  #222b31;

    --night:      #0a0f13;
    --night-ink:  #dfe3e0;
    --night-dim:  #8c979d;
    --night-line: #232c33;

    --brass:      #e0ab4b;
    --brass-deep: #e0ab4b;
    --steel:      #8fb3c4;
    --steel-deep: #8fb3c4;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: var(--brass); color: #12181d; }

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }
.band + .band { border-top: 1px solid var(--line-soft); }
.band--sunk { background: var(--paper-sunk); border-top: 1px solid var(--line-soft); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-variation-settings: 'wdth' 116, 'wght' 620;
  letter-spacing: -0.018em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.45rem, 6vw, 4.3rem); line-height: .98; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; font-variation-settings: 'wdth' 108, 'wght' 660; letter-spacing: -0.006em; line-height: 1.25; }
h4 { font-size: 1rem; font-variation-settings: 'wdth' 106, 'wght' 660; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1em; }

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}

.note { font-size: .875rem; line-height: 1.55; color: var(--ink-faint); max-width: 58ch; }

a { color: inherit; }
a:not(.btn):not(.brand) {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:not(.btn):not(.brand):hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 1.05rem;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .9rem 1.6rem;
}
.brand {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand i { font-style: normal; }
.brand .a { font-variation-settings: 'wdth' 80, 'wght' 480; }
.brand .n { font-variation-settings: 'wdth' 124, 'wght' 700; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.45rem; font-size: .93rem; }
.masthead nav a:not(.brand) { text-decoration: none; color: var(--ink-soft); }
.masthead nav a:not(.brand):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 2rem; }

.btn {
  display: inline-block;
  padding: .78rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  font-variation-settings: 'wdth' 104, 'wght' 600;
  border: 1px solid var(--ink);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: #12181d; }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}
.hero h1 { max-width: 15ch; }

/* ---------- the night log ---------- */

.log {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--night-line);
}
.log h3 { color: var(--night-ink); margin-bottom: .25rem; }
.log .note { color: var(--night-dim); max-width: none; }

.log ol {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 .1rem;
  border-left: 1px solid var(--night-line);
}
.log li {
  display: grid;
  grid-template-columns: 3.5rem .55rem minmax(0, 1fr);
  align-items: start;
  gap: 0 .8rem;
  padding: .34rem 0 .34rem .95rem;
  max-width: none;
  font-size: .93rem;
  line-height: 1.4;
}
.log time {
  font-variant-numeric: tabular-nums;
  color: var(--night-dim);
  font-size: .84rem;
  padding-top: .1rem;
}
.log .mark {
  width: 9px; height: 9px;
  margin-top: .38rem;
  background: var(--night-line);
}
.log .is-act .mark { background: var(--brass); }
.log .is-yield .mark { background: var(--steel); }
.log .is-yield { color: var(--steel); }
.log .close {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--night-line);
  color: var(--night-dim);
  font-size: .875rem;
  max-width: none;
}
.log .close b { color: var(--night-ink); font-variation-settings: 'wdth' 104, 'wght' 640; }

@media (prefers-reduced-motion: no-preference) {
  .log li { animation: settle .5s ease-out both; }
  .log li:nth-child(1) { animation-delay: .10s; }
  .log li:nth-child(2) { animation-delay: .18s; }
  .log li:nth-child(3) { animation-delay: .26s; }
  .log li:nth-child(4) { animation-delay: .34s; }
  .log li:nth-child(5) { animation-delay: .42s; }
  .log li:nth-child(6) { animation-delay: .50s; }
  .log li:nth-child(7) { animation-delay: .58s; }
  .log li:nth-child(8) { animation-delay: .66s; }
  .log li:nth-child(9) { animation-delay: .74s; }
  .log li:nth-child(10) { animation-delay: .82s; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- section heads ---------- */

.head { max-width: 34ch; }
.head + .body { margin-top: 2.6rem; }

/* ---------- feature groups ---------- */

.groups { display: grid; gap: 3.2rem; margin-top: 3rem; }
@media (min-width: 52rem) { .groups { gap: 3.6rem; } }

.group { display: grid; gap: 1.4rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .group { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
.group > h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-variation-settings: 'wdth' 114, 'wght' 600;
  color: var(--ink);
  padding-top: .1rem;
}
.group dl { margin: 0; display: grid; gap: 1.6rem; }
@media (min-width: 40rem) { .group dl { grid-template-columns: 1fr 1fr; gap: 1.9rem 2.6rem; } }
.group dt {
  font-variation-settings: 'wdth' 106, 'wght' 660;
  font-size: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: .55rem;
  margin-bottom: .35rem;
}
.group dd { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

/* ---------- yield moment ---------- */

.yield .wrap { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) {
  .yield .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
}
.yield h2 { max-width: 15ch; }
.yield p { max-width: 52ch; }

.standdown { background: var(--night); border: 1px solid var(--night-line); padding: clamp(1.3rem, 3vw, 1.8rem); }
.standdown ol { list-style: none; margin: 0; padding: 0; }
.standdown li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: .8rem;
  padding: .32rem 0;
  color: var(--night-ink);
  font-size: .93rem;
  max-width: none;
}
.standdown time { color: var(--night-dim); font-size: .84rem; font-variant-numeric: tabular-nums; }
.standdown .off { color: var(--steel); }

/* ---------- proof ---------- */

.chart { margin: 2.4rem 0 0; display: grid; gap: .55rem; max-width: 44rem; }
.chart .row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 4.2rem;
  align-items: center;
  gap: .7rem;
  font-size: .93rem;
}
.chart .m { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chart .bar { height: 15px; background: var(--brass); }
.chart .row--pre .bar { background: var(--line); }
.chart .v { text-align: right; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 100, 'wght' 620; }

.figures { display: grid; gap: 1.6rem 2.4rem; margin: 2.6rem 0 0; }
@media (min-width: 44rem) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 44rem; } }
.figures div { border-top: 2px solid var(--ink); padding-top: .6rem; }
.figures b { display: block; font-size: 1.5rem; font-variation-settings: 'wdth' 108, 'wght' 640; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figures span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- comparison ---------- */

.scroller { overflow-x: auto; margin-top: 2.6rem; padding-bottom: .4rem; }
.scroll-hint { display: none; margin: 2.4rem 0 -1.8rem; }
@media (max-width: 46rem) { .scroll-hint { display: block; } }
.scroller + .note { margin-top: 1.4rem; }
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 42rem;
  font-size: .93rem;
  text-align: left;
}
table.compare th, table.compare td {
  padding: .85rem 1rem .85rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.45;
}
table.compare thead th {
  border-bottom: 2px solid var(--ink);
  font-variation-settings: 'wdth' 108, 'wght' 660;
  font-size: 1rem;
  padding-bottom: .55rem;
}
table.compare tbody th {
  font-variation-settings: 'wdth' 100, 'wght' 500;
  color: var(--ink-soft);
  width: 12rem;
  padding-right: 1.6rem;
}
table.compare td { color: var(--ink-soft); }
table.compare .mine { color: var(--ink); background: var(--paper-sunk); padding-left: 1rem; }
.band--sunk table.compare .mine { background: var(--paper); }
table.compare thead .mine { background: none; }

/* ---------- pricing ---------- */

.plans { display: grid; gap: 0; margin-top: 2.8rem; border-top: 2px solid var(--ink); }
.plan {
  display: grid;
  gap: .35rem 2rem;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 48rem) {
  .plan { grid-template-columns: minmax(0, 11rem) minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; }
}
.plan h3 { margin: 0; }
.plan .price {
  font-size: 1.42rem;
  font-variation-settings: 'wdth' 106, 'wght' 640;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.plan .price small { display: block; font-size: .85rem; font-variation-settings: 'wdth' 100, 'wght' 400; color: var(--ink-soft); letter-spacing: 0; }
.plan p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- faq ---------- */

.faq { margin-top: 2.6rem; max-width: 46rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-variation-settings: 'wdth' 106, 'wght' 620;
  font-size: 1.04rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: .2rem;
  top: 1rem;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  font-size: 1.3rem;
  color: var(--brass-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1.15rem; max-width: 58ch; }

/* ---------- call to action ---------- */

.cta h2 { max-width: 18ch; }

/* ---------- prose pages ---------- */

.prose { padding-block: clamp(2.5rem, 6vw, 4rem) var(--band); }
.prose h1 { max-width: 18ch; margin-bottom: .5em; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.15rem; max-width: var(--measure); }
.prose li { margin-bottom: .5rem; }
.prose dl { max-width: var(--measure); }
.prose dt { font-variation-settings: 'wdth' 104, 'wght' 640; margin-top: 1.1rem; }
.prose dd { margin: .2rem 0 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0 1.2rem;
  max-width: 52rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-variation-settings: 'wdth' 74, 'wght' 600;
  color: var(--brass-deep);
  border-top: 2px solid var(--brass);
  padding-top: .4rem;
  line-height: 1;
}
.steps h3 { margin: 0 0 .35rem; border-top: 2px solid var(--ink); padding-top: .4rem; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* draft band on legal pages */
.draft {
  background: var(--brass);
  color: #12181d;
  padding: .7rem 0;
  font-size: .9rem;
  font-variation-settings: 'wdth' 104, 'wght' 620;
}
.draft p { margin: 0; max-width: none; }
.updated { color: var(--ink-faint); font-size: .9rem; margin-top: -0.4em; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.6rem 3.4rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.foot .wrap { display: grid; gap: 1.6rem; }
@media (min-width: 48rem) { .foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; } }
.foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: flex-start; }
.foot p { max-width: 52ch; margin: 0 0 .8em; }
.foot .disclaimer { color: var(--ink); }
.foot nav a:not(.brand) { text-decoration: none; }
.foot nav a:not(.brand):hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- corrections & utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero + .band { border-top: 1px solid var(--line-soft); }

/* .prose sets list padding for body copy; the step list is a layout, not a list */
.prose ol.steps { list-style: none; padding-left: 0; }
.prose ol.steps li { margin-bottom: 0; }
