/* Additions for new sections — appended to existing styles */

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s;
}
.how-step:hover { border-color: var(--ink); transform: translateY(-4px); }
.hs-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.hs-illu {
  width: 80px; height: 80px;
  color: var(--accent);
  margin-bottom: 28px;
}
.hs-illu svg { width: 100%; height: 100%; }
.how-step h3 {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.how-step p {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 1100px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: all .3s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transition: transform .3s var(--ease);
}
.faq-toggle::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .faq-toggle {
  background: var(--ink); border-color: var(--ink);
}
.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after { background: var(--bg); }
.faq-item.open .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 720px;
  padding-bottom: 28px;
}

/* Section head meta-link */
.section-head .meta-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 18px;
  cursor: pointer;
  transition: color .2s, transform .25s var(--ease);
}
.section-head .meta-link:hover { color: var(--accent); transform: translateX(4px); }

/* Promo hint */
.promo-hint {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 10px;
}

/* Checkout terms */
.co-terms {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
  padding: 0 8px;
  margin-top: 8px;
}
.co-terms a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.co-terms a:hover { color: var(--accent); }

/* Success — what's next */
.suc-next-h {
  font-family: var(--display);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 80px;
  margin-bottom: 24px;
}
.suc-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.suc-next-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .3s;
}
.suc-next-card:hover { border-color: var(--ink); }
.snc-ic {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.snc-ic svg { width: 100%; height: 100%; }
.suc-next-card h4 {
  font-family: var(--display);
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.suc-next-card p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 700px) {
  .suc-next { grid-template-columns: 1fr; }
}

/* Footer CTA strip */
.foot-cta {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px 60px;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.foot-cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 8px;
}
.foot-cta h2 .ser { font-family: var(--serif); font-style: italic; font-weight: 300; }
.foot-cta p {
  font-size: 16px; opacity: 0.9;
  max-width: 480px;
}
.foot-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-cta .btn-primary { background: #fff; color: var(--accent); }
.foot-cta .btn-primary:hover { background: var(--ink); color: #fff; }
.foot-cta .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.foot-cta .btn-outline:hover { background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 900px) {
  .foot-cta { grid-template-columns: 1fr; padding: 40px 32px; gap: 24px; }
}

/* Footer newsletter */
.foot-news {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.foot-news h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  font-weight: 500;
}
.foot-news p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  margin-top: 0 !important;
  max-width: 280px;
}
.foot-news-form {
  display: flex; gap: 6px;
}
.foot-news-form input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
  transition: all .25s;
}
.foot-news-form input::placeholder { color: rgba(255,255,255,0.4); }
.foot-news-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.foot-news-form button {
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: filter .25s;
}
.foot-news-form button:hover { filter: brightness(1.15); }
.foot-news-form button:disabled { opacity: 0.6; cursor: default; }

/* Footer social */
.foot-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all .25s;
  padding: 0 !important;
}
.foot-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: none !important;
}


/* ============================================================
   CART
   ============================================================ */
.btn-cart {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: all .2s var(--ease, ease);
}
.btn-cart:hover { background: var(--surface); border-color: var(--ink); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--bg);
  transform: scale(0);
  transition: transform .25s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.btn-cart.has-items .cart-count { transform: scale(1); }
.btn-cart.bump { animation: cartBump .45s var(--ease, ease); }
@keyframes cartBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-drawer {
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.open { pointer-events: auto; visibility: visible; }
.cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,9,8,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s var(--ease, ease);
}
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease, ease);
  box-shadow: -20px 0 60px rgba(10,9,8,0.15);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  padding: 28px 28px 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.cart-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cart-title {
  font-family: var(--display);
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-close {
  background: transparent;
  border: 1px solid var(--line);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px; color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-close:hover { background: var(--surface); color: var(--ink); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.cart-empty .ic {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.cart-empty h4 {
  font-family: var(--display);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.cart-empty p { font-size: 13px; line-height: 1.5; }

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  transition: all .2s;
}
.cart-item:hover { border-color: var(--ink-3); }
.cart-item-thumb {
  width: 60px; height: 60px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-thumb svg { width: 28px; height: 28px; }
.cart-item-info { min-width: 0; }
.cart-item-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.cart-item-title {
  font-family: var(--display);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item-price {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--accent);
}
.cart-item-rm {
  background: transparent;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-item-rm:hover { background: var(--bg); color: var(--accent); }

.cart-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.cart-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display);
}
.cart-row span:first-child { font-size: 13px; color: var(--ink-2); }
.cart-subtotal {
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cart-checkout { width: 100%; padding: 14px; font-size: 14px; }
.cart-cont { width: 100%; padding: 12px; font-size: 13px; color: var(--ink-2); }
.cart-cont:hover { color: var(--ink); }

/* + button on course cards */
.course-cart-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s var(--ease, ease);
  flex-shrink: 0;
}
.course-cart-btn:hover {
  background: var(--accent);
  transform: scale(1.08);
}
.course-cart-btn.added {
  background: #1F7A4F;
  color: #fff;
}

@media (max-width: 720px) {
  .cart-panel { width: 100vw; border-left: none; }
  .cart-head, .cart-body, .cart-foot { padding-left: 20px; padding-right: 20px; }
  .btn-cart { width: 38px; height: 38px; }
}

/* === Checkout summary states === */
.summary .sum-course + .sum-course {
  margin-top: -10px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.sum-more {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0 0 18px;
  margin-top: -8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.sum-empty {
  text-align: center;
  padding: 28px 12px 8px;
}
.sum-empty-ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
}
.sum-empty h4 {
  font-family: var(--display);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 8px;
}
.sum-empty p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
  line-height: 1.5;
}
