/* Tintwell landing page. Colors follow the app's tokens (desktop/crates/pce-app/ui/tokens.slint). */
:root {
  --ink: #1c1c1f;
  --ink-2: #242428;
  --ink-3: #2e2e33;
  --line: rgba(255, 255, 255, 0.1);
  --bone: #ececf1;
  --fog: #a3a3ad;
  --violet: #8b7cf6;
  --violet-deep: #5b4bd6;
  --yellow: #f2c94c;
  --coral: #f0705a;
  --blue: #3e8ef7;
  --teal: #2bb3a3;
  /* app color roles (docs/UI Design System.md §3.2): Explore blue as the app draws it */
  --explore: #4d97f8;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--bone); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--violet); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--body);
  transition: background-color 0.15s;
}
.btn:hover { background: #9d90f8; }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(28, 28, 31, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--display); }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.top nav a:not(.btn) { color: var(--fog); text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--bone); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.lede { margin-top: 24px; max-width: 34em; font-size: 1.1875rem; color: #d2d2da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--fog); font-size: 0.9375rem; }

/* the live wheel */
.demo {
  margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 20px; align-items: center;
  padding: 20px; border-radius: 28px;
  background: var(--ink-2); border: 1px solid var(--line);
}
.demo-wheel { position: relative; }
.demo-wheel canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  cursor: grab; touch-action: none; border-radius: 50%;
}
.demo-wheel canvas:active { cursor: grabbing; }
.demo-wheel canvas:focus-visible { outline-offset: 6px; border-radius: 50%; }

.harmonies { display: flex; flex-wrap: wrap; gap: 6px; }
.harmonies button {
  font: 500 0.875rem/1 var(--body); color: var(--fog);
  padding: 9px 12px; border-radius: 999px; cursor: pointer;
  background: var(--ink-3); border: 1px solid transparent;
}
.harmonies button:hover { color: var(--bone); }
.harmonies button[aria-pressed="true"] { color: var(--bone); border-color: var(--explore); background: rgba(77, 151, 248, 0.16); }

.matches { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.matches li {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--ink);
}
.pot { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.28), inset 0 4px 6px rgba(255, 255, 255, 0.22); }
.match-role { display: block; color: var(--fog); font-size: 0.75rem; }
.match-name { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.match-de { color: var(--fog); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.demo figcaption { margin-top: 14px; color: var(--fog); font-size: 0.8125rem; line-height: 1.45; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .demo { max-width: 640px; }
}
@media (max-width: 560px) {
  .demo { grid-template-columns: 1fr; padding: 16px; }
  .demo-wheel { max-width: 320px; margin: 0 auto; width: 100%; }
}

/* ---------------------------------------------------------------- brands */
.brands {
  border-block: 1px solid var(--line);
  padding: 40px var(--gutter);
  text-align: center;
}
.brands h2 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 600; }
.brand-list { margin: 12px auto 0; max-width: 60em; color: var(--fog); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- sections */
.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 16em;
}

.features, .bench, .download, .faq {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}

.feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
}
.feature:nth-of-type(even) .shot { order: 2; }
/* The illustrations carry their own caption bar; crop it off, the copy says it better. */
.shot { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 560 / 256; background: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; }
.feature h3 { font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.feature p { margin-top: 14px; color: #d2d2da; max-width: 32em; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { position: relative; padding-left: 22px; color: var(--fog); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--explore);
}
/* each feature in its app area color: Explore blue, Studio amber (paint view, mixing),
   Library teal, palette violet (exports) */
.feature:nth-of-type(2) li::before { background: var(--yellow); }
.feature:nth-of-type(3) li::before { background: var(--yellow); }
.feature:nth-of-type(4) li::before { background: var(--teal); }
.feature:nth-of-type(5) li::before { background: var(--violet); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .shot { order: 0; }
}

/* the bench: a real sequence, drawn as a row of paint chips */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
}
.steps li { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.step-chip {
  display: flex; align-items: flex-end; justify-content: flex-start;
  height: 120px; margin-bottom: 20px; padding: 12px 14px;
  background: var(--c); border-radius: 18px 18px 18px 4px;
  color: rgba(0, 0, 0, 0.55); font: 800 2.25rem/1 var(--display);
}
.step-chip::after { content: counter(step); }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 6px; color: var(--fog); }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .step-chip { height: 72px; }
}

/* ---------------------------------------------------------------- download */
.download-lede { margin-top: 14px; color: var(--fog); max-width: 36em; }
.platforms {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.platform {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px;
  padding: 26px; min-height: 230px;
  border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line);
  text-decoration: none;
}
.platform svg { width: 36px; height: 36px; fill: var(--bone); margin-bottom: 18px; }
.platform-name { font: 700 1.375rem/1.2 var(--display); }
.platform-meta { color: var(--fog); font-size: 0.9375rem; }
.platform-action {
  justify-self: start; margin-top: 22px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--violet); color: #fff; font-weight: 600; font-size: 0.9375rem;
}
a.platform:hover { border-color: rgba(139, 124, 246, 0.6); }
a.platform:hover .platform-action { background: #9d90f8; }
.platform.is-soon { opacity: 0.75; }
.platform.is-soon .platform-action { background: var(--ink-3); color: var(--fog); }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } .platform { min-height: 0; } }

/* ---------------------------------------------------------------- faq */
.faq { padding-bottom: clamp(64px, 9vw, 120px); }
.faq .section-title { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); max-width: 52rem; }
summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 0; font: 600 1.1875rem/1.3 var(--display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--fog); transition: background-color 0.15s, border-color 0.15s;
}
details[open] summary::after { background: var(--violet); border-color: var(--violet); }
details p { padding: 0 0 22px; color: #d2d2da; max-width: 42em; }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  max-width: none;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font: 700 1.0625rem/1 var(--display); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--fog); text-decoration: none; }
.foot nav a:hover { color: var(--bone); }
.foot-note { flex-basis: 100%; color: var(--fog); font-size: 0.8125rem; }

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.legal h2 { font-size: 1.375rem; margin-top: 36px; }
.legal p { margin-top: 12px; color: #d2d2da; }
.legal .meta { color: var(--fog); margin-top: 10px; }
