/* Inner Circle Academy page */

/* Hero: feature ground, title and offer left, the book shelf right */
.ic-hero{padding-top:clamp(3rem,6vw,5rem)}
.ic-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(2rem,5vw,4.5rem);align-items:center;padding-bottom:clamp(2.5rem,5vw,4rem)}
.ic-hero .lede{margin-top:1.4rem;max-width:56ch}
.ic-hero-cta{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.75rem}
.ic-hero-note{margin-top:1rem;font-size:.9rem;color:var(--ink-muted)}
.shelf{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1.25rem;align-items:center;padding:1.25rem;border-radius:var(--r-card);background:var(--ink-2);border:1px solid var(--ink-line)}
.shelf-cover img{width:150px;height:auto;border-radius:8px;box-shadow:0 24px 40px -24px rgba(0,0,0,.6)}
.shelf-list{list-style:none;display:grid;gap:.9rem}
.shelf-list li{display:grid;gap:.15rem;padding-bottom:.9rem;border-bottom:1px solid var(--ink-line)}
.shelf-list li:last-child{border-bottom:0;padding-bottom:0}
.shelf-list .n{font-size:.75rem;font-weight:650;color:var(--ink-faint)}
.shelf-list b{font-size:.95rem;line-height:1.3;font-weight:680}
.shelf-list em{font-style:normal;font-size:.8rem;font-weight:620;color:var(--ink-muted)}
.shelf-list li.on em{color:var(--done-g)}
@media (prefers-reduced-motion:no-preference){.shelf{animation:rise 650ms var(--ease-out) 120ms both}}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (max-width:980px){.ic-hero-grid{grid-template-columns:1fr}.shelf{max-width:600px}}
@media (max-width:520px){.shelf{grid-template-columns:96px minmax(0,1fr);padding:1rem}.shelf-cover img{width:96px}.ic-hero-cta .btn{flex:1 1 100%}}

.tile-h .flag{margin-left:auto;font-size:.75rem;font-weight:650;color:var(--link);background:var(--accent-soft);padding:.2rem .55rem;border-radius:99px;white-space:nowrap}
.tile-books .link-arrow{margin-top:auto}

