/* mako.design's own pieces, loaded after the kit (mk.css, mk-brand.css). Kit tokens only, no raw colours.
   The home's sections (hero conversation, two readers, steps, kit, questions) come from the static site's style.css. */

/* The hero's example conversation (in place of the product mark) */
.ask { display: grid; gap: var(--mk-s-2); min-width: 0; margin: 0; }
.ask figcaption { color: var(--mk-muted); font-size: 13px; text-align: center; }
.chat { display: grid; gap: var(--mk-s-3); padding: var(--mk-s-5); border: 1px solid var(--mk-edge); border-radius: 28px; background: var(--mk-glass); box-shadow: 0 30px 80px var(--mk-shade), inset 0 1px 0 var(--mk-hi); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); backdrop-filter: blur(var(--mk-blur)) saturate(170%); }
.chat-top { display: flex; align-items: center; gap: var(--mk-s-2); color: var(--mk-muted); font-size: 13px; font-weight: 650; }
.chat-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--mk-dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-dot) 25%, transparent); }
.q { justify-self: end; max-width: 88%; padding: var(--mk-s-3) var(--mk-s-4); border-radius: 20px 20px 6px 20px; color: var(--mk-on-brand); background: linear-gradient(180deg, color-mix(in srgb, var(--mk-brand) 84%, var(--mk-day-surface)), var(--mk-brand)); font-weight: 600; }
.a { max-width: 96%; min-height: 9.5em; padding: var(--mk-s-3) var(--mk-s-4); border: 1px solid var(--mk-edge); border-radius: 20px 20px 20px 6px; background: var(--mk-surface); line-height: 1.55; }
.a b { color: var(--mk-ink); font-weight: 700; }
.cite { display: inline-flex; align-items: center; gap: var(--mk-s-1); margin-top: var(--mk-s-2); padding: var(--mk-s-1) var(--mk-s-3) var(--mk-s-1) var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand); font-size: 13px; font-weight: 650; }
.cite svg { width: 16px; height: 16px; }
.cite.pop { animation: pop .6s var(--mk-e-out) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: -2px; background: var(--mk-brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* Plain glass cards in a grid */
.cards, .kit-grid, .suite { display: grid; gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; }

/* Numbered steps */
.steps { display: grid; gap: var(--mk-s-3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps .mk-card { counter-increment: step; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--mk-s-4); }
.steps .mk-card::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mk-tint); color: var(--mk-brand); font-size: 17px; font-weight: 760; font-variant-numeric: tabular-nums; }
.steps .mk-card > * { grid-column: 2; }

/* Two readers */
.lens { display: grid; gap: var(--mk-s-3); min-width: 0; }
.lens-tabs { justify-self: start; } /* the kit's segmented control (.mk-seg) */
.mock { overflow: hidden; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-surface); box-shadow: var(--mk-shadow); }
.mock-bar { display: flex; align-items: center; gap: var(--mk-s-1); padding: var(--mk-s-3) var(--mk-s-4); border-bottom: 1px solid var(--mk-line); color: var(--mk-muted); font-size: 13px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mk-line); }
.mock-bar span { margin-inline-start: var(--mk-s-2); padding: var(--mk-s-1) var(--mk-s-3); border-radius: 999px; background: var(--mk-canvas); }
.mock-body { display: grid; gap: var(--mk-s-3); padding: var(--mk-s-6); }
.mock-kicker { color: var(--mk-brand); font-weight: 650; }
.mock-h { font-size: clamp(26px, 6vw, 40px); font-weight: 780; line-height: 1.05; letter-spacing: -.035em; }
.mock-p { color: var(--mk-muted); }
.mock-row { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); margin-top: var(--mk-s-1); }
.mock-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--mk-s-4); border-radius: 14px; background: var(--mk-ink); color: var(--mk-canvas); font-weight: 650; }
.mock-btn.ghost { border: 1px solid var(--mk-line); background: transparent; color: var(--mk-ink); }
.mock-cards { display: grid; gap: var(--mk-s-2); margin-top: var(--mk-s-2); }
.mock-cards span { display: grid; gap: var(--mk-s-1); padding: var(--mk-s-3); border-radius: 16px; background: var(--mk-canvas); color: var(--mk-muted); font-size: 14px; }
.mock-cards b { color: var(--mk-ink); font-size: 19px; font-weight: 750; }
.code { margin: 0; padding: var(--mk-s-6); overflow-x: auto; border-radius: var(--mk-r-card); background: var(--mk-night-canvas); color: var(--mk-night-ink); box-shadow: var(--mk-shadow); font: 500 13.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: normal; }
.lens-note { color: var(--mk-muted); font-size: 13px; }


