/* The member apps' own pages on thecasl.ca (24 Sept 2026), written by src/apps/suite/landing.mjs.
   One layout; each page sets its app's own colours and type in :root, and a look (data-look on body)
   for the touches that make it feel like that app: stamp (Oddly Good), fresh (Basketful), round
   (Hello Again), plum (Alongside), grid (Kinweek), paper (Family Gazette). At Hand keeps its own sheet. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.6; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; background: #fff; color: #111; padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: var(--hw); letter-spacing: var(--ht); }
h1 em, h2 em { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; color: var(--accent); }
section { scroll-margin-top: 16px; }

/* the thin CASL strip */
.casl-bar { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.casl-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.casl-home { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.casl-home svg { width: 26px; height: 26px; flex: none; }
.casl-home b { letter-spacing: .04em; }
.casl-bar-r { color: var(--muted); }
.casl-bar-r a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wc); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.wordmark { display: block; font-family: var(--wf); font-weight: var(--ww); letter-spacing: var(--wt); font-size: 2.05rem; line-height: 1; white-space: nowrap; word-spacing: .14em; padding-right: .08em; }
.wordmark .wa { color: var(--wacc); }
.wordmark small { font-size: .5em; letter-spacing: .02em; text-transform: uppercase; vertical-align: .35em; margin-right: .1em; }
.word-sub { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 7px; white-space: nowrap; }
.mast-nav { display: flex; gap: 26px; font-size: 15.5px; }
.mast-nav a { color: var(--muted); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.mast-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: var(--r); border: 2px solid var(--dark); font-size: 16.5px; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background .16s, color .16s, transform .16s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--dark); color: var(--on-dark); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--soft); border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17.5px; }

/* eyebrows and section heads */
.eyebrow { display: flex; align-items: center; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--muted); }
.rule { width: 22px; height: 3px; background: var(--accent); display: inline-block; margin-right: 11px; flex: none; border-radius: 2px; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; }
.sec-head { margin-bottom: 34px; max-width: 900px; }
.sec-sub { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(3rem, 1.5rem + 5.2vw, 5.4rem); line-height: 1.02; margin-bottom: 26px; }
.lede { margin: 0 0 30px; font-size: 1.16rem; color: var(--muted); max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-photo { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo figcaption { padding: 14px 18px; background: var(--dark); color: var(--on-dark); font-size: 15px; }
.hero-photo figcaption::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--dark-accent); vertical-align: .05em; }

/* CASL Trusted */
.trusted { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 16px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #24211f; text-decoration: none; font-size: 15px; white-space: nowrap; box-shadow: 0 2px 10px rgba(20, 20, 30, .1); }
.trusted svg { width: 28px; height: 28px; flex: none; }
.trusted b { font-weight: 800; letter-spacing: .04em; }
.trusted:hover { border-color: var(--accent); }
.trusted-float { position: absolute; top: 14px; right: 14px; }
.trusted-xl { gap: 14px; padding: 12px 28px 12px 14px; font-size: 22px; }
.trusted-xl svg { width: 52px; height: 52px; }

/* film */
.film { padding: 80px 0 24px; }
.player { position: relative; border-radius: var(--r); overflow: hidden; background: #111; aspect-ratio: 16 / 9; box-shadow: 0 24px 60px rgba(20, 20, 30, .16); }
.player video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.film-desc { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

/* how it works */
.how { padding: 80px 0 24px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-steps > li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 26px; }
.num { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 2.6rem; line-height: 1; color: var(--accent); letter-spacing: -.045em; margin-bottom: 16px; }
.how-steps h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.how-steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* what it does */
.does { padding: 80px 0 24px; }
.does-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.does-grid li { position: relative; padding: 22px 24px 22px 44px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.does-grid li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.does-grid li::before { content: ''; position: absolute; left: 16px; top: 30px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* good to know, and the family note */
.know { padding: 80px 0 24px; }
.know-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.know-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.know-list li { padding: 16px 20px; border-left: 4px solid var(--accent2); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); font-size: 1.02rem; }
.fam { padding: 26px 28px; border-radius: var(--r); background: var(--dark); color: var(--on-dark); }
.fam h3 { color: var(--on-dark); font-size: 1.4rem; margin-bottom: 10px; }
.fam p { margin: 0 0 10px; font-size: 1rem; opacity: .92; }
.fam a { color: var(--dark-accent); font-weight: 700; text-underline-offset: 3px; }

/* price */
.price { padding: 80px 0 24px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.plan p { margin: 0; color: var(--muted); font-size: 1rem; }
.plan .btn { margin-top: 14px; }
.plan-member { border: 2px solid var(--dark); }
.plan-who { font-size: 13px !important; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink) !important; }
.plan-price { font-size: 3rem !important; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; color: var(--ink) !important; margin: 4px 0 6px !important; }
.plan-price small { font-size: 1.1rem; letter-spacing: 0; font-weight: 400; color: var(--muted); }

/* CASL Trusted section */
.trusted-sec { margin-top: 80px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trusted-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0; }
.trusted-in p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); max-width: 42em; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink) !important; text-underline-offset: 4px; }
.more svg { width: 17px; height: 17px; }

/* questions */
.faq { padding: 80px 0 24px; }
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.14rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1; color: var(--accent); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; }

