/* The home page: a quiet hero, Mike's own window working, and one small live
   demo per feature. Neutral surfaces and hairlines only; motion is reserved
   for the product doing something. */

@media (max-width: 760px) { .hide-sm { display: none; } }

.caret {
  display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px;
  background: var(--ink); vertical-align: -0.15em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 104px) 0 0; }
.hero__copy { text-align: center; max-width: 820px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.2s ease;
}
.tag:hover { border-color: var(--ink-faint); }
.tag__new {
  font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
  background: var(--ink); color: var(--ground);
}
.hero__title {
  font: 500 clamp(40px, 6.4vw, 72px)/1.04 var(--serif);
  letter-spacing: -0.028em;
  margin: 28px auto 0; max-width: 23ch;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft);
  margin: 22px auto 0; max-width: 600px; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__meta { margin: 18px 0 0; font-size: 13px; color: var(--ink-mute); }

/* ── Mike's window ────────────────────────────────────── */
.app {
  max-width: 1000px; margin: clamp(48px, 7vw, 80px) auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.app__bar {
  height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; border-bottom: 1px solid var(--hairline);
}
.app__title { display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1 var(--serif); }
.app__title .nibmark { width: 16px; height: 16px; }
.app__controls { display: inline-flex; gap: 22px; }
.app__controls i { width: 10px; height: 10px; position: relative; display: block; }
.app__controls i:nth-child(1)::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.2px; background: var(--ink-mute); }
.app__controls i:nth-child(2) { border: 1.2px solid var(--ink-mute); border-radius: 1.5px; }
.app__controls i:nth-child(3)::before, .app__controls i:nth-child(3)::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: 4.4px; height: 1.2px; background: var(--ink-mute);
  transform: rotate(45deg);
}
.app__controls i:nth-child(3)::after { transform: rotate(-45deg); }

.app__body { display: grid; grid-template-columns: 220px 1fr; height: 470px; }
.app__side {
  border-right: 1px solid var(--hairline); background: var(--raised);
  padding: 16px 12px; display: flex; flex-direction: column;
  font-size: 13px; color: var(--ink-soft);
}
.app__new { padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.app__label { margin: 18px 10px 6px; font-size: 11.5px; color: var(--ink-mute); }
.app__recents { list-style: none; margin: 0; padding: 0; }
.app__recents li { padding: 7px 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__recents li.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.app__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--hairline); }
.app__me b { display: block; font-weight: 500; color: var(--ink); font-size: 13px; }
.app__me em { font-style: normal; font-size: 11.5px; color: var(--ink-mute); }
.app__avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 600;
}

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__chat {
  flex: 1; overflow: hidden; padding: 28px clamp(18px, 4vw, 48px) 8px;
  display: flex; flex-direction: column; gap: 16px; justify-content: flex-end;
  font-family: var(--serif);
}
.app__composer {
  margin: 8px clamp(14px, 3vw, 40px) 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 18px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--surface);
  font-size: 14px; color: var(--ink-mute);
}
.app__send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); }
.app__send svg { width: 15px; height: 15px; }

