/* MK Graffle landing page
   Spacing: 2 4 8 12 16 24 32 40 48 64 80 96 only.
   Type: Tailwind scale steps via named text styles. */

:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --line: #272727;
  --line-strong: #313131;
  --text: #ffffff;
  --muted: #a1a1a6;
  --accent: #4c8dff;
  --accent-hover: #6aa0ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 20px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 var(--s-50); word-break: break-word; }
i[class*="ph"] { line-height: 1; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.025em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.015em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }
.center { text-align: center; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 300ms var(--ease); }
.link:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100; padding: var(--s-75) var(--s-100); background: var(--text); color: var(--bg); border-radius: 8px; transform: translateY(-200%); transition: transform 300ms var(--ease); }
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: 9999px; border: 1px solid transparent;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 500ms var(--ease), opacity 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: 14px; line-height: 20px; font-weight: 600; padding: var(--s-50) var(--s-100); }
.btn-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.btn-lg { font-size: 18px; line-height: 28px; font-weight: 600; padding: var(--s-100) var(--s-300); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--line); transform: translateY(-1px); }
.btn .size { color: inherit; opacity: 0.7; }
.btn .size:empty { display: none; }
.btn.is-disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; pointer-events: none; }

/* Nav */
.nav-wrap { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-strong); border-radius: 9999px;
}
.brand { display: inline-flex; align-items: center; gap: var(--s-75); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a { display: block; padding: var(--s-50) var(--s-100); border-radius: 9999px; color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: var(--surface-2); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 9999px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 500ms var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: var(--s-900) var(--s-300) var(--s-600);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-300); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu .btn { width: 100%; margin-top: var(--s-200); }

/* Layout */
main { overflow: hidden; }
.section { max-width: 1152px; margin: 0 auto; padding: var(--s-900) var(--s-300); }
.section-head { max-width: 680px; margin: 0 auto var(--s-600); text-align: center; display: flex; flex-direction: column; gap: var(--s-200); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: var(--s-300); }

/* Hero */
.hero { padding: calc(var(--s-900) + var(--s-400)) var(--s-300) var(--s-800); max-width: 1248px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-300); }
.hero .eyebrow { padding: var(--s-50) var(--s-100); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9999px; }
.hero-title {
  max-width: 680px;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: var(--s-50);
}
.hero-sub { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s-100); margin-top: var(--s-75); }
.proof { display: flex; gap: var(--s-400); justify-content: center; flex-wrap: wrap; margin-top: var(--s-200); }
.proof li { display: flex; flex-direction: column; align-items: center; }
.hero-shot { width: 100%; margin-top: var(--s-600); }
.shot-frame { padding: var(--s-75); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; }
.shot-frame img { border-radius: 16px; }

/* Problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: start; }
.split .heading-3 { margin-top: var(--s-200); }
.checks { display: flex; flex-direction: column; gap: var(--s-100); }
.checks li { display: flex; gap: var(--s-100); align-items: center; }
.checks i { color: var(--accent); font-size: 20px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-200); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-100);
  transition: border-color 300ms var(--ease), transform 500ms var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card .icon { font-size: 32px; color: var(--accent); margin-bottom: var(--s-100); }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 3fr; gap: var(--s-400); align-items: center; padding: var(--s-400); }
.card-copy { display: flex; flex-direction: column; gap: var(--s-100); }
.card-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.card-flip .card-copy { order: 2; }
.card-flip .card-media { order: 1; }
.card-flip { grid-template-columns: 3fr 2fr; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200) var(--s-300); margin-top: var(--s-600); padding: var(--s-400); border: 1px solid var(--line); border-radius: 24px; }
.feature-list li { display: flex; gap: var(--s-100); align-items: center; }
.feature-list i { font-size: 20px; color: var(--muted); flex: none; }

/* Tagline */
.tagline { padding: var(--s-900) var(--s-300); display: flex; justify-content: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tagline-text { max-width: 880px; text-align: center; text-wrap: balance; }
.tagline-text .w { color: rgba(255, 255, 255, 0.3); transition: color 600ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); counter-reset: s; }
.step-num { color: var(--accent); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9999px; padding: var(--s-25) var(--s-75); align-self: flex-start; margin-bottom: var(--s-100); }
.wide-shot { margin-top: var(--s-600); display: flex; flex-direction: column; gap: var(--s-200); align-items: center; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-300); transition: border-color 300ms var(--ease); }
.dl-card.is-yours { border-color: var(--accent); }
.dl-icon { font-size: 40px; }
.dl-body { display: flex; flex-direction: column; gap: var(--s-50); flex: 1; }
.dl-actions { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }
.dl-note { margin-top: var(--s-100); }
.dl-note[hidden] { display: none; }
#release-status { margin-top: var(--s-300); }
.downloads[aria-busy="true"] .size::before { content: ""; display: inline-block; width: 40px; height: 12px; border-radius: 4px; background: rgba(255,255,255,.2); animation: pulse 1200ms var(--ease) infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-300); border-radius: 24px; transition: color 300ms var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-hover); }
.faq summary i { font-size: 20px; flex: none; transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-300) var(--s-300); }

/* Final */
.final-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-300); padding: var(--s-800) var(--s-300); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; }
.final-card > * { max-width: 680px; }

/* Footer */
.footer { max-width: 1152px; margin: 0 auto; padding: var(--s-600) var(--s-300) var(--s-800); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-300); border-top: 1px solid var(--line); }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer ul a { color: var(--muted); transition: color 300ms var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer p { flex-basis: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .downloads { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .card-wide, .card-flip { grid-template-columns: 1fr; }
  .card-flip .card-copy { order: 1; }
  .card-flip .card-media { order: 2; }
  .split { grid-template-columns: 1fr; gap: var(--s-300); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { gap: var(--s-200); width: 100%; justify-content: space-between; }
  .hero { padding-top: calc(var(--s-900) + var(--s-200)); }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .section { padding: var(--s-800) var(--s-200); }
  .hero { padding-left: var(--s-200); padding-right: var(--s-200); }
  .bento { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; padding: var(--s-300); }
  .card, .dl-card, .card-wide { padding: var(--s-300); }
  .proof { gap: var(--s-300); }
  .shot-frame { padding: var(--s-50); border-radius: 16px; }
  .shot-frame img { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms var(--ease); }
  .mobile-menu li { transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .tagline-text .w { transition: none; }
}
