/* ==========================================================================
   Monoquill marketing site — single stylesheet, no build step.

   1. Design tokens
   2. Base + layout
   3. Header
   4. Hero
   5. Section headings
   6. Feature rows
   7. Mockups used inside feature rows
   8. Theme switcher
   9. Roadmap cards
   10. FAQ
   11. Download
   12. Footer
   13. Responsive (<= 720px)
   ========================================================================== */

/* 1. Design tokens */
:root {
  --bg: #ffffff;
  --fg: #1b1b1f;
  --muted: #6b6b72;
  --line: #e7e4de;
  --paper: #f5f4f0;
  --btn: #1b1b1f;
  --btnfg: #ffffff;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* 2. Base + layout */
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px / 1.6 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  background: var(--fg);
  color: var(--bg);
}

.skip:focus {
  left: 0;
}

.brand {
  display: flex;
  align-items: center;
}

/* Served by Pages for any unmatched path (website/404.html). */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100svh;
  padding: 24px;
  text-align: center;
}

.notfound .logo {
  height: 32px;
  margin-bottom: 24px;
}

.notfound h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0;
  max-width: none;
}

.notfound .lead {
  margin: 8px 0 24px;
}

/* 3. Header */
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

header nav a.btn {
  color: var(--btnfg);
}

.logo {
  height: 32px;
  width: auto;
  color: var(--fg);
  display: block;
}

/* 4. Hero */
.hero {
  text-align: center;
  padding: 72px 24px 0;
}

h1 {
  font-size: clamp(42px, 7.5vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 24px auto 0;
  max-width: 10em;
  text-wrap: balance;
}

.sub {
  color: var(--muted);
  font-size: 20px;
  max-width: 28em;
  margin: 24px auto 0;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--fg);
  background: var(--bg);
}

.btn.primary {
  background: var(--btn);
  color: var(--btnfg);
  border-color: var(--btn);
}

.btn.sm {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}

.shot {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  margin: 32px auto 0;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.16));
}

/* 5. Section headings */
.sec {
  padding: 104px 24px 0;
}

.sec h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
  max-width: 34em;
}

/* 6. Feature rows */
.frows {
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}

.frow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.frow h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.frow p {
  margin: 0;
  color: var(--muted);
  max-width: 26em;
}

/* 7. Mockups used inside feature rows */
.snip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 210px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.snip.a-ed,
.snip.a-side {
  display: block;
  position: relative;
  height: 236px;
  padding: 20px 22px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 20px;
}

.a-ed {
  background: #fdfcf9;
}

.snip.a-side {
  background: #f5f4f0;
  padding: 14px 12px;
}

.a-tools {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 14px;
  color: #6b6b72;
}

.a-t {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2b2b2b;
  margin-top: 16px;
}

.a-b {
  font-size: 14.5px;
  line-height: 1.5;
  color: #2b2b2b;
  margin-top: 10px;
}

.a-t.ph,
.a-b.ph {
  color: #9d9894;
}

.a-b kbd {
  display: inline-block;
  font: inherit;
  font-size: 12.5px;
  line-height: 18px;
  padding: 0 6px;
  border: 1px solid #d0cdcb;
  border-radius: 5px;
  background: #f5f4f0;
  color: #6c6661;
  margin: 0 1px;
}

.a-ck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 14.5px;
  color: #2b2b2b;
}

.a-ck i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid #6b6b72;
  flex: none;
  display: grid;
  place-items: center;
}

.a-ck.on i {
  background: #1b1b1f;
  border-color: #1b1b1f;
}

.a-ck.on span {
  text-decoration: line-through;
  color: #6b6b72;
}

.a-r {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #2b2b2b;
}

.a-r span {
  flex: 1;
}

.a-r em {
  font-style: normal;
  color: #8a877f;
  font-size: 12px;
}

.a-r.sel {
  background: #ebe6dd;
}

.a-hr {
  height: 1px;
  background: #dad7d1;
  margin: 8px 10px;
}

.a-cap {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6b6b72;
  padding: 6px 10px 2px;
}

.frow .snip.a-ed,
.frow .snip.a-side {
  margin: 0;
}

