/* Members pages: Sign in, Account, Terms, Apply, and the small one-message pages (link used up, one tap,
   try again). Loaded after /bd-site.css, which gives them the site header and footer, and the house
   buttons, fields and type. This file only lays out the column, and makes the plain elements these pages
   are written in (h1, label, input, .btn) look like the shared ones. Values come from /bd-tokens.css. */
@import url('/bd-tokens.css');
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bd-paper); color: var(--bd-ink); font-family: var(--bd-font-text); font-size: var(--bd-fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 2px; border-radius: var(--bd-r-1); }
.app { max-width: 720px; margin: 0 auto; padding: 8px var(--site-gutter, 20px) 72px; }
.app > h1:first-child, .app > .kicker:first-child { margin-top: 40px; }

.kicker { margin: 40px 0 0; font-size: var(--bd-fs-label); line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-accent); }
h1 { margin: 10px 0 18px; font-family: var(--bd-font-display); font-weight: 700; font-size: clamp(40px, 10vw, 56px); line-height: 1.1; letter-spacing: 0; overflow-wrap: break-word; text-wrap: balance; }
h2 { margin: 36px 0 10px; font-family: var(--bd-font-display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 16px; max-width: 34em; }
.app p a, .split p a { color: var(--bd-accent); font-weight: 600; }
.muted { color: var(--bd-muted); }
.notice { margin: 24px 0 0; padding: 14px 18px; border-radius: var(--bd-r-2); background: var(--bd-slab); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--bd-hair); }
.rows b { display: block; font-weight: 700; }
.rows span { color: var(--bd-muted); font-size: var(--bd-fs-small); }
dl { margin: 0; padding: 4px 20px; max-width: 480px; border-radius: var(--bd-r-3); background: var(--bd-card); box-shadow: var(--bd-shadow); }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bd-hair); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--bd-muted); }
dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* Fields and buttons: the shared .bd-field and .bd-btn, for pages written with plain elements. */
form { margin: 24px 0 0; max-width: 480px; }
label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--bd-ink-soft); }
input, select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1px solid var(--bd-hair); border-radius: var(--bd-r-2); background: #fff; color: var(--bd-ink);
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23131312' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
input:hover, select:hover, textarea:hover { border-color: var(--bd-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--bd-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bd-ink) 10%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 480px; min-height: 56px; margin-top: 22px; padding: 0 22px;
  border: 0; border-radius: var(--bd-r-2); background: var(--bd-accent); color: var(--bd-on-accent);
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn::after { content: '\2192\FE0E'; font-weight: 400; font-size: 18px; transition: transform var(--bd-slow, .35s) var(--bd-ease, ease); }
.btn:not([disabled]):hover { filter: brightness(.92); }
.btn:not([disabled]):hover::after { transform: translateX(4px); }
.btn:not([disabled]):active { transform: scale(.98); }
.btn.plain { background: transparent; color: var(--bd-ink); box-shadow: inset 0 0 0 1.5px var(--bd-ink); }
.btn[disabled] { opacity: .5; cursor: default; }

/* Deliverables and codes: name on the left, quantity or code on the right. */
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bd-hair); }
.ledger b { font-weight: 700; }
.ledger small { display: block; color: var(--bd-muted); font-size: var(--bd-fs-small); overflow-wrap: anywhere; }
.ledger .code { font-family: ui-monospace, Menlo, monospace; user-select: all; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 32px; padding: 16px 0 12px; border-top: 1px solid var(--bd-ink); border-bottom: 1px solid var(--bd-hair); }
.total span { font-size: var(--bd-fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.total b { font-family: var(--bd-font-display); font-weight: 700; font-size: 56px; line-height: .95; letter-spacing: 0; }
/* Terms page */
.terms-list { margin: 0 0 16px; padding-left: 20px; max-width: 34em; }
.terms-list li { margin-bottom: 8px; }
mark { background: var(--bd-slab); color: var(--bd-accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.error { color: var(--bd-accent); font-weight: 600; }
/* Apply, second step: the 15-minute call. A group of times per day; the one picked turns red. */
.slots { max-width: 480px; }
.slot-day { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.slot-day:first-child { margin-top: 8px; }
.slot-day legend { padding: 0 0 10px; font-weight: 700; }
.slot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; margin: 0; color: var(--bd-ink); font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; height: 52px; border-radius: var(--bd-r-2); background: var(--bd-card); box-shadow: 0 0 0 1px var(--bd-hair), 0 6px 16px -8px rgba(19, 19, 18, .18); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
.slot:active span { transform: scale(.95); }
.slot input:checked + span { background: var(--bd-accent); color: var(--bd-on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(200, 40, 30, .55); }
.slot input:focus-visible + span { outline: 2px solid var(--bd-accent); outline-offset: 3px; }
.slots .btn { margin-top: 28px; }
.slots-skip { margin-top: 16px; font-size: var(--bd-fs-small); }
@media (prefers-reduced-motion: reduce) { .slot span, .btn, .btn::after { transition: none; } }

/* Sign in: under the site header. Phone: the form alone. From 900px wide, two cards' worth: the form
   on paper on the left, and on the right a rounded photo card (a real Builders Digest jobsite under ink,
   the line, and what an account gets). The "check your email" state keeps the same split. */
.split { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 56px; }
.split-body { max-width: 480px; }
.split-body .kicker { margin-top: 32px; }
.fine { margin-top: 20px; font-size: var(--bd-fs-small); }
.split-brand { display: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; padding-top: 32px; padding-bottom: 72px; min-height: calc(100vh - 73px); min-height: calc(100dvh - 73px); }
  .split-form { display: flex; align-items: center; }
  .split-body { width: 100%; max-width: 440px; margin: 0 auto; padding-bottom: 40px; }
  .split-body .kicker { margin-top: 0; }
  .split-body h1 { font-size: 64px; }
  .split-body form, .split-body .btn { max-width: none; }
  .split-brand { display: flex; align-items: flex-end; min-height: 560px; overflow: hidden; border-radius: var(--bd-r-3); box-shadow: var(--bd-shadow); color: var(--bd-paper);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bd-ink) 10%, transparent) 0%, color-mix(in srgb, var(--bd-ink) 55%, transparent) 45%, color-mix(in srgb, var(--bd-ink) 94%, transparent) 100%), url('/dov-jobsite.jpeg') 30% center / cover no-repeat, var(--bd-ink); }
  .split-copy { width: 100%; padding: 0 clamp(32px, 4vw, 56px) clamp(32px, 5vh, 48px); }
  .split-word { margin: 0 0 12px; font-family: var(--bd-font-display); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: 0; }
  .split-line { max-width: 22em; margin: 0 0 28px; font-size: 20px; line-height: 1.35; color: color-mix(in srgb, var(--bd-paper) 88%, transparent); }
  .split-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bd-paper) 30%, transparent); }
  .split-tier { margin: 0 0 10px; font-size: var(--bd-fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-paper); }
  .split-tiers ul { margin: 0; padding: 0; list-style: none; }
  .split-tiers li { padding: 5px 0; font-size: var(--bd-fs-small); line-height: 1.35; color: color-mix(in srgb, var(--bd-paper) 80%, transparent); }
}
