/* Public plan pages (built by scripts/build-plan-pages.js). Momentum's look: charcoal and copper, Source Serif 4 and Lato. */
:root {
  --bg: #14171a; --surface: #1c2125; --surface-2: #232a2f; --border: rgba(255,255,255,.09);
  --text: #f4efe9; --dim: #b9b3ab; --faint: #8a857e; --copper: #cf8d64; --copper-deep: #b3593d; --tint: #e3a47c;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Lato", ui-sans-serif, system-ui, sans-serif;
  --accent: var(--copper);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--sans);
  background-image: radial-gradient(900px 520px at 88% -8%, rgba(207,141,100,.18), transparent 62%);
  background-repeat: no-repeat;
}
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 96px; }
section { margin: 0 0 8px; }
h1 { font-family: var(--serif); font-size: clamp(36px, 7vw, 62px); line-height: 1.04; letter-spacing: -.02em; font-weight: 500; margin: 6px 0 16px; color: #f7f1e8; }
h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); letter-spacing: -.01em; font-weight: 500; margin: 52px 0 18px; color: #f7f1e8; }
.plan section:not(.hero), .group, .intro { max-width: 720px; }

/* top bar */
.top { max-width: 1080px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 21px; }
.brand img { border-radius: 9px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.brand:hover { text-decoration: none; }
.top-cta { font-size: 14px; font-weight: 700; color: var(--text); padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.28); }
.top-cta:hover { text-decoration: none; border-color: var(--copper); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 20px 0 8px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 36px; } }
.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.crumbs a { color: var(--dim); }
.kicker { display: inline-block; margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--text); opacity: .9; margin: 0 0 16px; max-width: 620px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.meta span { font-size: 13px; font-weight: 700; color: var(--dim); padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.28); transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.1); }
.btn-primary { background: linear-gradient(135deg, #e3a47c, var(--copper)); border-color: transparent; color: #1b1410; box-shadow: 0 12px 30px rgba(207,141,100,.32); }
.play-ic { width: 16px; height: 16px; color: var(--copper); }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; font-size: 13px; color: var(--dim); }
.trust li::before { content: "\2713  "; color: var(--copper); font-weight: 900; }

/* hero visual: the plan's photo, with the week card laid over it */
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid var(--border); }
.hero-visual .mock { position: relative; margin: -86px 0 0 8%; width: 92%; max-width: none; }
.hero-visual:not(:has(.hero-photo)) .mock { margin: 0; width: 100%; }

/* the week card, like the app */
.mock {
  background: #fdf6ec; color: #2a1f1a; border-radius: 24px; border-left: 3px solid var(--copper-deep);
  padding: 16px 18px 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); max-width: 460px; width: 100%;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mock-k { display: block; font-size: 12px; color: #7a6a5f; }
.mock-head strong { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #2a1f1a; }
.mock-ring {
  --p: 50; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--copper-deep) calc(var(--p) * 1%), #ecd6c4 0);
}
.mock-ring span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fdf6ec; font-size: 13px; font-weight: 900; }
.mock-row { padding: 8px 0 6px; border-top: 1px solid rgba(42,31,26,.1); }
.mock-t { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mock-days i { font-style: normal; text-align: center; font-size: 11px; font-weight: 700; line-height: 22px; border-radius: 999px; color: #7a6a5f; background: #efdfd0; }
.mock-days i.on { background: var(--copper-deep); color: #fff; }
.hero-visual .mock .mock-row:nth-child(n+5) { display: none; }

/* content */
.long p, .long li { color: var(--dim); }
.long strong { color: var(--text); font-weight: 700; }
.rules, .steps { padding-left: 0; list-style: none; counter-reset: n; }
.rules li, .steps li { counter-increment: n; position: relative; padding: 16px 18px 16px 62px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.rules li::before, .steps li::before {
  content: counter(n); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #1b1410; background: var(--copper);
}
.tips { padding-left: 20px; }
.tips li { margin-bottom: 8px; }

.habits, .related, .cards, .benefits { list-style: none; padding: 0; margin: 0; }
.habits li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--copper-deep); border-radius: 18px; }
.h-title { font-weight: 700; }
.h-often { color: var(--tint); font-size: 13px; font-weight: 700; white-space: nowrap; align-self: center; }
.h-quip { grid-column: 1 / -1; color: var(--dim); font-size: 14px; }
.safety { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; font-size: 14px; color: var(--dim);
  background: rgba(207,141,100,.1); border: 1px solid rgba(207,141,100,.3); }
.safety strong { color: var(--tint); font-weight: 900; }

.benefits { display: grid; gap: 12px; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.benefits b { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--copper); background: rgba(207,141,100,.14); font-size: 16px; }
.benefits strong { display: block; font-weight: 900; }
.benefits span { color: var(--dim); font-size: 14px; }

.faq dt { font-weight: 900; margin-top: 20px; }
.faq dd { margin: 4px 0 0; color: var(--dim); }

.final { margin-top: 60px; padding: 32px 28px; border-radius: 28px; text-align: left;
  background: radial-gradient(500px 240px at 90% 0%, rgba(207,141,100,.22), transparent 70%), var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--copper-deep); }
.final h2 { margin: 0 0 6px; }
.final p { margin: 0; color: var(--dim); }

.related { display: grid; gap: 10px; }
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--copper-deep); color: var(--text); font-weight: 700; }
.related a:hover { text-decoration: none; border-color: var(--copper); }
.related small { color: var(--faint); font-weight: 400; }

