/*
 * Homepage — site/assets/home.css
 *
 * Only the homepage loads this file, on top of ui.css (same ink / paper / stone / line / mute / accent values). Everything is scoped to .hp, so no other
 * page changes. The "screens" in the page are plain HTML and CSS (no images, no scripts): they stay sharp on every screen and cost nothing to load.
 * The product / helpdesk switch is CSS-only (radio buttons), so it works without JavaScript.
 */
.hp {
  --hp-peach: #f8e6dc; --hp-sand: #f1e9db; --hp-sage: #e4ede4; --hp-sky: #e3ebf3; --hp-rose: #f6e2e4;
  --hp-ok: #2f7d52; --hp-card: #ffffff;
  --hp-shadow: 0 1px 2px rgba(12, 10, 9, .05), 0 22px 50px -20px rgba(12, 10, 9, .28);
  --hp-shadow-sm: 0 1px 2px rgba(12, 10, 9, .06), 0 8px 22px -12px rgba(12, 10, 9, .25);
  overflow-x: clip;
}
.hp .h-wrap { max-width: 1200px; }
.hp h1, .hp h2 { font-weight: 500; }
.hp h2 { letter-spacing: -.035em; }
.hp-hl { color: var(--accent); }
.hp-sec { padding: 104px 0; }
.hp-sec.tint { background: var(--stone); }
.hp-sec.dark { background: var(--ink); color: var(--paper); }
.hp-sec.dark h2, .hp-sec.dark h3 { color: var(--paper); }
.hp-sec.dark .h-lead, .hp-sec.dark p { color: rgba(253, 252, 252, .72); }
.hp-center { text-align: center; }
.hp-center .h-lead { margin-left: auto; margin-right: auto; }
.hp-kicker { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.hp-sec.dark .hp-kicker { color: rgba(253, 252, 252, .6); }
.hp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.hp-link:hover { color: var(--accent); border-color: var(--accent); }

/* ───────────────────────── hero ───────────────────────── */
.hp-hero { padding: 148px 0 0; text-align: center; }
.hp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .86rem; color: var(--mute); text-decoration: none; margin-bottom: 30px; }
.hp-badge b { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 500; letter-spacing: .02em; }
.hp-badge:hover { border-color: var(--mute); color: var(--ink); }
.hp-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; max-width: 980px; margin: 0 auto; }
.hp-hero .h-lead { max-width: 640px; margin: 28px auto 0; font-size: 1.22rem; }
.hp-hero .h-cta { justify-content: center; margin-top: 36px; }
.hp-hero .h-note { margin-top: 16px; }
.hp-stage { position: relative; max-width: 1120px; margin: 64px auto 0; border-radius: 32px 32px 0 0; padding: 52px 52px 0; min-height: 520px; overflow: hidden;
  background: radial-gradient(900px 420px at 12% 0%, var(--hp-peach), transparent 70%), radial-gradient(800px 460px at 100% 100%, var(--hp-sky), transparent 70%), var(--hp-sand); text-align: left; }

/* ───────────────────────── mock screens ───────────────────────── */
.mk-win { background: var(--hp-card); border: 1px solid rgba(12, 10, 9, .08); border-radius: 16px 16px 0 0; box-shadow: var(--hp-shadow); overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mk-bar span { margin-left: 10px; font-size: 12px; color: var(--mute); }
.mk-stagewin { margin-right: 276px; }
.mk-inbox { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 392px; }
.mk-list { border-right: 1px solid var(--line); padding: 10px 8px; background: var(--paper); }
.mk-list h4 { margin: 4px 8px 10px; font: 600 12px var(--font-body); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.mk-row { display: flex; gap: 9px; padding: 9px 8px; border-radius: 10px; align-items: flex-start; }
.mk-row.on { background: var(--stone); }
.mk-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink); }
.mk-av.a { background: var(--hp-peach); } .mk-av.b { background: var(--hp-sage); } .mk-av.c { background: var(--hp-sky); } .mk-av.d { background: var(--hp-rose); } .mk-av.ai { background: var(--ink); color: var(--paper); }
.mk-row b { display: block; font-weight: 600; font-size: 12.5px; }
.mk-row small { display: block; color: var(--mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mk-row em { font-style: normal; margin-left: auto; font-size: 10.5px; color: var(--mute); flex: none; }
.mk-thread { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-th-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mk-th-head b { font-size: 14px; font-weight: 600; }
.mk-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: var(--stone); }
.mk-msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.mk-msg.cu { border-bottom-left-radius: 4px; }
.mk-msg .who { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin-bottom: 2px; }
.mk-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: rgba(253, 252, 252, .14); font-size: 11px; }
.mk-note { align-self: stretch; background: #fff8e1; border: 1px dashed #e7d28a; color: #6b5a14; border-radius: 10px; padding: 8px 11px; font-size: 12px; }
.mk-compose { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; color: var(--mute); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-compose u { text-decoration: none; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 4px 11px; font-size: 12px; }
.mk-tag { padding: 2px 9px; border-radius: 999px; background: var(--stone); font-size: 11px; color: var(--ink); border: 1px solid var(--line); }
.mk-tag.hot { background: var(--hp-peach); border-color: transparent; }
.mk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--hp-sage); color: #1f5a3a; }
.mk-pill.warn { background: var(--hp-peach); color: #8a3a1d; }
.mk-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.mk-widget { position: absolute; right: 36px; bottom: 0; width: 318px; background: var(--hp-card); border: 1px solid rgba(12, 10, 9, .08); border-radius: 20px 20px 0 0; box-shadow: var(--hp-shadow); overflow: hidden; font-size: 13px; line-height: 1.45; z-index: 2; }
.mk-w-head { background: var(--ink); color: var(--paper); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.mk-w-head b { font-weight: 600; font-size: 14px; display: block; }
.mk-w-head small { font-size: 11.5px; opacity: .7; display: block; }
.mk-w-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--paper); min-height: 250px; }
.mk-w-body .mk-msg { max-width: 88%; }
.mk-w-body .mk-msg.me { background: var(--accent); color: #fff; }
.mk-w-body .mk-msg.ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mk-w-body .mk-src { background: var(--stone); color: var(--mute); }
.mk-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-quick span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12px; }
.mk-float { position: absolute; z-index: 3; background: var(--hp-card); border: 1px solid rgba(12, 10, 9, .08); box-shadow: var(--hp-shadow-sm); border-radius: 14px; padding: 10px 13px; font-size: 12.5px; display: flex; align-items: center; gap: 9px; }
.mk-float b { font-weight: 600; display: block; }
.mk-float small { color: var(--mute); display: block; font-size: 11.5px; }
.mk-float .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--hp-sage); color: var(--hp-ok); flex: none; }
.mk-float .ico svg { width: 15px; height: 15px; }
.mk-float.f1 { left: 24px; bottom: 44px; }
.mk-float.f2 { right: 322px; top: 26px; }
.hp-fig-note { font-size: .78rem; color: var(--mute); margin: 14px 0 0; text-align: center; }

