/* Color Cafe marketing site. One stylesheet, light mode only. */

:root {
  /* Ground + ink */
  --cream: #FDFBF7;
  --cream-deep: #F7F0E6;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4540;
  --line: #ECE4D8;

  /* Coplay Club flats */
  --hot-pink: #FD469E;
  --peach: #FE8BBF;
  --coral: #E85445;
  --orange: #FD7602;
  --marigold: #FEC602;
  --lime: #8CD154;
  --emerald: #018F88;
  --teal: #1FA89F;
  --deep-teal: #0C9D95;
  --royal: #2B5EE0;
  --purple: #8456D2;
  --violet: #6E3DC6;

  /* Color Cafe in-app pastels */
  --cc-coral: #FF787A;
  --cc-lavender: #AB80FF;
  --cc-mint: #99DBC7;
  --cc-sunny: #FFD16B;
  --cc-cream: #FFF7ED;
  --cc-sky: #B0E0FF;
  --rainbow: linear-gradient(90deg, #FF6B9E, #FF9966, #FFCC52, #8CDB8C, #6BB8FF, #B885FF);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 12px 32px -12px rgba(60, 40, 20, .16);
  --shadow-lg: 0 2px 4px rgba(30, 20, 10, .06), 0 30px 60px -24px rgba(30, 20, 10, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --max: 1160px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }

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

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

.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--violet);
}