/* Version history mockup */
.frow .snip.a-vh {
  display: flex;
  flex-direction: column;
  height: 236px;
  padding: 0;
  margin: 0;
  gap: 0;
  justify-content: flex-start;
  overflow: hidden;
  background: #fdfcf9;
  border-radius: 14px;
}

.vh-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e2dc;
  color: #6b6b72;
}

.vh-h b {
  display: block;
  font-size: 14px;
  color: #2b2b2b;
}

.vh-h span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
  max-width: 420px;
}

.vh-b {
  display: flex;
  flex: 1;
  min-height: 0;
}

.vh-l {
  width: 172px;
  flex: none;
  border-right: 1px solid #e5e2dc;
  padding: 6px 0;
  overflow: hidden;
}

.vh-i {
  padding: 9px 16px;
}

.vh-i b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2b2b2b;
}

.vh-i span {
  font-size: 11.5px;
  color: #6b6b72;
}

.vh-i.sel {
  background: #f5f4f0;
}

.vh-p {
  flex: 1;
  position: relative;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #2b2b2b;
}

.vh-p .a-ck {
  font-size: 14px;
  margin-top: 7px;
}

/* Export menu mockup */
.frow .snip.a-ex2 {
  display: grid;
  place-items: center;
  height: 236px;
  padding: 0;
  margin: 0;
  background: #f5f4f0;
  border-radius: 14px;
}

.ex2 {
  width: 232px;
}

.ex2 .on {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  margin: 0 0 10px 10px;
  background: #ebe6dd;
  border-radius: 7px;
  color: #6b6b72;
}

.ex-menu2 {
  background: #fefdfb;
  border: 1px solid #e5e2dc;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
}

.ex-menu2 div {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  font-size: 15px;
  color: #2b2b2b;
}

/* MCP mockup */
.frow .snip.a-mcp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 236px;
  padding: 0;
  margin: 0;
  background: var(--paper);
  border-radius: 14px;
}

.mcp-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
}

.a-mcp b {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* 8. Theme switcher */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font:
    500 15px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
}

.chip i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: block;
}

.chip:hover {
  border-color: var(--muted);
}

.chip.on {
  border-color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.tstack {
  position: relative;
  max-width: 1040px;
  margin: 28px auto 0;
  aspect-ratio: 1280 / 840;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.16));
}

.tstack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s;
}

.tstack img.on {
  opacity: 1;
}

/* 9. Roadmap cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.grid h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.grid p {
  margin: 0;
  color: var(--muted);
}

.soon {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--paper);
}

.tag {
  float: right;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* 10. FAQ */
.faq {
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 4px 4px 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}

.faq summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

/* 11. Download */
.dl {
  margin-top: 104px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 96px 0;
  text-align: center;
}

.dl h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 auto;
}

.dl .lead {
  margin: 14px auto 0;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.card b {
  font-size: 18px;
}

.card span {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* 12. Footer */
footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer .logo {
  height: 24px;
}

/* 13. Responsive (<= 720px) */
@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .sec {
    padding-top: 72px;
  }

  .grid,
  .cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dl {
    margin-top: 72px;
    padding: 72px 0;
  }

  /* Header collapses to just the download button. */
  header nav a:not(.btn) {
    display: none;
  }

  .frow {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  /* Phone-width mockups crop into the artwork instead of shrinking it. */
  .shotw {
    overflow: hidden;
    aspect-ratio: 529 / 260;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 32px;
  }

  .shotw .shot {
    width: 241.97%;
    max-width: none;
    margin: -7.56% 0 0 -39.5%;
    filter: none;
  }

  .tstack {
    aspect-ratio: 529 / 260;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    filter: none;
  }

  .tstack img {
    inset: auto;
    left: -39.5%;
    top: -15.4%;
    width: 241.97%;
    height: auto;
  }

  .vh-i b {
    display: none;
  }

  .vh-l {
    width: 128px;
  }

  .vh-i {
    padding: 10px;
  }

  .vh-i span {
    font-size: 11px;
    white-space: nowrap;
  }

  .vh-p {
    padding: 14px;
    font-size: 13px;
  }

  .vh-p .a-ck {
    font-size: 13px;
  }

  .vh-p > div:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tstack img {
    transition: none;
  }

  .faq summary::after {
    transition: none;
  }
}
