/* Iris Kids website. Colours and type from Rainbow's design system (E:/Rainbow/docs/design-system.md).
   The idea: the rainbow is the arc of a center's day. Its seven hues appear only as the rainbow - the mark, the
   stripe at the top, and the day's timeline, red in the morning to violet in the evening. Everything else is quiet.
   No inline styles anywhere: the Content-Security-Policy in _headers allows only this file. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); }

:root {
  --paper: #F6F5F1; --sheet: #FFFFFF; --ink: #17191C; --graphite: #5B5F66; --line: rgba(23, 25, 28, .12);
  --r0: #E0523D; --r1: #E8891C; --r2: #F0B331; --r3: #1D8A57; --r4: #0E8A9E; --r5: #2E6BE0; --r6: #7A3FD6;
  --max: 1120px;
  color-scheme: light;
}
/* The website shows its light look on every device, dark mode or not (Jossell, 2026-12-05), so Iris's picture always
   sits on the paper it was made for. The app keeps its own dark mode. */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--r5); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

h1 { font-size: clamp(40px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin: 0 0 6px; }

/* The mark: the clean rainbow, its bands coloured by the theme. */
/* Line icons (Lucide), the colour of the text around them unless a section says otherwise. */
.icon { width: 22px; height: 22px; flex: none; }
/* The seven hues blend into each other across the top (Jossell, 2026-12-05: no blocks). */
.hairline { height: 6px; background: linear-gradient(90deg,
  var(--r0), var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6)); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
/* The logo: Iris's round portrait in a gold ring (Jossell, 2026-12-05), in place of the plain rainbow. */
.brand .mark { width: 44px; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .links { display: flex; gap: 28px; }
.site-nav .links a { text-decoration: none; color: var(--graphite); font-size: 16px; }
.site-nav .links a:hover { color: var(--ink); }

/* Buttons say what happens; two kinds only. */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--graphite); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero: the headline, and Jossell's picture of Iris flying the rainbow in (2026-12-05). */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center;
  padding-top: 72px; padding-bottom: 112px; }
.hero-lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; color: var(--graphite); margin: 0 0 20px; }
.hero-body { max-width: 34em; margin: 0 0 32px; }
/* Iris: Jossell's full-size picture, still (2026-12-05, in place of the animation). Its white ground carries the
   paper colour itself (art/make.py), so nothing is blended or faded and its edges stay crisp. */
.iris-art { margin: 0; }
.iris-art img { display: block; width: 100%; height: auto; }

/* Rows you swipe or scroll sideways, so long parts take one screen's height (Jossell, 2026-12-05: "Swipe long parts
   sideways"). Native scrolling with snap points; focusable, so the arrow keys scroll them too. */
.swipe { list-style: none; margin: 0; padding: 6px 2px 16px; display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.swipe > li { min-width: 0; scroll-snap-align: start; }
.swipe:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

/* The day: seven moments in a row, each card topped with its band, red in the morning to violet at night, so the row
   reads as the rainbow unrolled. */
.day { background: var(--sheet); }
.day-inner { padding-top: 104px; padding-bottom: 104px; }
.day-intro { margin-bottom: 28px; }
.day-intro p { color: var(--graphite); max-width: 24em; margin: 0; }
.moments > li { flex: 0 0 min(78%, 264px); padding: 18px 20px 22px; border-top: 6px solid var(--hue);
  border-radius: 6px 6px 14px 14px; background: var(--paper); }
.moments time { display: block; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; color: var(--graphite); white-space: nowrap; }
.moments h3 { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.moments h3 .icon { color: var(--hue); }
.moments p { margin: 0; color: var(--graphite); font-size: 17px; }
.m0 { --hue: var(--r0); } .m1 { --hue: var(--r1); } .m2 { --hue: var(--r2); } .m3 { --hue: var(--r3); }
.m4 { --hue: var(--r4); } .m5 { --hue: var(--r5); } .m6 { --hue: var(--r6); }

/* The quieter sections that follow. */
.families { padding-top: 112px; }
.lede { color: var(--graphite); font-size: 19px; margin: 0; }
.families-list { margin-top: 28px; }
.families-list > li { flex: 0 0 min(64%, 200px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 18px 18px 20px; border-radius: 14px; background: var(--sheet); font-size: 17px; }
.families-list .icon { width: 26px; height: 26px; color: var(--r5); }
.trust { padding-top: 104px; }
.trust-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 28px; }
.trust-cols p { margin: 0; color: var(--graphite); font-size: 17px; }
.trust-cols .icon { width: 28px; height: 28px; margin-bottom: 14px; color: var(--r3); }

/* App screenshots from Rainbow's made-up demo center (Jossell, 2026-12-05: "Real app screenshots"), beside what they
   explain. The tablet and the phones sit in a plain ink frame, side by side where they fit and in a row to swipe where
   they do not. The web screen has a thin border, and on phones it scrolls sideways so its table stays readable. */
.screens { margin-top: 40px; gap: 32px; align-items: flex-start; }
.shot { margin: 0; scroll-snap-align: start; }
.screens > .shot-tablet { flex: 0 0 min(86%, 760px); }
.screens > .shot-phone { flex: 0 0 min(62%, 260px); }
.shot img { display: block; width: 100%; height: auto; background: var(--ink); border: 9px solid var(--ink); border-radius: 20px; }
.shot-phone img { border-width: 7px; border-radius: 32px; }
.shot figcaption { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--graphite); max-width: 34em; }
.screens-note { margin: 2px 0 0; font-size: 14px; color: var(--graphite); }
.shot-web { margin-top: 56px; }
.shot-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shot-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.shot-web img { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
.pricing { padding-top: 104px; }
.pricing p { color: var(--graphite); max-width: 40em; margin: 0; }
.closing { padding-top: 104px; padding-bottom: 120px; }
.closing p { color: var(--graphite); max-width: 36em; margin: 0 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--graphite); font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer p { margin: 12px 0 0; }
.site-footer .brand { color: var(--ink); font-size: 17px; }
.site-footer .brand .mark { width: 34px; height: 34px; }
.footer-links, .contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }

/* Legal and help pages */
.page { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.page h1 { font-size: clamp(34px, 4.4vw, 48px); }
.page h2 { font-size: 24px; letter-spacing: -.01em; margin: 44px 0 10px; }
.page p, .page li { margin: 0 0 12px; }
.page ul, .page ol { padding-left: 1.3em; margin: 0 0 12px; }
.page .updated { color: var(--graphite); margin-bottom: 32px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; padding-bottom: 80px; }
  /* On phones and tablets Iris comes first, smaller, with the headline right under her (Jossell, 2026-12-05). */
  .iris-art { order: -1; width: min(72%, 400px); margin-inline: auto; }
  .day-inner { padding-top: 72px; padding-bottom: 72px; }
  .trust-cols { grid-template-columns: 1fr; gap: 28px; max-width: 40em; }
  .site-nav .links { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .families, .trust, .pricing { padding-top: 80px; }
  .closing { padding-top: 80px; padding-bottom: 88px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .shot-web img { width: 720px; max-width: none; }
}
