/* Cotton Candy Tools — shared brand. Every tool links this file; colours come from the film's title art.
   Always light: the cream ground matches the poster, so there is deliberately no dark mode. */
:root {
  --grape: #cf63da;
  --tang: #f4a05e;
  --sky: #6cc3ff;

  --bg: #f4eee2;
  --surface: #fffaf1;
  --ink: #2b2233;
  --muted: #6c6274;
  --line: #e4d9c6;
  --action: #8f34a0;
  --action-ink: #ffffff;
  --link: #8f34a0;
  --tint: #f6e3f2;
  --warn: #9a4d00;
  --warn-tint: #fde9d4;
  --ok: #2f7a3e;

  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

/* Display type: the poster's wide, heavy grotesk */
.display, h1, h2.display {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Support bar */
.supportbar { background: var(--ink); color: var(--bg); font-size: 14px; }
.supportbar .wrap { padding-block: 9px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; align-items: center; text-align: center; }
.supportbar a { color: var(--tang); font-weight: 700; text-decoration: none; }
.supportbar a:hover { text-decoration: underline; }

/* Site header */
.site-header .wrap { padding-block: 22px 6px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 18px; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.navlink { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--grape); padding-bottom: 1px; }
.navlink:hover { color: var(--action); }

/* Trust list under each page's intro */
.perks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-size: 15px; font-weight: 600; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232f8a57'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 11px; padding: 11px 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }

/* Film card */
.film {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  scroll-margin-top: 20px;
}
@media (max-width: 680px) { .film { grid-template-columns: minmax(0, 1fr); padding: 20px; } .film .poster { max-width: 240px; } }
.film .poster { border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(143, 52, 160, .55); aspect-ratio: 2952 / 4375; width: 100%; object-fit: cover; }
.film .why { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 10px; }
.film p { margin: 0 0 20px; color: var(--ink); max-width: 56ch; font-size: 18px; line-height: 1.6; }
.film p strong { color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores .btn { flex: 1 1 auto; white-space: nowrap; }

.film-more { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--link); }

/* After-download thank-you */
.thanks > * { min-width: 0; }
.thanks { min-width: 0; border: 1.5px solid var(--grape); background: var(--tint); border-radius: 14px; padding: 16px; display: grid; gap: 10px; animation: ccbg-rise .35s ease-out; }
.thanks h3 { margin: 0; font-size: 16px; }
.thanks p { margin: 0; font-size: 14.5px; }
.thanks .links { display: flex; flex-wrap: wrap; gap: 8px; }
.thanks .dismiss { justify-self: start; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
@keyframes ccbg-rise { from { transform: translateY(6px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Inline trailer */
.trailer { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; animation: ccbg-rise .3s ease-out; }
.film .trailer { margin-top: 16px; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { margin-top: 56px; max-width: 760px; }
.faq h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 14px; }
.faq details { border-top: 1.5px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* More tools */
.more { margin-top: 56px; }
.more h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 14px; }
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.toolcard { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.toolcard b { font-size: 16px; }
.toolcard span { font-size: 14px; color: var(--muted); }
a.toolcard:hover { border-color: var(--grape); }
.toolcard.soon { opacity: .7; }
.seeall { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--link); }
.toolgroup + .toolgroup { margin-top: 40px; }
.group-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.group-note { margin: 0 0 14px; color: var(--muted); }
.group-title + .toolgrid { margin-top: 14px; }
.toolcard .tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1.5px solid var(--line); }
.site-footer .wrap { padding-block: 22px 44px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; color: var(--muted); }

.stripe { height: 6px; background: linear-gradient(90deg, var(--grape) 0 33.3%, var(--tang) 33.3% 66.6%, var(--sky) 66.6%); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px;
  max-width: calc(100% - 32px); text-align: center; z-index: 50;
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .thanks { animation: none; } .btn { transition: none; } }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }

/* No single leftover word on the last line of a paragraph. */
p, li, h1, h2, h3 { text-wrap: pretty; }