/* messages */
.msg { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.msg.is-in { opacity: 1; transform: none; }
.msg--you {
  align-self: flex-end; max-width: 72%;
  background: var(--raised); border: 1px solid var(--hairline);
  padding: 10px 15px; border-radius: 14px; font-size: 15px; line-height: 1.5;
}
.msg--mike { font-size: 15.5px; line-height: 1.6; max-width: 92%; }
.msg--mike b { font-weight: 600; }

.work {
  border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px;
  font-family: var(--sans); font-size: 13.5px; background: var(--surface);
}
.work__head { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.work__head em { font-style: normal; color: var(--ink-mute); font-weight: 400; font-size: 12px; }
.work ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.work li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); opacity: 0; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.work li.is-in { opacity: 1; transform: none; }
.spin {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1.6px solid var(--ink-faint); border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
.tick {
  width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good);
}
.tick svg { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ask-card {
  border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px;
  font-family: var(--sans); font-size: 13.5px; background: var(--surface);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ask-card p { margin: 0; flex: 1; min-width: 180px; }
.ask-card p b { color: var(--stop); font-weight: 500; display: block; font-size: 12px; margin-bottom: 2px; }
.ask-card span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--hairline); transition: background 0.2s ease, color 0.2s ease; }
.ask-card span.is-picked { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* scene picker */
.scenes {
  display: flex; justify-content: center; gap: 4px; margin: 22px auto 0;
  padding: 4px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--raised); width: fit-content; max-width: 100%;
}
.scene {
  position: relative; overflow: hidden;
  border: 0; background: transparent; cursor: pointer;
  font: 500 13.5px/1 var(--sans); color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.scene:hover { color: var(--ink); }
.scene[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.scene[aria-selected="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; border-radius: 1px;
  background: var(--ink-faint);
  transform-origin: left; transform: scaleX(var(--p, 0));
}

/* ── sections ─────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section--quiet { background: var(--raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.head { max-width: 680px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--ink-mute); }
h2 {
  font: 500 clamp(30px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -0.022em; margin: 0;
  text-wrap: balance;
}
h3 { margin: 0; }

/* feature rows */
.row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; margin-top: clamp(64px, 9vw, 112px);
}
.row--flip { grid-template-columns: 1.1fr 0.9fr; }
.row--flip .row__copy { order: 2; }
.row__copy h3 { font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); letter-spacing: -0.015em; }
.row__copy p { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.65; max-width: 440px; }

.demo {
  position: relative; height: 300px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  display: grid; place-items: center;
}

/* voice */
.demo--voice { align-content: center; gap: 22px; }
.voice {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--raised);
}
.voice__mic { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--ground); display: grid; place-items: center; }
.voice__mic svg { width: 17px; height: 17px; }
.voice__bars { display: flex; align-items: center; gap: 3px; height: 28px; }
.voice__bars i { width: 3px; height: 8px; border-radius: 2px; background: var(--ink); transition: height 0.12s ease; }
.voice__said { margin: 0; font: 400 19px/1.4 var(--serif); min-height: 1.4em; text-align: center; padding: 0 24px; }