/* One kit */
.screens { display: flex; align-items: flex-end; justify-content: center; gap: var(--mk-s-2); height: 96px; margin-top: var(--mk-s-2); }
.screens span { display: block; border: 3px solid var(--mk-ink); border-radius: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--mk-brand) 30%, var(--mk-surface)), var(--mk-surface)); }
.s-wide { width: 38%; height: 70%; } .s-lap { width: 26%; height: 55%; } .s-tab { width: 15%; height: 50%; border-radius: 10px !important; } .s-phone { width: 8%; height: 40%; border-radius: 10px !important; }

/* Questions */
.faq { display: grid; gap: var(--mk-s-2); }
.faq details { border: 1px solid var(--mk-edge); border-radius: 20px; background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); backdrop-filter: blur(var(--mk-blur)) saturate(170%); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-4); min-height: 56px; padding: var(--mk-s-3) var(--mk-s-5); cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 680; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--mk-brand); border-bottom: 2px solid var(--mk-brand); transform: rotate(45deg) translateY(-3px); transition: transform var(--mk-m-quick) var(--mk-e-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 var(--mk-s-5) var(--mk-s-4); color: var(--mk-muted); font-size: 14.5px; line-height: 1.55; }


.cards .mk-card, .kit-grid .mk-card, .steps .mk-card { display: grid; align-content: start; gap: var(--mk-s-2); }
.cards h3, .kit-grid h3, .steps h3 { font-size: 16.5px; line-height: 1.3; }
.cards p, .kit-grid p, .steps p { color: var(--mk-muted); font-size: 14.5px; line-height: 1.55; }
.st-hero .ask { width: 100%; }
.st-family-line { margin: calc(-1 * var(--mk-s-2)) 0 var(--mk-s-3); font-size: 14px; }
.st-landing .mk-family + .mk-family { margin-top: var(--mk-s-6); }
.st-contact { padding: var(--mk-s-5); }

/* Privacy and Terms */
.st-legal { width: 100%; } /* the kit's reading width (data-mk-layout) */
.st-legal-body { display: grid; gap: var(--mk-s-3); padding: var(--mk-s-5); line-height: 1.6; -webkit-user-select: text; user-select: text; }
.st-legal-body h2 { margin-top: var(--mk-s-3); font-size: 19px; letter-spacing: -.01em; }
.st-legal-body ul { margin: 0; padding-inline-start: var(--mk-s-5); }
.st-legal-body a { color: var(--mk-brand); }
.st-lede { color: var(--mk-muted); font-size: 16px; }

/* The free tools */
.st-tool { display: grid; gap: var(--mk-gap-card); } /* the kit's list width (data-mk-layout) */
.st-tool-intro { display: grid; gap: var(--mk-s-3); justify-items: start; padding: var(--mk-s-5); }
.st-tool-line { font-size: 17px; font-weight: 650; line-height: 1.45; }
.st-form { display: grid; gap: var(--mk-s-3); width: 100%; }
.st-form .mk-field input, .st-form .mk-field textarea { width: 100%; }
.st-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-3); }
.st-left { font-size: 13.5px; }
.st-result { display: grid; gap: var(--mk-s-3); -webkit-user-select: text; user-select: text; }
.st-result .mk-card { display: grid; gap: var(--mk-s-3); padding: var(--mk-s-5); }
.st-result h3 { font-size: 16.5px; }
.st-verdict h2 { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 20px; }
.st-verdict h2 .mk-icon { width: 24px; height: 24px; color: var(--mk-brand); }
.st-verdict-unlikely h2 .mk-icon { color: var(--mk-negative); }
.st-verdict-maybe h2 .mk-icon { color: var(--mk-warn); }
.st-quote { margin: 0; padding: var(--mk-s-3) var(--mk-s-4); border-inline-start: 3px solid var(--mk-brand); border-start-end-radius: 14px; border-end-end-radius: 14px; background: var(--mk-tint); line-height: 1.55; }
.st-list { display: grid; gap: var(--mk-s-2); margin: 0; padding-inline-start: var(--mk-s-5); line-height: 1.5; }
.st-file-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.st-code { margin: 0; max-height: 60vh; padding: var(--mk-s-4); overflow: auto; border-radius: 14px; background: var(--mk-night-canvas); color: var(--mk-night-ink); font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-fine { font-size: 13px; line-height: 1.5; }
.st-fine a { color: var(--mk-brand); }

@media (min-width: 600px) {
  .cards, .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #how .steps { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .kit-card.wide { grid-column: 1 / -1; }
  .mock-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .st-hero .ask { justify-self: center; width: min(100%, 560px); }
  .kit-card.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--mk-s-6); }
  .kit-card.wide .screens { grid-column: 2; grid-row: 1 / span 2; height: 120px; margin: 0; }
  .st-contact { padding: var(--mk-s-6); }
  .st-legal, .st-tool { margin-inline: auto; width: 100%; }
}
@media (min-width: 1200px) {
  .st-result { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .st-result > :first-child, .st-result > .st-fine { grid-column: 1 / -1; }
}
@media (min-width: 1800px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
