/* =============================================================
 * chrisinyourcorner.com — page layout
 *
 * Loaded after ds/colors_and_type.css, which brings in the Design
 * System's tokens.css and components/bundle.css. Every colour, size,
 * radius and shadow here is a token from the system; buttons, chips
 * and form fields use the system's own ciyc-* classes directly.
 * Layout follows the system's marketing-site UI kit (site.css).
 * ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; }

a { color: inherit; }
a:not(.ciyc-btn):hover { color: var(--accent-strong); }

/* Focus: 3px accent ring (DS: accessibility-mandatory). On the Clay-300
   ground the accent ring is only 1.8:1, so it switches to ink there. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav :focus-visible,
.header :focus-visible,
.section--clay :focus-visible,
.offer :focus-visible,
.connect-card :focus-visible { outline-color: var(--ink-900); }

/* ---------- Buttons: hover/press on top of bundle.css ---------- */
.ciyc-btn:hover { transform: translateY(-1px); }
.ciyc-btn--navy:hover,
.ciyc-btn--spot:hover { transform: translate(-3.5px, -3.5px); box-shadow: 6px 6px 0 var(--ink-900); }
.ciyc-btn--navy:active,
.ciyc-btn--spot:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink-900); }
.ciyc-btn--block { width: 100%; justify-content: center; }

/* Kit checkout links (class="convertkit-button" + data-commerce) load
   pages.chrisinyourcorner.com/commerce.css after this file, which paints
   them as white 4px-radius buttons. Re-assert the DS button on top. */
a.ciyc-btn.convertkit-button {
  position: static;
  font-weight: 700; line-height: 1;
  border: var(--stroke-hard) solid var(--ink-900); border-radius: var(--radius-pill);
  padding: 12px 22px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.ciyc-btn--lg.convertkit-button { padding: 16px 28px; }
a.ciyc-btn--spot.convertkit-button,
a.ciyc-btn--navy.convertkit-button { color: var(--paper); box-shadow: 5px 5px 0 var(--ink-900); transform: translate(-2.5px, -2.5px); }
a.ciyc-btn--spot.convertkit-button { background: var(--spot); }
a.ciyc-btn--navy.convertkit-button { background: var(--tide-700); }
a.ciyc-btn--spot.convertkit-button:hover,
a.ciyc-btn--navy.convertkit-button:hover { color: var(--paper); border-color: var(--ink-900); transform: translate(-3.5px, -3.5px); box-shadow: 6px 6px 0 var(--ink-900); }
a.ciyc-btn--spot.convertkit-button:active,
a.ciyc-btn--navy.convertkit-button:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink-900); }

/* ---------- Containers ---------- */
.container        { max-width: 1240px; margin: 0 auto; }
.container--prose { max-width: 820px; margin: 0 auto; }
.container--legal { max-width: 760px; margin: 0 auto; }
.container--steps { max-width: 700px; margin: 0 auto; }
.container--offer { max-width: 640px; margin: 0 auto; }
.container--tip   { max-width: 560px; margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  max-width: 1240px; margin: 0 auto;
  padding: 22px var(--space-6) 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink-900); }
.nav__brand img { width: 44px; height: 44px; object-fit: contain; }
.nav__wm {
  display: flex; flex-direction: column; line-height: 1;
  font-weight: var(--w-black); font-size: var(--fs-base); letter-spacing: -0.01em;
}
.nav__wm small {
  font-weight: var(--w-semi); font-size: 11px; color: var(--ink-700);
  letter-spacing: 0.08em; margin-top: 2px; text-transform: uppercase;
}
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a {
  font-weight: var(--w-semi); font-size: var(--fs-sm); text-decoration: none; color: var(--ink-900);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav__menu a:hover { color: var(--ink-900); border-color: var(--ink-900); }

/* ---------- Page header (centred hero stack) ---------- */
.header {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-7);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-5); text-align: center;
}
.header--home  { max-width: 1240px; padding-bottom: 72px; gap: 30px; }
.header--legal { max-width: 760px; padding-bottom: 40px; gap: 20px; }
.header--thanks { max-width: 700px; padding: 56px var(--space-6) 80px; }

.eyebrow-label {
  font-weight: var(--w-bold); font-size: 13px; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink-700);
}

/* The signature capsule headline, paper-filled as in the UI kit hero. */
.capsule {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0;
  padding: 20px 36px;
  border: var(--stroke-hard) solid var(--ink-900);
  border-radius: var(--radius-xl);
  background: var(--paper); color: var(--ink-900);
  font-weight: var(--w-black); font-size: clamp(24px, 4.2vw, 46px);
  letter-spacing: var(--tracking-tight); line-height: var(--lh-tight);
  text-wrap: balance;
}
.capsule--hero { padding: 22px 40px; font-size: clamp(32px, 5vw, 58px); }
.capsule--legal { padding: var(--space-4) var(--space-6); font-size: clamp(24px, 3.6vw, 38px); }

