/* 30 for 30: Your 30-day Inner Blueprint */
.thirty-page main { overflow-x: clip; }
.t30-mini-k { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.t30-note { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; }
.dark .t30-note { color: #b9b5ae; }
.t30-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 640px; }
.dark .t30-lead { color: #d7d3cc; }

/* Hero */
.t30-hero { position: relative; padding: clamp(120px, 15vh, 170px) 0 clamp(70px, 9vh, 110px); background: radial-gradient(60% 70% at 78% 45%, rgba(239,61,50,.22), transparent 70%), var(--ink); overflow: hidden; }
.t30-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--dark-line), transparent); }
.t30-hero-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.t30-title { font-family: var(--display); font-weight: 400; line-height: .82; letter-spacing: -.01em; margin: 14px 0 26px; display: flex; align-items: center; gap: .12em; font-size: clamp(110px, 17vw, 270px); color: var(--white); }
.t30-title .t30-for { font-size: .3em; color: var(--red); letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; }
.t30-sub { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: #d7d3cc; max-width: 560px; margin: 0 0 32px; }
.t30-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.t30-ring { position: relative; margin: 0; width: min(440px, 100%); justify-self: center; aspect-ratio: 1; }
.t30-ring svg { width: 100%; height: 100%; overflow: visible; }
.t30-ring-track { fill: none; stroke: #2c2b29; stroke-width: 16; }
.t30-tick { stroke: #4a4844; stroke-width: 2; }
.t30-tick-major { stroke: #8a867f; stroke-width: 3; }
.t30-ring-arc { fill: none; stroke: var(--red); stroke-width: 26; stroke-linecap: round; filter: drop-shadow(0 0 14px rgba(239,61,50,.75)); animation: t30-glow 2.6s ease-in-out infinite; }
@keyframes t30-glow { 50% { filter: drop-shadow(0 0 30px rgba(239,61,50,1)); stroke-width: 30; } }
.t30-ring figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; }
.t30-ring strong { font-family: var(--display); font-weight: 400; font-size: clamp(76px, 9vw, 124px); line-height: .9; color: var(--white); }
.t30-ring figcaption span { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: #b9b5ae; max-width: 190px; margin: 0 auto; line-height: 1.45; }

/* 15 / 5 / 5 / 5 bar */
.t30-bar { list-style: none; margin: 34px 0 clamp(50px, 7vw, 90px); padding: 0; display: flex; gap: 6px; }
.t30-bar li { flex: var(--m) 1 0; min-width: 0; }
.t30-bar a, .t30-bar-block { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 150px; padding: 18px 18px 16px; background: var(--ink-light); color: var(--white); text-decoration: none; border-radius: 4px; transition: transform .25s ease, background .25s ease; }
.t30-bar li:first-child a, .t30-bar li:first-child .t30-bar-block { background: var(--red); }
.t30-bar li:nth-child(3) a, .t30-bar li:nth-child(3) .t30-bar-block { background: #33312e; }
.t30-bar a:hover, .t30-bar a:focus-visible { transform: translateY(-6px); }
.t30-bar b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.t30-bar span { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.t30-bar em { font-style: normal; font-weight: 700; font-size: 16px; margin-top: 10px; line-height: 1.3; }

/* Steps */
.t30-steps { display: grid; gap: clamp(60px, 8vw, 110px); }
.t30-step { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 76px); align-items: start; scroll-margin-top: 110px; }
.t30-step:nth-child(even) .t30-step-art { order: 2; }
.t30-step-art { margin: 0; position: sticky; top: 110px; border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.t30-step-art img { display: block; width: 100%; height: auto; transition: transform 1.2s ease; }
.t30-step:hover .t30-step-art img { transform: scale(1.04); }
.t30-step-n { display: flex; align-items: baseline; gap: 16px; margin: 0 0 6px; }
.t30-step-n span { font-family: var(--display); font-size: clamp(64px, 7vw, 104px); line-height: .9; color: var(--red); }
.t30-step-n b { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; }
.t30-step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4vw, 58px); line-height: .98; margin: 0 0 18px; }
.t30-step-body { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; margin: 0; }
.t30-prompt { margin: 26px 0 0; padding: 22px 24px; background: var(--white); border-left: 5px solid var(--red); border-radius: 0 6px 6px 0; }
.t30-prompt p:last-child { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; font-weight: 600; }

/* Trifecta chips */
.t30-tri { margin-top: 26px; }
.t30-tri-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t30-tri-chips li { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); display: grid; gap: 4px; }
.t30-tri-chips strong { font-size: 17px; }
.t30-tri-chips span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.t30-tri-chips li:first-child { border-color: var(--red); box-shadow: inset 0 4px 0 var(--red); }

/* I AM flips */
.t30-flips { margin-top: 26px; }
.t30-flip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; perspective: 1100px; }
.t30-flip { position: relative; display: block; width: 100%; min-height: 132px; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); font: inherit; color: inherit; text-align: left; }
.t30-flip[aria-pressed="true"] { transform: rotateY(180deg); }
.t30-flip > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; line-height: 1.25; }
.t30-flip small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.t30-flip-old { background: #e5e1da; color: #57544f; border: 1px dashed #aaa59d; }
.t30-flip-old small { color: #7c7871; }
.t30-flip-new { background: var(--ink); color: var(--white); transform: rotateY(180deg); box-shadow: inset 0 0 0 2px var(--red); }
.t30-flip-new small { color: var(--red); }
.t30-flip:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; }

/* Goal card builder */
.t30-card-section { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; isolation: isolate; }
.t30-card-bg { position: absolute; inset: 0; z-index: -1; }
.t30-card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.t30-card-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.82) 45%, rgba(14,14,14,.55) 100%); }
.t30-card-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.t30-card-intro p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: #d7d3cc; }
.t30-card-intro .t30-privacy { font-size: 16px; color: #a9a49c; border-top: 1px solid var(--dark-line); padding-top: 16px; }
.t30-builder { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: rgba(23,23,23,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.t30-builder label { display: grid; gap: 8px; font-size: 16px; font-weight: 700; color: #e9e5de; }
.t30-builder input { font: inherit; font-size: 18px; font-weight: 400; min-height: 52px; padding: 12px 16px; color: var(--white); background: rgba(0,0,0,.4); border: 1px solid #55524d; border-radius: 6px; }
.t30-builder input::placeholder { color: #8d8981; }
.t30-builder input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,61,50,.35); }
.t30-goalcard { margin-top: 6px; padding: 24px 26px; background: var(--paper); color: var(--ink); border-radius: 4px; transform: rotate(-1.2deg); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); background-image: repeating-linear-gradient(transparent 0 33px, rgba(239,61,50,.14) 33px 34px); }
.t30-goalcard-text { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; font-weight: 600; }
.t30-goalcard [data-t30-out] { color: var(--red-dark); border-bottom: 2px solid currentColor; }
.t30-builder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.t30-status { font-size: 16px; color: #e9e5de; min-height: 1.4em; }

/* Knowing-Doing Gap */
.t30-gap { text-align: center; }
.t30-gap-wrap { display: grid; justify-items: center; gap: 10px; }
.t30-gap-q { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 7vw, 104px); line-height: .95; max-width: 15ch; margin: 6px 0 20px; }
.t30-gap .t30-lead { margin: 0 auto; }

/* Tracker */
.t30-track-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.t30-tracker { padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.t30-progress { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.t30-progress strong { font-family: var(--display); font-weight: 400; font-size: 72px; line-height: .9; color: var(--red); }
.t30-progress span { font-size: 18px; font-weight: 700; }
.t30-meter { height: 10px; background: #e7e3dc; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.t30-meter span { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .5s ease; }
.t30-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.t30-days button { width: 100%; min-height: 52px; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.t30-days button:hover { border-color: var(--ink); }
.t30-days button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.t30-days button.is-pop { animation: t30-pop .35s ease; }
@keyframes t30-pop { 50% { transform: scale(1.14); } }
.t30-days button:focus-visible, .t30-reset:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.t30-track-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.t30-track-foot .t30-note { margin: 0; font-size: 16px; }
.t30-reset { background: none; border: 0; padding: 10px 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.t30-tracker.is-complete .t30-progress span::after { content: ' complete. You did it.'; color: var(--red); }

/* Why it works */
.t30-point-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.t30-point-list { list-style: none; margin: 0; padding: 0; counter-reset: pt; display: grid; }
.t30-point-list li { counter-increment: pt; display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--dark-line); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: #d7d3cc; }
.t30-point-list li::before { content: '0' counter(pt); font-family: var(--display); font-size: 30px; color: var(--red); grid-row: span 2; }
.t30-point-list strong { color: var(--white); }
.t30-final { grid-column: 1 / -1; font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 88px); line-height: .98; margin: clamp(30px, 5vw, 60px) 0 0; color: var(--white); }
.t30-cta-alt { margin-top: 20px; }

/* Inner Blueprint cross-link band */
.t30-band-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.t30-band .t30-bar { margin: 0; }
.t30-band .actions { margin-top: 28px; }

@media (max-width: 980px) {
  .t30-hero-wrap, .t30-card-wrap, .t30-track-wrap, .t30-point-wrap, .t30-band-wrap { grid-template-columns: 1fr; }
  .t30-ring { width: min(380px, 86vw); }
  .t30-step { grid-template-columns: 1fr; }
  .t30-step:nth-child(even) .t30-step-art { order: 0; }
  .t30-step-art { position: relative; top: 0; max-width: 620px; }
}
@media (max-width: 680px) {
  .t30-hero { padding-top: 112px; }
  .t30-title { font-size: clamp(104px, 33vw, 170px); margin-bottom: 20px; }
  .t30-hero .actions > * { width: 100%; justify-content: center; }
  .t30-bar { gap: 4px; }
  .t30-bar a, .t30-bar-block { min-height: 112px; padding: 12px 10px; }
  .t30-bar b { font-size: 40px; }
  .t30-bar span { font-size: 12px; letter-spacing: .08em; }
  .t30-bar em { display: none; }
  .t30-bar li:first-child em { display: block; font-size: 15px; }
  .t30-tri-chips { grid-template-columns: 1fr; }
  .t30-flip-grid { grid-template-columns: 1fr; }
  .t30-flip { min-height: 116px; }
  .t30-goalcard { transform: none; padding: 20px; }
  .t30-builder-actions .button { width: 100%; justify-content: center; }
  .t30-days { grid-template-columns: repeat(5, 1fr); }
  .t30-point-list li { grid-template-columns: 48px 1fr; }
  .t30-prompt { padding: 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .t30-ring-arc, .t30-days button.is-pop { animation: none; }
  .t30-flip, .t30-step-art img, .t30-bar a, .t30-meter span { transition: none; }
}
.motion-paused .t30-ring-arc { animation: none; }
.t30-nw { white-space: nowrap; }
.t30-card-bg picture, .t30-card-bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.t30-link { color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline; }
.dark .t30-link { color: #ff6e64; }
.t30-link .arrow { display: inline-flex; margin-left: 3px; vertical-align: -1px; }
.t30-link .arrow svg { width: 12px; height: 12px; }
.t30-card-intro .section-title, .t30-track-wrap .section-title { margin-bottom: 26px; }
.t30-bar em { text-transform: none; letter-spacing: 0; }
.t30-band .t30-bar li:not(:first-child) em { display: none; }
.cta-section .t30-link { color: var(--ink); font-size: 17px; }
