/* Andremul, andremul.com. Farspeak Labs house style (shared with
   shutterkit.app): one accent, a "running" teal, neutral greys, 8px radius on
   controls, screenshots clipped to the real macOS window corner. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f2f2f0;
  --bg-raised: #fafaf9;
  --ink: #141517;
  --ink-2: #3b3e43;
  --muted: #62666d;
  --rule: #d6d7d3;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: rgb(15 118 110 / 0.08);
  --shadow: 0 1px 2px rgb(20 21 23 / 0.06), 0 24px 60px -24px rgb(20 21 23 / 0.28);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-control: 8px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-raised: #17181b;
    --ink: #ecebe7;
    --ink-2: #c9c8c3;
    --muted: #979aa0;
    --rule: #26282c;
    --accent: #2dd4bf;
    --accent-ink: #04201d;
    --accent-soft: rgb(45 212 191 / 0.1);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 30px 70px -30px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.02; font-stretch: 90%; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; font-stretch: 96%; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 26px; letter-spacing: -0.035em; text-decoration: none; display: flex; align-items: baseline; gap: 2px; }
.wordmark i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-control); font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: transform .12s ease, background-color .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-quiet { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--muted); }
.btn small { font: 500 13px/1 var(--mono); opacity: .8; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- screenshots ---------- */
.shot { border-radius: 1.12% / 1.6%; box-shadow: var(--shadow); background: transparent; }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 4.5vw, 60px) 0 clamp(36px, 5vw, 68px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.app-icon { width: 88px; height: 88px; margin: 0 0 -6px -8px; }
.index-row h3 a:has(.row-icon) { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.row-icon { width: 52px; height: 52px; flex: none; margin-left: -6px; }
.hero-copy p { font-size: clamp(18px, 1.7vw, 20px); color: var(--ink-2); max-width: 34ch; }
.hero-copy .actions { margin-top: 2px; }
.price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.price-tag strong { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-tag span { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.suite-note { font-size: 15px !important; color: var(--muted) !important; }
.suite-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.suite-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-media { margin-right: calc(-1 * var(--gutter) - 8vw); }
.hero-media .shot { width: 100%; min-width: 640px; }
.shot-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.steps li h3 small { font: 500 13px var(--mono); color: var(--muted); margin-left: 6px; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 5vw, 68px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin-top: 12px; }

/* app index (home) */
.index { margin-top: 28px; border-top: 1px solid var(--ink); }
.index-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) 7rem; gap: 24px 40px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.index-row h3 { font-size: clamp(30px, 3.4vw, 44px); font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.index-row p { margin-top: 0; }
.index-row .price strong { line-height: 1.1; }
.index-row h3 a { text-decoration: none; }
.index-row h3 a:hover { color: var(--accent); }
.index-row p { color: var(--ink-2); max-width: 46ch; }
.index-row .price { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: right; white-space: nowrap; }
.index-row .price strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.index-row.featured { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) 7rem; }
.index-row .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--accent); text-decoration: none; }
.index-row .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* principles (home) */
.principles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.principles h2 { position: sticky; top: 100px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
.points h3 { font-size: 18px; margin-bottom: 8px; }
.points p { color: var(--muted); font-size: 16px; }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 48px; margin-top: 28px; align-items: start; }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.price-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.price-list .name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.price-list .name span { display: block; font-family: var(--text); font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.price-list .amount { font-family: var(--mono); font-size: 17px; }
.price-list .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.suite { background: var(--bg-raised); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--r-control); padding: 32px; display: grid; gap: 16px; }
.suite h3 { font-size: 28px; font-stretch: 108%; }
.suite .amount { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.suite .amount small { font: 400 15px/1 var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.suite p { color: var(--ink-2); font-size: 16px; }
.suite .btn { justify-self: start; }
.terms { margin-top: 28px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* stop band (recover) */
.stop { padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--accent-soft); }
.stop .wrap { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: baseline; }
.stop strong { font-family: var(--display); font-size: 24px; font-stretch: 105%; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.stop p { color: var(--ink-2); max-width: 70ch; }

/* steps (recover) */
.steps { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; margin-top: 28px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--mono); font-size: 14px; color: var(--accent); border: 1px solid currentColor; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; margin-top: 2px; }
.steps li h3 { font-size: 20px; }
.steps li p { color: var(--muted); font-size: 16px; }
.steps .step-link { grid-column: 2; justify-self: start; font-weight: 600; color: var(--accent); text-decoration: none; }
.steps .step-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* faq (recover) */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 40px 15px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 18px 0; color: var(--ink-2); max-width: 64ch; }

/* closing buy band */
.closer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.closer p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; }
.closer .req { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 12px; }

/* simple text pages */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 28px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 20px; }
.page li + li { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .maker { color: var(--ink-2); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-media { animation: rise 1s cubic-bezier(.16, 1, .3, 1) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .principles, .pricing, .steps, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-media { margin-right: calc(-1 * var(--gutter)); }
  .hero-media .shot { min-width: 0; width: 135%; max-width: none; }
  .principles h2 { position: static; }
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formats { grid-template-columns: 1fr 1fr; }
  .formats div:nth-child(n) { padding: 20px 20px 22px 0; border-left: 0; }
  .formats div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .wordmark { font-size: 22px; }
  .nav .opt { display: none; }
  .index-row { grid-template-columns: 1fr auto; padding: 24px 0; }
  .index-row > p, .index-row > div { grid-column: 1 / -1; grid-row: 2; }
  .index-row .price { grid-column: 2; grid-row: 1; align-self: center; }
  .index-row h3 { grid-column: 1; grid-row: 1; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .price-list li { grid-template-columns: 1fr auto; }
  .price-list .btn { grid-column: 1 / -1; justify-self: start; }
  .stop .wrap { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: repeat(6, 58%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); }
  .sheet figure { scroll-snap-align: start; }
  .formats { grid-template-columns: 1fr; }
  .formats div:nth-child(n) { padding: 18px 0 20px; border-left: 0; }
  .closer .wrap, .site-footer .wrap { grid-template-columns: 1fr; }
}


/* ---------- Andremul additions ---------- */
.nav .nav-buy { color: var(--accent); font-weight: 600; }
.req-line { font: 500 14px var(--mono); color: var(--muted); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.story p { color: var(--ink-2); font-size: 18px; }
.story p + p { margin-top: 14px; }
.story .sign { font: 500 14px var(--mono); color: var(--muted); margin-top: 18px; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.checklist li.no::before { content: "✕"; color: var(--muted); }
.checklist strong { display: block; font-size: 17px; }
.checklist span { color: var(--ink-2); font-size: 16px; }
.tested { width: 100%; border-collapse: collapse; margin-top: 20px; border-top: 1px solid var(--ink); font-size: 16px; }
.tested th, .tested td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tested thead th { font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tested .ok { color: var(--accent); font-weight: 600; }
.legal { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 90ch; }
@media (max-width: 960px) { .story .wrap { grid-template-columns: minmax(0, 1fr); } }