.lede {
  font-weight: var(--w-medium); font-size: clamp(16px, 1.6vw, 19px);
  line-height: var(--lh-body); color: var(--ink-700);
  max-width: 56ch; margin: 0;
}
.lede--hero { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.5; }
.lede--narrow { max-width: 52ch; }
.lede--legal { font-size: var(--fs-base); }

.fine-print { font-size: 13px; color: var(--ink-700); margin: 0; }
.fine-print a { text-decoration: underline; }

.actions { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; margin-top: var(--space-1); }

.figure {
  max-width: 420px; margin: var(--space-2) auto 0;
  border: var(--stroke) solid var(--ink-900); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.figure img { width: 100%; height: auto; display: block; }
.figure--in-offer { margin-top: var(--space-5); }

.badge-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--paper); border: var(--stroke-hard) solid var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; box-shadow: var(--shadow-card);
}
.badge-icon img { width: 100%; height: 100%; object-fit: contain; }

/* Five pillar tiles under the hero. */
.pillar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; max-width: 940px; width: 100%; margin: var(--space-4) auto 0;
}
.pillar-grid img { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) var(--space-6); }
.section--lg  { padding-top: 80px; padding-bottom: 80px; }
.section--cta { padding-top: 72px; padding-bottom: 72px; }
.section--sm  { padding-top: 56px; padding-bottom: 56px; }
.section--legal { padding: 56px var(--space-6) 80px; }
.section--paper { background: var(--bg-paper); }
.section--clay  { background: var(--clay-300); }
.section--rule  { border-top: 2px dashed var(--border); }

.section-title {
  font-weight: var(--w-black); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3); color: var(--ink-900);
}
.section-lead {
  font-size: var(--fs-md); line-height: var(--lh-body); color: var(--ink-700);
  max-width: 60ch; margin: 0 0 36px;
}

/* ---------- Prose blocks (product pages) ---------- */
.prose-stack { display: flex; flex-direction: column; gap: var(--space-7); }
.prose h2,
.faq-title {
  font-weight: var(--w-black); font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1; letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4); color: var(--ink-900);
}
.faq-title { margin-bottom: var(--space-6); }
.prose p { font-size: 17px; line-height: 1.6; color: var(--ink-700); margin: 0 0 var(--space-4); }
.prose p.tight { margin-bottom: var(--space-3); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 var(--space-4); padding-left: 22px; color: var(--ink-700); }
.prose li { font-size: 17px; line-height: 1.7; }

/* ---------- Cards (FAQ, steps) ---------- */
.card-stack { display: flex; flex-direction: column; gap: var(--space-5); }
.card-stack--steps { gap: 28px; }
.card {
  background: var(--paper);
  border: var(--stroke) solid var(--ink-900); border-radius: var(--radius-lg);
  padding: var(--space-5) 28px; box-shadow: var(--shadow-card);
}
.card--roomy { padding: 28px var(--space-6); }
.card__eyebrow {
  font-weight: var(--w-extra); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink-700); margin-bottom: 10px;
}
.card__q { font-weight: var(--w-extra); font-size: 17px; color: var(--ink-900); margin-bottom: 10px; }
.card__title { font-weight: var(--w-extra); font-size: var(--fs-md); color: var(--ink-900); margin-bottom: var(--space-2); }
.card__title--list { margin-bottom: var(--space-3); }
.card p { font-size: var(--fs-base); line-height: 1.6; color: var(--ink-700); margin: 0 0 var(--space-3); }
.card p:last-child { margin-bottom: 0; }
.card ol { margin: 0; padding-left: 22px; color: var(--ink-700); }
.card li { font-size: var(--fs-base); line-height: 1.7; margin-bottom: 6px; }
.card li:last-child { margin-bottom: 0; }

