@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --surface: #fbf9f5;
  --ink: #1b1c1e;
  --muted: #6b6760;
  --line: #e3ded4;
  --violet: #4b38fd;
  --violet-soft: rgb(75 56 253 / 10%);
  --shadow: 0 1px 2px rgb(40 30 10 / 5%), 0 18px 50px -24px rgb(40 30 10 / 22%);
  --radius: 28px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141416;
    --surface: #1c1c1f;
    --ink: #f4f1ea;
    --muted: #a19d95;
    --line: #2c2c30;
    --violet: #6b5bff;
    --violet-soft: rgb(107 91 255 / 16%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 50px -24px rgb(0 0 0 / 60%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .35em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: .85em;
  line-height: 1.5;
  text-align: center;
}
kbd + kbd { margin-left: .2em; }

.section { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.eyebrow { margin-bottom: 14px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Mark: the violet tile hops through the empty steps on hover (script.js). */
.mark { display: block; overflow: visible; fill: var(--ink); }
.mark-step {
  fill: var(--violet);
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1);
  transform-box: fill-box;
  transform-origin: center;
}
.mark-step.is-hopping { animation: hop .26s ease-out; }
@keyframes hop { 45% { scale: 1.12 .9; } }
.mark rect:not(.mark-step) { transition: fill .18s; }
.mark .is-lit { fill: var(--violet); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand .mark { width: 30px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 600; transition: color .15s; }
nav a:hover { color: var(--ink); }
.nav-icon { display: inline-flex; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 120px);
}
h1 {
  margin-bottom: 26px;
  font-size: clamp(3rem, 7.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
h1 span { color: var(--violet); }
.lede { max-width: 540px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--violet); transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }
.hero-mark { justify-self: center; width: min(100%, 330px); cursor: pointer; }
.mark--large { width: 100%; }

.section-heading { max-width: 820px; margin-bottom: 36px; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }

.apps { padding-bottom: 40px; }
.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-copy { padding: clamp(32px, 5vw, 56px); }
.app-copy > p { color: var(--muted); }
.app-name { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.app-name h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.status { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.app-tagline { margin-bottom: 12px; color: var(--ink) !important; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.facts { margin: 22px 0 28px; padding: 0; list-style: none; }
.facts li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 7px; border-radius: 2.5px; background: var(--violet); }
.app-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -8px 0 26px; padding: 14px 18px; border-radius: 16px; background: var(--violet-soft); }
.app-price p { margin: 0; color: var(--muted); font-size: .9rem; }
.app-price .app-price-amount { color: var(--ink); font-size: 1rem; font-weight: 600; }
.app-price [data-base-price] { color: var(--muted); margin-right: 6px; }
.app-price .app-price-promotion { color: var(--violet); font-weight: 700; }
.app-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.app-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.app-shot {
  margin: 0;
  padding: 40px 0 40px 8px;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 100% 0%, var(--violet-soft), transparent 60%), color-mix(in srgb, var(--paper) 70%, var(--line));
}
/* Wider than the column, so the screenshot crops on the right. */
.app-shot img { width: 135%; max-width: none; }
/* The Tabitha screenshots are a rounded panel on a transparent canvas, so only the opaque teaser gets a frame. */
.teaser-shot img { border-radius: 14px 0 0 14px; box-shadow: 0 24px 60px -20px rgb(20 15 5 / 35%); }

.workshop-divider { display: flex; align-items: center; gap: 18px; margin: 56px 0 28px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.workshop-divider::before, .workshop-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.teaser-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; }
.teaser-shot { position: relative; }
.teaser-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--surface) 70%, transparent));
  pointer-events: none;
}
.peek-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.peek-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }

.principles { padding: 72px 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.principle-grid li { padding: 28px; border: 1px solid var(--line); border-radius: 22px; }
.principle-number { display: inline-block; margin-bottom: 18px; color: var(--violet); font-size: .8rem; font-weight: 800; }
.principle-grid h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .96rem; }

.about { padding-bottom: 96px; }
.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.avatar { width: clamp(110px, 16vw, 160px); aspect-ratio: 1; border-radius: 36%; object-fit: cover; }
.about-card p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.social a:hover { border-color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; color: var(--muted); font-size: .88rem; }
.footer-inner p { margin: 0; }
.footer-inner .brand { color: var(--ink); }
.footer-inner .mark { width: 24px; }
.footer-links { gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; font-weight: 500; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: 150px; }
  .app-card { grid-template-columns: 1fr; }
  .app-shot { padding: 28px 0 28px 28px; }
  .principle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { width: min(calc(100% - 32px), var(--max)); }
  nav { gap: 18px; }
  .about-card { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark-step { transition: none; }
}