/* close and footer */
.close { padding: 96px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.close h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); }
.close .hero-btns { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.foot-brand p { margin: 10px 0 0; max-width: 36em; }
.foot-brand .wordmark { font-size: 1.6rem; }
.foot-brand .logo-mark { width: 34px; height: 34px; }
.foot-motto { font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--ink); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 26px; }
.foot-nav a { color: var(--ink); text-underline-offset: 3px; padding: 4px 0; }

/* ---- looks ---- */
/* stamp: Oddly Good's inked borders and offset shadows */
[data-look="stamp"] .mast { border-bottom: 3px solid var(--ink); }
[data-look="stamp"] .how-steps > li, [data-look="stamp"] .plan, [data-look="stamp"] .hero-photo { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
[data-look="stamp"] .btn { box-shadow: 0 3px 0 var(--ink); }
[data-look="stamp"] .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
[data-look="stamp"] .num { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent2); color: var(--ink); font-size: 1.5rem; transform: rotate(-6deg); }
[data-look="stamp"] .know-list li { border-left-color: var(--accent); }
[data-look="stamp"] .does-grid li::before { border-color: var(--accent); }
/* fresh: Basketful's soft green panels and a red basket tick */
[data-look="fresh"] .how-steps > li { background: var(--soft); border-color: transparent; }
[data-look="fresh"] .num { color: var(--accent2); }
[data-look="fresh"] .rule { background: var(--accent2); }
[data-look="fresh"] .hero-photo { box-shadow: 0 18px 40px rgba(24, 51, 46, .14); }
/* round: Hello Again's big soft corners and a yellow dot */
[data-look="round"] .btn { border-radius: 999px; }
[data-look="round"] .num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--accent2); font-family: Arial, sans-serif; font-weight: 800; font-size: 1.35rem; transform: rotate(-5deg); }
[data-look="round"] .how-steps > li { border: 0; box-shadow: 0 10px 30px rgba(26, 36, 80, .08); }
[data-look="round"] .know-list li { border-radius: 16px; border-left-width: 6px; }
/* plum: Alongside's dark plum band and coral */
[data-look="plum"] .how { background: var(--dark); padding: 80px 0 88px; margin-top: 64px; width: 100%; max-width: none; }
[data-look="plum"] .how > * { width: min(1200px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
[data-look="plum"] .how h2, [data-look="plum"] .how h3 { color: var(--on-dark); }
[data-look="plum"] .how h2 em { color: var(--dark-accent); }
[data-look="plum"] .how .eyebrow { color: #cfc2d6; }
[data-look="plum"] .how-steps > li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
[data-look="plum"] .how-steps p { color: #e2d9e6; }
[data-look="plum"] .num { color: var(--dark-accent); }
/* grid: Kinweek's calendar squares */
[data-look="grid"] .how-steps > li { border-top: 6px solid var(--accent2); }
[data-look="grid"] .num { font-family: Arial, sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: var(--dark); background: var(--soft); display: inline-block; padding: 6px 10px; border-radius: 6px; }
[data-look="grid"] .does-grid { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
/* paper: Family Gazette's newsprint rules */
[data-look="paper"] .mast { border-bottom: 4px double var(--ink); }
[data-look="paper"] .sec-head { border-top: 2px solid var(--ink); padding-top: 14px; }
[data-look="paper"] .how-steps > li { border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 18px 0 0; }
[data-look="paper"] .how-steps { gap: 36px; }
[data-look="paper"] .num { font-style: italic; }
[data-look="paper"] .hero-photo { border: 1px solid var(--ink); padding: 10px; background: var(--panel); }
[data-look="paper"] .hero-photo figcaption { background: transparent; color: var(--muted); font-family: Georgia, serif; font-style: italic; padding: 10px 2px 0; }
[data-look="paper"] .hero-photo figcaption::before { display: none; }

/* tablets and phones */
@media (max-width: 1000px) {
  .mast-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 48px; }
  .hero-photo { max-width: 720px; }
  .how-steps { grid-template-columns: 1fr; max-width: 720px; }
  .does-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .does-grid li:not(:nth-child(3n + 1)) { border-left: 0; }
  .does-grid li:nth-child(2n) { border-left: 1px solid var(--line); }
  .know-in { grid-template-columns: 1fr; }
  .trusted-in { grid-template-columns: 1fr; gap: 26px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hide-sm { display: none; }
  .mast { min-height: 76px; }
  .wordmark { font-size: 1.65rem; }
  .word-sub { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .mast-cta { min-height: 46px; padding: 10px 14px; font-size: 15px; }
  .mast-cta svg { display: none; }
  .hero-btns .btn { width: 100%; }
  .film, .how, .does, .know, .price, .faq { padding-top: 60px; }
  [data-look="plum"] .how { padding: 60px 0 64px; margin-top: 48px; }
  .how-steps > li, .plan { padding: 22px 20px; }
  [data-look="paper"] .how-steps > li { padding: 16px 0 0; }
  .does-grid { grid-template-columns: 1fr; }
  .does-grid li:nth-child(2n) { border-left: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .plan .btn { width: 100%; }
  .trusted-float { top: 10px; right: 10px; font-size: 14px; }
  .trusted-xl { font-size: 19px; padding: 10px 22px 10px 12px; }
  .trusted-xl svg { width: 42px; height: 42px; }
  .close { padding: 72px 0; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .mast-cta { padding: 10px 11px; font-size: 14px; }
  .wordmark { font-size: 1.4rem; }
  .logo { gap: 9px; }
  .logo-mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .casl-bar, .mast-nav, .mast-cta, .hero-btns, .film, .close, .skip { display: none !important; }
  body { background: #fff; }
}
