/* Public campus page (campus.php), the clean version: a short hero, five small blocks, and a join card
   that is always in view (sticky on the right on wide screens; under the hero on phones, with a pay bar).
   Brand look (Obin navy + lime). Scoped under .cq. Motion: assets/js/campus-page.js. */
.cq {
  --ground: #f3f4f8; --card: #ffffff; --ink: #0b0e24; --ink-2: #4a4f68; --muted: #80849b; --line: #e6e7ef;
  --deep: #070b24; --deep-2: #111845; --on: #f5f6fb; --on-2: rgba(245,246,251,.72); --on-3: rgba(245,246,251,.48);
  --lime: #cdfb5e; --lime-ink: #0a0d1c; --brand: #3b33ff;
  --serif: "Newsreader", Georgia, serif; --sans: "Geist", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq h1, .cq h2, .cq h3, .cq p { margin: 0; }
.cq a { color: inherit; text-decoration: none; }
.cq :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.cq .hidden { display: none !important; }
.cq-draft { background: #fff6e6; color: #a75a00; text-align: center; padding: 10px 16px; font-size: 13.5px; font-weight: 600; }
.cq-draft a { text-decoration: underline; }

/* the hero, the join card and the blocks share one grid: the card spans both rows and sticks */
.cq-page { max-width: 1240px; margin: 0 auto; padding: 24px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 28px; }
.cq-hero { grid-column: 1; grid-row: 1; }
.cq-join { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 90px; }
.cq-col { grid-column: 1; grid-row: 2; display: grid; gap: 28px; min-width: 0; align-content: start; }

/* hero */
.cq-hero { position: relative; overflow: hidden; border-radius: 28px; background: var(--deep); color: var(--on); isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 440px; }
.cq-aurora { position: absolute; inset: -30%; z-index: -1; filter: blur(60px); opacity: .9; pointer-events: none; }
.cq-aurora i { position: absolute; width: 50%; height: 50%; border-radius: 50%; }
.cq-aurora i:nth-child(1) { left: 5%; top: 10%; background: #2a22d6; }
.cq-aurora i:nth-child(2) { right: 0; top: 30%; background: #0b6b7a; }
.cq-aurora i:nth-child(3) { left: 30%; bottom: 0; width: 30%; height: 30%; background: rgba(205,251,94,.45); }
.cq-hero-copy { padding: 44px 40px; display: grid; align-content: center; gap: 18px; min-width: 0; }
.cq-crumb { font-size: 13px; color: var(--on-3); }
.cq-crumb a { color: var(--on-2); }
.cq-crumb a:hover { color: var(--lime); }
.cq-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font: 600 11.5px var(--mono); letter-spacing: .06em; color: var(--lime); }
.cq-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.cq-hero h1 { font: 400 clamp(38px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; color: var(--on); }
.cq-hero h1 em { font-style: italic; color: var(--lime); }
.cq-line { display: block; overflow: hidden; padding-bottom: .06em; }
.cq-line > span { display: inline-block; }
.cq-lede { font-size: 17px; color: var(--on-2); max-width: 26em; }
.cq-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.cq-facts span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: var(--on); }
.cq-facts svg { width: 14px; height: 14px; color: var(--lime); }
.cq-hero-pic { position: relative; overflow: hidden; }
.cq-hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.cq-hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), transparent 45%); }

/* blocks */
.cq-block { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.cq-block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cq-block h2 { font: 400 30px/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.cq-block h2 em { font-style: italic; color: var(--brand); }
.cq-block-h span { font-size: 14px; color: var(--muted); }
.cq-incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.cq-incl > div { padding: 18px; border-radius: 16px; background: var(--ground); display: grid; gap: 10px; align-content: start; transition: transform .5s var(--ease), background-color .4s; }
.cq-incl > div:hover { transform: translateY(-4px); background: #eceefb; }
.cq-incl .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--deep); color: var(--lime); }
.cq-incl .ic svg { width: 18px; height: 18px; }
.cq-incl b { font-size: 15px; line-height: 1.3; }
.cq-incl small { font-size: 13px; color: var(--muted); line-height: 1.4; }

.cq-prof { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 22px; }
.cq-prof .ph { width: 120px; height: 120px; border-radius: 26px; overflow: hidden; background: linear-gradient(140deg, var(--deep-2), var(--deep)); display: grid; place-items: center; color: var(--lime); font: 400 44px var(--serif); }
.cq-prof .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cq-prof b { display: block; font: 400 24px/1.2 var(--serif); }
.cq-prof .role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cq-prof q { display: block; margin-top: 12px; font: italic 400 17px/1.45 var(--serif); color: var(--ink-2); quotes: "\201C" "\201D"; }
.cq-soc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cq-soc a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ground); color: var(--ink) !important; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.cq-soc a svg { width: 17px; height: 17px; fill: currentColor; }
.cq-soc a:hover { transform: translateY(-3px); background: var(--deep); color: var(--lime) !important; }