/* ---------------------------------------------------------------- wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  /* The app's rainbow, deepened a step so it holds up as type on cream */
  background: linear-gradient(90deg, #F24F8C, #FF7A45, #F2AE1C, #4DB45A, #3B93EC, #9561F2);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--violet);
  -webkit-text-fill-color: transparent;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup .wordmark { font-size: 1.6rem; line-height: 1; padding-bottom: 2px; }
.lockup .by { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.lockup .by img { width: 66px; height: auto; }

/* ---------------------------------------------------------------- header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--violet); }
.site-nav .btn-store, .site-nav .btn-store:hover { color: var(--white); }
.site-nav .nav-link { display: none; }
@media (min-width: 900px) { .site-nav .nav-link { display: inline; } }
@media (max-width: 440px) {
  .lockup { gap: 7px; }
  .lockup .wordmark { font-size: 1.3rem; }
  .lockup .by img { width: 52px; }
  .site-header .btn-store.sm { padding: 8px 14px; }
  .site-header .btn-store.sm svg { display: none; }
}
@media (max-width: 330px) { .site-header .lockup .by { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  padding: 12px 22px 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-store:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-store svg { width: 30px; height: 30px; flex: none; }
.btn-store small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.btn-store strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.btn-store.sm { padding: 8px 16px 8px 12px; gap: 8px; box-shadow: none; }
.btn-store.sm svg { width: 22px; height: 22px; }
.btn-store.sm strong { font-size: .95rem; }
.btn-store.sm small { display: none; }
.btn-store[aria-disabled="true"] { cursor: default; }
.coming-soon { font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; }
.coming-soon b { font-weight: 600; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1.08fr; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .eyebrow { font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; font-weight: 500; }
.hero .lede { max-width: 34em; margin-bottom: 1.6em; }
.hero-note { display: flex; align-items: flex-end; gap: 8px; margin-top: 28px; }
.hero-note svg { width: 64px; height: 40px; flex: none; color: var(--violet); }
.hero-note .hand { transform: rotate(-3deg); }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li {
  background: var(--white); border-radius: 999px; padding: 6px 14px;
  font-size: .9rem; font-weight: 500; box-shadow: 0 1px 2px rgba(60,40,20,.06);
}

.hero-art { position: relative; aspect-ratio: 1 / .8; width: 100%; max-width: 640px; margin-inline: auto; }
.device { position: absolute; background: #1F1C1D; box-shadow: var(--shadow-lg); }
.device img { width: 100%; height: auto; }
.device-ipad { top: 0; right: 0; width: 86%; padding: 2.4%; border-radius: clamp(16px, 3.4vw, 34px); }
.device-ipad img { border-radius: clamp(8px, 1.8vw, 18px); }
.device-iphone { left: 0; bottom: 0; width: 27%; padding: 1.4%; border-radius: clamp(14px, 3.4vw, 38px); }
.device-iphone img { border-radius: clamp(10px, 2.8vw, 31px); }
.photo-card {
  position: absolute; right: 2%; bottom: 1%; width: 30%;
  background: var(--white); padding: 3% 3% 0; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg);
}
.photo-card img { border-radius: 4px; }
.photo-card span { display: block; text-align: center; font-size: clamp(.62rem, 1.6vw, .85rem); font-weight: 500; color: var(--ink-soft); padding: 6% 0 7%; }
.photo-arrow { position: absolute; right: 30%; bottom: 23%; width: 13%; color: var(--ink); transform: rotate(-8deg); }
.sparkle { position: absolute; width: 5%; color: var(--marigold); }
.sparkle.s1 { top: -3%; left: 10%; }
.sparkle.s2 { top: 4%; left: 4%; width: 3%; color: var(--hot-pink); }
.sparkle.s3 { bottom: 34%; right: -1%; width: 3.4%; color: var(--purple); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  background: var(--white); border-radius: var(--radius); padding: 14px 14px 26px;
  box-shadow: var(--shadow);
}
.step .art { border-radius: var(--radius-sm); overflow: hidden; background: var(--cc-cream); margin-bottom: 22px; }
.step .art img { width: 100%; }
.step h3, .step p { padding-inline: 12px; }
.step h3 { display: flex; align-items: center; gap: 10px; }
.step h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; letter-spacing: 0; color: var(--ink);
}
.step:nth-child(1) h3::before { background: var(--cc-sunny); }
.step:nth-child(2) h3::before { background: var(--cc-mint); }
.step:nth-child(3) h3::before { background: var(--cc-sky); }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------- family */
.family { padding-block: clamp(24px, 5vw, 48px); }
.family-card {
  position: relative; overflow: hidden;
  background: var(--violet); color: var(--white);
  border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  display: grid; gap: 40px; align-items: center;
}
.family-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--rainbow); }
@media (min-width: 900px) { .family-card { grid-template-columns: 1.2fr 1fr; } }
.family-card h2 { color: var(--white); }
.family-card p { color: #F1EAFF; font-size: 1.12rem; }
.family-card a { color: var(--white); }
.family-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.family-steps li {
  background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 16px 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--white);
}
.family-steps b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.family-steps span { color: #EDE4FF; font-size: .98rem; }
.family-steps i {
  font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--violet); font-weight: 700; font-family: var(--font-display);
}
.kids-row { display: flex; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.kids-row li { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--white); padding: 4px; }
.kids-row img { border-radius: 12px; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- not in it */
.notin { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .notin { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .notin { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.notin li { background: var(--white); border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow); }
.notin h3 { display: flex; align-items: center; gap: 12px; margin-bottom: .45em; font-size: 1.2rem; }
.notin h3 svg { width: 30px; height: 30px; flex: none; }
.notin p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------------------------------------------------------------- styles + difficulty */
.styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0 0 clamp(48px, 7vw, 80px); }
@media (min-width: 820px) { .styles-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.styles-grid li { background: var(--white); border-radius: var(--radius); padding: 10px 10px 16px; box-shadow: var(--shadow); }
.styles-grid img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 1; }
.styles-grid h3 { margin: 14px 8px 2px; font-size: 1.15rem; }
.styles-grid p { margin: 0 8px; color: var(--ink-soft); font-size: .95rem; }

.difficulty { background: var(--white); border-radius: 28px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .difficulty { grid-template-columns: .9fr 1.1fr; } }
.difficulty h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.04em; font-weight: 800; }
.difficulty p { color: var(--ink-soft); }
.diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.diff-row img { border-radius: 14px; width: 100%; aspect-ratio: 1; }
.diff-row span { display: block; text-align: center; font-size: .9rem; font-weight: 500; margin-top: 8px; }
.slider { position: relative; height: 10px; border-radius: 99px; background: var(--rainbow); margin: 22px 4px 8px; }
.slider::after {
  content: ""; position: absolute; top: 50%; left: 72%; width: 26px; height: 26px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--white); box-shadow: 0 0 0 3px var(--ink), var(--shadow);
}
.slider-labels { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }

/* ---------------------------------------------------------------- devices band */
.devices-band { padding-block: clamp(32px, 5vw, 56px); }
.devices-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; text-align: center; }
.devices-band p { text-wrap: balance; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(1.4rem, 3.4vw, 2.1rem); margin: 0; line-height: 1.15; }
.device-icons { display: flex; gap: 14px; align-items: flex-end; color: var(--ink); }
.device-icons svg { height: 48px; width: auto; }

