/* =========================================================
   Komoraro — customer-facing components (shop, booking,
   account, checkout, dashboard, legal)
   ========================================================= */

/* ---------- header right cluster ---------- */
.header__right { display: flex; align-items: center; gap: 22px; }
.header__login { font-size: 16px; line-height: 24px; color: var(--ink); transition: color .25s; }
.header__login:hover { color: var(--green-dark); }
.header--dark .header__login { color: var(--white); }
.header--dark .header__login:hover { color: var(--green); }
.header__cart { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); transition: background-color .25s, color .25s, border-color .25s; }
.header__cart svg { width: 20px; height: 20px; }
.header__cart:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }
.header--dark .header__cart { color: var(--white); border-color: rgba(255,255,255,.35); }
.header--dark .header__cart:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }
.header__cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: var(--on-green); font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; }
.header__cart-count:empty, .header__cart-count[data-zero] { display: none; }

/* ---------- cart drawer ---------- */
.cart { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.cart.is-open { visibility: visible; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(25,25,25,.45); opacity: 0; transition: opacity .35s var(--ease-framer); }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--white); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease-out); }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.cart__items { flex: 1; overflow: auto; padding: 8px 32px; }
.cart-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--mist); }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 500; }
.cart-item__meta { font-size: 14px; color: var(--muted); }
.cart-item__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.cart-item__price { font-weight: 500; white-space: nowrap; }
.cart-item__remove { color: var(--grey); display: inline-flex; }
.cart-item__remove svg { width: 18px; height: 18px; }
.cart-item__remove:hover { color: #c0392b; }
.cart__empty { padding: 40px 32px; text-align: center; }
.cart.has-items .cart__empty { display: none; }
.cart__foot { padding: 24px 32px 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.cart__total { display: flex; justify-content: space-between; font-size: 18px; }
.cart__foot .btn { width: 100%; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(25,25,25,.10); }
.product__img { position: relative; height: 274px; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product:hover .product__img img { transform: scale(1.05); }
.product__tag { position: absolute; top: 16px; left: 16px; }
.product-grid--shop .product__img { height: auto; aspect-ratio: 4 / 5; }
.product__img--apparel img { object-position: 50% 32%; }
.product__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease-out), transform .8s var(--ease-out); }
.product:hover .product__alt { opacity: 1; }
.product__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__cat { font-size: 14px; line-height: 16.8px; color: var(--muted); }
.product__name { font-size: 24px; line-height: 33.6px; font-weight: 500; }
.product__desc { color: var(--muted); }
.product__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__price { font-size: 22px; font-weight: 600; }
.product__price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.btn--sm { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.is-added { background: var(--green-900); color: var(--white); }

/* ---------- filter tabs / chips ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter button { height: 44px; padding: 0 20px; border-radius: 30px; border: 1px solid var(--line); color: var(--ink); transition: all .25s; }
.filter button:hover { border-color: var(--green); color: var(--grey-900); }
.filter button.is-active { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip--lime { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip--mist { background: var(--mist); border-color: var(--mist); }

/* ---------- two-option cards (daily vs monthly) ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; }
.option { border-radius: 32px; padding: 48px; display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--line); background: var(--white); }
.option--green { background: var(--green); color: var(--on-green); border-color: var(--green); }
.option h3 { font-size: 32px; line-height: 40px; font-weight: 600; }
.option__price { font-size: 48px; line-height: 57.6px; font-weight: 600; }
.option__price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.option--green .option__price small { color: var(--sage); }
.option ul { display: flex; flex-direction: column; gap: 12px; }
.option li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.option--green li { color: var(--sage); }
.option li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green-500); }
.option--green li svg { color: var(--white); }
.option .btn { align-self: flex-start; margin-top: auto; }
.option--green .btn:hover { background: var(--white); color: var(--black); }

/* ---------- steps (experience box variant) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.step__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; color: var(--on-green); }
.step__icon svg { width: 20px; height: 20px; }
.step h4 { font-size: 20px; line-height: 28px; font-weight: 500; }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 20px; font-size: 16px; line-height: 19.2px; color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23393939' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; appearance: none; outline: none; }
.field select:focus { border-color: var(--green); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .25s, background-color .25s; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card strong { font-weight: 500; }
.radio-card span { font-size: 14px; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { height: 40px; padding: 0 16px; border-radius: 30px; border: 1px solid var(--line); font-size: 14px; transition: all .25s; }
.slot.is-active { background: var(--green); color: var(--on-green); border-color: var(--green); }
.slot[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ---------- booking page ---------- */
.book { padding: 150px 0 115px; display: flex; flex-direction: column; align-items: center; gap: 70px; }
.book > * { width: 100%; }
.book__row { display: flex; gap: 60px; align-items: flex-start; width: 100%; }
.book__form { flex: 1; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: 44px; display: flex; flex-direction: column; gap: 30px; }
.panel--mist { background: var(--mist); border-color: var(--mist); }
.panel h3 { font-size: 28px; line-height: 36px; font-weight: 600; }
.summary { width: 400px; flex: none; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.summary__rows { display: flex; flex-direction: column; gap: 12px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary__row strong { color: var(--black); font-weight: 500; text-align: right; }
.summary__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 22px; font-weight: 600; }
.summary .btn { width: 100%; }
.note { font-size: 14px; line-height: 20px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green-dark); }

/* ---------- auth ---------- */
.auth { padding: 150px 0 120px; display: flex; justify-content: center; }
.auth .panel { width: 520px; max-width: 100%; }
.auth__tabs { display: flex; border: 1px solid var(--line); border-radius: 50px; padding: 4px; }
.auth__tabs button { flex: 1; height: 48px; border-radius: 50px; font-weight: 500; color: var(--muted); transition: all .25s; }
.auth__tabs button.is-active { background: var(--green); color: var(--on-green); }
.auth form { display: none; flex-direction: column; gap: 20px; }
.auth form.is-active { display: flex; }
.auth .btn { width: 100%; }
.auth__alt { text-align: center; font-size: 14px; color: var(--muted); }
.auth__alt a { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- checkout ---------- */
.checkout { padding: 150px 0 115px; display: flex; flex-direction: column; gap: 60px; }
.checkout > * { width: 100%; }
.checkout__row { display: flex; gap: 40px; align-items: flex-start; }
.checkout__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.order-lines { display: flex; flex-direction: column; }
.order-line { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--mist); }
.order-line__name { font-weight: 500; }
.order-line__meta { font-size: 14px; color: var(--muted); }
.order-line__price { margin-left: auto; font-weight: 500; white-space: nowrap; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 0; }
.success__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; color: var(--on-green); }
.success__icon svg { width: 40px; height: 40px; }

/* ---------- dashboard ---------- */
.dash { padding: 150px 0 115px; display: flex; flex-direction: column; gap: 40px; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.dash__head p { color: var(--muted); }
.dash__layout { display: flex; gap: 30px; align-items: flex-start; }
.dash__nav { width: 280px; flex: none; display: flex; flex-direction: column; gap: 4px; background: var(--mist); border-radius: 24px; padding: 16px; position: sticky; top: 120px; }
.dash__nav button { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; text-align: left; color: var(--ink); transition: all .25s; }
.dash__nav button svg { width: 20px; height: 20px; color: var(--green-900); }
.dash__nav button:hover { background: rgba(255,255,255,.7); }
.dash__nav button.is-active { background: var(--green); color: var(--on-green); }
.dash__nav button.is-active svg { color: var(--on-green); }
.dash__main { flex: 1; min-width: 0; max-width: 100%; }
.card { overflow-x: auto; }
.dash__view { display: none; flex-direction: column; gap: 24px; }
.dash__view.is-active { display: flex; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--mist); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile small { color: var(--muted); font-size: 14px; }
.tile strong { font-size: 30px; line-height: 36px; font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; background: var(--white); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__head h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 20px; font-size: 13px; font-weight: 500; background: var(--mist); color: var(--green-900); }
.status--lime { background: var(--green); color: var(--on-green); }
.status--grey { background: var(--grey-100); color: var(--muted); }
.link { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn { color: var(--green-dark); font-size: 14px; font-weight: 500; }
.progress { height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 8px; }
.cal { display: flex; flex-direction: column; gap: 14px; }
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal__key { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.cal__key--booked { background: var(--green); }
.cal__key--today { background: var(--white); outline: 2px solid var(--green-dark); outline-offset: -2px; }
.cal__key--free { background: var(--mist); }
.cal__nav { display: flex; gap: 8px; }
.cal__nav [data-cal-prev] svg { transform: rotate(90deg); }
.cal__nav [data-cal-next] svg { transform: rotate(-90deg); }
.cal__hint { font-size: 13px; margin-top: -6px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 14px; }
.calendar span, .calendar button { padding: 10px 0; border-radius: 10px; }
.calendar button { position: relative; background: var(--mist); color: var(--ink); font: inherit; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.calendar button:hover { background: var(--grey-300); color: var(--white); }
.calendar button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 1px; }
.calendar .is-head { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.calendar .is-booked { background: var(--green); color: var(--on-green); font-weight: 500; }
.calendar .is-booked:hover { background: var(--green-dark); }
.calendar .is-booked::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-900); transform: translateX(-50%); }
.calendar .is-today { outline: 2px solid var(--green-dark); outline-offset: -2px; }
.calendar .is-booked.is-today { outline-color: var(--grey-900); }
.calendar .is-muted { background: transparent; color: var(--grey); }
.calendar .is-muted:hover { background: var(--mist); }
.calendar .is-selected { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--grey-900); }
.calendar .is-booked.is-selected { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--grey-900); }
.cal__detail { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cal__detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cal__detail-head strong { font-size: 16px; }
.cal__detail-head small { color: var(--muted); font-size: 13px; }
.cal__ev { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--mist); font-size: 14px; }
.cal__ev-time { font-weight: 600; color: var(--green-900); }
.cal__ev-name { display: flex; flex-direction: column; gap: 2px; }
.cal__ev-name small { color: var(--muted); font-size: 12px; }
.cal__empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .cal__ev { grid-template-columns: 56px 1fr; }
  .cal__ev .status { grid-column: 2; justify-self: start; }
  .cal__detail { padding: 14px; }
}

