/* Hatch-style marketing & public pages */
.mk-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.mk-main { flex: 1; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { left: 8px; color: var(--bg); }

/* Header */
.mk-header { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: var(--z-sticky); }
.mk-header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 80px; }
.mk-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.mk-logo b { color: var(--brand); font-weight: 600; }
.mk-logo:hover { color: var(--text); }
.mk-logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--brand) 0 22%, transparent 24% 40%, var(--brand) 42% 55%, transparent 57%), var(--surface); border: 2px solid var(--brand); box-shadow: none; }
.mk-logo-sm { font-size: 1.05rem; }
.mk-nav { display: flex; gap: 2rem; flex: 1; justify-content: center; font-size: 1rem; }
.mk-nav a { color: var(--text-muted); transition: color .15s; }
.mk-nav a:hover, .mk-nav a[aria-current="page"] { color: var(--text); }
.mk-actions { display: flex; align-items: center; gap: 0.6rem; }
.mk-login { font-size: 0.95rem; font-weight: 500; color: var(--text); padding: 0 .5rem; }
.mk-login:hover { color: var(--brand); }
.mk-lang { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); padding: 0.3rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.mk-lang:hover { background: var(--surface-2); color: var(--text); }
.mk-theme { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); }
.mk-theme:hover { background: var(--surface-2); }
.mk-theme svg { position: absolute; transition: transform .25s, opacity .25s; }
.mk-theme .i-moon { opacity: 0; transform: rotate(90deg) scale(0); }
:root[data-theme="dark"] .mk-theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(0); }
:root[data-theme="dark"] .mk-theme .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mk-theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(0); }
  :root:not([data-theme="light"]) .mk-theme .i-moon { opacity: 1; transform: none; }
}

/* Mobile menu (no JS) */
.mk-menu { display: none; position: relative; }
.mk-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; min-height: 0; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: var(--bg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu summary span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.mk-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 0.5rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.mk-menu-panel a { padding: 0.75rem 0.9rem; border-radius: var(--radius-lg); font-weight: 500; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.mk-menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 960px) {
  .mk-nav, .mk-login { display: none; }
  .mk-menu { display: block; }
  .mk-header-in { height: 68px; }
}

/* Typography */
.mk-h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.05; margin-bottom: 1.25rem; font-weight: 400; }
.mk-h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; }
.c-brand { color: var(--brand); }
.c-orange { color: var(--brand-2); }
.u-dotted { color: var(--text); font-weight: 500; text-decoration: underline dotted var(--border-focus); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mk-lead { font-size: 1.1rem; line-height: 1.45; color: var(--text-muted); max-width: 60ch; margin-bottom: 1.75rem; }

/* Tags & pills */
.mk-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.tag-solid, .tag-line { font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.85rem; border-radius: var(--radius-pill); }
.tag-solid { background: var(--text); color: var(--bg); }
.tag-line { color: var(--text-muted); border: 1px solid var(--border); background: var(--surface); }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: var(--radius-pill); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-brand { background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2); margin-left: 0.4rem; }

/* Hero */
.mk-hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, var(--features-hero, #F0F0FF) 0%, var(--bg) 70%); background-image: var(--grad-hero); margin-top: -80px; padding-top: calc(80px + clamp(3rem, 7vw, 6rem)); }
.mk-hero-top { max-width: 920px; margin-bottom: 3.5rem; }
.mk-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.mk-cta .btn { min-width: 160px; }
.mk-proof { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; font-size: .9rem; color: var(--text-muted); }
.mk-proof b { color: var(--text); font-weight: 600; }

/* Lanes */
.mk-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mk-lane { padding: clamp(1.5rem, 3.5vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.mk-lane.is-coach { background: var(--surface-2); }
.lane-badge { display: inline-block; font-size: 0.78rem; font-weight: 500; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 0.25rem 0.8rem; border-radius: var(--radius-pill); margin-bottom: 1rem; }
.is-coach .lane-badge { background: var(--surface); }
.lane-badge.is-orange { color: var(--brand-2); }
.mk-lane h2 { font-size: 2.2rem; margin-bottom: 1.1rem; }
.mk-checks { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; font-size: 0.95rem; color: var(--text-muted); }
.mk-checks li { padding-left: 1.75rem; position: relative; }
.mk-checks li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.is-coach .mk-checks li::before { background-color: var(--brand-2); }
.mk-checks b { color: var(--text); font-weight: 600; }

/* Sections */
.mk-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.mk-section-alt { background: var(--surface-2); }
.mk-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.25rem; }
.mk-sec-head .mk-h2 { max-width: 20ch; }
.mk-code { font-size: 0.82rem; font-weight: 500; background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 0.45rem 1rem; border-radius: var(--radius-pill); }
.mk-code b { color: var(--brand); font-family: var(--font-mono); font-weight: 600; }

/* Board table */
.mk-board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow-x: auto; box-shadow: var(--shadow-sm); }
.mk-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
.mk-table th, .mk-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.mk-table th { background: var(--surface-2); font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.mk-table tr:last-child td { border-bottom: 0; }
.mk-table .num { font-variant-numeric: tabular-nums; }
.mk-note { font-size: 0.8rem; color: var(--text-subtle); padding: 0.85rem 1.1rem; border-top: 1px solid var(--border); }

/* Cards */
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; transition: box-shadow .2s, transform .2s; }
.mk-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.mk-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.mk-card p { color: var(--text-muted); }
.mk-card a { margin-top: auto; padding-top: 0.5rem; font-weight: 500; color: var(--text); }
.mk-card a:hover { color: var(--brand); }
.mk-card .eyebrow { margin-bottom: .2rem; }
.mk-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); margin-bottom: .4rem; }