/* ---------------------------------------------------------------- pricing */
.pricing { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; } }
.price-card { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: .3em; }
.price-card .price { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: 2.6rem; line-height: 1; margin: 10px 0 6px; }
.price-card .price small { font-size: 1rem; letter-spacing: -0.01em; font-weight: 700; color: var(--ink-soft); }
.price-card .sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; font-size: .98rem; }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 3px; background: var(--cc-mint); }
.price-card.featured { box-shadow: 0 0 0 3px var(--ink), var(--shadow-lg); }
.price-card .tag {
  position: absolute; top: -14px; left: 24px; background: var(--marigold); color: var(--ink);
  font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .01em;
}
.price-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 26px; }

/* ---------------------------------------------------------------- story */
.story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } }
.story-art { background: var(--white); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 460px; margin-inline: auto; width: 100%; }
.story-art img { border-radius: 18px; width: 100%; }
.story-art .hand { display: block; text-align: center; margin-top: 12px; font-size: 1.6rem; }
.story p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; box-shadow: 0 1px 2px rgba(60,40,20,.06); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--cream-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8v10M8 13h10' stroke='%231A1A1A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--violet); text-decoration: underline; }
.footer-meta { font-size: .88rem; color: var(--ink-soft); margin: 0; grid-column: 1 / -1; }
.footer-meta strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- legal + support pages */
.page-hero { padding-block: clamp(32px, 6vw, 64px) clamp(16px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.prose { max-width: 740px; }
.prose-card { background: var(--white); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.03em; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.meta-line { color: var(--ink-soft); font-size: .95rem; }
.contact-card {
  background: var(--cc-cream); border-radius: var(--radius); padding: 24px 26px; margin: 8px 0 28px;
}
.contact-card p { margin: 0; color: var(--ink); }
.contact-card a { font-weight: 600; font-size: 1.15rem; }
.support-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .support-grid { grid-template-columns: 1fr 340px; } .support-grid .faq { margin: 0; } }
.support-aside { display: grid; gap: 16px; }
@media (min-width: 960px) { .support-aside { position: sticky; top: 24px; } }
.aside-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: .5em; }
.aside-card p, .aside-card li { color: var(--ink-soft); font-size: .98rem; }
.aside-card ol { padding-left: 1.2em; margin: 0 0 1em; }
.btn-plain {
  display: inline-block; background: var(--ink); color: var(--white); text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .98rem;
}
.btn-plain:hover { color: var(--white); background: #333; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound img { width: 180px; margin: 0 auto 28px; border-radius: 24px; box-shadow: var(--shadow); }
.notfound .lede { max-width: 30em; margin-inline: auto; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; }
  .rise.d2 { animation-delay: .18s; }
  .rise.d3 { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .photo-card { animation: tilt-in 1.1s var(--ease) .35s both; }
  @keyframes tilt-in { from { opacity: 0; transform: rotate(0deg) translateY(16px); } to { opacity: 1; transform: rotate(6deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- utilities (no inline styles: CSP) */
.section[data-flush] { padding-top: 0; }
.story-art { margin-block: 0; }
.page-body { padding-bottom: 24px; }
.aside-card .contact-card { margin: 0 0 4px; }
.after-card { margin: 12px 0 0; }
.m-0 { margin: 0; }
.prose a, .faq .answer a, .aside-card a { overflow-wrap: anywhere; }
.page-hero .wrap.prose { max-width: var(--max); }
.page-hero .wrap.prose > * { max-width: 740px; }

/* ================================================================ guides (added 2026-11-01) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.site-nav .nav-guides { display: none; }
@media (min-width: 1040px) { .site-nav .nav-guides { display: inline; } }

.crumbs { font-size: .9rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #B5ABA0; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--violet); }

.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose-card > :last-child { margin-bottom: 0; }
.tldr { background: var(--cc-cream); border-radius: var(--radius-sm); padding: 18px 22px 6px; margin: 0 0 1.8em; }
.tldr h2 { font-size: 1.15rem; margin: 0 0 .5em; }
.callout { background: var(--cream); border-left: 4px solid var(--cc-lavender); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

.prose ul.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%231FA89F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.table-scroll { overflow-x: auto; margin: 0 0 .6em; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; line-height: 1.45; }
.compare-table th, .compare-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.compare-table thead th { background: var(--cream-deep); color: var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.compare-table tbody th { color: var(--ink); font-weight: 600; min-width: 150px; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tr.ours > * { background: var(--cc-cream); }
.compare-table .tag-ours { display: inline-block; margin-left: 4px; background: var(--cc-sunny); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.table-note { font-size: .88rem; color: var(--ink-soft); }

.guide-more { max-width: 820px; margin-top: clamp(32px, 5vw, 48px); }
.guide-more h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.03em; }
.guide-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .guide-links { grid-template-columns: repeat(2, 1fr); } }
.guide-links a {
  display: block; height: 100%; background: var(--white); border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(60,40,20,.06); text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.guide-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.guide-links b { display: block; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 4px; }
.guide-links span { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

.guide-cta {
  position: relative; overflow: hidden; max-width: 820px; margin-top: clamp(32px, 5vw, 48px);
  background: var(--violet); color: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 48px);
}
.guide-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--rainbow); }
.guide-cta h2 { color: var(--white); font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.guide-cta p { color: #F1EAFF; font-size: 1.08rem; }
.guide-cta .btn-store { background: var(--white); color: var(--ink); }
.guide-cta .btn-store:hover { color: var(--ink); }
.guide-cta .coming-soon, .guide-cta .coming-soon b { color: #F1EAFF; }
.guide-cta a:not(.btn-store) { color: var(--white); }

.prose .pixel-templates, .pixel-templates { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pixel-templates li { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 10px 12px; text-align: center; font-size: .92rem; color: var(--ink-soft); }
.pixel-templates img { width: 100%; border-radius: 10px; background: var(--white); margin-bottom: 8px; }
.pixel-templates b { display: block; color: var(--ink); }

.footer-guides { grid-column: 1 / -1; }
.footer-guides h2 { font-size: .95rem; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.footer-guides ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 24px; font-size: .95rem; }
@media (min-width: 560px) { .footer-guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-guides ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-guides a { color: var(--ink-soft); text-decoration: none; }
.footer-guides a:hover { color: var(--violet); text-decoration: underline; }

/* ---------------------------------------------------------------- photo to pixel art tool */
.tool { padding-bottom: 24px; }
.tool-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; } }
.tool-panel { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 22px; }
@media (min-width: 900px) { .tool-panel { position: sticky; top: 24px; } }
.tool-drop {
  border: 2px dashed #D9CFC2; border-radius: var(--radius-sm); padding: 22px 16px 14px; text-align: center;
  background: var(--cc-cream); transition: border-color .2s, background-color .2s;
}
.tool-drop.is-over { border-color: var(--violet); background: #F4EEFF; }
.tool-drop p { margin: 10px 0 2px; font-size: .95rem; color: var(--ink-soft); }
.tool-drop label.btn-plain { cursor: pointer; }
.tool-drop input:focus-visible + label { outline: 3px solid var(--royal); outline-offset: 3px; }
.tool-link {
  background: none; border: 0; padding: 4px; font: inherit; font-size: .95rem; color: var(--violet);
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; cursor: pointer;
}
.tool-link:hover { color: var(--ink); }
.tool-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.tool-field output { font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tool-field input[type="range"] { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--violet); cursor: pointer; }
.tool-hint { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); }
.tool-toggle { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-toggle legend { font-weight: 600; font-size: .98rem; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream-deep); border-radius: 999px; padding: 4px; }
.seg label { text-align: center; padding: 9px 8px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.seg input:checked + label { background: var(--white); font-weight: 600; box-shadow: 0 1px 3px rgba(60,40,20,.16); }
.seg input:focus-visible + label { outline: 3px solid var(--royal); outline-offset: 2px; }
button.btn-plain { border: 0; font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; }
button.btn-plain[disabled] { opacity: .45; cursor: default; }
.tool-panel .btn-plain.wide { width: 100%; text-align: center; padding-block: 13px; }
.tool-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.tool-privacy svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.tool-stage { background: var(--white); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.tool-canvas { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--cc-cream); image-rendering: pixelated; }
.tool-canvas.is-numbered { image-rendering: auto; }
.tool-status { margin: 12px 6px 4px; min-height: 1.6em; font-size: .95rem; color: var(--ink-soft); }
.tool-legend { list-style: none; padding: 0; margin: 6px 4px 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-legend li { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .8rem; }
.tool-swatch {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--white); font-weight: 700; font-size: .78rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.tool-swatch.is-light { color: var(--ink); }
.tool-hex { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tool-tip { margin: 2px 6px 6px; font-size: .85rem; color: var(--ink-soft); }
.tool-explain { margin-top: clamp(40px, 6vw, 64px); }

/* Apple's official App Store badge replaces the styled pill. */
.btn-store { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.btn-store .store-badge { display: block; height: 54px; width: auto; }
.btn-store.sm .store-badge { height: 40px; }
.btn-store:hover .store-badge { opacity: .9; }