/* ---------- legal ---------- */
.legal { padding: 150px 0 100px; display: flex; flex-direction: column; gap: 40px; max-width: 860px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); }
.legal h2 { font-size: 28px; line-height: 36px; font-weight: 600; margin-top: 16px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- misc ---------- */
.coach-ticker .class-card__panel p { max-width: 270px; }
.price-strip { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.price-pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 30px; background: var(--mist); font-size: 15px; }
.price-pill strong { font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--black); color: var(--white); padding: 14px 22px; border-radius: 40px; font-size: 15px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 70; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1340px) {
  .summary { width: 340px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1280px) {
  .header__login { display: none; }
}
@media (max-width: 1024px) {
  .header__right { gap: 12px; }
  .header__cta { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .options { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .book__row { flex-direction: column; align-items: stretch; }
  .book__form { width: 100%; }
  .summary { width: 100%; position: static; }
  .checkout__row { flex-direction: column; align-items: stretch; }
  .checkout__main { width: 100%; }
  .dash__layout { flex-direction: column; }
  .dash__main { width: 100%; }
  .dash__nav { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards, .pay-methods { grid-template-columns: 1fr; }
  .panel { padding: 28px 22px; border-radius: 24px; }
  .option { padding: 32px 24px; }
  .option h3 { font-size: 26px; line-height: 32px; }
  .option__price { font-size: 38px; line-height: 44px; }
  .book, .auth, .checkout, .dash, .legal { padding: 120px 0 60px; }
  .tiles { grid-template-columns: 1fr; }
  .table { font-size: 14px; min-width: 520px; }
  .card { padding: 22px 18px; }
  .card__head { flex-wrap: wrap; }
  .dash__nav button { padding: 12px 14px; font-size: 15px; }
  .calendar { gap: 3px; font-size: 13px; }
  .cart__panel { width: 100%; }
  .dash__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- compact type scale for phones ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 23px; }
  .h1 { font-size: 32px; line-height: 38px; }
  .h2 { font-size: 27px; line-height: 33px; }
  .h3 { font-size: 22px; line-height: 28px; }
  .t-24, .blog-card__title, .product__name { font-size: 19px; line-height: 26px; }
  .t-20, .team-card__name, .sched__who span, .sched__time, .event__facts span, .facts span { font-size: 16px; line-height: 22px; }
  .t-18, .plan__name, .review__name, .footer__col h4, .contact-card__title, .bring h4 { font-size: 16px; line-height: 22px; }
  .t-14, .blog-card__date, .product__cat, .chip, .footer__links a, .footer__copy, .note, .check { font-size: 13px; line-height: 17px; }
  .t-32, .faq__q, .event__left h4, .mission__card h2, .contact__side .sec-head h2 { font-size: 20px; line-height: 27px; }
  .event__title { font-size: 19px; line-height: 26px; }
  .event__date { font-size: 15px; line-height: 20px; }
  .btn { height: 50px; padding: 0 22px; font-size: 15px; }
  .btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
  .round { width: 48px; height: 48px; }
  .round svg { width: 20px; height: 20px; }
  .logo, .logo__img { height: 28px; }
  .header { padding: 16px 16px; }
  .header__cart, .header__burger { width: 40px; height: 40px; }
  .stat { height: 110px; }
  .stat__num { font-size: 72px !important; }
  .stat__label { font-size: 16px; line-height: 20px; }
  .plan__price, .option__price { font-size: 34px; line-height: 40px; }
  .option h3, .panel h3 { font-size: 22px; line-height: 28px; }
  .product__price { font-size: 19px; }
  .cta-green__copy h3 { font-size: 22px; line-height: 28px; }
  .hero__copy p { font-size: 15px; line-height: 23px; }
  .class-card__panel h3 { font-size: 22px; line-height: 28px; }
  .experience__item p, .step h4 { font-size: 16px; line-height: 22px; }
  .step p { font-size: 14px; line-height: 20px; }
  .tile strong { font-size: 24px; line-height: 30px; }
  .card__head h3 { font-size: 18px; line-height: 24px; }
  .summary__total { font-size: 19px; }
  .news-banner h3 { font-size: 24px; line-height: 30px; }
  .team-cta h3 { font-size: 24px; line-height: 30px; }
  .footer__word { font-size: 64px; line-height: 1.2; }
  .footer__mark { width: 56px; }
  .mobile-menu { font-size: 22px; gap: 18px; }
  .legal h2, .article h2 { font-size: 24px; line-height: 30px; }
  .article h3 { font-size: 21px; line-height: 27px; }
  .article h4 { font-size: 18px; line-height: 24px; }
  .review { width: 240px; height: 270px; padding: 20px 18px; }
  .review__text { margin-top: 20px; font-size: 14px; line-height: 20px; }
}

/* ---------- tighter plan cards on tablet and phone ---------- */
@media (max-width: 1024px) {
  .plan__inner { min-height: 0; gap: 28px; }
  .plan__top { gap: 24px; }
}
@media (max-width: 640px) {
  .plan { padding: 8px; border-radius: 28px; }
  .plan__inner { padding: 26px 24px; gap: 22px; border-radius: 22px; }
  .plan__top { gap: 18px; }
  .plan__price { margin-top: 10px; }
  .plan__per { margin-top: 4px; }
  .plan__desc { max-width: none; }
  .plan__features { padding-top: 22px; gap: 8px; }
  .plans__inner { gap: 36px; }
  .plans-grid { gap: 18px; }
  .option { gap: 18px; }
  .product__body { padding: 20px 20px 22px; gap: 8px; }
  .product__foot { padding-top: 12px; }
  .panel { gap: 22px; }
  .card { gap: 14px; }
  .step { padding: 22px; gap: 10px; }
  .mission__card { padding: 18px; gap: 10px; }
}

/* ---------- tighter section and card spacing on tablet ---------- */
@media (max-width: 1024px) {
  .offer__inner { padding: 40px 0 60px; gap: 48px; }
  .offer-grid, .offer-left, .offer-right, .offer-row2 { gap: 20px; }
  .plans__inner { padding: 60px 0; gap: 40px; }
  .plans-grid, .product-grid, .blog-grid, .mission__cards, .steps { gap: 20px; }
  .reviews { padding: 70px 0; gap: 48px; }
  .reviews__rows { gap: 20px; }
  .cta-wrap { padding: 80px 0; }
  .events-sec__inner { padding: 70px 0; }
  .video-sec { padding: 80px 0 40px; gap: 40px; }
  .team-sec { padding: 40px 0 80px; }
  .team-sec__inner { padding-top: 20px; gap: 40px; }
  .team-grid { gap: 24px 20px; }
  .team-rows { gap: 20px; }
  .team-row { gap: 20px; }
  .contact-cta-wrap { padding: 0 0 50px; }
  .insights { padding: 50px 0 40px; gap: 40px; }
  .faq { padding: 40px 0 70px; }
  .follow { padding: 60px 0 80px; gap: 36px; }
  .footer { padding: 36px 0; gap: 32px; }
  .page-hero { gap: 48px; padding-bottom: 50px; }
  .mission { padding: 40px 0 60px; gap: 40px; }
  .path { padding: 60px 0; gap: 40px; }
  .team-page { padding: 50px 0 40px; gap: 36px; }
  .schedule { padding: 40px 0 60px; gap: 32px; }
  .sched { padding: 28px 20px; }
  .schedule__list { gap: 8px; }
  .experience { padding: 50px 24px; gap: 36px; }
  .class-details { padding: 70px 0; gap: 32px; }
  .book { gap: 40px; }
  .book__row { gap: 24px; }
  .checkout { gap: 32px; }
  .checkout__row { gap: 24px; }
  .checkout__main { gap: 20px; }
  .contact { gap: 40px; }
  .contact__row { gap: 36px; }
  .contact__side { gap: 40px; }
  .dash { gap: 24px; }
  .dash__layout { gap: 20px; }
  .dash__view { gap: 16px; }
  .tiles { gap: 12px; }
  .news-wrap { padding: 40px 0; }
  .legal { gap: 24px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .offer__inner { padding: 30px 0 40px; gap: 32px; }
  .offer-grid, .offer-left, .offer-right, .offer-row2 { gap: 14px; }
  .offer-card { min-height: 300px; }
  .offer-row1__img { height: 240px; }
  .plans__inner { padding: 40px 0; gap: 28px; }
  .plans-grid, .product-grid, .blog-grid, .mission__cards, .steps { gap: 14px; }
  .plans__inner .sec-head { margin-bottom: 0; }
  .reviews { padding: 50px 0; gap: 32px; }
  .reviews__rows { gap: 14px; }
  .cta-wrap { padding: 50px 0; }
  .cta-green { gap: 22px; }
  .cta-green__copy { gap: 20px; }
  .cta-green__copy p { margin-top: 10px; }
  .events-sec__inner { padding: 50px 0; gap: 8px; }
  .event { padding: 24px 0; }
  .event__content { gap: 24px; padding-top: 24px; }
  .event__left, .event__right { gap: 24px; }
  .video-sec { padding: 50px 0 20px; gap: 24px; }
  .team-sec { padding: 20px 0 50px; }
  .team-sec__inner { padding-top: 10px; gap: 24px; }
  .team-grid { gap: 14px; }
  .team-rows, .team-row { gap: 14px; }
  .team-card__bar { height: auto; padding: 14px 16px; }
  .contact-cta-wrap { padding: 0 0 40px; }
  .cta-contact { gap: 24px; }
  .insights { padding: 40px 0 30px; gap: 24px; }
  .insights__grid { padding-bottom: 80px; }
  .faq { padding: 30px 0 50px; gap: 24px; }
  .faq__list { gap: 22px; }
  .faq__item { padding-bottom: 22px; }
  .faq__a p { padding-top: 16px; }
  .follow { padding: 40px 0 50px; gap: 24px; }
  .follow .ticker { --ticker-gap: 14px; }
  .footer { padding: 28px 0 24px; gap: 24px; }
  .footer__cols { gap: 22px; }
  .footer__col { gap: 14px; }
  .footer__links { gap: 10px; }
  .footer__copy { margin-top: 28px !important; }
  .page-hero { padding: 110px 0 36px; gap: 32px; }
  .page-hero__text { gap: 18px; }
  .img-row { gap: 14px; }
  .stats--page { padding: 10px 0; }
  .mission { padding: 24px 0 40px; gap: 24px; }
  .path { padding: 40px 0; gap: 28px; }
  .path__copy { gap: 28px; }
  .path__stats { gap: 22px; }
  .team-page { padding: 36px 0 24px; gap: 24px; }
  .schedule { padding: 24px 0 40px; gap: 24px; }
  .sched { padding: 20px 14px; }
  .sched__body { gap: 16px; }
  .experience { padding: 36px 18px; gap: 26px; }
  .experience__items { gap: 18px; }
  .class-hero { padding: 110px 0 40px; gap: 32px; }
  .class-hero__copy { gap: 22px; }
  .class-details { padding: 50px 0; gap: 22px; }
  .class-details__right { gap: 24px; }
  .book { padding: 110px 0 50px; gap: 26px; }
  .book__row { gap: 16px; }
  .checkout { padding: 110px 0 50px; gap: 22px; }
  .checkout__row { gap: 16px; }
  .checkout__main { gap: 14px; }
  .auth { padding: 110px 0 50px; }
  .auth form { gap: 14px; }
  .contact { padding: 110px 0 50px; gap: 28px; }
  .contact__row { gap: 28px; }
  .contact__form { gap: 22px; }
  .contact__form .fields { gap: 16px; }
  .contact__side { gap: 26px; }
  .contact__links { gap: 12px; }
  .contact__cards { gap: 10px; }
  .dash { padding: 100px 0 50px; gap: 18px; }
  .dash__nav { gap: 2px; padding: 10px; }
  .dash__view { gap: 12px; }
  .tiles { gap: 10px; }
  .tile { padding: 16px; }
  .legal { padding: 110px 0 50px; gap: 18px; }
  .news-wrap { padding: 28px 0; }
  .news-banner { gap: 20px; }
  .news-banner__form { gap: 12px; }
  .options { gap: 14px; }
  .option { gap: 14px; }
  .filter { gap: 8px; }
  .filter button { height: 38px; padding: 0 14px; font-size: 14px; }
  .hero__inner { padding: 110px 0 50px; gap: 32px; }
  .hero__copy { gap: 26px; }
  .hero__copy p { margin-top: 6px; }
  .stats { padding: 90px 0 0; }
}
@media (max-width: 640px) { .reviews h3 { white-space: normal; } }

/* ---------- form controls: never wider than their column (iOS date inputs especially) ---------- */
.form-grid > *, .fields > *, .field, .panel, .panel > *, .card > *, .contact__form > * { min-width: 0; }
.field input, .field select, .field textarea, .news-form input, .news-banner__input input, .field--line input, .field--line textarea {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; display: block;
  -webkit-appearance: none; appearance: none;
}
.field select { -webkit-appearance: none; appearance: none; }
input[type="date"], input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-height: 46px;
  text-align: left; -webkit-min-logical-width: calc(100% - 42px);
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; }

/* ---------- footer on phones: full-width rules and a tidy copyright ---------- */
@media (max-width: 640px) {
  .footer__col h4 { width: 100%; }
  .footer__copy { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 20px; }
}
.footer__copy { gap: 10px; }
.footer__copy .footer__legal { white-space: nowrap; }

/* belt and braces: clip any native control that still insists on an intrinsic width */
.field { overflow: visible; }
.field:has(input[type="date"]) { overflow: hidden; }
.field input[type="date"] { max-width: 100%; width: 100%; min-width: 0; padding-right: 12px; }
.field input[type="date"]::-webkit-date-and-time-value { display: block; min-height: 1.2em; text-align: left; }


/* ---------- designed dropdowns (replace native selects) ---------- */
.dd { position: relative; width: 100%; }
.dd > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; top: 0; }
.dd__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  padding: 12px 16px 12px 20px; font-size: 16px; line-height: 19.2px; color: var(--ink); text-align: left;
  transition: border-color .25s;
}
.dd__btn svg { width: 16px; height: 16px; flex: none; color: var(--ink); transition: transform .3s var(--ease-framer); }
.dd:hover .dd__btn, .dd.is-open .dd__btn { border-color: var(--green); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 40px rgba(25,25,25,.10); max-height: 280px; overflow: auto;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease-framer), transform .22s var(--ease-framer), visibility .22s;
}
.dd.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
.dd--up .dd__menu { top: auto; bottom: calc(100% + 6px); transform: translateY(-6px); }
.dd__item { padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 22px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.dd__item:hover, .dd__item.is-active { background: var(--green-tint); color: var(--grey-900); }
.dd__item.is-selected { background: var(--green); color: var(--on-green); }
.dd__item.is-selected:hover { background: var(--green); }
.dd__item.is-disabled { opacity: .35; pointer-events: none; }
.dd.is-disabled .dd__btn { opacity: .55; pointer-events: none; background: var(--mist); }


/* ---------- card carousel (booking services) ---------- */
.carousel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.carousel__track { display: flex !important; grid-template-columns: none !important; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .radio-card { flex: 0 0 300px; scroll-snap-align: start; min-height: 96px; }
.carousel__nav { display: flex; gap: 10px; justify-content: flex-end; }
.carousel__nav .round { border-color: var(--line); color: var(--ink); }
.carousel__nav .round:hover { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.carousel__nav .round[disabled] { opacity: .35; pointer-events: none; }
.carousel__nav [data-carousel-prev] svg { transform: rotate(90deg); }
.carousel__nav [data-carousel-next] svg { transform: rotate(-90deg); }
@media (max-width: 640px) {
  .carousel__track .radio-card { flex-basis: 78%; }
}


/* ---------- designed date picker ---------- */
.dp { position: relative; width: 100%; }
.dp__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  padding: 12px 16px 12px 20px; font-size: 16px; line-height: 19.2px; color: var(--ink); text-align: left; transition: border-color .25s;
}
.dp__btn svg { width: 18px; height: 18px; flex: none; color: var(--green-900); }
.dp:hover .dp__btn, .dp.is-open .dp__btn { border-color: var(--green-900); }
.dp__menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 45; width: 320px; max-width: calc(100vw - 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 20px 40px rgba(25,25,25,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease-framer), transform .22s var(--ease-framer), visibility .22s;
}
.dp.is-open .dp__menu { opacity: 1; visibility: visible; transform: none; }
.dp--up .dp__menu { top: auto; bottom: calc(100% + 6px); }
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp__title { font-weight: 500; font-size: 16px; }
.dp__nav { display: flex; gap: 6px; }
.dp__nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s; }
.dp__nav button:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }
.dp__nav button svg { width: 14px; height: 14px; }
.dp__nav [data-dp-prev] svg { transform: rotate(90deg); }
.dp__nav [data-dp-next] svg { transform: rotate(-90deg); }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp__dow { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.dp__day { height: 36px; border-radius: 50%; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; width: 100%; transition: background-color .15s, color .15s; }
.dp__day:hover { background: var(--green-tint); color: var(--grey-900); }
.dp__day.is-muted { color: var(--grey); }
.dp__day.is-today { box-shadow: inset 0 0 0 2px var(--green-dark); }
.dp__day.is-selected { background: var(--green); color: var(--on-green); }
.dp__day.is-disabled { color: var(--line); pointer-events: none; text-decoration: line-through; }
.dp__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.dp__foot button { color: var(--green-900); font-weight: 500; font-size: 13px; }

/* ---------- show / hide password ---------- */
.pw { position: relative; display: flex; width: 100%; }
.pw input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--grey-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pw__toggle:hover, .pw__toggle:focus-visible { color: var(--grey-900); background: var(--grey-100); outline: none; }
.pw__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw__toggle .pw__off { display: none; }
.pw.is-shown .pw__on { display: none; }
.pw.is-shown .pw__off { display: block; }

/* ---------- checkout: PayPal ---------- */
.pay-box { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--white); }
.pay-box__head { display: flex; flex-direction: column; gap: 4px; }
.pay-box__head strong { font-size: 18px; }
.pay-box__head span { color: var(--muted); font-size: 15px; line-height: 22px; }
.pay-box__buttons { max-width: 420px; min-height: 0; }
.pay-box__buttons:empty { display: none; }
.pay-box__status { font-size: 14px; margin: 0; }
.pay-box__status:empty { display: none; }

