/* Bricolage Grotesque (SIL OFL 1.1, see fonts/OFL.txt), self-hosted. Variable: opsz 12–96, wght 200–800. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Pipit Color website.
   Layout: a live pixel field opens the page; below, feature rows alternate copy and real app
   renders, and a monospaced "spec sheet" shows the picked color as code. */
:root {
  --paper: #f5f7fc;
  --surface: #ffffff;
  --ink: #121831;
  --muted: #59617d;
  --line: #e1e5f0;
  --accent: #3a7bff;
  --accent-ink: #ffffff;
  --accent-soft: #e6eeff;
  --code: #eef1f9;
  --good: #1f9d63;
  --shadow: 0 1px 2px rgb(18 24 49 / 0.06), 0 12px 40px -12px rgb(18 24 49 / 0.18);

  --font-display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.8rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1140px;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1122;
    --surface: #151a31;
    --ink: #ecf0fa;
    --muted: #a2aac4;
    --line: #242b47;
    --accent: #6b9bff;
    --accent-ink: #0d1122;
    --accent-soft: #1b2650;
    --code: #1a2040;
    --good: #43c58a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1122;
  --surface: #151a31;
  --ink: #ecf0fa;
  --muted: #a2aac4;
  --line: #242b47;
  --accent: #6b9bff;
  --accent-ink: #0d1122;
  --accent-soft: #1b2650;
  --code: #1a2040;
  --good: #43c58a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
code, kbd { font-family: var(--font-mono); font-size: 0.92em; }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38ch; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  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 color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 720 1.2rem/1 var(--font-display); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav .nav-link { display: none; } }
.nav .nav-home { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 22px; border-right: 1px solid var(--line); }
.nav .nav-home:hover { color: var(--accent); }
@media (max-width: 720px) { .nav .nav-home { padding-right: 0; border-right: 0; } }
@media (max-width: 480px) { .nav .button { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--muted); }
.button.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.button[aria-disabled="true"] { opacity: 0.7; cursor: default; }
.button svg { width: 18px; height: 18px; flex: none; }
/* Apple's official Mac App Store badge: use as supplied, never recolor or crop it. */
.store-badge { display: inline-flex; flex: none; border-radius: 8px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { font-size: var(--step--1); color: var(--muted); }

.demo {
  position: relative;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  touch-action: none;
}
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; }
.demo .hint {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 0.8rem; color: #1a2040;
  background: rgb(255 255 255 / 0.85);
  padding: 5px 10px; border-radius: 999px;
  pointer-events: none;
}
.format-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font: 500 0.85rem/1 var(--font-mono); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}
.points { display: grid; gap: 20px; margin-top: 28px; padding: 0; list-style: none; }
.points li { display: grid; gap: 4px; align-content: start; }
.points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
@media (max-width: 820px) { .points.three { grid-template-columns: minmax(0, 1fr); } }
.points h3 { display: flex; align-items: center; gap: 10px; }
.points p { color: var(--muted); max-width: 52ch; }
.shot { width: 100%; margin: 0; display: grid; place-items: center; padding-block: 12px; }
.shot.window img { border-radius: 12px; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.18), 0 22px 60px -14px rgb(10 14 32 / 0.45); }
.shot.scene img { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Spec sheet: the picked color as code */
.spec {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start;
}
@media (max-width: 860px) { .spec { grid-template-columns: minmax(0, 1fr); } }
.picked {
  display: grid; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.picked .swatch { aspect-ratio: 5 / 3; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.picked .hex { font: 700 1.6rem/1 var(--font-mono); letter-spacing: 0.02em; }
.style-controls { display: grid; gap: 10px; font-size: 0.92rem; }
.style-controls label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.style-controls select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.table-scroll { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.formats { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.formats th, .formats td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.formats tr:last-child td { border-bottom: 0; }
.formats th { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--code); }
.formats td:first-child { color: var(--muted); white-space: nowrap; }
.formats td code { white-space: nowrap; color: var(--ink); }
.formats .copy { opacity: 0.0; transition: opacity 0.15s; }
.formats tr:hover .copy, .formats .copy:focus-visible { opacity: 1; }
.copy {
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  border-radius: 8px; padding: 3px 9px; font-size: 0.78rem; cursor: pointer;
}
@media (hover: none) { .formats .copy { opacity: 1; } }
.pro-tag {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font: 600 0.68rem/1.4 var(--font-body); letter-spacing: 0.06em;
}
.more-formats { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }

/* Pro */
.pro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .pro-grid { grid-template-columns: minmax(0, 1fr); } }
.pro-item { display: grid; gap: 22px; align-content: start; }
.pro-item h3 { margin-bottom: 6px; }
.pro-item p { color: var(--muted); }
.pro-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 700px) { .pro-extras { grid-template-columns: minmax(0, 1fr); } }
.pro-extras > div { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
/* Pricing */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: 24px 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { color: var(--muted); }
.plan-points { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan-points li { position: relative; padding-left: 26px; }
.plan-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 8px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.plans-foot {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-radius: var(--radius); background: var(--accent-soft);
}
.plans-notes { display: grid; gap: 8px; max-width: 64ch; }
.plans-notes p { margin: 0; }

/* Accuracy */
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .spaces { grid-template-columns: minmax(0, 1fr); } }
.space { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.space strong { font-family: var(--font-display); font-size: 1.15rem; }

/* Integrations */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tool p { color: var(--muted); font-size: 0.95rem; }
.tool pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--code); overflow-x: auto; font-size: 0.82rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); display: grid; gap: 10px; max-width: 65ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.contact { display: inline-flex; align-items: center; gap: 8px; }

/* Long-form pages (shortcuts, privacy) */
.page { padding-block: clamp(40px, 6vw, 72px); }
.page .wrap { max-width: 820px; display: grid; gap: 28px; }
.page h2 { font-size: var(--step-2); margin-top: 12px; }
.prose { display: grid; gap: 14px; max-width: 65ch; }
.prose p, .prose li { color: var(--ink); }
.callout { padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); font-weight: 600; }
.keys { width: 100%; border-collapse: collapse; }
.keys td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys td:first-child { width: 42%; padding-right: 16px; white-space: nowrap; }
@media (max-width: 560px) { .keys td:first-child { white-space: normal; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow); max-width: calc(100% - 32px);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