/* ───────────────────────── channels strip ───────────────────────── */
.hp-strip { padding: 56px 0 8px; text-align: center; }
.hp-strip p { margin: 0 0 22px; color: var(--mute); font-size: .95rem; }
.hp-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hp-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 500; font-size: .92rem; }
.hp-chip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ───────────────────────── two products, one experience (tabs) ───────────────────────── */
.hp-tabset > input { position: absolute; opacity: 0; pointer-events: none; }
.hp-tablist { display: flex; justify-content: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); width: max-content; max-width: 100%; margin: 34px auto 48px; }
.hp-tablist label { padding: 10px 24px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--mute); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.hp-tabset > input:nth-of-type(1):checked ~ .hp-tablist label:nth-child(1),
.hp-tabset > input:nth-of-type(2):checked ~ .hp-tablist label:nth-child(2) { background: var(--ink); color: var(--paper); }
.hp-tabset > input:focus-visible ~ .hp-tablist { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp-pane { display: none; }
.hp-tabset > input:nth-of-type(1):checked ~ .hp-panes .hp-pane:nth-child(1),
.hp-tabset > input:nth-of-type(2):checked ~ .hp-panes .hp-pane:nth-child(2) { display: grid; }
.hp-pane { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hp-pane h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.hp-pane > div > p { color: var(--mute); margin: 18px 0 0; font-size: 1.05rem; }
.hp-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.hp-ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; }
.hp-ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--hp-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232f7d52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hp-art { border-radius: 28px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 420px; position: relative; overflow: hidden; }
.hp-art.peach { background: linear-gradient(145deg, var(--hp-peach), var(--hp-sand)); }
.hp-art.sky { background: linear-gradient(145deg, var(--hp-sky), var(--hp-sage)); }
.hp-art.sage { background: linear-gradient(145deg, var(--hp-sage), var(--hp-sand)); }
.hp-art.rose { background: linear-gradient(145deg, var(--hp-rose), var(--hp-peach)); }
.hp-card { background: var(--hp-card); border: 1px solid rgba(12, 10, 9, .08); border-radius: 18px; box-shadow: var(--hp-shadow); width: 100%; max-width: 440px; padding: 18px; font-size: 13px; line-height: 1.45; position: relative; }
.hp-card + .hp-card { margin-top: 14px; }
.hp-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 440px; }
.hp-stack .hp-card { max-width: none; margin: 0; }
.hp-card .mk-msg { max-width: 90%; }
.hp-card h5 { margin: 0 0 8px; font: 600 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.hp-bar { height: 8px; border-radius: 99px; background: var(--stone); overflow: hidden; margin: 6px 0 12px; }
.hp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.hp-bar i.acc { background: var(--accent); }
.hp-res { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.hp-res:first-of-type { border-top: 0; }
.hp-res svg { width: 18px; height: 18px; color: var(--mute); flex: none; margin-top: 2px; }
.hp-res b { display: block; font-weight: 600; font-size: 13.5px; }
.hp-res small { color: var(--mute); font-size: 12px; }
.hp-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; margin-bottom: 8px; background: var(--paper); font-size: 13.5px; }
.hp-search svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.hp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hp-stat b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.hp-stat span { font-size: 11.5px; color: var(--mute); }

/* ───────────────────────── alternating feature rows ───────────────────────── */
.hp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 56px 0; }
.hp-row.rev .hp-copy { order: 2; }
.hp-row h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.hp-row .hp-copy > p { color: var(--mute); margin: 18px 0 0; font-size: 1.05rem; max-width: 520px; }

