/* Layout: one card with the week grid (one column per day); each time is a link to that Calendly slot.
   Days stack on narrow screens. House style: ebony, raised cards, gradient hairline. */
:root {
  --eb: #010A21;
  --card: #0A1233;
  --ln: rgba(255, 255, 255, .08);
  --ink: #ECEEF8;
  --dim: #C7CDE1;
  --mut: #8D96B4;
  --kick: #7e88b3;
  --bl: #3755F6;
  --gb: #5a72ff;
  --pk: #D3339A;
  --bad: #ff8a8a;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--eb); color: var(--ink); font-family: var(--font); font-weight: 300;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.in {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .in { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* corner mesh */
.mesh { position: fixed; inset: 0; pointer-events: none; z-index: 0; animation: fade 1.2s ease-out both; }
.mesh i { position: absolute; border-radius: 50%; }
.m1 { width: 720px; height: 720px; right: -300px; top: -320px; background: radial-gradient(circle, rgba(55, 85, 246, .22), transparent 66%); }
.m2 { width: 560px; height: 560px; left: -260px; bottom: -260px; background: radial-gradient(circle, rgba(211, 51, 154, .14), transparent 66%); }
header, main { position: relative; z-index: 1; }

.top .in { display: flex; align-items: center; gap: 14px; padding-block: 22px 18px; }
.logo { height: 26px; width: auto; display: block; }
.product { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--kick); border-left: 1px solid var(--ln); padding-left: 14px; }
.hair { height: 2px; background: linear-gradient(90deg, var(--bl), var(--pk)); transform-origin: left; animation: sweep 1s .2s cubic-bezier(.2, .7, .2, 1) both; }

.hero { padding-block: clamp(36px, 6vw, 64px) 28px; }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--kick); }
h1 { margin: 0; font-size: clamp(30px, 5vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.g { background: linear-gradient(90deg, var(--gb), var(--pk)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 16px 0 0; max-width: 62ch; color: var(--dim); font-size: 17px; }

/* work area: week grid + booking panel */
.work { animation-delay: .12s; }
.week { background: var(--card); border: 1px solid var(--ln); border-radius: 12px; padding: 20px; min-width: 0; }
.wbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.nav { display: flex; align-items: center; gap: 10px; }
.wlabel { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; min-width: 12ch; text-align: center; font-variant-numeric: tabular-nums; }
.wtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.icon { font: inherit; font-size: 22px; line-height: 1; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ln); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; }
.icon:hover:not([disabled]) { border-color: var(--gb); }
.icon[disabled] { opacity: .35; cursor: default; }
.ghost { font: inherit; font-size: 13px; font-weight: 500; color: var(--dim); background: transparent; border: 1px solid var(--ln); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.ghost { text-decoration: none; display: inline-block; }
.ghost:hover { color: var(--ink); border-color: var(--gb); }
#jump { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; }
.status { margin: 14px 0 0; font-size: 13px; color: var(--mut); min-height: 1.6em; }
.status.err { color: var(--bad); }
.guestline { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.guestline.err { color: var(--bad); }

.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 8px; animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.ch { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid var(--ln); }
.dn { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--kick); }
.dd { font-size: 16px; font-weight: 600; }
.today .ch { border-bottom: 2px solid var(--pk); }
.today .dn { color: var(--pk); }
.past { opacity: .45; }
.cs { display: flex; flex-direction: column; gap: 6px; }
.slot {
  display: block; text-decoration: none;
  font: inherit; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; text-align: center;
  background: rgba(90, 114, 255, .08); border: 1px solid rgba(90, 114, 255, .28); border-radius: 8px; padding: 8px 4px; transition: border-color .15s, background .15s, transform .15s;
}
.slot:hover { border-color: var(--pk); transform: translateY(-1px); }
.slot:active, .slot:focus-visible { background: linear-gradient(90deg, var(--bl), var(--pk)); border-color: transparent; color: #fff; }
.none { font-size: 12px; color: var(--mut); padding: 8px 0; }
.ld { height: 36px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
label { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kick); }
input:not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--ln); border-radius: 8px; padding: 9px 11px; margin: 0;
}
textarea { resize: vertical; min-height: 64px; }
input[disabled] { opacity: .5; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gb); outline-offset: 2px; }
.hint { margin: 0; font-size: 12px; color: var(--mut); }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--dim); }
.check input { width: 16px; height: 16px; accent-color: var(--bl); }
/* calendar settings */
.settings { margin-top: 18px; background: var(--card); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 20px; }
.settings summary { cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
.cfg { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 14px; margin-top: 14px; align-items: end; }
.cfg .ghost { justify-self: start; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 36px 40px; margin-top: 30px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--mut); }
.foot p { margin: 0; max-width: 70ch; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5;
  background: #141d4a; border: 1px solid rgba(90, 114, 255, .4); color: var(--ink); border-radius: 8px; padding: 10px 16px; font-size: 14px;
  max-width: calc(100vw - 32px);
}

.rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.setup.rise { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .col { flex-direction: row; align-items: flex-start; gap: 12px; }
  .ch { flex: 0 0 64px; border-bottom: 0; border-right: 1px solid var(--ln); padding: 0 8px 0 0; }
  .today .ch { border-bottom: 0; border-right: 2px solid var(--pk); }
  .cs { flex: 1; flex-direction: row; flex-wrap: wrap; }
  .slot { flex: 0 0 calc(33.33% - 4px); }
  .wlabel { min-width: 0; font-size: 16px; }
  .cfg { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