/* overview */
.hero-index { grid-template-columns: 1fr !important; }
.hero-index h1 { max-width: 780px; }
.group h2 { color: #f7f1e8; }
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } .cards-pop { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .group .cards { grid-template-columns: 1fr 1fr 1fr; } }
.cards a { display: flex; flex-direction: column; gap: 3px; padding: 0 0 16px; border-radius: 22px; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--border); height: 100%; transition: transform .15s ease, border-color .15s ease; }
.cards a:hover { text-decoration: none; border-color: var(--copper); transform: translateY(-2px); }
.c-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); margin-bottom: 10px; }
.c-name, .c-meta, .c-desc { padding: 0 18px; }
.c-name { font-family: var(--serif); font-weight: 600; font-size: 19px; color: #f7f1e8; line-height: 1.2; }
.c-meta { font-size: 13px; font-weight: 700; color: var(--tint); }
.c-desc { font-size: 14px; color: var(--dim); }
.cards-pop a { border-left: 3px solid var(--copper-deep); }
.group, .cards-pop { max-width: none !important; }

/* sticky start button on phones */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(20,23,26,.95) 30%); display: flex; justify-content: center; }
.sticky .btn { width: 100%; max-width: 480px; }
@media (min-width: 880px) { .sticky { display: none; } }

.foot { max-width: 1080px; margin: 0 auto; padding: 24px 20px 110px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.foot strong { color: var(--dim); }
.foot a { color: var(--dim); }
.disclaimer { font-size: 12px; }
@media (min-width: 880px) { .foot { padding-bottom: 40px; } }

/* checklist image */
.pin p { color: var(--dim); margin: -6px 0 14px; }
.pin img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.4); }

/* make it yours (Pro) */
.custom > p { color: var(--dim); margin: 0 0 16px; }
.custom > p strong { color: var(--text); }
.more-link { margin: 16px 0 0; font-weight: 700; }

/* overview: build your own */
.build-own { margin-top: 40px; }
.build-own p { max-width: 640px; }
.build-own p strong { color: var(--text); }

/* emojis and photo cards */
.k-emoji { font-size: 15px; letter-spacing: 0; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.h-emoji { grid-row: 1 / span 2; align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: rgba(207,141,100,.16); margin-right: 4px; }
.habits li { grid-template-columns: auto 1fr auto; align-items: center; }
.habits li .h-quip { grid-column: 2 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 14px; }
.chips a:hover { text-decoration: none; border-color: var(--copper); transform: translateY(-1px); }
.group h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; scroll-margin-top: 20px; }
.group h2 small { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .02em; }
.g-emoji { font-size: 28px; }
.c-media { position: relative; display: block; }
.c-media .c-img { margin-bottom: 0; }
.cards a { padding-bottom: 18px; }
.c-media + .c-name { margin-top: 12px; }
.c-emoji { position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(253,246,236,.94); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.c-days { position: absolute; right: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 900; color: var(--copper-deep); background: rgba(253,246,236,.94); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.cards-pop a .c-name { font-size: 21px; }
.cards-pop .c-img { aspect-ratio: 4 / 3; }
.related a { flex-direction: row; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; }
.r-img { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: 12px; }
.r-body { display: flex; flex-direction: column; min-width: 0; }

/* line icons, like the app: thin copper strokes in soft round chips */
.ti { font-size: inherit; line-height: 1; vertical-align: -0.12em; }
.k-emoji { font-size: 0; }
.kicker .ti { font-size: 15px; margin-right: 2px; color: var(--copper); vertical-align: -0.15em; }
.meta .ti { font-size: 15px; color: var(--copper); }
.h-emoji { background: rgba(207,141,100,.16); color: var(--copper); font-size: 20px; }
.chips .ti { font-size: 18px; color: var(--copper); }
.g-emoji { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(207,141,100,.16); color: var(--copper); font-size: 24px; }
.c-emoji { color: var(--copper-deep); font-size: 21px; }
.benefits b { font-size: 19px; }
