/* Interactive calendar, channel reports, and plan comparisons */
.studio-stage, .report-section, .pricing-section { padding-block: clamp(64px, 7.8vw, 112px); }
.section-label { display: block; margin-bottom: 19px; font-size: .78rem; font-weight: 650; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #185bc4; }
.studio-copy h2, .report-copy h2, .pricing-intro h2 { margin: 0; font-size: clamp(2.85rem, 5.4vw, 5.45rem); font-weight: 540; line-height: .99; letter-spacing: -.073em; }
.studio-copy h2 em, .report-copy h2 em, .pricing-intro h2 em { font-size: 1.09em; }
.studio-copy > p, .report-copy > p { max-width: 39ch; margin-top: 21px; }
.studio-stage { position: relative; isolation: isolate; overflow: clip; background: #124595; color: white; }
.studio-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10429de0, #2464be73), linear-gradient(180deg, #164395cc 1%, #2474ccaa 44%, #4b98fe77), url("assets/misty-hills.webp") center bottom / cover; }
.studio-layout, .report-layout { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(30px, 5.5vw, 90px); align-items: center; }
.studio-copy .section-label { color: #d8e9ff; }
.studio-copy h2 em { color: #e7f2ff; }
.studio-copy > p { color: #f1f6ff; }
.calendar-workspace { width: 100%; max-width: 590px; justify-self: end; padding: clamp(17px, 2vw, 28px); background: #ffffff; color: #26345b; border: 1px solid #e4edfa; border-radius: 19px; box-shadow: 0 24px 72px #18356240; }
.calendar-top, .report-board header, .pricing-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.calendar-top small, .report-board header small { font-size: .81rem; color: #4a5c7a; }
.calendar-top h3 { margin-top: 4px; font-size: clamp(1.1rem, 1.75vw, 1.5rem); letter-spacing: -.055em; }
.week-controls { display: flex; gap: 5px; }
.week-controls button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #d3e2f7; border-radius: 50%; background: transparent; font: 500 1.45rem/1 Inter, sans-serif; }
.week-controls button:hover:enabled { background: #deebff; }
.week-controls button:disabled { opacity: .34; cursor: default; }
.calendar-days { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; border-block: 1px solid #d3e2f7; margin: 18px 0; padding-block: 9px; }
.calendar-days::before { content: ""; position: absolute; z-index: -1; inset: 9px auto 9px 0; width: calc((100% - 20px) / 5); border-radius: 8px; background: #e0edff; box-shadow: inset 0 -2px 0 var(--accent); transform: translateX(calc(var(--day-index, 0) * (100% + 5px))); }
.calendar-days button { display: grid; justify-items: center; gap: 3px; padding: 8px 0; border: 0; border-radius: 8px; background: transparent; transition: color .22s, background .22s; }
.calendar-days button span { font-size: .73rem; }
.calendar-days button b { font-size: 1.04rem; }
.calendar-days button:hover { background: #deebff; }
.calendar-days button[aria-pressed="true"] { background: transparent; color: #134b99; }
.post-brief { min-width: 0; }
.post-cover { position: relative; height: clamp(140px, 15vw, 205px); overflow: hidden; border-radius: 9px; background: #b5d2fc; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .outgoing-cover { position: absolute; inset: 0; pointer-events: none; }
.post-cover span { position: absolute; bottom: 10px; left: 10px; padding: 5px 9px; border-radius: 4px; font-size: .74rem; color: white; background: #20395cda; }
.brief-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 7px; font-size: .76rem; color: #4a5c7a; }
.brief-copy h4 { margin: 0 0 5px; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -.05em; }
.brief-copy p { min-height: 2.9em; font-size: .91rem; line-height: 1.45; }

.report-section { background: #fafdff; }
.report-copy h2 em { color: var(--primary); }
.report-channels, .billing { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid #d3e2f7; border-radius: 9px; background: #ecf3ff; }
.report-channels { margin-top: 25px; }
.report-channels button, .billing button { border: 0; padding: 9px 12px; background: transparent; border-radius: 6px; color: #364b7c; font-size: .84rem; font-weight: 550; }
.report-channels button[aria-pressed="true"] { background: white; color: #104fae; box-shadow: 0 2px 6px #1b438420; }
.report-board { position: relative; padding: clamp(18px, 2.6vw, 35px); border-radius: 18px; border: 1px solid #d3e2f7; background: #ffffff; box-shadow: 0 16px 50px #173a6e0a; }
.report-board header { align-items: start; }
.report-board h3 { margin: 5px 0 0; color: #26345b; font-size: clamp(2.6rem, 4vw, 4.3rem); line-height: 1; font-weight: 530; letter-spacing: -.085em; font-variant-numeric: tabular-nums; }
.report-board header > span { color: #4a5c7a; font-size: .76rem; }
.report-plot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, 1vw, 13px); margin: 26px 0 13px; background: repeating-linear-gradient(to top, #e4edfa 0 1px, transparent 1px 33.333%) left top / 100% calc(100% - 25px) no-repeat; }
.report-plot button { min-width: 0; display: flex; flex-direction: column; justify-content: end; align-items: center; height: clamp(120px, 15vw, 190px); border: 0; padding: 0; background: transparent; }
.report-plot .bar-track { width: min(100%, 36px); flex: 1; display: flex; align-items: end; }
.report-plot .bar-track i { display: block; width: 100%; height: var(--bar-height); border-radius: 5px 5px 0 0; background: #79b0fe; transition: height .48s cubic-bezier(.22,.7,.2,1), background-color .2s; }
.report-plot button:is(:hover, :focus-visible) i { background: #4c94fe; }
.report-plot button[aria-pressed="true"] i { background: var(--primary); }
.report-plot button small { height: 25px; padding-top: 6px; color: #4a5c7a; font-size: .7rem; }
.report-reading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-top: 13px; border-top: 1px solid #d3e2f7; font-size: .84rem; color: #4a5c7a; }
.report-reading b { color: #26345b; }

.pricing-section { background: #f1f6ff; }
.pricing-intro { align-items: end; }
.billing { position: relative; isolation: isolate; flex-wrap: nowrap; background: #deebff; }
.billing::before { position: absolute; inset: 4px auto 4px 4px; width: calc((100% - 11px) / 2); content: ""; background: #fff; border-radius: 6px; box-shadow: 0 1px 5px #233e701a; z-index: -1; transition: transform .27s cubic-bezier(.2,.65,.24,1); }
.billing:has([data-billing="yearly"][aria-pressed="true"])::before { transform: translateX(calc(100% + 3px)); }
.billing button { min-width: 74px; }
.plans { margin-top: 37px; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; background: #ffffff; padding: clamp(20px, 2.25vw, 32px); border: 1px solid #d3e2f7; border-radius: 15px; }
.plan h3 { font-size: 1.45rem; font-weight: 560; letter-spacing: -.055em; }
.plan > p { font-size: .91rem; margin-top: 5px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 28px; }
.plan-price strong { font-size: clamp(2.8rem, 4.3vw, 4.2rem); line-height: 1; letter-spacing: -.085em; font-weight: 540; }
.plan-price > span, .billing-note { font-size: .8rem; color: #4a5c7a; }
.billing-note { margin-top: 5px; }
.plan ul { margin: 22px 0; padding: 16px 0 0; border-top: 1px solid #d3e2f7; list-style: none; display: grid; gap: 9px; }
.plan li { display: flex; align-items: baseline; gap: 8px; font-size: .91rem; }
.plan li::before { content: "✓"; color: #185bc4; }
.plan .button { margin-top: auto; width: 100%; min-height: 44px; }
.plan-studio { color: white; background: radial-gradient(ellipse at 100% 0, #2673e8, transparent 72%), #144cae; border-color: #2963ba; }
.plan-studio :is(p, .billing-note, .plan-price > span), .plan-studio li::before { color: #f1f6ff; }
.plan-studio ul { border-color: #77a9ee; }
.plan-studio .button { background: #ffffff; color: #104fae; }
.pricing-caption { text-align: center; font-size: .81rem; margin-top: 15px; }
.pricing-section + .faq { padding-top: clamp(70px, 7vw, 100px); }

.price-reel { display: inline-flex; font-variant-numeric: tabular-nums; }
.price-digit { position: relative; display: inline-grid; overflow: clip; }
.price-digit.is-rolling::before { content: attr(data-previous); position: absolute; inset: 0; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .calendar-days::before { transition: transform .32s cubic-bezier(.2,.75,.24,1); }
  .price-digit.is-rolling::before { animation: old-price .38s cubic-bezier(.24,.7,.25,1) var(--digit-delay) both; }
  .price-digit.is-rolling > span { animation: new-price .38s cubic-bezier(.24,.7,.25,1) var(--digit-delay) both; }
  @keyframes old-price { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(calc(var(--roll-direction) * -100%)); } }
  @keyframes new-price { from { transform: translateY(calc(var(--roll-direction) * 100%)); } to { transform: none; } }
  .report-board.is-revealed .bar-track { transform-origin: center bottom; animation: chart-rise .65s cubic-bezier(.16,.75,.25,1) var(--bar-delay, 0ms) both; }
  .pricing-section .plan:hover { transform: translateY(-4px); box-shadow: 0 12px 32px #19366713; }
  .plan { transition: transform .24s, box-shadow .24s; }
  .button:active, .week-controls button:active:enabled { transform: scale(.97); }
  @keyframes chart-rise { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .artwork .social { transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0); }
  .artwork .age { transform: translate3d(calc(0px - var(--drift-x, 0px)), calc(0px - var(--drift-y, 0px)), 0); }
  .artwork :is(.social,.age) { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
}
@media (max-width: 840px) {
  .studio-layout, .report-layout { grid-template-columns: 1fr; gap: 30px; }
  .calendar-workspace { max-width: none; }
  .plans { gap: 8px; }
  .report-plot button { height: 170px; }
}
@media (max-width: 650px) {
  .section-label { margin-bottom: 13px; }
  .pricing-intro { align-items: start; flex-direction: column; gap: 20px; }
  .plans { margin-top: 22px; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .plan-price { margin-top: 18px; }
  .post-cover { height: 145px; }
  .report-channels button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; translate: none; }
}