/* ---------- Offer panel (sunset gradient) ---------- */
.offer {
  border-radius: var(--radius-xl);
  background: var(--sunset-gradient);
  border: 3px solid var(--ink-900);
  padding: var(--space-7) 40px; text-align: center;
  box-shadow: 10px 10px 0 var(--ink-900);
  color: var(--ink-900);
}
.offer--compact { padding-top: 44px; padding-bottom: 44px; }
.offer__eyebrow {
  font-weight: var(--w-extra); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; margin-bottom: 10px;
}
.offer__kicker { font-weight: var(--w-black); font-size: 20px; margin-bottom: 6px; }
.offer__price { font-weight: var(--w-black); font-size: clamp(28px, 4vw, 36px); line-height: var(--lh-snug); margin-bottom: 6px; }
.offer__meta { font-weight: var(--w-semi); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.offer h2 {
  font-weight: var(--w-black); font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15; letter-spacing: var(--tracking-tight); margin: 0 0 14px;
}
.offer__text { font-size: var(--fs-base); line-height: var(--lh-body); margin: 0 0 var(--space-5); }
.offer__text--roomy { margin-bottom: 28px; }
.offer__note { font-size: 13.5px; line-height: 1.5; margin: var(--space-5) 0 0; }
.offer .fine-print { color: var(--ink-900); margin-top: 18px; }
.offer .fine-print--close { margin-top: 14px; }

/* ---------- Home: about ---------- */
.about-grid {
  display: grid; grid-template-columns: 220px 1fr 380px;
  gap: var(--space-7); align-items: start;
}
.about-avatar {
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--surface-2); border: 4px solid var(--ink-900); overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-title {
  font-weight: var(--w-black); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: var(--tracking-tight);
  margin: 0 0 18px; color: var(--ink-900);
}
.about-title__hi { color: var(--accent); margin-right: 6px; }
.about-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-700); max-width: 60ch; margin: 0 0 var(--space-4); }
.about-copy p:last-of-type { margin-bottom: var(--space-5); }

.video-card {
  border: var(--stroke) solid var(--ink-900); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow-card);
}
.video-card__frame { width: 100%; aspect-ratio: 16 / 9; }
.video-card__frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-card__caption { padding: 14px var(--space-4); background: var(--paper); font-weight: var(--w-extra); font-size: var(--fs-sm); color: var(--ink-900); }

/* ---------- Home: pillar tiles + modal ---------- */
.pillar-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.pillar-tile {
  background: var(--paper); border: var(--stroke) solid var(--ink-900);
  border-radius: var(--radius-lg); padding: var(--space-3);
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.pillar-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(60,30,15,.35); }
.pillar-tile img { width: 100%; height: auto; display: block; pointer-events: none; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  background: color-mix(in oklch, var(--ink-900) 55%, transparent);
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative; max-width: 560px; width: 100%;
  background: var(--sunset-gradient);
  border: var(--stroke-hard) solid var(--ink-900); border-radius: 22px;
  padding: var(--space-6); box-shadow: 8px 8px 0 var(--ink-900); color: var(--ink-900);
}
.modal__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: var(--stroke) solid var(--ink-900); background: var(--paper); color: var(--ink-900);
  font-family: var(--font-sans); font-weight: var(--w-extra); font-size: var(--fs-base);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal__icon {
  width: 76px; height: 76px; background: var(--paper);
  border: var(--stroke) solid var(--ink-900); border-radius: 14px;
  padding: 6px; margin-bottom: 18px;
}
.modal__icon img { width: 100%; height: 100%; object-fit: contain; }
.modal__eyebrow {
  font-weight: var(--w-extra); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; margin-bottom: var(--space-2);
}
.modal__move { font-weight: var(--w-black); font-size: 26px; line-height: 1.15; letter-spacing: var(--tracking-tight); margin: 0 0 10px; }
.modal__why { font-weight: var(--w-medium); font-size: 15.5px; line-height: var(--lh-body); margin: 0 0 20px; }

/* ---------- Home: packages ---------- */
.package-stack { display: flex; flex-direction: column; gap: 20px; }
.package {
  background: var(--paper);
  border: var(--stroke) solid var(--ink-900); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
}
.package__thumb {
  width: 110px; height: 110px; border-radius: 14px; overflow: hidden;
  border: var(--stroke) solid var(--ink-900); flex-shrink: 0;
}
.package__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.package h3 { font-weight: var(--w-extra); font-size: 24px; margin: 0 0 10px; color: var(--ink-900); }
.package p { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--ink-700); margin: 0; max-width: 58ch; }
.package .ciyc-btn { white-space: nowrap; }

