/* getpaletto.com — one stylesheet for every page. */
:root {
  --bg: #f4eee4;
  --wall: #ece4d7;
  --card: #fffdf8;
  --text: #2b2724;
  --muted: #6f6760;
  --accent: #800020;
  --accent-text: #fff;
  --rule: #e2d8c8;
  --terracotta: #c76142;
  --ochre: #d9a645;
  --sage: #7d9e78;
  --slate: #5c809e;
  --plum: #7d4f7a;
  --teal: #408a8c;
  --rose: #c97a8a;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(40, 30, 20, .08), 0 18px 40px -12px rgba(40, 30, 20, .28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a18;
    --wall: #24211e;
    --card: #2a2623;
    --text: #f2ede4;
    --muted: #b3aa9e;
    --accent: #cd5767;
    --rule: #3a3530;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Wordmark: one colour per letter, as in the app. */
.wordmark {
  font: 700 28px/1 var(--rounded);
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.wordmark span:nth-child(1) { color: var(--terracotta); }
.wordmark span:nth-child(2) { color: var(--ochre); }
.wordmark span:nth-child(3) { color: var(--sage); }
.wordmark span:nth-child(4) { color: var(--slate); }
.wordmark span:nth-child(5) { color: var(--plum); }
.wordmark span:nth-child(6) { color: var(--teal); }
.wordmark span:nth-child(7) { color: var(--rose); }
.wordmark span:nth-child(8) { color: var(--accent); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.top nav .hide-sm { display: inline; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .top nav { gap: 16px; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.accent { background: var(--accent); color: var(--accent-text); }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); }
.button.small { padding: 8px 16px; font-size: 14px; }
.button svg { width: 20px; height: 20px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); }

/* Launch switch: site.js adds .live to <html> once the app is on the App Store. */
.when-live { display: none !important; }
html.live .when-live { display: revert !important; }
html.live .when-soon { display: none !important; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 18px 0 18px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 16px; }
h3 { font-size: 23px; margin: 0 0 6px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.kicker { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 24px; } }
.fan { position: relative; height: 560px; }
.fan img {
  position: absolute; width: 46%; box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.fan img:nth-child(1) { left: 2%; top: 60px; transform: rotate(-6deg); }
.fan img:nth-child(2) { right: 2%; top: 40px; transform: rotate(5deg); }
.fan img:nth-child(3) { left: 27%; top: 0; z-index: 2; width: 47%; }
.fan:hover img:nth-child(1) { transform: rotate(-9deg) translateX(-14px); }
.fan:hover img:nth-child(2) { transform: rotate(8deg) translateX(14px); }
@media (max-width: 880px) { .fan { height: 118vw; max-height: 560px; } }

.chips { display: flex; gap: 6px; margin: 0 0 28px; }
.chips button {
  flex: 0 1 44px; min-width: 0; aspect-ratio: 1; border-radius: 10px; border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .15s ease;
}
.chips button:hover { transform: translateY(-3px); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sections */
section { padding: 88px 0; }
section.wall { background: var(--wall); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.flip > :first-child { order: 0; } }
.hung { box-shadow: var(--shadow); margin: 0 auto; }
.hung.tall { max-width: min(360px, 100%); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps div { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 18px; }
.steps div::before { content: "0" counter(step); font: 600 14px/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.steps h3 { margin-top: 10px; }
.steps p { margin: 0; color: var(--muted); }

ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ochre) 0 33%, var(--terracotta) 33% 66%, var(--slate) 66%);
}

/* Theme rail */
.rail {
  display: flex; gap: 28px; overflow-x: auto; padding: 24px 20px 36px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  max-width: 1120px; margin: 0 auto;
}
.rail figure { flex: none; margin: 0; scroll-snap-align: center; }
.rail img { height: 420px; width: auto; box-shadow: var(--shadow); }
.rail figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.rail figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .rail img { height: 340px; } }

/* Three frames side by side (swatch styles, details) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; align-items: end; }
.trio figure { margin: 0; }
.trio img { box-shadow: var(--shadow); width: 100%; }
.trio figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
.trio figcaption b { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
@media (max-width: 760px) {
  .trio { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .trio img { max-width: 360px; margin: 0 auto; }
  .trio figcaption { text-align: center; }
}

/* Code card for designers */
.codecard {
  background: #1f1c1a; color: #efe8dc; border-radius: 18px; padding: 22px 24px;
  font: 14px/1.7 ui-monospace, "SF Mono", Menlo, monospace; box-shadow: var(--shadow); overflow-x: auto;
}
.codecard .row { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.codecard i { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.codecard .c { color: #9b928a; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }

/* Grid of small features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.tile h3 { font-size: 19px; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* Wall of frames */
.salon { columns: 4 220px; column-gap: 22px; margin-top: 40px; }
.salon img { break-inside: avoid; margin: 0 0 22px; box-shadow: var(--shadow); width: 100%; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 40px; align-items: start; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 30px; }
.plan.pro { border: 2px solid var(--accent); position: relative; }
.plan h3 { font-size: 28px; }
.plan .price { font: 600 40px/1.1 var(--serif); margin: 8px 0 2px; }
.plan .price small { font: 400 16px var(--sans); color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
@media (max-width: 480px) { .options { grid-template-columns: 1fr; } }
.options div { border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.options div.best { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.options b { display: block; font-size: 15px; }
.options span { font-size: 20px; font-family: var(--serif); font-weight: 600; }
.options em { display: block; font-style: normal; font-size: 13px; color: var(--accent); font-weight: 600; }
.plan ul.ticks li { font-size: 16px; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Closing call */
.closing { text-align: center; }
.closing .ctas { justify-content: center; }
.strip { display: flex; height: 10px; border-radius: 5px; overflow: hidden; max-width: 320px; margin: 0 auto 30px; }
.strip i { flex: 1; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 56px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .right { margin-left: auto; color: var(--muted); }

/* Plain pages (support, privacy, look) */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 8px 26px 26px; margin-top: 28px; }
.card h2 { font-family: var(--sans); font-size: 19px; font-weight: 650; letter-spacing: 0; margin: 28px 0 6px; }
.page .strip { margin: 0 0 30px; }

/* Reveal on scroll (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fan img, .button, .chips button { transition: none; }
  html { scroll-behavior: auto; }
}