.cq-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; counter-reset: cq-step; }
.cq-steps > div { padding: 20px; border-radius: 16px; border: 1px solid var(--line); min-width: 0; }
.cq-steps > div::before { counter-increment: cq-step; content: counter(cq-step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font: 700 13px var(--mono); margin-bottom: 14px; }
.cq-steps b { display: block; font-size: 15.5px; }
.cq-steps small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.cq-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 22px; perspective: 700px; }
.cq-year i { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: var(--on-3); font: 600 12px var(--mono); font-style: normal; }
.cq-year i svg { position: absolute; bottom: 9px; width: 14px; height: 14px; }
.cq-year i.open { background: var(--lime); color: var(--lime-ink); }
.cq-year-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.cq-year-note svg { width: 15px; height: 15px; flex: none; }

.cq-faq details { border-top: 1px solid var(--line); }
.cq-faq details:first-of-type { margin-top: 14px; }
.cq-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 15.5px; }
.cq-faq summary::-webkit-details-marker { display: none; }
.cq-faq summary i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.cq-faq details[open] summary i { transform: rotate(45deg); background: var(--deep); color: var(--lime); }
.cq-faq p { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; max-width: 44em; }

/* join card */
.cq-join { border-radius: 26px; background: var(--deep); color: var(--on); padding: 26px; overflow: hidden; isolation: isolate; box-shadow: 0 40px 70px -40px rgba(7,11,36,.9); }
.cq-join::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,51,255,.6), transparent); z-index: -1; }
.cq-label { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.cq-join h3 { margin-top: 8px; font: 400 26px/1.15 var(--serif); color: var(--on); }
.cq-member { margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(205,251,94,.08); border: 1px solid rgba(205,251,94,.25); }
.cq-member b { font-size: 16px; }
.cq-member p { margin-top: 2px; font-size: 13.5px; color: var(--on-2); }
.cq-more { display: block; margin-top: 12px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-3); text-align: center; }
.cq-ended { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,203,5,.12); color: #ffe08a; font-size: 13.5px; }
.cq-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-top: 18px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.cq-switch .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--on); transition: transform .6s var(--ease); }
.cq-switch[data-plan="MONTHLY"] .knob { transform: translateX(100%); }
.cq-switch button { position: relative; z-index: 1; height: 40px; border: 0; background: none; font: 600 13.5px var(--sans); color: var(--on-2); cursor: pointer; transition: color .4s; }
.cq-switch button[aria-pressed="true"] { color: var(--ink); }
.cq-switch .save { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font: 700 10px var(--mono); }
.cq-price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cq-price .cur { font: 500 15px var(--mono); color: var(--on-2); }
.cq-odo { display: inline-flex; font: 400 50px/1 var(--serif); letter-spacing: -.03em; height: 1em; overflow: hidden; }
.cq-odo .d, .cq-odo .c { display: inline-block; height: 1em; overflow: hidden; max-width: 1em; transition: max-width .7s var(--ease), opacity .5s; }
.cq-odo .d > span { display: block; transition: transform .9s var(--ease); }
.cq-odo .d > span i { display: block; height: 1em; font-style: normal; }
.cq-odo .lead { max-width: 0; opacity: 0; }
.cq-price .per { color: var(--on-3); font-size: 14px; }
.cq-daily { margin-top: 6px; font-size: 13.5px; color: var(--on-2); }
.cq-daily b { color: var(--lime); font-weight: 600; }
.cq-field { margin-top: 18px; display: grid; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--on-2); }
.cq .cq-field input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--on); padding: 0 14px; font: 500 16px var(--mono); box-shadow: none; }
.cq .cq-field input::placeholder { color: var(--on-3); }
.cq .cq-field input:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(205,251,94,.15); }
.cq-pay { position: relative; width: 100%; margin-top: 12px; height: 56px; border: 0; border-radius: 14px; background: var(--lime); color: var(--lime-ink) !important; font: 700 16px var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; isolation: isolate; overflow: hidden; transition: transform .4s var(--ease); }
.cq-pay svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.cq-pay:hover svg { transform: translateX(4px); }
.cq-pay:active { transform: scale(.98); }
.cq-pay:not(.alt)::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: conic-gradient(from var(--cq-a, 0deg), transparent 0 70%, rgba(255,255,255,.9) 80%, transparent 90%); }
.cq-pay:not(.alt)::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 12px; background: var(--lime); }
.cq-pay.alt { height: 48px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--on) !important; font-size: 14.5px; margin-top: 10px; }
.cq-pay.alt:hover { background: rgba(255,255,255,.12); }
@property --cq-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cq-err { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,90,90,.14); color: #ffb4b4; font-size: 13.5px; }
.cq-state { padding: 22px 8px 6px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.cq-state b { font: 400 22px var(--serif); }
.cq-state p { color: var(--on-2); font-size: 14px; }
.cq-state .spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--lime); animation: cq-spin .9s linear infinite; margin-bottom: 6px; }
@keyframes cq-spin { to { transform: rotate(360deg); } }
.cq-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--on-3); }
.cq-momo { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cq-momo i { padding: 2px 7px; border-radius: 5px; font: 700 10px var(--mono); font-style: normal; }
.cq-momo .mtn { background: #ffcb05; color: #1a1a1a; }
.cq-momo .air { background: #e40000; color: #fff; }
.cq-trust { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; font-size: 13px; color: var(--on-2); }
.cq-trust div { display: flex; gap: 9px; align-items: center; }
.cq-trust svg { width: 15px; height: 15px; color: var(--lime); flex: none; }

.cq-paybar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 16px; border-radius: 16px; background: var(--deep); color: var(--on); box-shadow: 0 16px 34px -10px rgba(0,0,0,.6); }
.cq-paybar small { display: block; font: 500 10.5px var(--mono); color: var(--on-3); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-paybar b { font-size: 15px; }
.cq-paybar a { flex: none; height: 44px; padding: 0 18px; border-radius: 11px; background: var(--lime); color: var(--lime-ink) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.cq-paybar a svg { width: 16px; height: 16px; }

/* motion: one calm language */
@media (prefers-reduced-motion: no-preference) {
  .cq-aurora i { animation: cq-drift 18s ease-in-out infinite alternate; }
  .cq-aurora i:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
  .cq-aurora i:nth-child(3) { animation-duration: 15s; animation-delay: -3s; }
  @keyframes cq-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, -8%) scale(1.15); } 100% { transform: translate(-8%, 10%) scale(.95); } }
  .cq-line > span { animation: cq-up 1.1s var(--ease) both; animation-delay: calc(.15s + var(--l) * .12s); }
  @keyframes cq-up { from { transform: translateY(110%); } }
  .cq-fade { animation: cq-fade 1s var(--ease) both; animation-delay: var(--d, .5s); }
  @keyframes cq-fade { from { opacity: 0; transform: translateY(12px); } }
  .cq-hero-pic img { animation: cq-ken 24s ease-in-out infinite alternate; }
  @keyframes cq-ken { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.22) translate(-3%, -2%); } }
  .cq-join { animation: cq-card 1.1s var(--ease) both .25s; }
  @keyframes cq-card { from { opacity: 0; transform: translateY(24px) scale(.98); } }
  .cq-pay:not(.alt)::before { animation: cq-sweep 3.2s linear infinite; }
  @keyframes cq-sweep { to { --cq-a: 360deg; } }
  .js-cq .cq-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js-cq .cq-reveal.in { opacity: 1; transform: none; }
  .cq-year i { transform-origin: top; }
  .cq-year.in i { animation: cq-flip .8s var(--ease) both; animation-delay: calc(var(--n) * 55ms); }
  @keyframes cq-flip { from { opacity: 0; transform: rotateX(-80deg); } }
}

@media (max-width: 1000px) {
  .cq-page { grid-template-columns: 1fr; grid-template-rows: none; }
  .cq-hero, .cq-join, .cq-col { grid-column: 1; grid-row: auto; }
  .cq-join { position: relative; top: auto; }
  .cq-incl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cq-page { padding-inline: 16px; padding-top: 16px; row-gap: 18px; }
  .cq-col { gap: 18px; }
  .cq-hero { grid-template-columns: 1fr; min-height: 0; }
  .cq-hero-pic { height: 180px; order: -1; }
  .cq-hero-pic::after { background: linear-gradient(0deg, var(--deep), transparent 60%); }
  .cq-hero-copy { padding: 22px 22px 28px; }
  .cq-block { padding: 22px; }
  .cq-steps { grid-template-columns: 1fr; }
  .cq-year { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cq-prof { grid-template-columns: 84px minmax(0, 1fr); }
  .cq-prof .ph { width: 84px; height: 84px; border-radius: 20px; font-size: 32px; }
  .cq-paybar { display: flex; }
  .cq { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .cq-state .spin { animation: none; }
}
/* the real price for screen readers and copy; the rolling digits are decoration */
.cq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cq-odo { user-select: none; }
.cq-price { position: relative; }