/* ---------- Home: connect ---------- */
.connect-card {
  border-radius: var(--radius-xl);
  background: var(--sunset-gradient);
  border: 3px solid var(--ink-900);
  padding: var(--space-7) 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  box-shadow: 10px 10px 0 var(--paper);
  color: var(--ink-900);
}
.connect-card h2 {
  font-weight: var(--w-black); font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1; letter-spacing: var(--tracking-tight); margin: 0 0 10px;
}
.connect-card p { font-size: var(--fs-base); line-height: 1.5; margin: 0; max-width: 42ch; }
.connect-actions { display: flex; flex-direction: column; gap: 14px; }
.socials { display: flex; gap: 14px; justify-content: center; }
.social {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink-900);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.social:hover { transform: translateY(-1px); }
.social img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Legal ---------- */
.legal-stack { display: flex; flex-direction: column; gap: 36px; }
.legal h2 {
  font-weight: var(--w-extra); font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-900); margin: 0 0 var(--space-3);
}
.legal p { font-size: var(--fs-base); line-height: 1.65; color: var(--ink-700); margin: 0 0 var(--space-3); }
.legal p:last-child { margin-bottom: 0; }
.legal p.label { margin-bottom: var(--space-1); }
.legal p.lead-in { margin-bottom: var(--space-2); }
.legal ul { margin: 0 0 var(--space-3); padding-left: 22px; color: var(--ink-700); }
.legal li { font-size: var(--fs-base); line-height: 1.65; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--paper); padding: 56px var(--space-6) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); }
.footer h4 {
  font-weight: var(--w-extra); font-size: 13px; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--clay-200); margin: 0 0 var(--space-3);
}
.footer-links a { color: var(--paper); text-decoration: none; font-size: 14.5px; display: block; padding: var(--space-1) 0; }
.footer a:not(.ciyc-btn):hover { color: var(--clay-200); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand__wm { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand__logo { width: 44px; height: 44px; background: var(--paper); border-radius: 8px; padding: var(--space-1); }
.footer-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand__name { font-weight: var(--w-black); font-size: var(--fs-md); letter-spacing: -0.01em; }
.footer-brand__text { font-size: var(--fs-sm); color: var(--ink-100); line-height: 1.5; }
.footer-brand__text--tag { max-width: 32ch; }
.colophon {
  margin-top: 40px; padding-top: var(--space-5);
  border-top: 1px solid color-mix(in oklch, var(--paper) 15%, transparent);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--space-3); font-size: 12.5px; color: var(--ink-100); letter-spacing: var(--tracking-wide);
}
.colophon__tip { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-100); text-decoration: none; font-size: 12.5px; }
.colophon__tip img { width: 16px; height: 16px; object-fit: contain; }
/* The one Caveat accent per page: the "in your corner" sign-off. */
.colophon__sign { font-family: var(--font-hand); font-weight: var(--w-bold); font-size: 20px; letter-spacing: 0; color: var(--sunset-300); }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .about-grid { grid-template-columns: 220px 1fr; }
  .video-card { grid-column: 2; max-width: 560px; }
}

@media (max-width: 900px) {
  .video-card { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { width: 160px; height: 160px; margin: 0 auto; }
  .package { grid-template-columns: 1fr; text-align: center; }
  .package__thumb { margin: 0 auto; }
  .package .ciyc-btn { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .connect-card { grid-template-columns: 1fr; text-align: center; }
  .connect-card p { margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav { padding: 18px 20px 14px; }
  .nav__menu { display: none; }
  .header, .section, .footer { padding-left: 20px; padding-right: 20px; }
  .pillar-grid, .pillar-tiles { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .package, .footer-grid, .connect-card { gap: var(--space-5); }
  .connect-card { padding: var(--space-6) var(--space-5); }
  .offer { padding-left: var(--space-5); padding-right: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Hero tagline emphasis (was a Caveat accent; Caveat is kept for the footer sign-off). */
.lede__em { color: var(--ink-900); font-weight: var(--w-extra); }

/* =============================================================
 * Thumbnail gradient as the page ground
 *
 * The Clay-300 ground (nav, page headers, clay sections) is replaced by
 * the YouTube thumbnail gradient, pinned to the viewport so every screen
 * shows the full coral → gold sweep instead of one stretched band down a
 * long page. Paper (clay-50) sections and the footer still cover it.
 * To undo: delete this block.
 * ============================================================= */

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: var(--thumbnail-gradient);
}
/* colors_and_type.css paints Clay on both html and body; body's copy would
   sit on top of this layer, so clear it. html keeps Clay as the fallback. */
body,
.section--clay { background: transparent; }

/* DS (ThumbnailGradient): one gradient per frame; don't layer Sunset on
   top of it. Clay sections holding a Sunset panel go to the paper ground
   instead, and the newsletter card's white offset block turns ink. */
.section--clay:has(.offer, .connect-card) { background: var(--bg-paper); }
.section--clay:has(.connect-card) .connect-card { box-shadow: 10px 10px 0 var(--ink-900); }

/* DS: ink type only on the thumbnail gradient. ink-700 reaches only
   4.2:1 on the coral corner, so text set straight on the ground goes to
   ink-900 (5.7:1 at worst). Text inside paper cards is unaffected. */
.nav__wm small,
.header .eyebrow-label,
.header .lede,
.header .fine-print,
.section--clay .section-lead { color: var(--ink-900); }
