/* Sam's Student Membership — public pages.
   Brand tokens are Sam's own: the orange sampled from the logo, charcoal and cream.
   Mobile-first: almost every student will meet this page on a phone. */
:root {
  --orange: #f15c22;
  --orange-dark: #cf4715;
  --charcoal: #241811;
  --charcoal-soft: #3a2a1e;
  --cream: #fff8e7;
  --white: #fff;
  --muted: #6b5b4f;
  --line: rgba(36, 24, 17, .12);
  --shadow: 0 10px 30px rgba(36, 18, 6, .18);
  --shadow-soft: 0 4px 14px rgba(36, 18, 6, .10);
  --radius: 20px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--orange); color: var(--charcoal);
  font-family: "Noto Sans", "Noto Sans Georgian", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(en) .mb-cta { font-family: "Baloo 2", inherit; }

/* ---------- chrome ---------- */
.mb-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.mb-top img { height: 40px; width: auto; }
.mb-top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.mb-top nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--charcoal-soft); }
.mb-top nav a:hover, .mb-top nav a.on { background: var(--orange); color: #fff; }
.mb-lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.mb-lang a { padding: 6px 11px; font-weight: 700; font-size: .82rem; text-decoration: none; color: var(--charcoal-soft); }
.mb-lang a.on { background: var(--charcoal); color: #fff; }

.mb-foot { background: var(--charcoal); color: rgba(255,255,255,.82); padding: 32px 20px; margin-top: 48px; font-size: .9rem; text-align: center; }
.mb-foot a { color: inherit; }
.mb-fineprint { opacity: .8; font-size: .84rem; margin-top: .7rem; }

/* ---------- hero ---------- */
.mb-hero { color: #fff; text-align: center; padding: 44px 20px 30px; }
.mb-kicker {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--charcoal); background: #fff; padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
}
.mb-hero h1 { margin: 0 0 .3em; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; }
.mb-sub { font-size: 1.1rem; opacity: .95; margin: 0 auto; max-width: 34ch; }
.mb-percents { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.mb-percents span {
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 18px; font-weight: 800; font-size: 1.05rem;
}

/* ---------- layout ---------- */
.mb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 20px; }
.mb-h2 { color: #fff; text-align: center; font-size: clamp(1.3rem, 4vw, 1.9rem); margin: 34px 0 16px; }
.mb-center { text-align: center; }
.mb-note, .mb-closing {
  background: var(--cream); border-radius: var(--radius); padding: 22px; text-align: center;
  font-weight: 700; box-shadow: var(--shadow-soft);
}
.mb-closing { margin-top: 34px; font-size: 1.15rem; }

/* ---------- duration selector ---------- */
.mb-durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .mb-durations { grid-template-columns: repeat(6, 1fr); } }
.mb-dur {
  background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 12px 6px;
  font: inherit; cursor: pointer; text-align: center; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 2px; color: var(--charcoal);
}
.mb-dur b { font-size: 1.5rem; line-height: 1; }
.mb-dur span { font-size: .74rem; color: var(--muted); text-transform: lowercase; }
.mb-dur.on { background: var(--charcoal); color: #fff; border-color: #fff; }
.mb-dur.on span { color: rgba(255,255,255,.75); }
.mb-dur:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- tier cards ---------- */
.mb-tiers { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .mb-tiers { grid-template-columns: repeat(3, 1fr); } }
.mb-tier {
  background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: center;
}
.mb-badgeslot { min-height: 26px; }
.mb-badge {
  display: inline-block; background: var(--charcoal); color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mb-pct { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--orange-dark); }
.mb-pct small { font-size: .38em; vertical-align: super; margin-inline-start: 2px; }
.mb-off { font-weight: 800; letter-spacing: .04em; margin: 0 0 .4em; color: var(--orange-dark); }
.mb-tier h3 { margin: 0 0 .2em; font-size: 1.25rem; }
.mb-tag { color: var(--muted); margin: 0 0 1rem; font-size: .93rem; }
.mb-price { font-size: 2.1rem; font-weight: 800; margin-top: auto; }
.mb-price small { font-size: .42em; color: var(--muted); font-weight: 700; }
.mb-peryear { color: var(--muted); font-size: .88rem; margin: .1em 0 0; }
.mb-saving {
  background: var(--cream); border-radius: 999px; padding: 5px 12px; margin: .7em 0 0;
  font-size: .84rem; font-weight: 700; color: var(--orange-dark); display: inline-block; align-self: center;
}
.mb-until { color: var(--muted); font-size: .82rem; margin: .6em 0 0; }
.mb-benefits { list-style: none; padding: 0; margin: 1.1rem 0 0; text-align: start; font-size: .9rem; }
.mb-benefits li { padding: 6px 0 6px 24px; position: relative; border-top: 1px solid var(--line); }
.mb-benefits li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--orange); font-weight: 800; }
[dir="rtl"] .mb-benefits li { padding: 6px 24px 6px 0; }
.mb-cta {
  margin-top: 1.2rem; display: block; background: var(--charcoal); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 14px 22px; font-weight: 700; box-shadow: var(--shadow-soft);
}
.mb-cta:hover { background: #180f0a; }
.mb-cta.is-off { background: var(--muted); cursor: not-allowed; }

/* ---------- steps & rules ---------- */
.mb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 820px) { .mb-steps { grid-template-columns: repeat(4, 1fr); } }
.mb-steps li {
  counter-increment: s; background: var(--cream); border-radius: 14px; padding: 18px 18px 18px 52px;
  position: relative; box-shadow: var(--shadow-soft); font-weight: 600;
}
.mb-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
[dir="rtl"] .mb-steps li { padding: 18px 52px 18px 18px; }
.mb-rules { display: grid; gap: 12px; }
@media (min-width: 820px) { .mb-rules { grid-template-columns: repeat(2, 1fr); } }
.mb-rule { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-soft); }
.mb-rule b { color: var(--orange-dark); }
.mb-rule p { margin: .4em 0 0; font-size: .92rem; color: var(--charcoal-soft); }

