/* ============================================================
   INFOCUS — components layer (loads AFTER tokens.css)
   Richer page patterns reused across page types: masthead,
   split hero, decision/price cards, step cards, feature grid,
   bands, FAQ, blog tagbar + postcards. All built on tokens.
   ============================================================ */

/* ---- Masthead + footer brand (shared by all pages) ---- */
/* Logo left, nav right — one slim line */
.masthead {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: var(--space-lg); flex-wrap: wrap; padding-block: var(--space-sm);
  position: sticky; top: 0; z-index: 10; background: transparent;
}
/* full-bleed frosted band (spans the viewport, not just the centered content) that fades toward transparency */
.masthead::before { content:""; position:absolute; top:0; left:50%; margin-left:-50vw; width:100vw; height:100%;
  z-index:-1; pointer-events:none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 95%, transparent) 0%,
    color-mix(in srgb, var(--bg) 80%, transparent) 55%,
    color-mix(in srgb, var(--bg) 46%, transparent) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; display: block; }
.brand-logo { height: 40px; width: auto; display: block; }     /* the real Didact-bold lockup (PNG) */
.foot .brand-logo { height: 34px; }
.brand .wordmark { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.masthead .mainnav { justify-content: flex-end; }
.masthead__right { display:flex; align-items:center; gap:var(--space-lg); flex-wrap:wrap; }
.masthead__cta { padding:.5em 1.05em; font-size:.78rem; letter-spacing:.04em; }
/* Shop nav link — bag icon + label, sits at the end of the primary nav */
.mainnav .nav-shop { display:inline-flex; align-items:center; gap:.4em; }
.mainnav .nav-shop__i { width:17px; height:17px; flex:0 0 auto; vertical-align:middle; }

/* ---- Blog preview link (a card-style "read more on the blog") ---- */
.post-preview { display: grid; grid-template-columns: 132px 1fr; gap: var(--space-lg); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-md); text-decoration: none; color: var(--ink); max-width: 560px;
  box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-preview:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--vermillion); }
.post-preview__media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.post-preview__media img, .post-preview__media svg { width: 100%; height: 100%; object-fit: cover; }
.post-preview__cat { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--vermillion-ink); }
.post-preview__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; line-height: 1.1; color: var(--ink); margin: .15em 0; }
.post-preview__go { font-size: var(--fs-small); color: var(--vermillion-ink); font-weight: 700; }
@media (max-width: 540px){ .post-preview { grid-template-columns: 1fr; } }
.mainnav { display: flex; gap: var(--space-md) var(--space-lg); flex-wrap: wrap;
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.mainnav a { color: var(--ink); text-decoration: none; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--vermillion-ink); }

/* ---- Split hero (two-column) ---- */
.split-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-2xl); align-items: center; }
.split-hero__media { display: grid; place-items: center; }
.mockup {
  background: #2f49a6; color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl); text-align: center; width: 100%;
  box-shadow: var(--shadow-lift); aspect-ratio: 4/5; display: grid; align-content: center; gap: var(--space-sm);
}
.mockup .display { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---- Decision / price card ---- */
.decision { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-xl); box-shadow: var(--shadow-card); max-width: 420px; }
.decision__price { display: flex; align-items: baseline; gap: .6rem; margin: var(--space-sm) 0; }
.decision__now { font-family: var(--font-display); font-size: 2.4rem; color: var(--vermillion-ink); line-height: 1; }
.decision__was { font-family: var(--font-subhead); font-size: 1.3rem; color: var(--muted); text-decoration: line-through; letter-spacing:.04em; }
.checklist { list-style: none; margin: var(--space-md) 0; padding: 0; display: grid; gap: var(--space-xs); }
.checklist li { position: relative; padding-left: 1.7em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--vermillion); font-weight: 700; }
.checklist--strong li::before { content: "✓"; }

/* ---- Step cards (the 3-week journey) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.stepcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-xl); box-shadow: var(--shadow-card); }
.stepcard__kicker { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .08em;
  color: var(--vermillion-ink); font-size: 1.05rem; }
.stepcard h3 { margin: var(--space-2xs) 0 var(--space-md); }
.stepcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); color: var(--text); }
.stepcard li { position: relative; padding-left: 1.2em; }
.stepcard li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* ---- Feature grid (skills / toolkit) ---- */
.feature-grid { display: grid; gap: var(--space-lg) var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; color: var(--ink); margin: 0 0 var(--space-2xs); }
.feature__desc { margin: 0; color: var(--muted); font-size: var(--fs-small); max-width: 30ch; }
.feature__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-deep); display: inline-block; margin-bottom: var(--space-sm); }

/* ---- Band (full-width centred message) ---- */
.band { text-align: center; }
.band .display { margin: 0 auto var(--space-md); }
.band .lead { margin-inline: auto; }

/* ---- FAQ ---- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-md) 0; }
.faq summary { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::after { content: "+"; color: var(--vermillion-ink); font-family: var(--font-subhead); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p, .faq ul { margin-top: var(--space-sm); }

/* ---- Blog: page head, tagbar, post cards ---- */
.pagehead { text-align: center; padding-block: var(--space-2xl) var(--space-lg); }
.pagehead .display { margin: 0; }
.pagehead .subtitle { color: var(--muted); }