/* ───────────────────────── toolbox cards ───────────────────────── */
.hp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hp-tile:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow-sm); border-color: var(--mute); }
.hp-tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; color: var(--ink); }
.hp-tile .ico svg { width: 21px; height: 21px; }
.hp-tile:nth-child(4n+1) .ico { background: var(--hp-peach); } .hp-tile:nth-child(4n+2) .ico { background: var(--hp-sky); }
.hp-tile:nth-child(4n+3) .ico { background: var(--hp-sage); } .hp-tile:nth-child(4n+4) .ico { background: var(--hp-rose); }
.hp-tile h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.hp-tile p { margin: 0; color: var(--mute); font-size: .94rem; line-height: 1.55; }
.hp-tile small { display: inline-block; margin-top: 14px; font-size: .74rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* ───────────────────────── how it works (dark) ───────────────────────── */
.hp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.hp-how > div { background: rgba(253, 252, 252, .06); border: 1px solid rgba(253, 252, 252, .12); border-radius: 22px; padding: 30px 28px 32px; }
.hp-how .no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 24px; }
.hp-how h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.hp-how p { margin: 0; font-size: .98rem; }
.hp-code { margin-top: 18px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(253, 252, 252, .12); border-radius: 12px; padding: 13px 14px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #f4e7d9; white-space: pre-wrap; word-break: break-all; }
.hp-code em { font-style: normal; color: #ffb48f; }

/* ───────────────────────── control and trust ───────────────────────── */
.hp-trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.hp-trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-trust-list > div { border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 24px; background: var(--paper); }
.hp-trust-list h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.hp-trust-list p { margin: 0; color: var(--mute); font-size: .93rem; line-height: 1.55; }

/* ───────────────────────── developers ───────────────────────── */
.hp-dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.hp-dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-dev-grid div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; font-weight: 500; font-size: .94rem; display: flex; flex-direction: column; gap: 10px; }
.hp-dev-grid svg { width: 22px; height: 22px; color: var(--accent); }
.hp-dev-grid small { font-weight: 400; color: var(--mute); font-size: .8rem; line-height: 1.4; }
.hp-dev-grid a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.hp-dev-grid a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ───────────────────────── pricing ───────────────────────── */
.hp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 52px; text-align: left; }
.hp-plan { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; }
.hp-plan h3 { font-size: 1.1rem; font-weight: 600; }
.hp-price { margin: 16px 0 4px; font-size: 2.5rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.hp-price small { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.hp-plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; font-size: .93rem; color: var(--mute); }
.hp-plan li { padding-left: 24px; position: relative; }
.hp-plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--hp-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232f7d52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hp-plan li b { color: var(--ink); font-weight: 600; }
.hp-plan .h-btn { margin-top: auto; width: 100%; }

/* ───────────────────────── final call ───────────────────────── */
.hp .h-band h2 { font-weight: 500; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1100px) {
  .mk-stagewin { margin-right: 236px; }
  .mk-inbox { grid-template-columns: 200px minmax(0, 1fr); }
  .hp-cards, .hp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-float.f2 { display: none; }
}
@media (max-width: 980px) {
  .hp-pane, .hp-row, .hp-trust, .hp-dev { grid-template-columns: 1fr; gap: 36px; }
  .hp-row.rev .hp-copy { order: 0; }
  .hp-row { padding: 36px 0; }
  .hp-how { grid-template-columns: 1fr; }
  .hp-stage { padding: 28px 22px 0; min-height: 0; }
  .mk-stagewin { margin-right: 0; }
  .mk-widget { position: relative; right: auto; bottom: auto; width: auto; max-width: 340px; margin: -70px 0 0 auto; border-radius: 20px 20px 0 0; }
  .mk-inbox { min-height: 0; }
  .mk-float.f1 { display: none; }
}
@media (max-width: 768px) {
  .hp-sec { padding: 68px 0; }
  .hp-hero { padding-top: 112px; }
  .hp-hero .h-lead { font-size: 1.08rem; }
  .hp-stage { margin-top: 44px; border-radius: 24px 24px 0 0; padding: 18px 14px 0; }
  .mk-inbox { grid-template-columns: 1fr; }
  .mk-list { display: none; }
  .mk-widget { max-width: none; margin: -50px 6px 0 40px; }
  .hp-tablist { margin: 26px auto 34px; }
  .hp-tablist label { padding: 9px 16px; font-size: .88rem; }
  .hp-art { padding: 22px 16px; min-height: 0; border-radius: 22px; }
  .hp-cards, .hp-plans, .hp-trust-list, .hp-dev-grid { grid-template-columns: 1fr; }
  .hp-hero .h-cta .h-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hp-tile, .hp-tablist label { transition: none; } .hp-tile:hover { transform: none; } }
