/* ===================================================================
   The Life Check-In — signup page.

   Centred layout with the seven area colours running the full height of
   BOTH edges, and the scorecard in the middle.

   The colours are the exact values from shift/data.js, the same ones
   the workbook fills its results bars with, so this page and the
   workbook agree rather than merely coexisting.

   Known and deliberate: the workbook gives Body & Health and Home &
   Environment the same green (#396a40), so two of the seven match.
   Left faithful rather than invented; raised for a decision.

   Standalone: it does not load the main site stylesheet, because it
   carries no nav and no footer chrome.
   =================================================================== */

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

:root {
  --paper:  #f7f5f0;
  --panel:  #fffefb;
  --ink:    #1f1e1c;
  --soft:   #6c6862;
  --hair:   #e2ded4;
  --track:  #ebe7dd;

  /* the accent, taken from the site's own stylesheet */
  --accent:    #2447cf;
  --accent-dk: #1d3ab0;

  --ui:      'Inter Var', 'Inter', 'Helvetica Neue', sans-serif;
  --display: 'Cardo', Georgia, serif;
  --body:    'Lora', Georgia, serif;

  --spine-w: 14px;
}

html { font-size: 16px; background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: 0 var(--spine-w);
  text-align: center;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 34px; width: 100%; }

/* ------------------------------------------------------------------
   The colour spines, one down each edge
   ------------------------------------------------------------------ */
.spine {
  position: fixed; top: 0; bottom: 0; width: var(--spine-w);
  display: flex; flex-direction: column; z-index: 5;
}
.spine--left  { left: 0; }
.spine--right { right: 0; }
.spine span { flex: 1; display: block; }

/* ------------------------------------------------------------------
   Shared type
   ------------------------------------------------------------------ */
.eyebrow {
  font-family: var(--ui); font-size: .66rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--soft);
}
.kicker {
  font-family: var(--ui); font-size: .72rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.03; letter-spacing: -.022em;
  max-width: 20ch; margin: 0 auto 14px;
  text-wrap: balance;
}
.sub-lead {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.14rem, 2.2vw, 1.45rem);
  color: var(--soft); margin: 0 auto 28px;
}
.nos {
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
  max-width: 46ch; margin: 26px auto 0; line-height: 1.55;
}
.justcome {
  font-family: var(--display); font-size: 1.45rem;
  margin: 10px auto 26px;
}
h1 em { font-style: italic; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  line-height: 1.14; letter-spacing: -.018em;
}
.sub {
  font-family: var(--ui); color: var(--soft); font-size: 1.06rem;
  max-width: 54ch; margin: 0 auto 16px; line-height: 1.62;
}
.sub:last-of-type { margin-bottom: 0; }
.lede { font-family: var(--ui); color: var(--soft); max-width: 58ch; margin: 0 auto 14px; line-height: 1.62; }
.lede--strong { color: var(--ink); font-weight: 700; }
.scorenote {
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
  max-width: 52ch; margin: 26px auto 0; line-height: 1.55;
}
.terms {
  font-family: var(--ui); font-weight: 700; font-size: .9rem;
  letter-spacing: .02em; margin-bottom: 28px;
}

/* ------------------------------------------------------------------
   Top: the name, then the date at a size people can actually read
   ------------------------------------------------------------------ */
.top { padding: 40px 0 0; }

/* the masthead: seven dots, the name, the byline, a rule */
.mast { margin-bottom: 30px; }
.mast-dots {
  display: flex; justify-content: center; gap: 7px; margin-bottom: 20px;
}
.mast-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.wordmark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.45rem);
  letter-spacing: .2em; text-transform: uppercase;
  line-height: 1.1; color: var(--ink);
  padding-left: .2em;               /* balances the trailing letter-space */
}
.byline {
  font-family: var(--display); font-style: italic;
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  color: var(--soft); margin-top: 12px;
  position: relative; display: inline-block; padding: 0 22px;
}
.byline::before, .byline::after {
  content: ""; position: absolute; top: 50%;
  width: 30px; height: 1px; background: var(--hair);
}
.byline::before { left: -30px; }
.byline::after  { right: -30px; }