/* ---------- currency chip + picker ---------- */
.currency { position: relative; }
.currency__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 14px; font-weight: 500; line-height: 1; color: var(--ink); cursor: pointer; transition: border-color .25s, background .25s; }
.currency__btn:hover { border-color: var(--grey-300); }
.currency__btn svg { width: 14px; height: 14px; transition: transform .25s; }
.currency__flag { font-size: 18px; line-height: 1; }
.currency.is-open .currency__btn svg { transform: rotate(180deg); }
.header--dark .currency__btn { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.header--dark .currency__btn:hover { border-color: rgba(255,255,255,.7); }
.currency__menu { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; max-height: 380px; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(25,25,25,.14); padding: 8px; display: none; z-index: 80; text-align: left; }
.currency.is-open .currency__menu { display: block; }
.currency__head { padding: 8px 12px 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.currency__foot { padding: 10px 12px 6px; font-size: 12px; line-height: 17px; color: var(--muted); }
.currency__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.currency__item:hover { background: var(--grey-100); }
.currency__item.is-active { background: var(--green-tint); }
.currency__item small { margin-left: auto; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .currency__btn { height: 36px; padding: 0 10px 0 8px; font-size: 13px; }
  .currency__btn svg { display: none; }
  .currency__menu { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; max-height: 70vh; }
}