/* merge */
.doc {
  position: absolute; left: 50%; top: 50%;
  width: 230px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--shadow);
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.6s ease;
  font-size: 14px;
}
.doc b {
  grid-row: 1 / span 2; align-self: center;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--stop);
  border: 1px solid color-mix(in srgb, var(--stop) 35%, transparent); border-radius: 6px; padding: 6px;
}
.doc span { font-weight: 500; }
.doc em { font-style: normal; font-size: 12.5px; color: var(--ink-mute); }
.doc--a { transform: translate(-50%, -50%) translate(-70px, -62px) rotate(-3deg); }
.doc--b { transform: translate(-50%, -50%) translate(70px, 62px) rotate(3deg); }
.doc--out { transform: translate(-50%, -50%) scale(0.92); opacity: 0; }
.demo--merge.is-merged .doc--a, .demo--merge.is-merged .doc--b { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
.demo--merge.is-merged .doc--out { transform: translate(-50%, -50%); opacity: 1; transition-delay: 0.45s; }

/* code */
.demo--code { place-items: stretch; align-content: start; padding: 0; text-align: left; }
.code__tab { padding: 10px 16px; font: 500 12.5px/1 var(--mono); color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.code__lines { padding: 14px 0; display: grid; }
.code__lines code { display: block; padding: 3px 16px; font: 400 13px/1.7 var(--mono); white-space: pre; transition: background 0.4s ease, opacity 0.4s ease; }
.code__lines code span { display: inline-block; width: 28px; color: var(--ink-faint); }
.code__lines .is-del { background: color-mix(in srgb, var(--stop) 9%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--stop) 60%, transparent); }
.code__lines .is-add { background: color-mix(in srgb, var(--good) 11%, transparent); }
.demo--code:not(.is-fixed) .is-add, .demo--code:not(.is-fixed) .code__term { opacity: 0; }
.demo--code:not(.is-fixed) .is-del { background: transparent; text-decoration: none; }
.code__term {
  margin: 4px 16px 0; padding: 10px 12px; border-radius: 8px; background: var(--raised);
  font: 400 12.5px/1.4 var(--mono); color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; transition: opacity 0.4s ease 0.5s;
}
.ok { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.ok svg { width: 11px; height: 11px; }

/* guide */
.desk { position: absolute; inset: 18px; border-radius: 10px; background: var(--raised); }
.desk__win {
  position: absolute; left: 10%; top: 12%; width: 70%; height: 72%;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.desk__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--hairline); font-size: 11.5px; color: var(--ink-mute); }
.desk__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.desk__bar span { margin-left: 6px; }
.desk__text { padding: 12px 14px; font: 400 14px/1.5 var(--serif); flex: 1; }
.desk__save {
  align-self: flex-end; margin: 0 12px 12px; padding: 6px 14px; border-radius: 7px;
  border: 1px solid var(--hairline); font-size: 12.5px; transition: background 0.2s ease, color 0.2s ease;
}
.desk__save.is-pressed { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.desk__nib.is-following { transition: transform 0.18s linear; }
.desk__nib {
  position: absolute; width: 34px; height: 34px; left: 0; top: 0;
  transform: translate(var(--x, 300px), var(--y, 190px));
  transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

/* ── you stay in charge ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.checks li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink); }
.checks b { color: var(--ink); font-weight: 500; }
.confirm {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-lg); max-width: 440px; justify-self: center; width: 100%;
}
.confirm p { margin: 0; }
.confirm__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--stop); }
.confirm__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stop); }
.confirm .confirm__what { font: 400 20px/1.35 var(--serif); margin-top: 14px; }
.confirm__what b { font-weight: 600; }
.confirm .confirm__why { color: var(--ink-mute); font-size: 14px; margin-top: 4px; }
.confirm__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.confirm__btns span { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.confirm__no { border: 1px solid var(--hairline); }
.confirm__yes { background: var(--stop); color: #fff; }

/* ── try it ── */
.try { text-align: center; max-width: 720px; }
.try p { color: var(--ink-soft); margin: 14px auto 0; max-width: 520px; }
.ask { margin: 32px auto 0; max-width: 620px; }
.ask__field { position: relative; }
.ask__field input {
  width: 100%; height: 58px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
  padding: 0 64px 0 24px; font: 400 16px/1 var(--sans);
  box-shadow: var(--shadow); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ask__field input:focus { border-color: var(--ink-faint); box-shadow: var(--shadow-lg); }
.ask__ghost {
  position: absolute; left: 25px; top: 0; bottom: 0; right: 70px;
  display: flex; align-items: center; pointer-events: none;
  color: var(--ink-mute); font-size: 16px; white-space: nowrap; overflow: hidden;
}
.ask__ghost.is-hidden { visibility: hidden; }
.ask__go {
  position: absolute; right: 8px; top: 8px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--ground); display: grid; place-items: center; cursor: pointer;
  transition: opacity 0.18s ease;
}
.ask__go:hover { opacity: 0.85; }
.ask__go svg { width: 18px; height: 18px; }
.ask__chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.ask__chips a {
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ask__chips a:hover { color: var(--ink); border-color: var(--ink-faint); }

/* ── privacy ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 48px; }
.pillar { border-top: 1px solid var(--ink-faint); padding-top: 20px; }
.pillar h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.pillar p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.privacy__note { margin: 40px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.privacy__note a { color: var(--ink-soft); }

/* ── download ── */
.download {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.download__head { display: flex; align-items: center; gap: 18px; }
.appicon { width: 64px; height: 64px; border-radius: 15px; }
.download__head p { margin: 6px 0 0; color: var(--ink-soft); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li {
  border: 1px solid var(--hairline); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.steps__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline); font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.steps h3 { font-size: 16px; font-weight: 600; margin-top: 6px; }
.steps p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.steps .btn { margin-top: auto; }
.download__alt { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.download__alt a { color: var(--ink-soft); }

/* ── finale ── */
.finale { padding: clamp(96px, 13vw, 160px) 0; border-top: 1px solid var(--hairline); }
.finale__inner { text-align: center; }
.finale__nib { width: 52px; height: 52px; margin: 0 auto 22px; }
.finale h2 { font-size: clamp(40px, 6vw, 64px); }
.finale p { color: var(--ink-soft); margin: 14px 0 0; }

/* ── small screens ── */
@media (max-width: 900px) {
  .row, .row--flip, .split { grid-template-columns: 1fr; }
  .row--flip .row__copy { order: 0; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .app__body { grid-template-columns: 1fr; height: 440px; }
  .app__side { display: none; }
}
@media (max-width: 560px) {
  .scenes { width: 100%; justify-content: space-between; }
  .scene { padding: 9px 12px; }
  .demo { height: 260px; }
  .doc { width: 200px; }
  .msg--you { max-width: 88%; }
}
