/* crstudios.ca — one stylesheet for every page.
   Fonts are system fonts on purpose: nothing is fetched from a font host, so no
   third party sees a visit before the consent banner is answered. On Apple
   devices the headings render in SF Pro Rounded, the face the app's numbers use.
   Colours are the app's own: the accent, the Home Screen gradient behind the
   store screenshots, and the per-event colours in the countdown list. */

:root {
  --ink: #1b1d2a;
  --ink-soft: #424656;
  --muted: #646879;
  --accent: #5b5bd6;        /* Marked Days accent */
  --accent-deep: #4343b8;
  --violet: #6d4ce8;
  --blue: #2563eb;
  --teal: #0f8f83;
  --pink: #d9407e;
  --green: #1f9a55;
  --orange: #e8890c;
  --bg: #fbfaff;
  --card: #ffffff;
  --line: #e6e3f0;
  --tint: #efeefb;
  --radius: 20px;
  --measure: 36rem;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero: linear-gradient(135deg, #4338ca 0%, #2563eb 40%, #0f766e 75%, #4338ca 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
button, input { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--round); letter-spacing: -.015em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(31px, 6.6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(27px, 5vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(18px, 2.4vw, 21px); }
.eyebrow {
  display: inline-block; font: 750 12.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 7px 12px; margin: 0 0 16px;
}

/* ---------- header / footer ---------- */
.site-head { padding: 12px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 750 18px/1 var(--round); color: inherit; text-decoration: none; letter-spacing: -.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.head-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 600; color: inherit; }
.site-head.plain { background: var(--hero); background-size: 200% 200%; color: #fff; }

.site-foot { background: #15132b; color: #c9c7de; padding: 36px 0 44px; font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
.site-foot nav a {
  display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 14.5px; text-decoration: underline;
}
.site-foot p { margin: 0 0 8px; max-width: 52rem; }
.legal { font-size: 12.5px; color: #a3a1bd; }

/* ---------- App Store badge (Apple artwork, unmodified) ---------- */
/* Apple: at least 40px tall on screen, clear space of a quarter of its height,
   subordinate to the main message. 48px tall keeps the tap target above 44px. */
.badge-link { display: inline-block; padding: 12px; margin: -12px; line-height: 0; }
.badge-link img { height: 48px; width: auto; }
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.iphone-only { font: 650 14px/1 var(--body); color: var(--ink-soft); background: var(--tint); border-radius: 999px; padding: 9px 13px; }
.android-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #5c3b00; font-size: 15px; }
.android-note[hidden] { display: none; }

/* ---------- phone screenshots ---------- */
.shot {
  width: min(76vw, 290px);
  border-radius: 36px; border: 7px solid #15161d; background: #15161d; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(40, 30, 110, .45);
}
.shot img { width: 100%; aspect-ratio: 600 / 1304; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--hero); background-size: 220% 220%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; padding-top: 18px; padding-bottom: 64px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-id img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.app-id span { font: 700 15px/1.3 var(--body); color: rgba(255,255,255,.85); }
.hero h1 { text-wrap: balance; }
.hero h1 em { font-style: normal; color: #fde68a; }
.hero .lede { color: rgba(255,255,255,.92); }
.hero .iphone-only { background: rgba(255,255,255,.18); color: #fff; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; max-width: var(--measure); }
.facts li { position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 16px; color: rgba(255,255,255,.95); }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- live widgets (HTML copies of the app's widget layout) ---------- */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 360px); justify-self: center; }
.board .wdg.medium { grid-column: 1 / -1; }
.board-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.8); text-align: center; max-width: none; }

.wdg {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; isolation: isolate;
  aspect-ratio: 1; padding: 13px 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: #2b2a44 center/cover no-repeat;
  box-shadow: 0 16px 34px -14px rgba(10, 8, 40, .6);
}
.wdg.medium { aspect-ratio: 2.12; }
.wdg::before {  /* darker on the left, where the count sits, as in 1.1 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 55%, rgba(0,0,0,.08) 100%);
}
.wdg .sym { width: 18px; height: 18px; }
.wdg .num { font: 800 clamp(34px, 9vw, 44px)/1 var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wdg .cap { font-size: 12px; opacity: .9; margin-top: 2px; }
.wdg .ttl { font: 700 14px/1.2 var(--body); }
.wdg .sub { font-size: 11.5px; opacity: .85; }
.wdg.medium .num { font-size: clamp(38px, 11vw, 50px); }
.wdg .num.live { font-size: clamp(26px, 7.4vw, 34px); }
.wdg .plus-tag { position: absolute; top: 12px; right: 12px; font: 750 10.5px/1 var(--body); letter-spacing: .05em; background: rgba(255,255,255,.22); padding: 5px 7px; border-radius: 999px; }

.float { animation: bob 6s ease-in-out infinite; }
.float:nth-child(2) { animation-delay: -2s; }
.float:nth-child(3) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Section labels: the app's list-row style, a tinted circle holding the event symbol. */
.label { display: inline-flex; align-items: center; gap: 10px; font: 750 15px/1 var(--body); color: var(--c); margin: 0 0 14px; }
.label .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); }
.label svg { width: 18px; height: 18px; }

/* ---------- colour bands ---------- */
.band { padding: 72px 0; }
.band-peach { background: linear-gradient(180deg, #fff1f2, #fff7ed); }
.band-lilac { background: linear-gradient(180deg, #f3f0ff, #ede9fe); }
.band-mint  { background: linear-gradient(180deg, #ecfdf5, #f0fdfa); }
.band-sky   { background: linear-gradient(180deg, #eff6ff, #f5f3ff); }
.band-peach .eyebrow { background: var(--pink); }
.band-lilac .eyebrow { background: var(--violet); }
.band-mint .eyebrow  { background: var(--teal); }
.band-sky .eyebrow   { background: var(--blue); }

.split { display: grid; gap: 40px; align-items: center; }
.split .shot { justify-self: center; }
.split ul { padding-left: 1.2em; margin: 0 0 1em; max-width: var(--measure); }
.split li { margin-bottom: .45em; }

/* ---------- occasion maker ---------- */
.rot { display: inline-block; color: var(--pink); transition: opacity .3s, transform .3s; }
.rot.out { opacity: 0; transform: translateY(.3em); }
.maker { display: grid; gap: 28px; align-items: start; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.chips legend, .field label, .units legend { font: 700 13px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 650; font-size: 15.5px; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip svg { width: 17px; height: 17px; }
.chip input:checked + span { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; transform: translateY(-1px); }
.chip input:focus-visible + span, .unit input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field input {
  min-height: 48px; font-size: 17px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  max-width: 280px;
}
.units { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.unit { position: relative; }
.unit input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.unit span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 650; font-size: 15px;
}
.unit input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.unit small { font: 750 10px/1 var(--body); letter-spacing: .05em; background: linear-gradient(90deg, var(--violet), var(--pink)); color: #fff; padding: 4px 6px; border-radius: 999px; }
.maker-note { font-size: 15px; color: var(--ink-soft); }
.preview { justify-self: center; width: min(100%, 380px); order: -1; }
.preview .wdg { transition: background-image .3s; }
.preview .wdg .num { transition: transform .25s; }
.preview .wdg .num.tick { transform: scale(1.06); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.tags li { background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 650; color: var(--ink-soft); border: 1.5px solid #fde2e8; }

/* ---------- picture strip (1.1 picture library) ---------- */
.strip { margin-top: 48px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-row { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.strip-row + .strip-row { margin-top: 12px; animation-direction: reverse; animation-duration: 70s; }
.strip img { width: 132px; height: 132px; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 18px -10px rgba(40,30,110,.5); }
.strip:hover .strip-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip-cap { text-align: center; margin: 16px auto 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Free and Plus ---------- */
.plans { display: grid; gap: 20px; margin-top: 28px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 24px 24px 12px; box-shadow: 0 12px 30px -20px rgba(40,30,110,.35); }
.plan h3 { margin-bottom: 4px; }
.plan .plan-sub { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.plan ul { padding-left: 1.15em; margin: 0 0 12px; }
.plan li { margin-bottom: .5em; font-size: 16px; }
.plan.free { border-top: 6px solid var(--teal); }
.plan.plus {
  border: 2.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--violet), var(--pink), var(--orange)) border-box;
}
.plan.plus h3 { color: var(--violet); }
.pair { display: flex; gap: 18px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pair figure { margin: 0; text-align: center; width: min(42vw, 230px); }
.pair .shot { width: 100%; border-width: 5px; border-radius: 28px; }
.pair figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; max-width: 230px; }

/* ---------- ten ways to count (the app's Ways to count list, live) ---------- */
.ways-wrap { margin-top: 56px; }
.ways-h { font-size: clamp(24px, 4.4vw, 32px); }
.ways-card { justify-self: center; width: min(100%, 380px); background: #fff; border-radius: 26px; padding: 22px 16px 10px; box-shadow: 0 24px 50px -28px rgba(40,30,110,.5); }
.ways-head { text-align: center; color: var(--c); padding-bottom: 6px; }
.ways-head .sym { width: 26px; height: 26px; }
.ways-num { font: 800 clamp(48px, 15vw, 64px)/1.05 var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.ways-cap { color: var(--muted); font-size: 15px; }
.ways-ttl { color: var(--ink); font: 700 18px/1.3 var(--body); margin-top: 4px; }
.ways-label { font: 650 13px/1 var(--body); color: var(--muted); margin: 18px 4px 8px; }
.ways-list { list-style: none; margin: 0; padding: 0 12px; background: #f4f3f9; border-radius: 16px; }
.ways-list li { border-bottom: 1px solid #e3e1ec; }
.ways-list li:last-child { border-bottom: 0; }
.ways-list button {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 0; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left;
}
.ways-list .w-l { color: var(--muted); }
.ways-list .w-l small { font: 750 9.5px/1 var(--body); letter-spacing: .05em; background: linear-gradient(90deg, var(--violet), var(--pink)); color: #fff; padding: 3px 5px; border-radius: 999px; vertical-align: 2px; }
.ways-list .w-v { font-variant-numeric: tabular-nums; text-align: right; }
.ways-list button[aria-pressed="true"] .w-v { color: var(--c); font-weight: 700; }
.ways-list button[aria-pressed="true"] .w-v::after { content: " \2713"; }
.ways-list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.ways-list li:not(:has(button)) { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 15px; }

/* ---------- closer ---------- */
.closer { color: #fff; background: var(--hero); background-size: 220% 220%; animation: drift 18s ease-in-out infinite alternate; padding: 64px 0; }
.closer .iphone-only { background: rgba(255,255,255,.18); color: #fff; }
.closer a:not(.badge-link) { color: #fff; }
.closer .small { font-size: 15px; color: rgba(255,255,255,.88); margin-top: 22px; }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 840px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-top: 36px; padding-bottom: 84px; }
  .split { grid-template-columns: .8fr 1.2fr; }
  .split.flip { grid-template-columns: 1.2fr .8fr; }
  .split.flip .shot { order: 2; }
  .maker { grid-template-columns: 1.1fr .9fr; }
  .preview { order: 2; position: sticky; top: 24px; }
  .plans { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .closer, .site-head.plain, .float, .strip-row { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rot, .preview .wdg .num { transition: none; }
  .strip { overflow-x: auto; }
}

/* ---------- privacy page ---------- */
.doc { max-width: 44rem; padding: 36px 0 56px; }
.doc .eyebrow { background: var(--violet); }
.doc h2 { font-size: 24px; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; max-width: var(--measure); }
.doc .box { background: var(--card); border-left: 5px solid var(--teal); border-radius: 0 14px 14px 0; padding: 16px 18px; margin: 20px 0; box-shadow: 0 10px 26px -20px rgba(40,30,110,.4); }
.doc .box p { margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 20px; border-radius: 12px; font: 650 15px/1 var(--body); cursor: pointer; text-decoration: none;
  border: 1.5px solid var(--accent); background: var(--accent); color: #fff;
}
.btn-outline { background: transparent; color: var(--accent-deep); }
.status-note { font-size: 14px; color: var(--muted); }

/* ---------- consent banner (built by assets/site.js) ---------- */
.cr-consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 620px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  padding: 16px 18px; box-shadow: 0 12px 36px rgba(29, 31, 43, .22);
}
.cr-consent[hidden] { display: none; }
.cr-consent p { margin: 0; flex: 1 1 260px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.cr-consent .actions { display: flex; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
@media (max-width: 480px) {
  .cr-consent .actions { width: 100%; }
  .cr-consent .actions .btn { flex: 1; }
}
