/* Daily Accountability Club. Shared styles: refined black & white. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --grey: #f5f4f1;
  --grey-2: #bfe5fd;
  --mute: #6f6f6f;
  --max: 1160px;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Inter", "Helvetica Neue", Arial, sans-serif; /* small tracked labels */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-size: 16.5px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 36px; } }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.08; letter-spacing: -0.03em; }
h1 em, h2 em, h3 em, .display em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  border: 1px solid currentColor; padding: 8px 12px 7px; line-height: 1;
}
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .tag.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3a3a3a; max-width: 36em; line-height: 1.6; }
.small { font-size: 12.5px; color: var(--mute); }
.dark .small { color: #9c9c9c; }

/* ---------- logo ---------- */
.box {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; line-height: 1;
  padding: .7em .9em .65em; font-size: .68em;
}
.dark .box, .box.inv { background: var(--paper); color: var(--ink); }

/* ---------- top bar + nav ---------- */
.topbar {
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 11px 16px;
}
.topbar a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-2);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.nav .logo { text-decoration: none; font-size: 17px; white-space: nowrap; display: flex; align-items: center; }
.nav .logo small { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .68em; margin-left: 10px; }
.nav ul { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav ul a { text-decoration: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; }
.nav ul a[aria-current="page"] { border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }
@media (max-width: 480px) {
  .nav .logo { font-size: 14px; }
  .nav .logo small { display: none; }
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 9.5px; letter-spacing: .14em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-family: var(--mono); font-weight: 600; text-transform: uppercase;
  font-size: 11.5px; letter-spacing: .2em; text-decoration: none; cursor: pointer;
  padding: 19px 30px 18px; line-height: 1; transition: background .2s, color .2s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: transparent; color: var(--paper); }
.dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.dark .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn.sm { font-size: 10.5px; padding: 13px 18px 12px; }
.btn.block { width: 100%; }
.nav .btn { font-size: 10.5px; padding: 12px 16px 11px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
@media (min-width: 900px) { section { padding: 128px 0; } }
.dark { background: var(--ink); color: var(--paper); }
.dark .lede { color: #c9c9c9; }
.grey { background: var(--grey); }
.rule { border: 0; border-top: 1px solid var(--ink); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; }
.marquee .track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee span {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  font-size: 11px; letter-spacing: .32em; white-space: nowrap; padding-right: 3em;
}
.marquee.inv { background: var(--paper); color: var(--ink); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- media slots (drop real photos into /images) ---------- */
.slot {
  position: relative; background: var(--grey); overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.slot .ph { padding: 24px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); line-height: 1.9; }
.slot .ph b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--ink); letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.1; }
.slot .corner { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* ---------- cards / forms (tools) ---------- */
.card { border: 1px solid var(--grey-2); background: var(--paper); padding: 28px; }
.card h3 { font-size: 1.35rem; margin-bottom: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); }
.field input, .field select {
  width: 100%; border: 1px solid #b8d0df; background: var(--paper); padding: 14px;
  font-size: 16px; border-radius: 0; appearance: none; transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }

.chip {
  border: 1px solid var(--grey-2); background: var(--paper); cursor: pointer; text-align: left;
  padding: 13px 14px; display: grid; gap: 3px; transition: background .15s, color .15s, border-color .15s;
}
.chip b { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.chip span { font-size: 11.5px; color: var(--mute); }
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover span { color: #bbb; }
.chip.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(.96); } }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 14px 20px; z-index: 99;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #9c9c9c; padding: 56px 0 120px; font-size: 12.5px; }
footer .wrap { display: grid; gap: 18px; }
footer a { color: var(--paper); }
@media (min-width: 900px) { footer { padding-bottom: 56px; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--grey-2);
  display: flex; gap: 14px; align-items: center;
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.on { transform: none; }
.sticky-cta .btn { flex: 1; padding: 16px; }
.sticky-cta .mono { font-size: 9.5px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: .16em; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Loop mini book cover (shared by section, popup, book) ---------- */
.loopcover {
  position: relative; container-type: inline-size; aspect-ratio: 2 / 3;
  background: #f6f5f2; color: #111; border: 1px solid #111;
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.45);
}
.loopcover .lc-in { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8cqw 7cqw 6cqw; }
.dark .loopcover, .pop-art .loopcover { border-color: #f6f5f2; }
.loopcover .lc-top { font-family: var(--mono); font-size: 2.4cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; }
.loopcover .lc-title { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; font-size: 8.2cqw; line-height: 1.02; margin-top: 6cqw; }
.loopcover .lc-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; display: block; font-size: 1.06em; }
.loopcover svg { flex: none; width: 104%; height: auto; margin: auto -2%; }
.loopcover .stamp {
  position: absolute; right: 6cqw; top: 58cqw; transform: rotate(-9deg);
  border: 1px solid #111; padding: 1.3cqw 2.4cqw 1.1cqw; background: #f6f5f2;
  font-family: var(--mono); font-weight: 600; text-transform: uppercase; text-align: center; line-height: 1.2;
  font-size: 2.4cqw; letter-spacing: .3em;
}
.loopcover .stamp small { display: block; font-size: 1.6cqw; letter-spacing: .24em; font-weight: 500; margin-top: .3cqw; }
.loopcover .lc-foot { font-family: var(--mono); font-size: 2.1cqw; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; }

/* loop diagram on its own (inside the book) */
.loopfig { padding: 6% 4%; margin: 8px 0 22px; }
.loopfig.dk { background: #111; }
.loopfig.lt { background: #f6f5f2; border: 1px solid #111; }
.loopfig svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }

/* ---------- opt-in form ---------- */
.optin { display: grid; gap: 12px; }
.optin .ok { display: none; border: 1px solid currentColor; padding: 20px; }
.optin.done .ok { display: block; }
.optin.done > :not(.ok) { display: none; }
.optin .err { display: none; font-size: 12.5px; }
.optin.fail .err { display: block; }

/* ---------- popup ---------- */
.pop-bg {
  position: fixed; inset: 0; z-index: 120; background: rgba(17,17,17,.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .3s;
}
.pop-bg.on { opacity: 1; }
.pop {
  position: relative; background: var(--paper); width: min(840px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; display: grid; transform: translateY(14px); transition: transform .3s;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
}
.pop-bg.on .pop { transform: none; }
.pop .pop-art { background: var(--ink); padding: 28px; display: grid; place-items: center; }
.pop .pop-art .bkcover { width: 100%; max-width: 270px; }
.pop .pop-copy { padding: 30px 24px; }
.pop h2 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); margin: 16px 0 12px; }
.pop .x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; background: transparent; font-size: 16px; cursor: pointer; color: var(--ink); }
.pop .x:hover { opacity: .5; }
.pop .nope { background: none; border: 0; font-size: 11.5px; color: var(--mute); text-decoration: underline; cursor: pointer; margin-top: 10px; }
@media (min-width: 720px) { .pop { grid-template-columns: 1fr 1.15fr; } .pop .pop-copy { padding: 44px 40px; align-self: center; } }
@media (max-width: 719px) {
  .pop .pop-art { padding: 18px 18px 0; overflow: hidden; max-height: 200px; place-items: start center; }
  .pop .pop-art .bkcover { max-width: 180px; box-shadow: none; }
  .pop .x { color: #fff; }
}

/* ---------- monster book cover (matches the mini book itself) ---------- */
.bkcover { position: relative; container-type: inline-size; background: linear-gradient(#e2f3fe, #c1e6fd); color: #0f5b8a; border: 4px solid #fff; border-radius: 26px; box-shadow: 0 8px 0 #bfe3fb, 0 40px 70px -40px rgba(15,91,138,.5); overflow: hidden; font-family: "Fredoka", "Helvetica Neue", Arial, sans-serif; }
.bkcover .bk-in { padding: 6cqw 6cqw 5cqw; text-align: center; }
.bkcover .t { font-weight: 600; font-size: 7.5cqw; line-height: 1.04; letter-spacing: -.01em; }
.bkcover .t span { display: inline-block; background: #1fa3e8; color: #fff; border-radius: 999px; padding: 1.2cqw 3.4cqw 1cqw; font-family: "Nunito", Arial, sans-serif; font-weight: 800; font-size: 3cqw; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2.6cqw; line-height: 1.2; }
.bkcover img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 6cqw; border: 1cqw solid #fff; margin: 4cqw 0 3.4cqw; }
.bkcover .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; }
.bkcover .steps span { background: #fff; border-radius: 999px; padding: 1.5cqw 2.4cqw 1.5cqw 1.6cqw; font-size: 3.2cqw; font-weight: 600; display: flex; align-items: center; gap: 1.6cqw; white-space: nowrap; line-height: 1; }
.bkcover .steps b { flex: none; width: 5.2cqw; height: 5.2cqw; border-radius: 50%; background: #ffc94d; display: grid; place-items: center; font-size: 2.9cqw; font-weight: 700; }
.bkcover.redact .steps i { flex: 1; height: 2.6cqw; border-radius: 999px; background: #0f5b8a; opacity: .82; }
.bkcover .stamp { position: absolute; right: 9cqw; top: 40cqw; transform: rotate(8deg); background: #ff9d76; color: #fff; border-radius: 3cqw; padding: 1.6cqw 3cqw 1.4cqw; font-weight: 700; font-size: 3.4cqw; line-height: 1.1; text-align: center; box-shadow: 0 .8cqw 0 #e57f58; }
.bkcover .stamp small { display: block; font-family: "Nunito", Arial, sans-serif; font-weight: 800; font-size: 2cqw; letter-spacing: .06em; text-transform: uppercase; margin-top: .3cqw; }
.bkcover .f { margin-top: 3.4cqw; font-family: "Nunito", Arial, sans-serif; font-weight: 800; font-size: 2.6cqw; letter-spacing: .14em; text-transform: uppercase; color: #3d6c89; }

/* cheat sheet cover: longer title, five step pills */
.bkcover .t { font-size: 6.9cqw; }
.bkcover .t em { font-style: normal; color: #1477c4; }
.bkcover .steps span:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bkcover .steps span { font-size: 3cqw; }

/* opt-in success: check your email */
.optin .ok { border: 2px solid #1fa3e8; border-radius: 20px; background: #e2f5f1; color: #0f5b8a; padding: 20px; }
.optin .ok .okh { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.optin .ok .small { color: #3a6681; }
.optin .ok a { color: #1477c4; }

/* Cheat Sheet cover with the founder's before and after (Champ as a small badge) */
.bkcover.me .ba { position: relative; margin: 4cqw 0 3.4cqw; }
.bkcover.me .ba > img:first-child { margin: 0; aspect-ratio: 1 / .92; object-position: 50% 12%; }
.bkcover.me .ba em { position: absolute; bottom: 3cqw; font-style: normal; font-family: "Nunito", Arial, sans-serif; font-weight: 800; font-size: 3.2cqw; letter-spacing: .1em; text-transform: uppercase; padding: 1.2cqw 3cqw 1cqw; border-radius: 999px; background: #fff; color: #0f5b8a; line-height: 1.2; }
.bkcover.me .ba em.l { left: 3.4cqw; }
.bkcover.me .ba em.r { right: 3.4cqw; background: #1fa3e8; color: #fff; }
.bkcover.me .ba .champ { position: absolute; left: 50%; top: -5cqw; width: 19cqw; height: 19cqw; margin: 0 0 0 -9.5cqw; border-radius: 50%; border: 1cqw solid #fff; box-shadow: 0 1cqw 3cqw rgba(15,91,138,.35); aspect-ratio: 1; }
.bkcover.me .stamp { top: 84cqw; right: auto; left: 50%; transform: translateX(-50%) rotate(-5deg); white-space: nowrap; }
