/* home.css: the homepage's own sections (rewrite 2026-11-17). The live
   performance section, pricing and FAQ keep their styles in styles.css /
   performance.css. Colors come from the site theme (theme.js), so all five
   themes work: gold = account value / the price line, green = realized profit. */
@font-face {
    font-family: "Hanken Grotesk";
    src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body { font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }

.k-hero, .k-why, .k-steps, .k-final { max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.k-hero { padding-top: 64px; }
.k-why, .k-steps { margin-top: 104px; }
.k-final { margin: 110px auto 40px; text-align: center; }
.k-perf { max-width: 1180px; margin: 104px auto 0; padding: 0 24px; box-sizing: border-box; }

/* ---------- hero ---------- */
.k-headline { margin: 0; font-size: clamp(38px, 4.8vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.k-headline span { display: block; text-wrap: balance; }
.k-lead { margin: 26px 0 0; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text); opacity: .86; }
.k-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.k-button { display: inline-block; padding: 15px 28px; border-radius: 10px; background: var(--gold); color: #11130f; font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.k-button:hover { background: var(--gold-light); }
.k-link { font-weight: 650; font-size: 17px; color: var(--text); border-bottom: 2px solid rgba(var(--gold-rgb), .55); padding-bottom: 2px; }
.k-link:hover { border-bottom-color: var(--gold-light); }
.k-reassure { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.k-button:focus-visible, .k-link:focus-visible, .k-live:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.k-hero { padding-bottom: 8px; }
.k-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: center; }
.k-hero-side { display: grid; gap: 18px; }

/* The notification a customer gets on each sale (a real one from our account). */
.k-notice { margin: 0; }
.k-notice-card { display: grid; gap: 4px; padding: 14px 16px 15px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: #111; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.k-notice-app { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.k-notice-app img { width: 20px; height: 20px; border-radius: 5px; }
.k-notice-title { font-size: 17px; font-weight: 750; color: #111; }
.k-notice-body { font-size: 15px; color: #222; }
.k-notice figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.k-risk { margin: 22px auto 0 !important; font-size: 14px !important; max-width: 60ch !important; }
/* Live panel from the real account, beside the headline (home-live.js; hidden until it has data). */
.k-live { display: grid; gap: 16px; padding: 22px 22px 20px; border-left: 2px solid rgba(var(--green-rgb), .7); background: rgba(var(--green-rgb), .05); color: var(--text); }
.k-live:hover { background: rgba(var(--green-rgb), .09); }
.k-live[hidden] { display: none; }
.k-live-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; line-height: 1.35; }
.k-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.k-live-item { color: var(--muted); font-size: 14px; }
.k-live-item b { display: block; margin-top: 2px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.k-live-item b.gold { color: var(--gold-light); }
.k-live-item b.green { color: var(--green-light); }

/* ---------- sections ---------- */
.k-why h2, .k-steps h2, .k-final h2 { margin: 0; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; max-width: 20ch; }
.k-why h3, .k-steps h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
.k-why p, .k-steps p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 42ch; }

.k-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.k-why-grid > div { padding-top: 18px; border-top: 2px solid rgba(var(--gold-rgb), .7); }

.k-steps ol { list-style: none; counter-reset: k-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; }
.k-steps li { counter-increment: k-step; }
.k-steps li::before { content: counter(k-step); display: block; font-size: 64px; line-height: 1; font-weight: 300; letter-spacing: -.05em; color: var(--gold-light); margin-bottom: 14px; font-variant-numeric: tabular-nums; }


.k-final h2 { margin: 0 auto; }
.k-final p { margin: 16px auto 28px; font-size: 18px; color: var(--muted); max-width: 46ch; }

@media (max-width: 950px) {
    .k-hero-top { grid-template-columns: 1fr; gap: 36px; }
    .k-hero-side { max-width: 520px; }
    .k-live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .k-live-title { grid-column: 1 / -1; }
    .k-why-grid, .k-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
@media (max-width: 560px) {
    .k-hero, .k-why, .k-steps, .k-final { padding: 0 16px; }
    .k-hero { padding-top: 36px; }
    .k-why, .k-steps, .k-perf { margin-top: 72px; }
    .k-perf { padding: 0 16px; }
    .k-why-grid, .k-steps ol { grid-template-columns: 1fr; gap: 26px; }
    .k-live { grid-template-columns: 1fr 1fr; }
    .k-live-item b { font-size: 22px; }
    .k-steps li::before { font-size: 48px; }
}

/* ---------- live section: the customer dashboard's look (public/kraken/app.css) ---------- */
.k-perf-live { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.k-perf-title { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.k-perf-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; }
.k-perf-amount { font-weight: 750; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--green-light); }
.k-perf-amount.zero { color: var(--text); }
.k-perf-pct { font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--green-light); }
.k-perf-pct:empty { display: none; }
.k-perf-detail { margin: 10px 0 0; max-width: 52ch; color: var(--muted); font-size: 16px; }

.bars-card { margin-top: 22px; padding: 16px 18px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--white-line, rgba(255,255,255,.08)); }
.bars-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px); mask-image: linear-gradient(90deg, transparent 0, #000 24px); }
.bars-scroll::-webkit-scrollbar { display: none; }
.bars-scroll.at-start { -webkit-mask-image: none; mask-image: none; }
.month-bars { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: end; width: max-content; min-width: 100%; }
.month-bar { flex: 0 0 52px; display: grid; grid-template-rows: auto 84px auto; text-align: center; }
.month-bar .figure { line-height: 1.2; white-space: nowrap; padding-bottom: 4px; }
.month-bar .figure b { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.month-bar .figure span { display: block; font-size: 10.5px; color: var(--green-light); }
.month-bar .slot { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--white-line, rgba(255,255,255,.08)); }
.month-bar .column { width: 18px; border-radius: 4px 4px 0 0; background: var(--green); min-height: 2px; }
.month-bar.now .column { background: rgba(var(--green-rgb), .55); }
.month-bar.loss .column { background: #e05a4f; }
.month-bar.future .column { display: none; }
.month-bar .label { margin-top: 5px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.month-bar.now .label { color: var(--text); font-weight: 600; }
.month-bar.future .label { opacity: .55; }
@media (min-width: 960px) {
    .bars-scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .month-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: auto; gap: 6px; }
    .month-bar { grid-template-rows: auto 96px auto; }
    .month-bar .column { width: 22px; }
    .month-bar .figure b { font-size: 13px; }
    .month-bar .figure span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: no-preference) {
    .month-bars.intro .column { transform-origin: bottom; animation: k-rise .45s ease-out both; }
}
@keyframes k-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.k-perf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.k-perf-grid h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: var(--muted); }
.k-perf-worth-amount { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.k-perf-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.worth-chart { position: relative; height: 112px; margin: 18px 0 26px; }
.worth-line { position: absolute; left: 0; top: 8px; width: 100%; height: 76px; overflow: visible; }
.worth-dots { position: absolute; inset: 8px 0 0 0; height: 76px; }
.worth-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold-light); box-sizing: border-box; }
.worth-dot.now { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .18); }
.worth-month { position: absolute; top: 96px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.worth-month.future { opacity: .4; }
.worth-base { stroke: var(--white-line, rgba(255,255,255,.12)); stroke-width: 1; }
.worth-tag { position: absolute; transform: translate(12px, -50%); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-light); white-space: nowrap; }
.worth-tag.left { transform: translate(calc(-100% - 12px), -50%); }
.sale-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sale { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--white-line, rgba(255,255,255,.08)); }
.sale:last-child { border-bottom: 1px solid var(--white-line, rgba(255,255,255,.08)); }
.sale-what { font-weight: 600; }
.sale-profit { font-size: 15px; font-weight: 700; color: var(--green-light); text-align: right; }
.sale-profit.loss { color: #e05a4f; }
.sale-when { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.k-perf .price-ticker { margin-top: 44px; }
.k-perf-fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); max-width: 90ch; }
@media (max-width: 860px) { .k-perf-grid { grid-template-columns: 1fr; gap: 36px; } }
