/* ============================================================================
   Nock — white and blue.
   ----------------------------------------------------------------------------
   Daylight product. A tradesperson reads this in a van at two in the afternoon,
   not in a dark room. So: white ground, ink-blue type, one deep blue that
   carries the brand, and a single warm orange reserved for "this one needs you"
   and used nowhere else.

   The page is built on one idea: a dead missed call becomes a job you can act
   on. That contrast is the layout.

   Archivo, one family, extreme weight contrast: signage, not magazine.
   ========================================================================= */

:root {
  --white:    #ffffff;
  --paper:    #f6f9fc;
  --paper-2:  #eaf1f8;
  --line:     #dbe5ef;
  --line-2:   #c3d3e3;

  --ink:      #0c1c2c;
  --ink-2:    #3d5468;
  --ink-3:    #566b80;
  --dead:     #5c7183;   /* a missed call: drained. 4.79 on the card, 5.07 on white */

  /* The brand blue is fixed by the identity spec: #0D3A63, one flat colour.
     The three around it are interface only — the wordmark never uses them. */
  --blue:     #0d3a63;
  --blue-d:   #092a49;
  --blue-l:   #2a72b3;
  --blue-xl:  #e7f0f8;

  --flag:     #cc5217;   /* needs you. nowhere else */
  --flag-xl:  #fdeee4;

  --f: Archivo, ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --t-micro: 0.8rem;
  --t-sm:    0.94rem;
  --t-body:  1.0625rem;
  --t-lead:  clamp(1.35rem, 2.1vw, 1.55rem);

  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(4.5rem, 10vw, 8rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-xl); color: var(--blue-d); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.tnum { font-variant-numeric: tabular-nums; }
.t-sm { font-size: var(--t-sm); }
.t-micro { font-size: var(--t-micro); }
.band { background: var(--paper); }
.band-blue { background: var(--blue); color: #eaf3fb; }
.band-blue h2 { color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: 12px 20px; font-weight: 700; }
.skip:focus { left: 0; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 0.97; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.9rem, 9vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h3 { font-size: var(--t-lead); letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.prose { max-width: 60ch; color: var(--ink-2); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 42ch; }

/* --- wordmark lockup ------------------------------------------------------ */
/* The whole identity in two lines. Sizes are derived, not typed: the tagline is
   26% of the wordmark and sits one o-width (0.56em of the wordmark) below the
   baseline, so changing --wm-size alone rescales the lockup correctly. */
/* 3rem is a floor, not a taste call: the tagline is 26% of the wordmark, so
   anything under ~46px puts it below 12px and it stops being readable on
   screen. The ratio is the spec's; the size is what the ratio demands here. */
.wordmark-lockup { --wm-size: 3rem; display: inline-flex; flex-direction: column; }
.wml-word {
  font-weight: 700; font-size: var(--wm-size); letter-spacing: -0.02em;
  line-height: 1; color: var(--blue);
}
.wml-tag {
  font-weight: 600; font-size: calc(var(--wm-size) * 0.26); letter-spacing: 0;
  line-height: 1; color: var(--blue); margin-top: calc(var(--wm-size) * 0.56);
}

/* --- header --------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
/* The wordmark, to spec: Archivo 700 at the header size of 28px, tracking −2%,
   and clear space of one o-width on every side. The o of Archivo 700 is ~0.56em
   wide, so the margin is set in em and holds at any size. Gaps are explicit
   rather than a flex `gap` because the divider has to sit outside that space. */
.lockup { display: flex; align-items: center; min-width: 0; }
.lockup img { height: 30px; width: auto; flex-shrink: 0; margin-right: 14px; }
.lockup .rule { width: 1px; height: 22px; background: var(--line-2); flex-shrink: 0; }
.lockup .word {
  font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em;
  color: var(--blue); margin-left: 0.56em;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px); }
.nav-links .nl { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.nav-links .nl:hover { color: var(--blue); }
@media (max-width: 860px) { .nav-links .nl { display: none; } }

/* --- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 0.98rem; min-height: 48px; padding: 13px 24px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s cubic-bezier(.22,1,.36,1), background-color .18s, border-color .18s, color .18s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-d); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 16px 30px; min-height: 56px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ============================ THE TRANSFORM ============================== */
.transform { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .transform { grid-template-columns: 1fr auto 1.2fr; } }

.dead-card {
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.1rem, 2.4vw, 1.5rem);
  background: var(--paper); color: var(--dead);
}
.dead-card .dc-label { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.dead-card .dc-num { font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; margin-top: 8px; color: var(--ink-3); }
.dead-card .dc-time { font-size: var(--t-sm); margin-top: 4px; color: var(--dead); }
.dead-card .dc-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: var(--t-sm); color: var(--ink-3); }

.tarrow { display: flex; align-items: center; justify-content: center; color: var(--flag); font-weight: 800; font-size: 1.6rem; }
@media (max-width: 899px) { .tarrow { transform: rotate(90deg); padding-block: 4px; } }

.job {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.1rem, 2.4vw, 1.5rem);
  box-shadow: 0 24px 50px -30px rgba(12,28,44,.4);
}
.job-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 0.7rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.chip-urgent { background: var(--flag-xl); color: #96380d; }
.chip-needs  { background: var(--blue-xl); color: var(--blue-d); }
.job-ref { margin-left: auto; font-family: ui-monospace, monospace; font-size: 0.7rem; color: var(--ink-3); }
.job h3 { margin-top: 10px; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.job-who { font-size: var(--t-sm); color: var(--ink-3); margin-top: 3px; }
.job-facts { margin-top: 12px; display: grid; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.job-acts { display: flex; gap: 8px; margin-top: 14px; }
.job-acts span { flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 0.82rem; }
.act-go { background: var(--blue); color: #fff; }
.act-alt { border: 1px solid var(--line-2); color: var(--ink); }

/* ======================= ADAPTIVE QUESTIONS DIAGRAM ====================== */
.fork { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .fork { grid-template-columns: 1fr 1fr; } }
.branch { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.branch-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--paper); }
.branch-head b { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; }
.branch-head .tag { margin-left: auto; font-size: var(--t-micro); color: var(--blue); font-weight: 700; }
.branch ol { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 10px; }
.branch li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.branch li::before { content: "?"; color: var(--blue-l); font-weight: 800; flex-shrink: 0; }

/* --- thread --------------------------------------------------------------- */
.thread { display: grid; gap: 10px; max-width: 32rem; }
.bub { padding: 12px 16px; border-radius: 16px; font-size: var(--t-sm); line-height: 1.5; max-width: 90%; }
.bub-sys { border: 1px dashed var(--line-2); color: var(--ink-3); border-radius: 9px; max-width: 100%; }
.bub-nock { background: var(--paper-2); border-bottom-left-radius: 4px; justify-self: start; color: var(--ink); }
.bub-cust { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.who { display: block; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }

/* --- guards --------------------------------------------------------------- */
.guards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.guard { border-top: 2px solid var(--blue); padding-top: 0.9rem; }
.guard p { margin-top: 0.4rem; color: var(--ink-2); font-size: var(--t-sm); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 0.9fr; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- product capture ------------------------------------------------------ */
.phone {
  width: min(272px, 76vw); border-radius: 32px; padding: 9px;
  background: var(--ink); border: 1px solid var(--ink);
  box-shadow: 0 30px 60px -30px rgba(12,28,44,.55);
  position: relative; flex-shrink: 0;
}
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 250 / 480; object-fit: cover; object-position: top center; background: #fff; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 72px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }

/* --- footer --------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--paper); }
.foot-grid { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); justify-content: space-between; }
.foot h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.foot a { display: block; color: var(--ink-2); padding-block: 8px; font-size: 0.95rem; }
.foot a:hover { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.16,1,.3,1) backwards; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
}
