/* La Vie Studio student portal. Tokens and type match the live redesign (/ui/studio.css). */
@font-face{font-family:'Funnel Display';src:url('fonts/funnel-display.woff2') format('woff2');font-weight:300 600;font-style:normal;font-display:swap}
@font-face{font-family:'Familjen Grotesk';src:url('fonts/familjen.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}

:root {
  --bg: #100f0d; --bg-2: #171613; --card: #1d1b18; --card-2: #25231f;
  --text: #efe9e0; --muted: #a49e93; --faint: #6f6a62;
  --line: rgba(239,233,224,.11); --line-2: rgba(239,233,224,.2);
  --peach: #f0b49c; --peach-2: #f6c9b6; --lilac: #a99bf0; --on-peach: #1a1310;
  --ok: #9fd3a8; --warn: #f0c27a; --err: #f19a8e;
  --display: "Funnel Display", "Familjen Grotesk", system-ui, sans-serif;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 56px); --r: 22px; --r-sm: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--peach); color: var(--on-peach); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .14; }
.glow .g1 { width: 46vw; height: 46vw; background: var(--peach); left: -14vw; top: 40vh; }
.glow .g2 { width: 40vw; height: 40vw; background: var(--lilac); right: -16vw; top: -8vh; opacity: .1; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); flex: none; animation: rec 2.8s ease-in-out infinite; }
@keyframes rec { 0%,100% { box-shadow: 0 0 0 0 rgba(240,180,156,.45); } 50% { box-shadow: 0 0 0 7px rgba(240,180,156,0); opacity: .75; } }

.wrap { position: relative; z-index: 1; width: 100%; max-width: calc(1100px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* nav */
.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 16px; max-width: calc(1100px + var(--gut) * 2); margin: 0 auto; padding: 22px var(--gut); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font: 500 18px/1 var(--display); text-decoration: none; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav-links a, .nav-links button { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--muted); background: none; border: 0; cursor: pointer; }
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: rgba(239,233,224,.06); }
@media (max-width: 560px) { .nav-links .hide-sm { display: none; } }

.banner { position: relative; z-index: 5; text-align: center; font-size: 13px; padding: 8px 16px; background: rgba(169,155,240,.14); color: #d6cff8; border-bottom: 1px solid var(--line); }

/* type */
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.title { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.035em; margin-top: 18px; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; margin-top: 16px; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 14px; }
.section { margin-top: clamp(48px, 7vw, 84px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s; }
.btn-main { background: var(--text); color: var(--bg); }
.btn-main:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); background: rgba(239,233,224,.03); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-danger { border-color: rgba(241,154,142,.4); color: var(--err); background: transparent; }
.btn-danger:hover { border-color: var(--err); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { all: unset; cursor: pointer; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* cards + forms */
.card { background: rgba(29,27,24,.82); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(10px); }
.auth { max-width: 480px; margin: clamp(32px, 8vh, 90px) auto 80px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin: 18px 0 8px; }
input[type=email], input[type=text], input[type=tel], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--peach); }
.code-input { font: 500 30px/1 var(--display) !important; letter-spacing: .4em; text-align: center; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; }
.msg-err { background: rgba(241,154,142,.1); color: var(--err); border: 1px solid rgba(241,154,142,.25); }
.msg-ok { background: rgba(159,211,168,.08); color: var(--ok); border: 1px solid rgba(159,211,168,.25); }
.msg-info { background: rgba(239,233,224,.05); color: var(--text); border: 1px solid var(--line); }

/* balance */
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.bal { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.bal-num { font: 500 clamp(56px, 8vw, 84px)/.9 var(--display); letter-spacing: -.04em; }
.bal-label { font-size: 16px; }
.bal-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 10px; }
.bal .btn { margin-top: 18px; align-self: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(239,233,224,.07); color: var(--muted); white-space: nowrap; }
.pill-warn { background: rgba(240,194,122,.12); color: var(--warn); }

/* lessons */
.lessons { display: grid; gap: 10px; }
.lesson { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(29,27,24,.7); }
.lesson-date { text-align: center; min-width: 58px; }
.lesson-date b { display: block; font: 500 30px/1 var(--display); }
.lesson-date span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lesson-main strong { display: block; font-weight: 500; }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); }
@media (max-width: 620px) {
  .lesson { grid-template-columns: auto 1fr; }
  .lesson-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
details.past summary { cursor: pointer; color: var(--muted); font-weight: 500; }
details.past .lessons { margin-top: 14px; }

/* packages */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--text); color: var(--bg); }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pkg { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(29,27,24,.7); cursor: pointer; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.pkg:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pkg-name { font-weight: 500; }
.pkg-price { font: 500 34px/1 var(--display); letter-spacing: -.02em; }
.pkg-price s { font-size: 18px; color: var(--faint); margin-left: 6px; }
.pkg-note { font-size: 14px; color: var(--muted); }
.pkg .pill { align-self: flex-start; }

/* booking sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 40; overscroll-behavior: contain; background: rgba(8,7,6,.72); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 24px 12px 80px; }
.sheet { width: 100%; max-width: 980px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.sheet-close { border: 1px solid var(--line-2); background: none; border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-weight: 500; font-size: 18px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; }
.cal-nav button[disabled] { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--faint); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: none; font-size: 15px; cursor: pointer; }
.day:not([disabled]) { background: rgba(239,233,224,.05); border-color: var(--line); }
.day:not([disabled]):hover { border-color: var(--line-2); }
.day[disabled] { color: var(--faint); cursor: default; opacity: .45; }
.day[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.day .dot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--peach); }
.day[aria-pressed=true] .dot { background: var(--bg); }
.times-head { font-weight: 500; margin-bottom: 12px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(239,233,224,.04); cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; }
.time:hover:not([disabled]) { border-color: var(--text); }
.time[disabled] { cursor: not-allowed; border-style: dashed; border-color: var(--line); color: var(--faint); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(239,233,224,.035) 6px 12px); text-decoration: line-through; }
.time[aria-pressed=true] { background: var(--peach); color: var(--on-peach); border-color: var(--peach); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line-2); }
.legend .l-free { background: rgba(239,233,224,.06); } .legend .l-pick { background: var(--peach); border-color: var(--peach); }
.legend .l-busy { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(239,233,224,.1) 3px 6px); }
.picks { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.picks ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.picks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(239,233,224,.05); font-size: 15px; }
.picks li button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.sheet-foot { position: sticky; bottom: calc(-1 * clamp(18px, 3vw, 32px)); background: var(--bg-2); padding-bottom: clamp(18px, 3vw, 32px); margin-bottom: calc(-1 * clamp(18px, 3vw, 32px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.loading { color: var(--muted); padding: 30px 0; }

.dialog { max-width: 520px; }
.footer { position: relative; z-index: 1; margin-top: 96px; padding: 32px var(--gut) 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; text-align: center; }
.footer a { color: var(--muted); }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: rgba(239,233,224,.04); }
.tbl-wrap { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
iframe.email { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #0d0c0a; }
