/* Public website theme. Brand colours come from the Admin Portal (Settings > Theme) and are
   applied at runtime by js/app.js through the CSS variables below. */
:root {
  --primary: #F97316;
  --primary-2: #FB923C;
  --secondary: #0EA5A4;
  --dark: #1F2125;
  --ink: #111111;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Urbanist", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 15px 26px; border-radius: 18px; border: 2px solid transparent; font: inherit; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-danger { background: #fff; color: #DC2626; border-color: #FECACA; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 10px; font-size: .96rem; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button { border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--secondary) 30%, transparent), transparent 60%), var(--dark); color: #CBD5E1; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #FFB37A, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: .86rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E2E8F0; font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }

/* Phone mock-up (pure CSS, filled with live data) */
.phone { width: min(320px, 78vw); margin: 0 auto; background: #0B1120; border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset; transform: rotate(2.5deg); }
.phone-screen { background: var(--bg-soft); border-radius: 34px; overflow: hidden; height: 600px; display: flex; flex-direction: column; color: var(--text); }
.phone-top { padding: 22px 18px 12px; background: #fff; }
.phone-top small { color: var(--muted); font-size: .72rem; }
.phone-top b { display: block; color: var(--ink); font-size: 1.05rem; }
.phone-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; flex: 1; }
.phone-card { display: flex; gap: 10px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 4px 12px rgba(15,23,42,.06); align-items: center; }
.phone-card img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.phone-card b { display: block; color: var(--ink); font-size: .84rem; line-height: 1.25; }
.phone-card small { color: var(--muted); font-size: .72rem; }
.phone-live { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 18px; padding: 14px; }
.phone-live small { opacity: .9; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.phone-live b { display: block; font-size: .95rem; margin: 2px 0 8px; }
.phone-live span { display: inline-block; background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: .74rem; font-weight: 700; }
.phone-tabs { display: flex; justify-content: space-around; background: #fff; padding: 12px 0 16px; border-top: 1px solid var(--line); }
.phone-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.phone-tabs i.on { background: var(--primary); }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--line); }
.feature { padding: 28px; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.tag.brand { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); border-color: transparent; }
.tag.teal { background: color-mix(in srgb, var(--secondary) 12%, #fff); color: var(--secondary); border-color: transparent; }
.goal { position: relative; border-radius: var(--radius); padding: 30px; color: #fff; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; text-decoration: none !important; transition: transform .2s; }
.goal:hover { transform: translateY(-4px); }
.goal h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.goal p { margin: 0; opacity: .92; }
.goal.g1 { background: linear-gradient(135deg, #FF8A1F, var(--primary), var(--primary-2)); }
.goal.g2 { background: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899); }
.goal.g3 { background: linear-gradient(135deg, #0EA5A4, #0D9488, #1E40AF); }
.trainer { text-align: center; padding: 26px 20px; }
.trainer img { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.trainer p { color: var(--muted); font-size: .93rem; margin: 0; }
.session { display: flex; gap: 16px; align-items: center; padding: 16px; }
.session .date { flex: 0 0 64px; text-align: center; border-radius: 14px; padding: 8px 4px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); font-weight: 800; line-height: 1.1; }
.session .date small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.session .date b { font-size: 1.5rem; }
.session h3 { font-size: 1.02rem; margin: 0 0 2px; }
.session p { margin: 0; color: var(--muted); font-size: .88rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* Pricing */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 36px; }
.toggle button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: var(--ink); color: #fff; }
.toggle small { color: #16A34A; font-weight: 700; margin-left: 6px; }
.toggle .on small { color: #86EFAC; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); gap: 26px; justify-content: center; }
.price-card { position: relative; padding: 34px 30px; display: flex; flex-direction: column; overflow: visible; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.price-card li { padding: 7px 0 7px 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 18%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5A4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.current-plan { border-color: var(--secondary) !important; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .95; max-width: 520px; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0B1120; color: #fff !important; border-radius: 14px; padding: 10px 18px; text-decoration: none !important; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: .66rem; opacity: .8; line-height: 1; }
.store b { display: block; font-size: 1rem; line-height: 1.2; }

/* Page hero (inner pages) */
.page-hero { background: var(--dark); color: #CBD5E1; padding: clamp(48px, 7vw, 84px) 0; text-align: center; background-image: radial-gradient(800px 300px at 50% -20%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* Forms */
.form-card { max-width: 460px; margin: 0 auto; padding: 34px 30px; box-shadow: var(--shadow); }
.form-card.wide { max-width: 100%; width: 100%; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: .93rem; margin-bottom: 16px; }
.alert.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert.ok { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert.info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.form-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .93rem; }
.auth { background: var(--bg-soft); min-height: calc(100vh - 72px); padding: clamp(32px, 6vw, 72px) 0; }
.code-input { text-align: center; letter-spacing: .5em; font-size: 1.5rem; font-weight: 700; }

/* Account */
.account-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); text-align: right; }
.status { display: inline-block; font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.status.Active, .status.Paid { background: #DCFCE7; color: #15803D; }
.status.Cancelled, .status.Refunded { background: #FEF3C7; color: #B45309; }
.status.Expired, .status.Failed, .status.none { background: #F1F5F9; color: #475569; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 22px; max-width: 440px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); }

/* Footer */
.site-footer { background: var(--dark); color: #94A3B8; padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 36px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; color: #CBD5E1; padding: 4px 0; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); min-height: 220px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Responsive */
@media (max-width: 1020px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .phone { transform: none; }
  .account-grid { grid-template-columns: 1fr; }
  .cta-band { text-align: center; justify-content: center; }
  .store-btns { justify-content: center; }
}
@media (min-width: 901px) { .nav .mobile-actions { display: none; } }
@media (max-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .logo img { height: 32px; }
  .form-card { padding: 26px 20px; }
  .phone-screen { height: 520px; }
}