.datebar {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: 0 12px;
  border: 1px solid var(--hair); background: var(--panel);
  border-radius: 12px; padding: 14px 28px;
}
.datebar .lab {
  font-family: var(--ui); font-size: .64rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  width: 100%; margin-bottom: 6px;
}
/* date and time share one family and one size, so the line reads as one thing */
.datebar .d,
.datebar .t {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.15; letter-spacing: -.01em;
}
.datebar .t { color: var(--soft); }

.hero { padding: 54px 0 70px; }

/* the form */
form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
  max-width: 620px; margin: 0 auto; text-align: left;
}
input {
  font-family: var(--ui); font-size: 1rem; padding: 15px 16px;
  border: 1px solid var(--hair); border-radius: 8px; background: #fff;
  color: var(--ink); width: 100%;
}
input::placeholder { color: #a8a49b; }
input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 71, 207, .14);
}
.go {
  font-family: var(--ui); font-size: .94rem; font-weight: 700;
  padding: 15px 26px; border: none; border-radius: 8px;
  background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap;
  transition: background .2s ease;
}
.go:hover { background: #000; }
.go:disabled { opacity: .55; cursor: default; }

/* The calls to action are links to the payment page now, not form buttons.
   Paying is what saves the seat, so there is no form on this page. */
.go--pay {
  display: inline-block; text-align: center; text-decoration: none;
  font-size: 1rem; padding: 17px 34px;
}

.msg { font-family: var(--ui); font-size: .88rem; margin-top: 11px; min-height: 1.3em; }
.msg--ok  { color: #396a40; font-weight: 700; }
.msg--err { color: #c4391d; font-weight: 700; }
.fine { font-family: var(--ui); font-size: .8rem; color: var(--soft); margin-top: 8px; }

/* ------------------------------------------------------------------
   The scorecard
   ------------------------------------------------------------------ */
.seven { border-top: 1px solid var(--hair); padding: 74px 0; }
.seven h2 { margin: 12px 0 10px; }
.seven .lede { margin-bottom: 32px; }

.card {
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: 14px; padding: 12px 28px 22px; text-align: left;
}
.row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr 120px 22px;
  gap: 4px 22px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--hair);
}
.row:last-of-type { border-bottom: none; }
.row .nm { font-family: var(--ui); font-size: 1.04rem; font-weight: 700; }
.row .ds { font-family: var(--ui); font-size: .92rem; color: var(--soft); }
.row .track {
  height: 8px; border-radius: 100px; background: var(--track);
  overflow: hidden; display: block;
}
.row .fill { display: block; height: 100%; border-radius: 100px; }
.row .val {
  font-family: var(--ui); font-size: .84rem; font-weight: 700;
  color: var(--soft); text-align: right;
}
.cardnote {
  font-family: var(--ui); font-size: .8rem; color: var(--soft);
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--hair);
}

/* ------------------------------------------------------------------
   Testimonial cards
   ------------------------------------------------------------------ */
.said { padding: 74px 0; background: var(--panel); border-top: 1px solid var(--hair);
        border-bottom: 1px solid var(--hair); }
.said h2 { margin: 12px 0 34px; }
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 900px; margin: 0 auto; text-align: left;
}
.tcard {
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: 14px; padding: 24px 24px 20px;
  display: flex; flex-direction: column;
}
.tcard blockquote {
  font-family: var(--display); font-style: italic;
  font-size: 1.08rem; line-height: 1.5; flex: 1;
}
.tcard .who {
  display: flex; align-items: center; gap: 11px;
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--hair);
}
.tcard .who img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  display: block; flex: none;
}
.tcard .who cite {
  font-family: var(--ui); font-style: normal; font-size: .88rem;
  font-weight: 700; letter-spacing: .01em;
}
.tcard .who .score {
  font-family: var(--ui); font-size: .78rem; font-weight: 700;
  color: var(--soft); margin-left: auto;
}