/* Benefits list */
.mk-benefits { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; max-width: 900px; margin-bottom: 2rem; font-size: 1.05rem; }
.mk-benefits li { display: flex; gap: .75rem; align-items: flex-start; padding-block: .85rem; border-bottom: 1px solid var(--border); }
.mk-benefits li::before { content: ""; flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Split / pricing boxes */
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mk-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.mk-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.mk-box p { color: var(--text-muted); margin-bottom: 1rem; }
.mk-box-brand { background: var(--grad-card), var(--surface); position: relative; border-color: var(--text); }
.mk-price { font-size: 3.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--text); margin-bottom: 0.8rem; }
.mk-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.mk-ticks { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.95rem; }
.mk-ticks li { padding-left: 1.6rem; position: relative; }
.mk-ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.mk-badge-pop { display: inline-block; font-size: .75rem; font-weight: 500; padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); margin-bottom: .8rem; }

/* FAQ */
.mk-faq { display: grid; gap: .75rem; max-width: 860px; }
.mk-faq-item { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 0 1.25rem; }
.mk-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; min-height: 56px; }
.mk-faq-item summary::-webkit-details-marker { display: none; }
.mk-faq-item summary h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.mk-faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--text-muted); line-height: 1; transition: transform .2s; }
.mk-faq-item[open] summary::after { transform: rotate(45deg); }
.mk-faq-item p { color: var(--text-muted); padding-bottom: 1.25rem; max-width: 70ch; }
.faq-q { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .4rem; }

/* Closing CTA band */
.mk-band { text-align: left; padding-block: clamp(3.5rem, 8vw, 6rem); }
.mk-band h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 14ch; margin-bottom: 1.5rem; }

/* Footer */
.mk-footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 3.5rem; }
.mk-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.mk-footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; margin-top: 0.7rem; }
.mk-footer-col { display: flex; flex-direction: column; gap: 0.1rem; }
.mk-footer-col h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; letter-spacing: 0; }
.mk-footer-col a { color: var(--text-muted); font-size: 0.95rem; min-height: 36px; display: flex; align-items: center; }
.mk-footer-col a:hover { color: var(--text); }
.mk-copy { margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-subtle); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Inner pages (features, pricing, help, mqs, legal, auth, profile) */
.marketing-section { max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(18px, 4vw, 32px); }
.section-header { text-align: left; margin-bottom: 2.75rem; max-width: 780px; }
.section-header p { margin-left: 0 !important; margin-right: 0 !important; color: var(--text-muted); font-size: 1.1rem; }
.section-title { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.8rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.marketing-section .card { border-radius: var(--radius-xl); }
.marketing-section .card h2 { font-size: 2rem; }

@media (max-width: 960px) {
  .mk-lanes, .mk-split, .mk-grid, .mk-benefits { grid-template-columns: 1fr; }
  .mk-footer-in { grid-template-columns: 1fr 1fr; }
  .mk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mk-actions .btn-primary, .mk-lang { display: none; }
  .mk-cta .btn { width: 100%; }
}

.pricing-page .section-header { text-align: center; margin-inline: auto; }
.pricing-page .section-header p { margin-inline: auto !important; }
.card .badge { align-self: flex-start; }
.table td a { white-space: nowrap; }

/* ---- Public athlete profile (/@handle) ---- */
.pf { max-inline-size: 960px; margin-inline: auto; padding-block: 2.5rem; padding-inline: clamp(16px, 4vw, 32px); }
.pf-head { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.pf-avatar { inline-size: 120px; block-size: 120px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.pf-avatar img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.pf-initial { font-family: var(--font-body); font-size: 3.5rem; font-weight: 800; color: var(--brand); }
.pf-id { flex: 1 1 260px; min-inline-size: 0; }
.pf-name { font-family: var(--font-body); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.pf-handle { font-family: var(--font-mono); color: var(--brand); font-weight: 700; margin-block: .35rem .75rem; }
.pf-bio { margin: 0 0 .9rem; max-inline-size: 60ch; overflow-wrap: anywhere; }
.pf-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-section { margin-block-start: 2.25rem; }
.pf-section h2 { font-family: var(--font-body); font-size: 1.6rem; margin-block-end: .9rem; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.pf-card-title { font-size: 1rem; margin-block: .6rem .25rem; }
.pf-score { font-family: var(--font-body); font-size: 2.25rem; font-weight: 800; line-height: 1.1; }
.pf-sub { font-size: .85rem; color: var(--text-muted, #465068); margin-block-start: .3rem; }
.pf-mqs-event { font-weight: 700; margin-block-end: .75rem; }
.pf-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.pf-stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #465068); }
.pf-stat { font-family: var(--font-body); font-size: 2.25rem; font-weight: 800; }
.pf-foot { margin-block-start: 3rem; font-size: .85rem; color: var(--text-muted, #465068); }