/* Book */
.book-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.book-hero img{width:100%;max-width:360px;height:auto;border-radius:12px;box-shadow:var(--shadow-exhibit)}
.book-grid .lede{margin-top:1rem}
.book-stats{display:flex;gap:2.5rem;margin:1.75rem 0;padding:1.1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.book-stats div{display:flex;flex-direction:column-reverse;gap:.1rem}
.book-stats dd{font-size:2rem;font-weight:740;letter-spacing:-.03em;line-height:1}
.book-stats dt{font-size:.85rem;color:var(--muted)}
.toc{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.1rem 2rem;counter-reset:toc}
.toc li{display:grid;grid-template-columns:2rem 1fr;padding:.6rem 0;border-bottom:1px solid var(--line);counter-increment:toc}
.toc li::before{content:counter(toc);font-variant-numeric:tabular-nums;color:var(--muted);font-weight:600;font-size:.9rem;grid-row:span 2}
.toc b{font-weight:650;font-size:.97rem}
.toc span{font-size:.88rem;color:var(--muted)}
@media (max-width:860px){.book-grid{grid-template-columns:1fr}.book-hero img{max-width:240px}.toc{grid-template-columns:1fr}}

/* Pricing */
.aud{display:inline-grid;grid-auto-flow:column;gap:4px;padding:4px;border-radius:12px;background:var(--surface);border:1px solid var(--line);margin-bottom:2rem}
.aud button{display:inline-flex;align-items:center;gap:.45rem;height:40px;padding:0 1rem;border-radius:9px;font-weight:620;font-size:.93rem;color:var(--muted);white-space:nowrap;transition:color 160ms ease,background-color 160ms ease}
.aud button .i{width:18px;height:18px}
.aud button[aria-selected="true"]{background:var(--purple);color:#fff}
@media (hover:hover) and (pointer:fine){.aud button[aria-selected="false"]:hover{color:var(--text);background:var(--accent-soft)}}
.tiers{display:grid;gap:16px;align-items:stretch}
.tiers[data-aud="all"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.tiers[data-aud="ind"]{grid-template-columns:minmax(0,440px)}
.tiers[data-aud="team"]{grid-template-columns:repeat(2,minmax(0,440px))}
.tiers[data-aud="ind"] .tier[data-aud="team"],.tiers[data-aud="team"] .tier[data-aud="ind"]{display:none}
.tier{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:1.75rem}
.tier-pop{border-color:color-mix(in srgb,var(--purple) 55%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--purple) 25%,transparent)}
.tier-badge{position:absolute;top:-12px;left:1.75rem;background:var(--purple);color:#fff;font-size:.75rem;font-weight:700;padding:.25rem .7rem;border-radius:99px}
.tier-k{font-size:.85rem;font-weight:650;color:var(--link)}
.tier h3{font-size:1.5rem;margin-top:.2rem}
.tier-blurb{color:var(--muted);font-size:.95rem;margin-top:.4rem;min-height:3em}
.tier-price{display:flex;align-items:baseline;gap:.45rem;margin-top:1.1rem}
.tier-price b{font-size:2.6rem;font-weight:760;letter-spacing:-.04em;line-height:1}
.tier-price span{color:var(--muted)}
.tier-alt{margin-top:.5rem;font-size:.9rem;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem}
.tier-alt em{font-style:normal;font-size:.78rem;font-weight:650;color:var(--done);background:var(--done-soft);padding:.15rem .55rem;border-radius:99px}
.tier-feats{list-style:none;display:grid;gap:.6rem;margin:1.4rem 0 0;padding-top:1.4rem;border-top:1px solid var(--line)}
.tier-feats li{display:flex;gap:.6rem;align-items:flex-start;font-size:.97rem}
.tier-feats .i{width:18px;height:18px;margin-top:.2rem;color:var(--done);flex:none}
.tier-foot{margin-top:auto;padding-top:1.5rem;display:grid;gap:.7rem}
.tier-foot .btn{width:100%}
.tier-sub{font-size:.82rem;color:var(--muted);text-align:center}
.tier-error{font-size:.88rem;color:#b42318;text-align:center}
:root[data-theme="dark"] .tier-error{color:#f87171}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tier-error{color:#f87171}}
.input{height:48px;width:100%;padding:0 1rem;border-radius:var(--r-btn);border:1px solid var(--line-strong);background:var(--bg);color:var(--text);font:inherit;text-align:center;transition:border-color 160ms ease,box-shadow 160ms ease}
.input::placeholder{color:var(--muted)}
.input:focus{outline:none;border-color:var(--purple);box-shadow:0 0 0 3px color-mix(in srgb,var(--purple) 25%,transparent)}
.btn:disabled{opacity:.6;cursor:progress}
.ent-hook{font-size:.86rem;line-height:1.5;padding:.75rem .9rem;border-radius:12px;border:1px dashed color-mix(in srgb,var(--purple) 45%,transparent);background:var(--accent-soft)}
.trust{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:1rem 2.25rem;margin-top:2.5rem;padding-top:1.75rem;border-top:1px solid var(--line);color:var(--muted);font-size:.92rem}
.trust li{display:flex;align-items:center;gap:.5rem}
.trust .i{width:18px;height:18px;color:var(--done)}
@media (max-width:980px){.tiers[data-aud="all"],.tiers[data-aud="team"]{grid-template-columns:minmax(0,1fr)}.tiers{max-width:520px}.tier-blurb{min-height:0}}
@media (max-width:520px){.aud{display:grid;grid-auto-flow:row;width:100%}.aud button{justify-content:center}}

/* FAQ: native details, no script needed */
.faq-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:2rem clamp(2rem,5vw,4.5rem);align-items:start}
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 0;font-weight:650;font-size:1.08rem;letter-spacing:-.01em}
.faq summary::-webkit-details-marker{display:none}
.faq-i{width:20px;height:20px;flex:none;color:var(--muted);transition:transform 200ms var(--ease-out)}
.faq details[open] .faq-i{transform:rotate(45deg)}
.faq details p{padding:0 2.5rem 1.3rem 0;color:var(--muted);max-width:68ch}
@media (hover:hover) and (pointer:fine){.faq summary:hover{color:var(--link)}}
@media (max-width:860px){.faq-grid{grid-template-columns:1fr}}

/* Bento on this page: books wide but one row tall, labs closes the grid full width */
#benefits .tile-books{grid-row:auto}
#benefits .tile-labs{grid-column:1/-1}
@media (max-width:1060px){#benefits .tile-labs{grid-column:1/-1}}
@media (max-width:620px){#benefits .tile-labs{grid-column:auto}}

/* Hero with the stage photo: copy left, Victor on stage visible on the right */
.ic-hero-grid{grid-template-columns:minmax(0,640px);min-height:min(560px,62vh)}

/* Plan cards share one row grid (subgrid), so label, name, blurb, price, fine print,
   features and the action area line up across every card in the row. */
.tiers{grid-auto-rows:auto;row-gap:0}
.tier{display:grid;grid-row:span 9;grid-template-rows:subgrid;row-gap:0;align-content:start}
.tier>*{margin-top:0}
.tier h3{margin-top:.2rem}
.tier-blurb{min-height:0;margin-top:.4rem}
.tier-price{margin-top:1.1rem;align-self:end}
.tier-alt{margin-top:.5rem;align-self:start}
.tier-feats{margin-top:1.4rem;align-self:start}
.tier-pre{align-self:end;padding-top:1.5rem}
.tier-pre:empty{padding-top:0}
.tier-btn{padding-top:.7rem}
.tier-btn .btn{width:100%}
.tier-after{display:grid;gap:.5rem;padding-top:.7rem;align-content:start}
@media (max-width:980px){.tiers{row-gap:16px}}

/* Most popular plan: its own tinted ground, lifted and taller than its neighbours */
.tier-pop{background:linear-gradient(180deg,color-mix(in srgb,var(--purple) 16%,var(--surface)) 0%,color-mix(in srgb,var(--purple) 6%,var(--surface)) 100%);border-color:var(--purple);box-shadow:0 0 0 1px color-mix(in srgb,var(--purple) 35%,transparent),0 30px 60px -36px color-mix(in srgb,var(--purple) 70%,transparent);z-index:1}
.tier-pop .tier-k{color:var(--link)}
.tier-pop .tier-price b{color:var(--link)}
@media (min-width:981px){
  .tiers[data-aud="all"],.tiers[data-aud="team"]{padding-block:20px}
  .tier-pop{margin:-20px -8px;padding:calc(1.75rem + 20px) calc(1.75rem + 8px)}
  .tier-pop .tier-badge{top:-14px}
}
