/* Colorpuff pages (alagumna.com/colorpuff/). Own look, taken from the app: a soft sky, Puff the cloud, rainbow letters.
   Small colored things get a thick ink outline like the app's line art: the wordmark, the swatches, the category pills.
   No third-party fonts: the rounded system face on Apple devices, the system sans elsewhere. */

:root {
  --sky-top: #7CC8FF;
  --sky-bottom: #FFB8E1;
  --paper: #FFFFFF;
  --ink: #33295C;
  --muted: #5B5385;   /* on white only; too light on the pink end of the sky */
  --line: #E4DFF2;

  --red: #F04559;
  --orange: #FF8C26;
  --yellow: #FAC21A;
  --green: #4DBF59;
  --blue: #3399F2;
  --purple: #8C61F2;
  --pink: #ED59BF;

  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --sheet-radius: clamp(24px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--sky-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top) 0%, #B5C4F6 45%, var(--sky-bottom) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }

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

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

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

/* Header and footer */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3125rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.6); color: var(--ink); }

.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: 24px 0 40px; border-top: 2px solid rgba(51, 41, 92, 0.15); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* The App Store spot: a pill until the app is live */

.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--paper); border: 2.5px solid var(--ink); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.0625rem; text-decoration: none; }
.soon svg { width: 20px; height: 20px; flex: none; }
a.soon:hover { background: var(--ink); color: var(--paper); }

/* Landing: hero */

.hero { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); overflow-x: clip; }

.hero-icon { position: relative; width: clamp(128px, 20vw, 176px); margin-bottom: 6px; }
.hero-icon img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(51, 41, 92, 0.28)); }
.star { position: absolute; fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; animation: twinkle 2.6s ease-in-out infinite; }
.star.s1 { width: 26%; top: -10%; left: -30%; fill: var(--yellow); }
.star.s2 { width: 18%; top: 18%; right: -28%; animation-delay: -0.9s; }
.star.s3 { width: 14%; bottom: 12%; left: -24%; fill: #FFC6E8; animation-delay: -1.6s; }
.star.s4 { width: 20%; bottom: -8%; right: -20%; fill: var(--yellow); animation-delay: -2.1s; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.08) rotate(18deg); opacity: 1; }
}

/* The wordmark as in the app: each letter its own rainbow color, tilted a little, with the ink outline of the pictures. */
.wordmark { font-size: clamp(3.25rem, 12vw, 6.5rem); font-weight: 900; line-height: 1; letter-spacing: 0.01em; padding: 0.06em 0; }
.letters span {
  display: inline-block;
  transform: rotate(-4deg);
  --o: 0.035em;
  text-shadow:
    var(--o) 0 0 var(--ink), calc(-1 * var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1 * var(--o)) 0 var(--ink),
    0.025em 0.025em 0 var(--ink), -0.025em 0.025em 0 var(--ink), 0.025em -0.025em 0 var(--ink), -0.025em -0.025em 0 var(--ink),
    0.06em 0.07em 0 var(--paper);
}
.letters span:nth-child(even) { transform: rotate(4deg); }
.letters span:nth-child(7n+1) { color: var(--red); }
.letters span:nth-child(7n+2) { color: var(--orange); }
.letters span:nth-child(7n+3) { color: var(--yellow); }
.letters span:nth-child(7n+4) { color: var(--green); }
.letters span:nth-child(7n+5) { color: var(--blue); }
.letters span:nth-child(7n+6) { color: var(--purple); }
.letters span:nth-child(7n+7) { color: var(--pink); }

.lede { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.25; max-width: 22em; }

/* Landing: screenshots */

.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.screens figcaption { font-family: var(--display); font-weight: 700; }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: clamp(20px, 2.6vw, 34px); border: 5px solid var(--ink); background: var(--paper); }

/* Landing: white sheets */

.sheets { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.sheet { background: var(--paper); border-radius: var(--sheet-radius); padding: clamp(24px, 5vw, 56px); box-shadow: 0 24px 48px -32px rgba(51, 41, 92, 0.55); }
.sheet-head { max-width: 40em; display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.sheet-head p, .sheet .note { color: var(--muted); }
.sheet .note { margin-top: clamp(20px, 3vw, 28px); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 40px); }
.features li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: start; align-content: start; }
.features h3 { padding-top: 2px; }
.features p { grid-column: 2; color: var(--muted); }
.swatch { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); }
.swatch-glitter {
  background:
    radial-gradient(circle at 30% 32%, #FFFFFF 0 2px, transparent 3px),
    radial-gradient(circle at 68% 58%, #FFFFFF 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 44% 76%, #FFFFFF 0 1px, transparent 2px),
    radial-gradient(circle at 74% 26%, #FFFFFF 0 1px, transparent 2px),
    linear-gradient(135deg, #E6B422, #FF5FA2 55%, #B04DFF);
}

.categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.categories li { padding: 9px 20px; border-radius: 999px; border: 2.5px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.0625rem; }
.categories li:nth-child(7n+1) { background: #FFD0D6; }
.categories li:nth-child(7n+2) { background: #FFDDBF; }
.categories li:nth-child(7n+3) { background: #FFEFB0; }
.categories li:nth-child(7n+4) { background: #CFF0D3; }
.categories li:nth-child(7n+5) { background: #CDE6FF; }
.categories li:nth-child(7n+6) { background: #E0D4FF; }
.categories li:nth-child(7n+7) { background: #FFD3F0; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.checks li { position: relative; padding-left: 44px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13.25' fill='%234DBF59' stroke='%2333295C' stroke-width='2.5'/%3E%3Cpath d='M9.5 15.5l3.8 3.8 7.2-8' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.checks strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1875rem; color: var(--ink); margin-bottom: 2px; }

.price { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.price p { color: #DCD6F5; max-width: 38em; margin-top: 12px; }
.price .soon { color: var(--ink); border-color: var(--paper); margin-top: 0; }

/* Help and privacy: one sheet of paper */

.doc { max-width: 52rem; background: var(--paper); border-radius: var(--sheet-radius); padding: clamp(24px, 5vw, 56px); margin-top: clamp(8px, 2vw, 24px); box-shadow: 0 24px 48px -32px rgba(51, 41, 92, 0.55); }
.doc h1 { margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: 0.9375rem; margin-bottom: 28px; }
.doc .summary { font-size: 1.1875rem; color: var(--muted); padding-bottom: 24px; margin-bottom: 32px; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink)) 1; }
.doc h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 10px; }
.doc li strong { font-family: var(--display); }

/* Narrow screens and reduced motion */

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .site-nav a { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
}
