/* paintRack — courageousoctopus.com */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2-variations'), url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
}

:root {
  --paper: #F2F0EB;
  --ink: #16151A;
  --ink-2: #3A3832;
  --ink-3: #57534C;
  --white: #FFFFFF;
  --link-hover: #1F3FA6;

  /* Feature colors, from the app */
  --library: #85D2F5;
  --color-tools: #B3D676;
  --sets: #FCBF80;
  --rapid-scan: #F37E80;
  --wish-list: #EFED82;
  --color-wheel: #96E0BB;
  --stats: #B1A7EA;
  --cross-import: #60C0B6;

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --card-shadow: 0 1px 0 rgba(22, 21, 26, 0.08), 0 6px 18px rgba(22, 21, 26, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > header, body > footer { width: 100%; }

img, svg { display: block; }

a { color: var(--ink); }
a:hover { color: var(--link-hover); }
a.plain, .btn, .badge, .card-link { text-decoration: none; }
a:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px;
}
.skip:focus { top: 8px; color: var(--paper); }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 24px; padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 43px; height: 44px; }
.brand span { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; }
.site-nav a { text-decoration: none; padding: 12px 0; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important; font-weight: 600;
}
.btn:hover { background: #2E2C34; }
.site-nav .btn { padding: 12px 20px; }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; line-height: 0; border-radius: 9px; }
.badge img { height: 56px; width: auto; }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: clamp(16px, 4vw, 48px); padding-bottom: 72px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  margin: 0; font-size: clamp(48px, 7.2vw, 96px); line-height: 0.94;
  letter-spacing: -0.04em; font-weight: 800;
}
.lede { margin: 0; font-size: 20px; line-height: 1.5; max-width: 34ch; color: var(--ink-2); }
.note { margin: 0; font-size: 15px; color: var(--ink-3); }

.hero-art-wrap { flex: 1 1 420px; min-width: 0; max-width: 540px; height: 600px; position: relative; }
.hero-art { position: absolute; left: 50%; top: 0; width: 540px; height: 600px; margin-left: -270px; transform-origin: 50% 0; }

.phone { position: absolute; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-android {
  left: 280px; top: 44px; width: 236px; height: 500px; padding: 9px;
  border-radius: 26px; background: #2A2B30; box-shadow: 0 20px 48px rgba(22, 21, 26, 0.24);
  transform: rotate(7deg); transform-origin: 50% 100%;
}
.phone-android .screen { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; }
.phone-silver {
  left: 28px; top: 44px; width: 232px; height: 496px; padding: 4px;
  border-radius: 32px; background: #D9D6CF; box-shadow: 0 20px 48px rgba(22, 21, 26, 0.22);
  transform: rotate(-7deg); transform-origin: 50% 100%;
}
.phone-silver .bezel { width: 100%; height: 100%; padding: 6px; border-radius: 28px; background: #1C1B20; }
.phone-silver .screen { width: 100%; height: 100%; border-radius: 23px; overflow: hidden; }
.phone-iphone {
  left: 145px; top: 0; width: 250px; height: 520px; padding: 10px;
  border-radius: 40px; background: var(--ink); box-shadow: 0 24px 56px rgba(22, 21, 26, 0.28);
}
.phone-iphone img { border-radius: 31px; }

.bottles {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; align-items: flex-end; gap: 6px;
}
.bottles svg { filter: drop-shadow(0 6px 8px rgba(22, 21, 26, 0.18)); }
.shelf {
  position: absolute; left: -24px; right: -24px; bottom: 0; height: 22px;
  background: var(--white); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(22, 21, 26, 0.08), 0 10px 24px rgba(22, 21, 26, 0.12);
}

@media (max-width: 600px) {
  .hero { overflow-x: clip; }
  .hero-art-wrap { flex-basis: 100%; height: 384px; }
  .hero-art { transform: scale(0.62); }
}
@media (max-width: 360px) {
  .hero-art-wrap { height: 340px; }
  .hero-art { transform: scale(0.55); }
}

/* Features */
.features { padding-top: 24px; padding-bottom: 96px; scroll-margin-top: 16px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 40px;
}
.section-head h2 {
  margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1;
  letter-spacing: -0.035em; font-weight: 800;
}
.section-head p { font-size: 13px; letter-spacing: 0.06em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature {
  background: var(--white); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--card-shadow);
}
.swatch {
  position: relative; overflow: hidden; height: 176px; padding: 16px 18px; border-radius: 8px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink);
}
.swatch .hex { position: relative; z-index: 1; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.swatch h3 {
  position: relative; z-index: 1; margin: 0; max-width: calc(100% - 112px);
  font-size: 28px; line-height: 1; letter-spacing: -0.03em; font-weight: 800;
}
.mini-phone {
  position: absolute; right: 12px; top: 20px; width: 98px; height: 210px; padding: 5px;
  border-radius: 18px; background: var(--ink); box-shadow: 0 10px 24px rgba(22, 21, 26, 0.25);
  transform: rotate(4deg); backface-visibility: hidden; outline: 1px solid transparent;
}
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13px; }
.transfer { position: absolute; right: 6px; top: 12px; }
.feature p { margin: 0; padding: 0 6px 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* Download band */
.download { padding-bottom: 56px; scroll-margin-top: 16px; }
.band { background: var(--ink); color: var(--paper); border-radius: 16px; overflow: hidden; }
.stripe { display: flex; height: 16px; }
.stripe span { flex: 1 1 0; }
.band-body {
  padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.band h2 {
  margin: 0; max-width: 13ch; font-size: clamp(40px, 6vw, 80px); line-height: 0.95;
  letter-spacing: -0.04em; font-weight: 800;
}

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-bottom: 40px; font-size: 14px; color: var(--ink-3);
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--link-hover); }

/* Inner pages */
.page { padding-top: clamp(24px, 5vw, 56px); padding-bottom: 96px; }
.page h1 {
  margin: 16px 0 0; font-size: clamp(44px, 6.4vw, 80px); line-height: 0.95;
  letter-spacing: -0.04em; font-weight: 800;
}
.color-rule { display: flex; width: 240px; height: 8px; margin: 28px 0 40px; border-radius: 4px; overflow: hidden; }
.color-rule span { flex: 1 1 0; }

.prose { max-width: 760px; margin: 0 auto; }
.prose .body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: #2B2A26; }
.prose .body p, .prose .body ul { margin: 0; }
.prose .body ul { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose .body h2 { margin: 24px 0 0; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }

.contact-lede { margin: 20px 0 48px; font-size: 20px; line-height: 1.5; max-width: 40ch; color: var(--ink-2); }
.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.card-link {
  display: flex; border-radius: 12px; color: var(--ink) !important; box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(22, 21, 26, 0.08), 0 10px 24px rgba(22, 21, 26, 0.1); }
.card-email {
  flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding: 28px; background: var(--library);
}
.card-email .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.card-email .address {
  font-size: clamp(22px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; overflow-wrap: anywhere;
}
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card-social { align-items: center; justify-content: space-between; gap: 16px; min-height: 100px; padding: 20px 24px; }
.card-social .text { display: flex; flex-direction: column; gap: 6px; }
.card-social .small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.card-social .name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.card-social .arrow { font-size: 28px; }

@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
  .card-link:hover { transform: none; }
}
