/* HumanTyper site — shared styles */
:root {
  --accent: #0a84ff; --accent-dark: #0060df; --ink: #1d1d1f; --muted: #6e6e73;
  --bg: #ffffff; --panel: #f5f5f7; --line: #e3e3e8; --good: #30a14a;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       color: var(--ink); background: var(--bg); line-height: 1.55; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }
.disabled-link { opacity: .55; }

header.site { position: sticky; top: 0; background: rgba(255,255,255,.86);
              backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.ver { font-size: 11px; font-weight: 700; color: var(--good); background: rgba(48,161,74,.12);
       padding: 2px 8px; border-radius: 99px; }
header.site nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
header.site nav a:hover { color: var(--ink); }

.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none;
       font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 8px 14px; font-size: 13.5px; }

.hero { padding: 64px 0 24px; text-align: center;
        background-image: radial-gradient(circle, rgba(10,132,255,.055) 1.2px, transparent 1.3px);
        background-size: 22px 22px; }
.eyebrow { display: inline-block; font-family: "SF Mono", ui-monospace, Menlo, monospace;
           font-size: 12px; font-weight: 700; letter-spacing: .06em;
           text-transform: uppercase; color: var(--accent); background: rgba(10,132,255,.10);
           padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.02em; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 18px; }
.hero .ctas { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.specline { margin-top: 16px; font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }
.specline b { color: var(--ink); font-weight: 600; }
.specline .dot { color: var(--accent); margin: 0 10px; }
kbd { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px;
  background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 7px; color: var(--ink); white-space: nowrap; }
.shot { display: block; width: min(820px, 100%); margin: 34px auto 0;
        border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: 0 20px 60px rgba(0,0,0,.10); }

/* ---- Live app-window mockup (real text — always sharp) ---- */
.appwin { max-width: 760px; margin: 34px auto 0; text-align: left;
          background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
          box-shadow: 0 24px 70px rgba(0,0,0,.14); overflow: hidden;
          font-size: 13px; }
.appwin.dark { background: #1e1e22; border-color: #333338; color: #e8e8ea; }
.appwin .chrome { display: flex; gap: 8px; padding: 10px 14px; }
.appwin .chrome i { width: 12px; height: 12px; border-radius: 50%; }
.appwin .chrome i:nth-child(1) { background: #ff5f57; }
.appwin .chrome i:nth-child(2) { background: #febc2e; }
.appwin .chrome i:nth-child(3) { background: #28c840; }
.appwin .titlebar { display: flex; align-items: center; gap: 8px;
                    padding: 2px 16px 12px; }
.appwin .titlebar .name { font-weight: 700; font-size: 15px; }
.appwin .titlebar .spacer { flex: 1; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
        background: var(--panel); color: var(--muted); }
.pill.ready { color: var(--accent); background: rgba(10,132,255,.10); }
.pill.typing { color: var(--good); background: rgba(48,161,74,.12); }
.appwin .editor { margin: 0 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; min-height: 132px; }
.appwin.dark .editor { background: #2a2a2f; border-color: #3a3a40; }
.appwin .editor pre { margin: 0; font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  color: var(--ink); min-height: 108px; }
.appwin.dark .editor pre { color: #e8e8ea; }
.appwin .editor .caret { display: inline-block; width: 2px; height: 14px;
  background: var(--accent); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.appwin .foot { display: flex; gap: 8px; align-items: center; padding: 10px 16px 14px;
  font-size: 12px; color: var(--muted); }
.mbtn { padding: 5px 14px; border-radius: 7px; font-weight: 600; font-size: 12.5px;
  background: var(--panel); color: var(--muted); }
.mbtn.go { background: var(--accent); color: #fff; }
.mbtn.stop { background: var(--panel); color: var(--ink); }
.appwin.dark .mbtn { background: #333338; color: #a8a8ad; }
.appwin.dark .mbtn.go { background: var(--accent); color: #fff; }
.appwin .counter { margin-left: auto; font-variant-numeric: tabular-nums; }

.appwin .sliders { padding: 4px 16px 10px; display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 62px 1fr 52px; gap: 10px;
        align-items: center; font-size: 12px; color: var(--muted); }
.srow .lbl { color: var(--ink); }
.srow .val { text-align: right; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 4px; border-radius: 99px; background: #d9d9de; }
.appwin.dark .track { background: #3f3f45; }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px;
  background: var(--accent); }
.track .knob { position: absolute; top: 50%; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  transform: translate(-50%, -50%); }
.chips { display: flex; gap: 8px; padding: 10px 16px 2px; }
.chip { font-size: 11.5px; padding: 4px 12px; border-radius: 99px;
  background: var(--panel); color: var(--muted); }
.chip.on { color: var(--accent); background: rgba(10,132,255,.10);
  box-shadow: inset 0 0 0 1px rgba(10,132,255,.5); font-weight: 600; }
.appwin .realism { padding: 8px 16px 12px; display: grid; gap: 6px; font-size: 12.5px; }
.appwin .realism .row { display: flex; gap: 8px; align-items: center; }
.sw { width: 26px; height: 16px; border-radius: 99px; background: #d9d9de; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; }
.sw.on { background: var(--accent); }
.sw.on::after { left: 12px; }
.sw.locked { opacity: .45; }
.appwin .prohead { font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--muted); margin-top: 4px; }
.progressstrip { height: 4px; background: rgba(120,120,128,.2); position: relative; }
.progressstrip .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent);
  transition: width .4s ease; }
.appwin.dark .progressstrip .fill { background: var(--accent); }
.paused .progressstrip .fill { background: #ff9f0a; }

/* menu-bar panel mockup */
.menubar-mock { max-width: 308px; margin: 0 auto; background: #f6f6f8;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 12px; font-size: 12px; text-align: left; }
.menubar-mock .row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.menubar-mock .row .name { font-weight: 700; }
.menubar-mock .row .spacer { flex: 1; }
.menubar-mock .btns { display: flex; gap: 6px; margin-top: 10px; }
.menubar-mock .btns .mbtn { flex: 1; text-align: center; }
.menubar-mock .track { margin: 8px 0 6px; }
@media (prefers-reduced-motion: reduce) {
  .appwin .editor .caret { animation: none; }
}

#demo-slot { margin-top: 34px; }
.demo-placeholder { display: grid; place-items: center; min-height: 320px;
  background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 12px,
              #ececf1 12px, #ececf1 24px); border: 1.5px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); font-size: 14.5px; padding: 20px; }

section { padding: 56px 0; }
section h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.01em; text-align: center; }
section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 22px;
        transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico { font-size: 24px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px;
         counter-reset: step; }
.step { text-align: center; padding: 10px 14px; }
.step::before { counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

.shots2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 34px; align-items: start; }
.shots2 img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.shots2 img.panel { max-width: 308px; justify-self: center; width: 100%; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 34px auto 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 12px 40px rgba(10,132,255,.12); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff;
             font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h3 { font-size: 18px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; font-size: 15px; margin-left: 6px; }
.plan ul { list-style: none; margin: 14px 0 20px; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 14.5px; color: #3c3c40; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—"; color: var(--muted); }
.plan .note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.quote { background: var(--panel); border-radius: var(--radius); padding: 20px; font-size: 14.5px; }
.quote .who { margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }

.newsletter { text-align: center; padding: 46px 22px; background: var(--panel);
              border-radius: var(--radius); margin: 34px auto 0; max-width: 720px; }
.newsletter h3 { font-size: 20px; margin-bottom: 6px; }
.newsletter p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter input[type=email] { padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; min-width: 260px; font-family: inherit; }

.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.policy h3 { margin-top: 22px; font-size: 16px; }
.policy p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.policy .wrap { max-width: 760px; }

.log { max-width: 760px; margin: 34px auto 0; }
.release { border-left: 3px solid var(--line); padding: 4px 0 26px 22px; position: relative; }
.release::before { content: ""; position: absolute; left: -8px; top: 8px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent); }
.release h3 { font-size: 17px; }
.release h3 .date { color: var(--muted); font-weight: 500; font-size: 13.5px; margin-left: 8px; }
.release ul { margin: 10px 0 0 18px; color: #3c3c40; font-size: 14.5px; }
.release li { margin: 4px 0; }
.release .badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  margin-right: 8px; vertical-align: 2px; }
.release .badge.major { background: rgba(10,132,255,.14); color: var(--accent); }
.release .badge.pro { background: rgba(48,161,74,.14); color: var(--good); }

.roadmap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.roadmap-cols h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 12px; }
.road-item { background: var(--panel); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font-size: 14.5px; }
.road-item small { display: block; color: var(--muted); margin-top: 3px; font-size: 12.5px; }
.road-item.shipped { border-left: 3px solid var(--good); }

.kb { max-width: 760px; margin: 34px auto 0; display: grid; gap: 14px; }
.kb .card h3 a { color: var(--ink); text-decoration: none; }
.templates { max-width: 760px; margin: 26px auto 0; display: grid; gap: 14px; }
.template { background: var(--panel); border-radius: var(--radius); padding: 20px; }
.template h3 { font-size: 15.5px; margin-bottom: 6px; }
.template p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.press-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.press-facts .card p { margin-top: 4px; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13.5px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 800px) {
  .grid, .steps, .quotes, .roadmap-cols, .press-facts { grid-template-columns: 1fr; }
  .shots2 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  header.site nav a:not(.btn) { display: none; }
}
