/* Design2Income — public site (home, /resources, product pages, free landing,
   library, checkout, success). Load after tokens.css. */
.container { width: min(1180px, 92%); margin: auto; }

/* --- header / footer ------------------------------------------------------ */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.logo { width: 220px; height: auto; display: block; }
.site-nav { display: flex; gap: 28px; align-items: center; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.site-nav a:hover, .site-nav a.on { color: var(--orange); }
.site-nav .navcta { background: var(--orange); color: #fff; padding: 13px 20px; border-radius: 28px; }
.site-nav .navcta:hover { color: #fff; filter: brightness(.95); }

.site-footer { background: var(--navy); color: #dbe4ed; padding: 40px 0; margin-top: 0; }
.foot { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.foot img { width: 240px; height: auto; background: #fff; border-radius: 8px; padding: 5px; }
.foot small { color: #aebccc; }
.foot .flinks { display: flex; gap: 18px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.foot .flinks a:hover { color: #fff; }

/* --- buttons + tags ------------------------------------------------------- */
.btn { display: inline-block; padding: 13px 22px; border-radius: 28px; font-size: 14px; font-weight: 800; background: var(--navy); color: #fff; border: 1px solid var(--navy); cursor: pointer; font-family: inherit; }
.btn.orange { background: var(--orange); border-color: var(--orange); }
.btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.tag { display: inline-block; width: max-content; background: var(--tint); color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; padding: 7px 11px; border-radius: 20px; text-transform: uppercase; }
.eyebrow { color: var(--orange); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 75px 0 60px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--orange); right: -130px; top: -150px; opacity: .95; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin: 15px 0 22px; max-width: 800px; letter-spacing: -.02em; }
.hero p { font-size: 20px; color: #dbe4ed; max-width: 720px; margin: 0 0 22px; }
.hero-box { background: #fff; color: var(--navy); padding: 28px; border-radius: 24px; box-shadow: 0 18px 45px #0003; }
.hero-box b { font-size: 21px; }
.hero-box span { display: block; color: var(--muted); margin-top: 8px; }
.hero.compact { padding: 56px 0 44px; }
.hero.compact h1 { font-size: clamp(32px, 5vw, 54px); }
.hero .price-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.hero .price { font-size: 34px; font-weight: 900; color: #fff; }
.hero .price small { font-size: 14px; font-weight: 700; color: #aebccc; margin-left: 8px; }
.hero .back { color: #dbe4ed; font-weight: 700; font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { font-size: 12px; font-weight: 800; color: #dbe4ed; border: 1px solid #ffffff40; border-radius: 999px; padding: 5px 12px; }

/* --- sections + cards ----------------------------------------------------- */
section.band { padding: 68px 0; }
section.band.white { background: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-bottom: 28px; }
.section-head h2 { font-size: 38px; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.section-head p { max-width: 600px; color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 27px; min-height: 270px; display: flex; flex-direction: column; transition: .2s; box-shadow: 0 5px 20px #0b234108; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px #0b234114; }
.card.featured { border: 2px solid var(--orange); box-shadow: 0 10px 30px #ff6a1a20; }
.card h3 { font-size: 24px; line-height: 1.15; margin: 20px 0 12px; }
.card h3 a:hover { color: var(--orange); }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 25px; }
.bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bottom strong { font-size: 25px; color: var(--navy); }
.bottom strong small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.bottom a, .bottom .soon { background: var(--navy); color: #fff; padding: 11px 15px; border-radius: 24px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.bottom .soon { background: var(--line); color: var(--muted); }
.card.free .bottom a { background: var(--orange); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: 22px; padding: 30px; border: 1px solid var(--line); }
.step .num { font-size: 42px; font-weight: 900; color: var(--orange); }
.step h3 { margin: 10px 0 6px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.cta { background: var(--orange); color: #fff; border-radius: 28px; padding: 52px; margin: 10px 0 70px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { font-size: 38px; margin: 0 0 8px; line-height: 1.1; }
.cta p { margin: 0; max-width: 650px; color: #fff; opacity: .92; }
.cta .btn { background: #fff; border-color: #fff; color: var(--navy); font-weight: 900; padding: 15px 24px; white-space: nowrap; }

/* --- product page --------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose p { font-size: 17px; margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 900; }
.inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.inside details { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.inside summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.inside summary::-webkit-details-marker { display: none; }
.inside summary:after { content: "+"; color: var(--muted); }
.inside details[open] summary:after { content: "–"; }
.inside ul { margin: 0; padding: 0 18px 15px 36px; color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--muted); }
.faq details[open] summary:after { content: "–"; }
.faq p { font-size: 15px; color: var(--muted); margin: 10px 0 2px; max-width: 70ch; }
.sub { color: var(--muted); }

/* --- forms (free opt-in, library login, checkout) ------------------------- */
.loginform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 22px; }
.loginform input { flex: 1 1 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 28px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.formerr { color: #ffb9a3; flex-basis: 100%; margin: 4px 0 0; }
.hero .fine { font-size: 13px; color: #aebccc; margin-top: 12px; }

.mylist { display: grid; gap: 12px; padding: 8px 0 44px; }
.myitem { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 22px; }
.myitem .nm { font-weight: 800; font-size: 17px; }
.myitem .note { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 60ch; }
.myitem .ref { font-size: 11px; color: #9aa2a9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 6px; }
.myitem .pending { font-size: 13px; color: var(--muted); }
.site-nav .who { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; }

.narrow { width: min(560px, 92%); margin: 44px auto 70px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 5px 20px #0b234108; }
.panel h1 { font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.panel .lede { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }
.summary .name { font-weight: 800; }
.summary .amt { font-size: 20px; font-weight: 900; color: var(--navy); white-space: nowrap; text-align: right; }
.summary .usd { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.panel label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #4c5660; margin: 14px 0 6px; }
.panel label .opt { text-transform: none; font-weight: 600; color: #8b949c; }
.panel input, .panel select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; color: inherit; }
.panel .btn { width: 100%; margin-top: 22px; padding: 15px; font-size: 15px; }
.panel .note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.err { background: #fdece8; border: 1px solid #f5b7a8; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 16px; display: none; }
.center { text-align: center; }
.badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; font-weight: 900; background: #fdf3e0; color: #b5852a; }
.badge.ok { background: #e6f4ec; color: var(--green); }
.badge.bad { background: #fdece8; color: var(--danger); }
.ref-line { font-size: 12px; color: #9aa2a9; margin-top: 18px; word-break: break-all; }
.prodname { font-weight: 800; color: var(--ink); }

@media (max-width: 850px) {
  .nav { flex-wrap: wrap; gap: 8px 20px; padding: 10px 0; min-height: 0; }
  .site-nav { gap: 6px 16px; flex-wrap: wrap; font-size: 12px; }
  .site-nav .navcta { padding: 8px 14px; }
  .hero-grid, .grid, .steps, .checks { grid-template-columns: 1fr; }
  .section-head, .cta, .foot { display: block; }
  .cta { padding: 34px 26px; }
  .cta .btn { margin-top: 22px; }
  .logo { width: 190px; }
  .foot > * + * { margin-top: 18px; }
}
