
/* ---------------------------------------------------------------
   Academy index — built on the site tokens in styles.css.
   Every selector is prefixed .ac- so this can be folded into
   styles.css later without colliding with anything that exists.
   --------------------------------------------------------------- */

/* ---------- hero (compact) ---------- */
.ac-hero { position: relative; padding-block: clamp(30px, 3.6vw, 52px) clamp(8px, 1.1vw, 14px); }
.ac-tilt {
  position: absolute; inset-inline: 0; top: 6px; height: 152px;
  background: var(--lav-soft); transform: rotate(-1.6deg); z-index: 0;
}
.ac-hero-in { display: grid; justify-items: center; gap: 12px; text-align: center; }
.ac-hero h1 {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.06; letter-spacing: -.028em;
}
.ac-hero .lead { max-width: 54ch; }

/* ---------- search ---------- */
.ac-search { position: relative; width: min(100%, 440px); margin-top: 4px; }
.ac-search input {
  width: 100%; font-family: var(--fb); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 12px 18px 12px 44px; outline: none;
  transition: box-shadow .18s;
}
.ac-search input::placeholder { color: var(--grey-3); }
.ac-search input:focus { box-shadow: 0 0 0 3px var(--lav-soft); }
.ac-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .45; pointer-events: none; }

/* ---------- category pills ---------- */
.ac-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 4px; }
.ac-pill {
  font-family: var(--fd); font-weight: 600; font-size: 13.5px; color: var(--ink);
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid transparent;
  background: transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
/* hover must not read as selected: only the active pill gets a filled, outlined pill */
.ac-pill:hover:not([aria-pressed="true"]) { color: var(--purple-deep); }
.ac-pill[aria-pressed="true"] { background: #fff; border-color: var(--ink); }

.ac-results {
  font-family: var(--fd); font-size: 12.5px; color: var(--grey);
  margin-top: 0;
}
.ac-results:empty { display: none; }

/* ---------- sections ---------- */
.ac-body { padding-block: clamp(8px, 1.2vw, 14px) clamp(56px, 8vw, 100px); }
.ac-sec + .ac-sec { margin-top: clamp(24px, 2.9vw, 40px); }
.ac-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 9px; margin-bottom: 13px; border-bottom: 1.5px solid var(--hair);
}
.ac-sec-head h2 {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 27px); line-height: 1.14; letter-spacing: -.015em;
  color: var(--ink);
}
.ac-sec-head .ac-sub {
  font-family: var(--fb); font-size: 15px; color: var(--grey); margin-top: 4px;
}
.ac-sec-head .ac-n { font-family: var(--fd); font-size: 12.5px; color: var(--grey-3); white-space: nowrap; }