.tagbar { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; padding-bottom: var(--space-xl); }
.tagchip { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
  padding: .45em 1.1em; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.tagchip:hover { border-color: var(--vermillion); color: var(--vermillion-ink); }
.tagchip.is-current { background: var(--vermillion); color: #fff; border-color: var(--vermillion); }

/* ---- Diagonal section dividers (shared) — gentler incline; pulled up so the slice
   reveals the SECTION ABOVE (its colour), not empty page space. Alternating direction. ---- */
.diag-top-l, .diag-top-r { margin-top: -2.2rem; padding-top: calc(var(--space-2xl) + 1.8rem); }
.diag-top-l { clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%); }
.diag-top-r { clip-path: polygon(0 0, 100% 2.2rem, 100% 100%, 0 100%); }
@media (max-width: 640px) { .diag-top-l, .diag-top-r { clip-path: none; margin-top: 0; padding-top: var(--space-2xl); } }

.postgrid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.postcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.postcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--vermillion); }
/* Blog images are black-on-white line drawings only (brand rule) */
.postcard__media { aspect-ratio: 16/10; background: #fff; border-bottom: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.postcard__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); }
.postcard__cat { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .1em;
  font-size: .85rem; color: var(--vermillion-ink); }
.postcard__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; color: var(--ink); margin: 0; }
.postcard__excerpt { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* ---- Newsletter band (rebuilt clean — no template residue) ---- */
.signup { text-align: center; }
.signup__form { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--space-md); }
.signup__form input { font-family: var(--font-body); font-size: 1rem; padding: .8em 1em; border: 1px solid var(--line-strong);
  border-radius: var(--radius); min-width: 260px; background: var(--surface); color: var(--text); }

/* ---- Offer cards (Workshops) ---- */
.offers { display: grid; gap: var(--space-lg); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: var(--space-lg); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-xl); box-shadow: var(--shadow-card); }
.offer__meta { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-size: .95rem; display: flex; gap: var(--space-md); flex-wrap: wrap; margin: var(--space-2xs) 0 var(--space-sm); }
.offer__meta b { color: var(--vermillion-ink); }
.offer h3 { margin: 0; }
.offer__cta { white-space: nowrap; }
/* book/guide product cards — balanced halves (was lopsided via .offer 1fr auto) */
.product.offer { grid-template-columns: 1fr 1fr; gap: clamp(var(--space-xl), 4vw, var(--space-3xl)); align-items: center; }
@media (max-width: 820px){ .product.offer { grid-template-columns: 1fr; } }

/* ---- Pricing tiers (The Focus) ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: var(--space-sm); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.tier--featured { border-color: var(--vermillion); box-shadow: var(--shadow-lift); position: relative; }
.tier--featured::before { content: "Most chosen"; position: absolute; top: -.8em; left: var(--space-xl);
  background: var(--vermillion); color: #fff; font-family: var(--font-subhead); text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; padding: .25em .8em; border-radius: var(--radius-pill); }
.tier__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; color: var(--ink); }
.tier__price { font-family: var(--font-display); font-size: 2.2rem; color: var(--vermillion-ink); line-height: 1; }
.tier__price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.tier ul { list-style: none; margin: var(--space-sm) 0 var(--space-lg); padding: 0; display: grid; gap: var(--space-xs); }
.tier li { position: relative; padding-left: 1.6em; color: var(--text); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--vermillion); font-weight: 700; }
.tier .btn { margin-top: auto; }

/* ---- Maps (workshop method imagery) ---- */
.maps { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-xl); }
.mapfig { margin: 0; }
.mapfig img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.mapfig figcaption { margin-top: var(--space-sm); }
.mapfig figcaption b { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); }

/* ---- Shop grid ---- */
.shopgrid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.shopcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.shopcard__media { aspect-ratio: 4/5; background: var(--paper-offwhite); overflow: hidden; display:grid; place-items:center; padding: var(--space-md); }
/* contain (not cover) so covers, mockups & varying formats show whole — nothing cropped/lost */
.shopcard__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(30,26,22,.14)); }
.shopcard__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.shopcard__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; color: var(--ink); margin: 0; }
.shopcard__tag { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.shopcard__price { font-family: var(--font-display); color: var(--vermillion-ink); font-size: 1.3rem; margin-top: var(--space-2xs); }
.shopcard .btn { margin-top: auto; }

/* ---- Forms (Contact) ---- */
.form { display: grid; gap: var(--space-md); max-width: 620px; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-family: var(--font-subhead); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select { font-family: var(--font-body); font-size: 1rem; padding: .75em .9em;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .split-hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .maps { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; align-items: start; }
}

/* ---- Dark footer (James Clear register) ---- */
/* Kraft-paper footer — real cardboard texture, lightened with a cream wash so DARK ink text reads clearly */
.site-footer { position: relative; color: var(--ink); margin-top: 0; border-top: 1px solid rgba(30,26,22,.18);
  background: linear-gradient(rgba(248,244,236,.58), rgba(248,244,236,.58)), #C7A977 url(../img/textures/kraft-cardboard.jpg) center/cover; }
.site-footer .foot { position: relative; z-index: 1; }
.site-footer .foot { border-top: none; padding-block: var(--space-2xl); }
.site-footer a { color: var(--ink); opacity: 1; }
.site-footer a:hover { color: var(--vermillion-ink); opacity: 1; }
.site-footer .small { color: rgba(30,26,22,.88); }
.site-footer .brand-logo { filter: none; }   /* dark wordmark + red dot read directly on kraft */

/* ---- Teal dark band (Muted Teal #0E9594) — dark CTA band + worn scratches ---- */
.band-teal { position: relative; background: var(--dark-teal); color: #fff; overflow: hidden; }
.band-teal > * { position: relative; z-index: 1; }

/* ---- Ghost button — light outline for dark grounds ---- */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