/* ---------- forms: sign-in, wizard, account ---------- */
.mb-narrow { max-width: 560px; }
.mb-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: start; }
.mb-cardtitle { margin: 0 0 .6rem; font-size: 1.5rem; }
.mb-lead { margin: 0 0 1rem; color: var(--charcoal-soft); }
.mb-help { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); }
.mb-optional { font-weight: 400; color: var(--muted); font-size: .84em; }
.mb-ref { margin-top: 1rem; font-size: .92rem; color: var(--charcoal-soft); }
.mb-center { text-align: center; }

.mb-card label { display: block; margin-top: 1rem; font-weight: 700; font-size: .92rem; }
.mb-card input[type="text"], .mb-card input[type="tel"], .mb-card input[type="email"],
.mb-card input[type="date"], .mb-card input[type="file"], .mb-card select, .mb-card input:not([type]) {
  width: 100%; margin-top: .35rem; padding: 12px 14px; font: inherit; color: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
}
.mb-card input:focus, .mb-card select:focus { outline: 3px solid rgba(241, 92, 34, .35); border-color: var(--orange); }
.mb-code { letter-spacing: .55em; text-align: center; font-size: 1.5rem; font-weight: 800; }
.mb-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.mb-check input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; }
.mb-secondary { margin-top: 1.1rem; text-align: center; }
.mb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-dark); font-weight: 700; text-decoration: underline; cursor: pointer; }

.mb-flash { margin: 0 0 1rem; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.mb-flash ul { margin: 0; padding-inline-start: 1.1em; }
.mb-flash.ok { background: #e6f4ea; color: #17803d; }
.mb-flash.bad, .mb-flash.warn { background: #fdecea; color: #9a201a; }
.mb-flash.warn { background: #fdf1d6; color: #7a5410; }

/* ---------- wizard ---------- */
.mb-steps-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 1.2rem; }
.mb-steps-bar span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--cream); color: var(--muted); border: 2px solid var(--line);
}
.mb-steps-bar span.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.mb-steps-bar span.done { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.mb-plans { margin-top: 1.4rem; border: 2px solid var(--line); border-radius: 14px; padding: 14px; }
.mb-plans legend { font-weight: 800; padding: 0 6px; }
.mb-plangroup { margin-bottom: 14px; }
.mb-plangroup > b { color: var(--orange-dark); }
.mb-planrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.mb-plan { margin: 0 !important; font-weight: 400; cursor: pointer; }
.mb-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.mb-plan span {
  display: block; text-align: center; padding: 10px 6px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; line-height: 1.25;
}
.mb-plan span b { font-size: 1.2rem; }
.mb-plan span small { color: var(--muted); }
.mb-plan input:checked + span { border-color: var(--orange); background: var(--cream); box-shadow: var(--shadow-soft); }
.mb-plan input:focus-visible + span { outline: 3px solid rgba(241, 92, 34, .35); }

/* ---------- the card itself ---------- */
.mb-membercard {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  color: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center;
}
.mb-mc-head { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; }
.mb-mc-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.mb-mc-status { background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; }
.mb-mc-tier { margin-top: 14px; color: #ffcdb6; font-weight: 700; }
.mb-mc-pct { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--orange); }
.mb-mc-pct small { font-size: 1.05rem; font-weight: 700; }
.mb-mc-who { display: flex; gap: 12px; align-items: center; text-align: start; margin-top: 16px; }
.mb-mc-photo { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.mb-mc-name { font-weight: 800; font-size: 1.05rem; }
.mb-mc-meta { font-size: .8rem; color: rgba(255, 255, 255, .72); }
.mb-mc-qr { background: #fff; border-radius: 14px; padding: 12px; margin-top: 16px; }
.mb-mc-qr svg { width: 100%; height: auto; display: block; }
.mb-mc-refresh { margin-top: 10px; font-size: .78rem; color: rgba(255, 255, 255, .72); display: flex; align-items: center; justify-content: center; gap: 7px; }
/* The ring drains as the code ages, so a cashier can see at a glance that it is live. */
.mb-mc-ring {
  width: 14px; height: 14px; border-radius: 50%; --p: 1;
  background: conic-gradient(var(--orange) calc(var(--p) * 360deg), rgba(255, 255, 255, .22) 0);
}
.mb-mc-foot { margin-top: 14px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