/* ---------- category tags ---------- */
.ac-tag {
  align-self: flex-start; font-family: var(--fd); font-weight: 700;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.ac-tag.is-start   { background: #FBE0EC; color: #9D2B62; }
.ac-tag.is-ai      { background: #E7E0FB; color: #4B3BC4; }
.ac-tag.is-msg     { background: #F4F1C6; color: #6A6412; }
.ac-tag.is-content { background: #DFEBE3; color: #2F6B45; }

.ac-new {
  font-family: var(--fd); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple-deep);
  display: inline-flex; align-items: center; gap: 5px;
}
.ac-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.ac-tagrow { display: flex; align-items: center; gap: 9px; }

/* ---------- featured card (strongest on the page) ---------- */
.ac-feature {
  display: grid; grid-template-columns: .65fr .35fr;
  border: 1.5px solid var(--ink); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 14px 32px -16px rgba(35,25,80,.30);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.ac-feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(35,25,80,.36); }
@media (max-width: 780px) { .ac-feature { grid-template-columns: 1fr; } }
.ac-feature-body { padding: 19px 24px 17px; display: flex; flex-direction: column; gap: 8px; }
.ac-feature-body h3 {
  font-family: var(--fd); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.12; letter-spacing: -.02em;
}
.ac-feature-body p { font-size: 14.5px; line-height: 1.5; color: var(--grey); }
.ac-feature-side {
  background: var(--pink-soft); border-left: 1.5px solid var(--ink);
  padding: 18px 20px; display: grid; align-content: center; gap: 9px;
}
@media (max-width: 780px) { .ac-feature-side { border-left: 0; border-top: 1.5px solid var(--ink); } }
.ac-journey { display: grid; }
.ac-jn { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-size: 13px; font-weight: 600; padding: 4.5px 0; position: relative; }
.ac-jn::before { content: ""; position: absolute; left: 4.25px; top: 0; bottom: 0; width: 1.5px; background: rgba(108,92,231,.28); }
.ac-jn:first-child::before { top: 50%; }
.ac-jn:last-child::before  { bottom: 50%; }
.ac-jd { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--purple); background: #fff; flex: none; position: relative; z-index: 1; }
.ac-jn.is-live { font-weight: 700; }
.ac-jn.is-live .ac-jd { background: var(--purple); }
.ac-jn.is-live em { font-style: normal; color: var(--purple-deep); margin-left: 2px; }
.ac-reassure {
  margin-top: 13px; padding-top: 11px; border-top: 1.5px solid rgba(4,8,13,.13);
  display: grid; gap: 5px; font-size: 12.5px; line-height: 1.35; color: #6E5462;
}

/* ---------- grid cards: visual-first ---------- */
.ac-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 941px) {
  .ac-grid:has(> .ac-item:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .ac-grid:has(> .ac-item:only-child)              { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .ac-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-grid:has(> .ac-item:only-child) { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .ac-grid { grid-template-columns: 1fr; } }

.ac-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); box-shadow: none;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.ac-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(35,25,80,.35); }
.ac-card-body { padding: 11px 16px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ac-card h3 {
  font-family: var(--fd); font-weight: 700; font-size: 18.5px;
  line-height: 1.2; letter-spacing: -.017em;
}
.ac-cardsub {
  font-size: 13.5px; line-height: 1.35; color: var(--grey);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-meta {
  margin-top: auto; padding-top: 5px;
  font-family: var(--fd); font-size: 12px; color: var(--grey-3);
}

/* ---------- visual preview: simplified feature diagrams ----------
   One concept per card. Everything fully visible — no cropping,
   no fake app window. Controls sit directly on the tinted ground. */
.ac-viz {
  height: 156px; display: grid; place-items: center; padding: 14px 22px;
  border-bottom: 1.5px solid var(--ink); overflow: hidden;
}
.ac-viz.is-ai      { background: #EFEAFC; }
.ac-viz.is-msg     { background: #FAF7DC; }
.ac-viz.is-content { background: #E6F1E9; }

.vv { width: 100%; font-family: var(--fd); color: var(--ink); }
.vv-lab   { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A8794; line-height: 1; }
.vv-title { font-size: 14.5px; font-weight: 700; line-height: 1; }
.vv-val   { font-size: 14px; font-weight: 800; color: var(--purple-deep); line-height: 1; }
.vv-mut   { font-size: 12px; font-weight: 500; color: #8A8794; line-height: 1; }

.vv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 9px 0; border-top: 1.5px solid rgba(4,8,13,.12);
}
.vv-row:first-of-type { border-top: 0; }

.vv-sw { width: 34px; height: 19px; border-radius: 999px; background: var(--purple); position: relative; flex: none; }
.vv-sw::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 2.5px; right: 2.5px; }

.vv-chips { display: flex; gap: 7px; }
.vv-chip {
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1.5px solid rgba(4,8,13,.3); color: #4A4852;
}
.vv-chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Creator Context */
.vv-field { margin-top: 9px; background: #fff; border: 1.5px solid rgba(4,8,13,.28); border-radius: 9px; padding: 12px; display: grid; gap: 8px; }
.vv-field span { height: 6px; border-radius: 3px; background: #E4E1EC; }
.vv-field span:nth-child(2) { width: 82%; }
.vv-field span:nth-child(3) { width: 54%; }
.vv-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.vv-count { font-size: 14px; font-weight: 700; color: #8A8794; line-height: 1; }
.vv-count b { color: var(--purple-deep); font-weight: 800; }

/* Smart Post */
.vv-post { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; }
.vv-thumb { width: 66px; height: 66px; border-radius: 10px; background: #E3E9E1; border: 1.5px solid rgba(4,8,13,.22); }
.vv-cap { font-family: var(--fb); font-size: 13.5px; font-weight: 600; line-height: 1.3; margin-top: 7px; }
.vv-btn { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; background: var(--purple); padding: 9px 18px; border-radius: 999px; }

/* Mass Message — frequency + next send share one row */
.vv-split { display: flex; gap: 26px; margin-top: 12px; padding-top: 12px; border-top: 1.5px solid rgba(4,8,13,.12); }
.vv-split > div { display: grid; gap: 6px; }

/* source picker */
.vv-src { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1.5px solid rgba(4,8,13,.2); }
.vv-src + .vv-src { margin-top: 8px; }
.vv-src.on { background: var(--purple-tint); border-color: var(--purple); }
.vv-src i { width: 30px; height: 30px; border-radius: 8px; background: #E4E1EC; flex: none; }
.vv-src.on i { background: var(--purple); }
.vv-src b { font-size: 14px; font-weight: 700; line-height: 1.2; display: block; }
.vv-src small { font-size: 11.5px; font-weight: 500; color: #8A8794; }

/* media album */
.vv-thumbs { display: flex; gap: 8px; margin-top: 11px; }
.vv-thumbs span { width: 58px; height: 58px; border-radius: 9px; background: #E7E2EE; border: 1.5px solid rgba(4,8,13,.16); }
.vv-thumbs span:nth-child(2) { background: #EADFE4; }
.vv-thumbs span:nth-child(3) { background: #DDE8E0; }

/* ---------- empty state ---------- */
.ac-empty {
  display: none; text-align: center; padding: 46px 20px;
  border: 1.5px dashed var(--hair); border-radius: var(--r-lg);
}
.ac-empty p { font-family: var(--fd); font-size: 16px; color: var(--grey); }
.ac-empty button {
  margin-top: 12px; font-family: var(--fd); font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--ink); background: #fff; border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
[hidden] { display: none !important; }


/* Academy pages use the landing site's type, color, spacing and controls. */
:root {
  --fd: var(--font-display);
  --fb: var(--font-body);
  --cream-2: var(--bg-2);
  --grey: var(--muted);
  --grey-3: var(--muted-2);
  --lh-h2: 1.04;
  --lh-h3: 1.1;
  --pink-deep: var(--pink-pill);
  --lav-pill: var(--lav-2);
}
.ac-hero { overflow: hidden; padding-block: clamp(72px, 8vw, 112px) 36px; }
.ac-hero > .wrap, .ar-head > .wrap { position: relative; z-index: 1; }
.ac-tilt { top: 18px; height: 210px; background: linear-gradient(120deg, var(--lav-soft), var(--pink-soft)); }
.ac-hero h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 600; }
.ac-hero .marker { font-family: var(--font-marker); color: var(--purple); font-weight: 400; font-size: 1.08em; letter-spacing: 0; }
.ac-hero .lead { margin-top: 8px; }
.ac-search { margin-top: 18px; }
.ac-filters { margin-top: 12px; }
.ac-body { padding-top: 38px; }
.ac-sec + .ac-sec { margin-top: clamp(56px, 7vw, 96px); }
.ac-sec-head { padding-bottom: 20px; margin-bottom: 24px; }
.ac-sec-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.ac-card-body { padding: 20px; gap: 9px; }
.ac-card h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; }
.ac-cardsub { font-size: 14px; -webkit-line-clamp: 3; }
.ac-meta { padding-top: 10px; }
.ac-feature-body { padding: clamp(24px, 3vw, 40px); gap: 14px; }
.ac-feature-body h3 { font-size: clamp(25px, 2.6vw, 34px); font-weight: 600; }
.ac-feature-body p { font-size: 16px; }
.ac-feature-side { padding: clamp(24px, 3vw, 40px); }
.ac-hero .ac-results { min-height: 1em; }
.ar-head { overflow: hidden; padding-block: clamp(64px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.ar-tilt { height: 100%; background: linear-gradient(120deg, var(--lav-soft), var(--pink-soft)); }
.ar-title { font-weight: 600; }
.ar-col > * + * { margin-top: 24px; }
.ar-col h3 { font-weight: 600; }
.ar-col p, .ar-col li { color: var(--ink-2); }
.ar-col ul { list-style: disc; }
.ar-col .ar-check ul { list-style: none; }
.ar-col ol { list-style: decimal; }
.ar-note { box-shadow: 4px 4px 0 var(--ink); }
.ar-note.is-tip { box-shadow: none; }
.ar-toc { background: var(--bg-2); }
.ar-cta .btn { margin-top: 18px; }
.ar-col img { height: auto; }
@media (max-width: 620px) {
  .ac-hero { padding-top: 54px; }
  .ac-tilt { height: 180px; }
  .ac-feature-body { padding: 24px; }
  .ar-head { padding-top: 48px; }
}