/* ------------------------------------------------------------------
   How it runs
   ------------------------------------------------------------------ */
.how { padding: 74px 0; }
.how h2 { margin: 12px 0 32px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  text-align: left; max-width: 900px; margin: 0 auto;
}
.step .n {
  font-family: var(--ui); font-size: .64rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 9px; border-bottom: 1px solid var(--hair); margin-bottom: 12px;
}
.step h3 { font-family: var(--ui); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-family: var(--ui); font-size: .95rem; color: var(--soft); margin-bottom: 9px; }
.step p:last-child { margin-bottom: 0; }
.step p strong { color: var(--ink); font-weight: 700; }
.wbook {
  background: var(--panel); border: 1px solid var(--hair); border-radius: 14px;
  padding: 26px 30px; margin: 44px auto 0; max-width: 640px;
}
.wbook h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.34rem;
  margin-bottom: 10px;
}
.wbook p {
  font-family: var(--ui); font-size: .97rem; color: var(--soft);
  margin-bottom: 8px; line-height: 1.6;
}
.wbook p:last-child { margin-bottom: 0; }
.wbook strong { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------
   This is for you if
   ------------------------------------------------------------------ */
.foryou {
  padding: 78px 0; background: var(--panel);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.foryou h2 { margin: 12px 0 16px; }
.thoughts {
  list-style: none; max-width: 620px; margin: 26px auto 26px;
  display: grid; gap: 12px; text-align: left;
}
.thoughts li {
  font-family: var(--display); font-style: italic; font-size: 1.14rem;
  line-height: 1.45; background: var(--paper);
  border: 1px solid var(--hair); border-radius: 12px;
  padding: 16px 20px;
}

/* ------------------------------------------------------------------
   Close
   ------------------------------------------------------------------ */
.close { padding: 74px 0 20px; border-top: 1px solid var(--hair); }
.close h2 { margin: 12px 0 10px; }
.close .sub { margin-bottom: 14px; }
.closelist {
  font-family: var(--display); font-size: 1.24rem; line-height: 1.65;
  margin: 26px auto 30px;
}
.close .when {
  font-family: var(--ui); font-size: 1.04rem; font-weight: 700; margin-bottom: 4px;
}
.close .terms { margin-bottom: 26px; }

footer {
  font-family: var(--ui); font-size: .8rem; color: var(--soft);
  padding: 40px 0 50px;
}
footer a { border-bottom: 1px solid var(--hair); }
footer .sep { margin: 0 .6em; opacity: .5; }

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .cards { grid-template-columns: 1fr; }
  .seven, .how, .close, .said { padding: 54px 0; }
  .hero { padding: 40px 0 50px; }
}

@media (max-width: 760px) {
  :root { --spine-w: 9px; }
  .wrap { padding: 0 20px; }
  form { grid-template-columns: 1fr; }
  h1 { font-size: 2.15rem; max-width: none; }
  .datebar { padding: 12px 18px; border-radius: 10px; }
  .top { padding: 26px 0 0; }
  .mast { margin-bottom: 22px; }
  .mast-dots { gap: 6px; margin-bottom: 15px; }
  .mast-dots i { width: 7px; height: 7px; }
  .wordmark { font-size: 1.32rem; letter-spacing: .16em; }
  .byline { font-size: .92rem; }
  .byline::before, .byline::after { width: 18px; }
  .byline::before { left: -18px; }
  .byline::after  { right: -18px; }

  /* the scorecard stacks: name and score on one line, description under,
     bar under that, because four columns cannot survive a phone width */
  .card { padding: 6px 18px 18px; }
  .row {
    grid-template-columns: 1fr 22px;
    gap: 5px 12px; padding: 15px 0;
  }
  .row .nm { grid-column: 1; }
  .row .val { grid-column: 2; grid-row: 1; }
  .row .ds  { grid-column: 1 / -1; }
  .row .track { grid-column: 1 / -1; margin-top: 3px; }
}
