/* PuttKeep marketing site (/courses/, /courses/terms/, /courses/thanks/). Loaded after app.css. */
.mk { --cream: #fbfaf7; --line2: #ece8df; --ink-soft: #3b4658; background: var(--cream); color: var(--ink); overflow-x: hidden; }
.mk .wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.mk h1, .mk h2, .mk h3 { font-family: var(--font-display); letter-spacing: -.02em; }
.mk .eyebrow { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.mk .btn-lg { padding: 0 22px; }

/* nav */
.mk-nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 247, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-nav.scrolled { border-bottom-color: var(--line2); }
.mk-nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.mk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.mk-brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: var(--shadow); }
.mk-brand span { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.mk-links { display: none; gap: 4px; margin-left: auto; }
.mk-links a { padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 700; font-size: 15px; text-decoration: none; }
.mk-links a:hover { background: #fff; color: var(--ink); }
.mk-nav .btn { margin-left: auto; min-height: 42px; padding: 0 16px; font-size: 15px; white-space: nowrap; }

/* hero */
.mk-hero { padding-top: 26px; padding-bottom: 46px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; overflow-x: clip; }
.mk-hero > * { min-width: 0; }
.mk-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 10.5vw, 66px); overflow-wrap: break-word; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.mk-hero h1 em { font-style: normal; color: var(--brand-ink); }
.mk-hero .lead { margin: 0 0 24px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); max-width: 33em; }
.mk-offer { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 750; font-size: 14px; color: var(--ink-soft); }
.mk-offer b { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 4px 11px; font-weight: 800; }
.mk-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-what { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.mk-what b { color: var(--brand-ink); }
.mk-play { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.mk-play a { font-weight: 750; color: var(--brand-ink); }
.mk-then { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.mk-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.mk-trust li { display: flex; align-items: center; gap: 7px; }
.mk-trust li::before { content: "\2713"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 900; }
.mk-visual { position: relative; display: flex; justify-content: center; gap: 14px; padding: 0 6px 30px; }
.mk-visual::before { content: ""; position: absolute; inset: 8% 4% 0; border-radius: 40px; background: radial-gradient(closest-side, var(--brand-soft), transparent); z-index: 0; }
.phone { position: relative; z-index: 1; width: min(230px, 41vw); border-radius: 34px; padding: 9px; background: #0f172a; box-shadow: 0 30px 60px -24px rgba(15,23,42,.55); flex: none; }
.phone img { width: 100%; height: auto; border-radius: 26px; display: block; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; background: #fff; }
.phone.tilt { transform: translateY(28px) rotate(3deg); }

/* sections */
.mk-sec { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line2); scroll-margin-top: 64px; }
.mk-sec > .wrap > h2, .mk-sec h2.h { margin: 0 0 10px; font-size: clamp(28px, 7vw, 42px); line-height: 1.06; font-weight: 900; }
.mk-sec .sub { margin: 0 0 30px; color: var(--muted); font-size: 18px; max-width: 38em; }
/* Ambassador placeholder: a short note, not a full section */
.mk-sec.mk-amb { padding-top: 40px; padding-bottom: 40px; }
.mk-amb > .wrap > h2 { font-size: clamp(22px, 5.5vw, 30px); }
.mk-amb .sub { margin-bottom: 0; }
.mk-alt { background: #fff; }

.steps { display: grid; gap: 14px; counter-reset: s; }
.step-card { position: relative; background: #fff; border-radius: 20px; padding: 22px 22px 22px 76px; box-shadow: var(--shadow); }
.mk-alt .step-card { background: var(--cream); box-shadow: none; border: 1px solid var(--line2); }
.step-card::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.step-card h3 { margin: 0 0 6px; font-size: 19px; }
.step-card p { margin: 0; color: var(--ink-soft); }
.mk-note { margin: 22px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }

.demo { display: grid; gap: 24px; align-items: center; background: #0f172a; color: #e2e8f0; border-radius: 28px; padding: 26px; overflow: hidden; position: relative; }
.demo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(18,133,90,.35); filter: blur(10px); }
.demo > * { position: relative; z-index: 1; }
.demo h2 { color: #fff; margin: 0 0 10px; font-size: clamp(28px, 7vw, 40px); font-weight: 900; }
.demo p { margin: 0 0 18px; color: #cbd5e1; font-size: 17px; }
.demo-qr { width: 220px; height: 220px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 5px var(--brand); }
.demo-qr svg { width: 100%; height: 100%; }
.demo .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.demo-url { margin: 14px 0 0 !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: #94a3b8 !important; word-break: break-all; }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); font-size: 22px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.paper { display: grid; gap: 30px; align-items: center; }
.paper ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.paper li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--ink-soft); }
.paper li::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-weight: 900; font-size: 14px; margin-top: 1px; }
.paper blockquote { margin: 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-softer); border-radius: 0 16px 16px 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.3; }
.paper-art { position: relative; display: flex; justify-content: center; }
.paper-art img { width: min(100%, 360px); height: auto; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(15,23,42,.5), 0 0 0 1px var(--line2); transform: rotate(-2deg); background: #fff; }

/* pricing */
.price-grid { display: grid; gap: 18px; }
.plan { background: #0f172a; color: #e2e8f0; border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { margin: 0; color: #fff; font-size: 20px; }
.plan .amt { font-family: var(--font-display); font-size: 72px; font-weight: 900; letter-spacing: -.045em; line-height: .95; color: #fff; }
.plan .amt small { font-size: 18px; letter-spacing: 0; font-weight: 700; color: #94a3b8; margin-left: 6px; }
.plan .per { margin: -8px 0 0; color: #94a3b8; font-weight: 700; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "\2713"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: 900; margin-top: 1px; }
.plan .btn { margin-top: 4px; }
.plan .mk-then { margin: -8px 0 0; color: #cbd5e1; text-align: center; }
.terms { background: #fff; border-radius: 28px; padding: 8px 22px; box-shadow: var(--shadow); }
.terms h3 { margin: 18px 0 4px; font-size: 18px; }
.trow { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.trow:first-of-type { border-top: 0; }
.trow .k { font-weight: 800; }
.trow .v { font-family: var(--font-display); font-weight: 900; font-size: 19px; white-space: nowrap; color: var(--brand-ink); text-align: right; }
.trow .d { grid-column: 1 / -1; color: var(--ink-soft); font-size: 15px; }
.extras-note { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.mk-summary { margin: 22px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--brand-softer); color: var(--ink); font-weight: 650; font-size: 16px; }
.mk-terms-link { margin: 14px 0 0; font-size: 15px; }
.mk-terms-link a { font-weight: 800; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border-radius: 18px; padding: 2px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* contact */
.contact { display: grid; gap: 26px; }
.contact-copy p { color: var(--ink-soft); font-size: 17px; margin: 0 0 12px; }
.contact-copy ol { margin: 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; }
.form-card { background: #fff; border-radius: 26px; padding: 24px 20px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 0 14px; }
.form-card textarea.input { min-height: 120px; resize: vertical; }
.form-card select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.form-card .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.signup-terms { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f8f4; border: 1px solid #cfe5d8; }
.signup-terms p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.signup-terms p:last-child { margin-bottom: 0; }
.signup-terms b { color: var(--ink); }
.intent { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; min-width: 0; }
.intent legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.intent .choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; }
.intent .choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.keep-terms .kt-big { font-size: 17px; line-height: 1.35; color: var(--ink); }
.keep-terms .agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.keep-terms .agree input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.contact-copy .keep-hint { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mk-foot { border-top: 1px solid var(--line2); padding-top: 34px; padding-bottom: 46px; color: var(--muted); font-size: 14px; }
.mk-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.mk-foot nav { display: flex; flex-wrap: wrap; gap: 0 10px; }
.mk-foot a { color: var(--ink-soft); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.mk-foot a:hover { text-decoration: underline; }

/* thanks */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 30px 20px; }
.thanks .card { max-width: 480px; padding: 34px 26px; }
.thanks h1 { margin: 6px 0 10px; font-size: 30px; }

/* terms sheet and privacy policy (screen + printed Letter pages) */
.tsheet { max-width: 8.5in; margin: 24px auto 40px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: .55in .6in; }
.tsheet header { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 3px solid var(--brand); margin-bottom: 14px; }
.tsheet header img { width: 46px; height: 46px; border-radius: 13px; }
.tsheet h1 { margin: 0; font-size: 26px; line-height: 1.1; }
.tsheet h1 small { display: block; font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.tsheet h2 { font-size: 16px; margin: 14px 0 4px; color: var(--brand-ink); }
.tsheet p, .tsheet li { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tsheet ul, .tsheet ol { margin: 0 0 4px; padding-left: 20px; }
.tsheet a { overflow-wrap: anywhere; }
.tsheet .legal-caps strong { color: var(--ink); font-weight: 800; letter-spacing: .005em; }
.tsheet h2 { break-after: avoid; page-break-after: avoid; }
.tsheet p, .tsheet li { orphans: 2; widows: 2; }
.tsheet .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.tsheet .bar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }
.tsheet .t-sub { margin: 14px 0 6px; padding: 10px 14px 8px; border: 2px solid var(--brand); border-radius: 12px; background: #f3f8f4; }
.tsheet .t-sub h2 { margin-top: 0; font-weight: 900; }
.tsheet .t-sub p { color: var(--ink); }
.tsheet .t-archived { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff6df; border: 1px solid #e8c873; font-size: 14px; color: var(--ink); }
@media (max-width: 600px) { .tsheet { padding: 22px 18px; margin-top: 12px; border-radius: 14px; } }
@media print {
  .mk { background: #fff !important; }
  .mk-nav, .mk-foot, .tsheet .bar { display: none !important; }
  .tsheet { margin: 0; padding: 0; box-shadow: none; border-radius: 0; max-width: none; }
  .tsheet h2 { margin-top: 10px; }
  .tsheet .t-sub { background: #fff; break-inside: avoid; page-break-inside: avoid; }
  .tsheet p, .tsheet li { font-size: 12.5px; line-height: 1.38; }
  @page { size: letter; margin: .45in .6in; }
}

@media (min-width: 760px) {
  .mk-links { display: flex; }
  .mk-nav .btn { margin-left: 8px; }
  .mk-hero { grid-template-columns: 1.08fr .92fr; padding-top: 48px; padding-bottom: 80px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .demo { grid-template-columns: 1fr 260px; padding: 44px; }
  .demo-qr { width: 250px; height: 250px; }
  .paper { grid-template-columns: 1.1fr .9fr; }
  .price-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .plan { padding: 36px 32px; position: sticky; top: 84px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .terms { padding: 10px 30px; }
  .contact { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-card { padding: 32px; }
  .mk-sec { padding-top: 88px; padding-bottom: 88px; }
  .mk-sec.mk-amb { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 420px) {
  .phone { width: 168px; border-radius: 26px; padding: 7px; }
  .phone img { border-radius: 20px; }
  .demo { padding: 24px 20px; border-radius: 24px; }
}
.contact-copy .contact-email { margin-top: 16px; }
.contact-email a, [data-contact-link] { font-weight: 700; overflow-wrap: anywhere; }

/* Ambassador page and dashboards */
.amb-page .amb-lead { font-size: 1.05rem; }
.amb-apply { margin: 22px 0 28px; }
.amb-terms h2 { margin-top: 28px; }
.amb-terms h3 { font-size: 1rem; margin: 18px 0 6px; }
.amb-dash .ref-link code { display: block; padding: 12px 14px; border-radius: 12px; background: #eef7f1; word-break: break-all; font-size: .95rem; }
.amb-dash .tterms { width: 100%; table-layout: auto; }
.amb-dash .amb-money th { text-align: left; font-weight: 600; }
.amb-dash .amb-money td { text-align: right; font-weight: 700; white-space: nowrap; width: 1%; }
.amb-dash .amb-next { margin: 12px 0; }
.cancel-terms { border-color: #e5e7eb; background: #f8fafc; }
.amb-party { margin: 10px 0 6px; }
