/* Market Edge sales and welcome pages. Same brand as the handbook funnel. Phone width first. */
:root {
  --accent: #2F5D8A;
  --accent-dark: #244A6E;
  --deep: #12233A;
  --deep-2: #1A3050;
  --gold: #E8B86B;
  --gold-soft: #F6E7CC;
  --ink: #14181F;
  --text: #2A313B;
  --muted: #5B6573;
  --line: #E3E6EB;
  --tint: #F5F3EE;
  --red: #B4483C;
  --red-soft: #F7E3E0;
  --green: #2E7D57;
  --green-soft: #E1F0E7;
  --amber-soft: #F4ECD9;
  --head: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: 31px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.center { text-align: center; }

.announce { margin: 0; background: var(--deep); color: var(--gold); text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 16px; }

/* Buttons */
.btn { display: block; width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 22px; background: var(--accent); color: #fff; border-radius: 12px; font-family: var(--head); font-weight: 800; font-size: 20px; line-height: 1.2; text-align: center; text-decoration: none; box-shadow: 0 10px 24px rgba(18, 35, 58, 0.22); transition: background 140ms, transform 140ms; }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn.alt { background: var(--deep); }
.btn.alt:hover { background: var(--deep-2); }
.btn.ghost { background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; max-width: 360px; }
.micro { font-size: 14px; color: var(--muted); margin: 10px auto 0; max-width: 520px; }

/* Hero */
.hero { padding: 26px 0 22px; text-align: center; }
.kicker, .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.eyebrow.gold { color: var(--gold); }
.hero h1 { max-width: 820px; margin: 0 auto 14px; }
.sub { font-size: 18px; max-width: 640px; margin: 0 auto 20px; }
.ticks-inline { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.ticks-inline li::before { content: "\2713"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* Author strip */
.authority { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.authority-row { display: flex; align-items: center; gap: 14px; max-width: 760px; }
.authority img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.authority p { margin: 0; font-size: 14.5px; line-height: 1.45; }

/* Sections */
.sec { padding: 48px 0; }
.sec.tint { background: var(--tint); }
.sec.dark { background: var(--deep); color: #DCE3EC; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.note { font-size: 16px; color: var(--muted); border-left: 4px solid var(--line); padding-left: 14px; }

ul.checks, ul.crosses, .creds-list { list-style: none; padding: 0; margin: 0 0 18px; }
ul.checks li, ul.crosses li, .creds-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
ul.crosses li::before { content: "\2715"; position: absolute; left: 2px; top: 0; color: var(--red); font-weight: 700; }
.creds-list li::before { content: "\2605"; position: absolute; left: 0; top: 0; color: var(--gold); }

/* Today at a Glance example */
.glance { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(18, 35, 58, 0.12); margin: 22px 0 32px; overflow: hidden; }
.glance-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; background: var(--deep); color: #fff; }
.glance-head.sub { background: var(--tint); color: var(--ink); border-top: 1px solid var(--line); }
.glance-title { font-family: var(--head); font-weight: 800; font-size: 17px; }
.glance-date { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.table-scroll { overflow-x: auto; }
.glance table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.glance th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.glance td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.glance tr:last-child td { border-bottom: 0; }
.glance .num { text-align: right; font-family: var(--mono); font-size: 14px; }
.dir { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.dir.bull { background: var(--green-soft); color: var(--green); }
.dir.bear { background: var(--red-soft); color: var(--red); }
.dir.neutral { background: var(--amber-soft); color: #7A5A1E; }
.dir.shift { background: #E6EDF5; color: var(--accent-dark); }
.nosetup { list-style: none; margin: 0; padding: 4px 18px 8px; }
.nosetup li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.nosetup li:last-child { border-bottom: 0; }
.nosetup strong { display: inline-block; min-width: 82px; }
.nosetup .dir { margin-right: 6px; }
.glance-note { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.grid3 { display: grid; gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 4px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 16px; }

/* DSC */
.dsc { display: grid; gap: 12px; margin: 18px 0; }
.dsc-step { position: relative; background: var(--deep-2); border-radius: 14px; padding: 16px 16px 4px 72px; }
.dsc-step .n { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 10px; background: var(--gold); color: var(--deep); font-family: var(--head); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.dsc-step h3 { margin-bottom: 4px; font-size: 18px; }
.dsc-step p { font-size: 16px; }
.pull { margin: 24px 0 0; padding: 18px 20px; border-left: 5px solid var(--gold); background: rgba(232, 184, 107, 0.12); font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.3; color: #fff; border-radius: 0 10px 10px 0; }

/* Fit */
.compare { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card.old { border-top: 4px solid var(--red); }
.card.new { border-top: 4px solid var(--green); }
.card ul { margin-bottom: 0; }

/* About */
.about { display: grid; gap: 20px; }
.portrait { width: 100%; max-width: 280px; border-radius: 14px; }
.creds { display: grid; gap: 16px; margin-top: 24px; }
.creds figure { margin: 0; }
.creds img { border-radius: 10px; }
.creds figcaption { font-size: 14px; color: #AEB9C7; margin-top: 8px; }

/* Plans */
.plans { display: grid; gap: 18px; margin: 22px auto 0; max-width: 880px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(47, 93, 138, 0.16); }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold-soft); color: #7A5A1E; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.plan-tag.muted { background: var(--tint); color: var(--muted); }
.price { margin: 0; font-size: 17px; color: var(--muted); }
.price .big { font-family: var(--head); font-weight: 800; font-size: 40px; color: var(--ink); margin-right: 4px; }
.then { font-size: 15px; color: var(--muted); margin: 2px 0 16px; }
.plan ul { flex: 1; font-size: 16px; }
.plan .btn { font-size: 18px; }

.timeline { max-width: 720px; margin: 30px auto 0; background: var(--tint); border-radius: 14px; padding: 20px 22px 8px; }
.timeline h3 { font-size: 18px; }
.timeline ol { margin: 0 0 12px; padding-left: 22px; font-size: 16px; }
.timeline li { margin-bottom: 8px; }
.timeline .micro { margin: 0 0 14px; max-width: none; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 18px; font-size: 16px; }

.final { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }

/* Footer */
.foot { background: var(--deep); color: #AEB9C7; padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; line-height: 1.55; }
.foot strong { color: #fff; }
.foot a { color: var(--gold); }
.foot-links { margin: 0; }
.email { user-select: all; color: #fff; }

/* Welcome page */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 4px 64px; margin-bottom: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 9px; background: var(--deep); color: var(--gold); font-family: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 16px; }

@media (min-width: 760px) {
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .hero { padding: 48px 0 36px; }
  .sec { padding: 72px 0; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .dsc { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 260px 1fr; align-items: start; }
  .creds { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .glance table { min-width: 0; }
}
.email-dark { user-select: all; font-weight: 700; color: var(--ink); }

/* Visuals */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #E6EDF5; color: var(--accent); margin-bottom: 12px; }
.ico.big { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(18, 35, 58, 0.10); margin: 0 auto 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.bear { background: var(--red-soft); color: var(--red); }
.pill.bull { background: var(--green-soft); color: var(--green); }

.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-chart { margin: 0; }
.chart-frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 22px 50px rgba(18, 35, 58, 0.18); }
.chart-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--deep); }
.chart-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.chart-label { margin-left: 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.hero-chart figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.hero-chart .pill { margin-right: 6px; }

.setup-example { display: grid; gap: 18px; margin: 0 0 32px; }
.setup-chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.setup-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.dsc-list { margin: 0 0 16px; }
.dsc-list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dsc-list dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.dsc-list dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.levels div { background: var(--tint); border-radius: 10px; padding: 8px 6px; text-align: center; }
.levels span { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.levels strong { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.levels .stop { background: var(--red-soft); }
.levels .target { background: var(--green-soft); }
.micro.left { text-align: left; margin: 0; }

.seasonal-grid { display: grid; gap: 28px; align-items: center; max-width: 1000px; }
.season-card { background: var(--deep); color: #DCE3EC; border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(18, 35, 58, 0.2); max-width: 400px; margin: 0 auto; }
.season-head { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; color: #fff; margin-bottom: 16px; }
.season-head .ico { margin: 0; background: rgba(232, 184, 107, 0.16); color: var(--gold); width: 38px; height: 38px; }
.season-day { margin-left: auto; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.season-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; margin-bottom: 14px; }
.season-row .tk { font-family: var(--mono); font-size: 15px; color: #fff; }
.season-window { display: flex; align-items: center; gap: 10px; }
.season-window .pt span { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #AEB9C7; }
.season-window .pt strong { font-size: 14px; color: #fff; }
.season-window .line { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #7FB89A); }
.season-note { margin: 14px 0 0; font-size: 13.5px; color: #AEB9C7; }

.teach { margin: 26px 0 0; }
.teach img { border-radius: 12px; }
.teach figcaption { font-size: 14px; color: #AEB9C7; margin-top: 8px; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; text-align: left; }
  .hero-copy .btn, .hero-copy .micro { margin-left: 0; }
  .hero-copy .ticks-inline { justify-content: flex-start; }
  .hero-copy h1 { margin-left: 0; font-size: 42px; }
  .hero-copy .sub { margin-left: 0; }
  .setup-example { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .seasonal-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.season-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.season-list li { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.season-list .tk { font-family: var(--mono); font-size: 14.5px; color: #fff; }
.season-list .co { font-size: 13.5px; color: #C9D3DF; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-list .win { font-size: 12.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.season-day { white-space: nowrap; }
