/* ============================================================
   Renotad — global stylesheet
   A call-scheduling app. Engineered, precise aesthetic with
   monospace accents. Two full themes: dark (graphite) and
   light (warm paper), switched via [data-theme] on <html>.
   ============================================================ */

/* --- Theme tokens ------------------------------------------ */
:root,
[data-theme="dark"] {
  --bg:          #0e0f12;
  --bg-soft:     #15171b;
  --panel:       #181a1f;
  --panel-2:     #1f2228;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text:        #f3f3f0;
  --text-dim:    #9a9b97;
  --text-faint:  #66676a;
  --accent:      #e8e6df;
  --accent-ink:  #0e0f12;
  --brand:       #6f7bff;
  --brand-soft:  rgba(111, 123, 255, 0.16);
  --ok:          #5fcf80;
  --warn:        #e0a64a;
  --danger:      #e8685f;
  --shadow:      0 30px 80px rgba(0, 0, 0, 0.55);
  --logo-bg:     #f3f3f0;
  --logo-fg:     #0c0c0c;
}

[data-theme="light"] {
  --bg:          #f4f2ec;
  --bg-soft:     #ebe8df;
  --panel:       #ffffff;
  --panel-2:     #f7f5ef;
  --line:        rgba(20, 22, 28, 0.10);
  --line-strong: rgba(20, 22, 28, 0.20);
  --text:        #1a1c22;
  --text-dim:    #5b5e66;
  --text-faint:  #94968f;
  --accent:      #1a1c22;
  --accent-ink:  #f4f2ec;
  --brand:       #4753d8;
  --brand-soft:  rgba(71, 83, 216, 0.12);
  --ok:          #2e9b51;
  --warn:        #b9791e;
  --danger:      #cf473d;
  --shadow:      0 24px 60px rgba(40, 38, 30, 0.16);
  --logo-bg:     #0c0c0c;
  --logo-fg:     #ffffff;
}

/* --- Fonts -------------------------------------------------- */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1200px;
}

/* --- Reset -------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a   { color: inherit; text-decoration: none; }
img,
svg { display: block; max-width: 100%; }
ul  { list-style: none; }
button, input, select, textarea { font-family: inherit; }

::selection { background: var(--brand); color: #fff; }

/* --- Layout helpers ---------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}
.section { padding: 100px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 56ch;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease,
              border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand); filter: brightness(1.1); }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-solid:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm  { padding: 9px 15px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--line-strong);
}
.btn-danger:hover { border-color: var(--danger); }

/* --- Theme toggle ------------------------------------------ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 4px;
  cursor: pointer;
}
.theme-toggle span {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-faint);
  transition: background 0.2s ease, color 0.2s ease;
}
[data-theme="dark"] .theme-toggle .t-dark,
[data-theme="light"] .theme-toggle .t-light {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 26px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; }

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============================================================
   HERO  (landing)
   ============================================================ */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 70% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 70% 40%, #000, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}
/* Soft brand-coloured glow behind the hero visual. */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--brand-soft), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

/* --- Hero card stack --------------------------------------- */
.hero-visual { position: relative; }
.hero-card-stack {
  position: relative;
  padding: 28px 24px 36px;
}
.hero-card-main {
  position: relative;
  z-index: 2;
}
.hero-card-mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-card-mini-1 {
  top: 4px;
  right: -6px;
  animation: floaty 4.5s ease-in-out infinite;
}
.hero-card-mini-2 {
  bottom: 8px;
  left: -10px;
  animation: floaty 5.5s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* Illustrated avatar (SVG person icon). */
.avatar-illustrated {
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  overflow: hidden;
}
.avatar-illustrated svg { width: 70%; height: 70%; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-top: 22px;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* --- Floating profile card (hero visual) ------------------- */
.profile-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.avatar-lg { width: 76px; height: 76px; }
.avatar-sm { width: 38px; height: 38px; }
.profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.profile-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}
.profile-row .muted { color: var(--text-faint); }
.profile-tz { color: var(--brand); }

/* --- Steps -------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
}
.step-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 12px 0 8px;
}
.step-card p { color: var(--text-dim); font-size: 14px; }

/* --- App badges (Zoom / WeChat / KakaoTalk) ---------------- */
.app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 16px;
}
.app-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.app-dot.zoom   { background: #2d8cff; }
.app-dot.wechat { background: #2dc100; }
.app-dot.kakao  { background: #ffe812; }

/* --- Call apps section ------------------------------------- */
.callapps-head { max-width: 56ch; }
.callapps-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.callapps-sub { color: var(--text-dim); font-size: 15px; }
.callapps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.callapp-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.callapp-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.callapp-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}
.callapp-icon.zoom   { background: #2d8cff; }
.callapp-icon.wechat { background: #2dc100; }
.callapp-icon.kakao  { background: #ffe812; color: #3a1d1d; }
.callapp-ic {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.callapp-ic svg { width: 24px; height: 24px; }
.callapp-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}
.callapp-card p { color: var(--text-dim); font-size: 14px; }

/* --- How it works: flow steps ------------------------------ */
.flow-step {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.flow-step:last-child { border-bottom: none; }
.flow-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  color: var(--brand);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  width: 60px;
}
.flow-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}
.flow-body p { color: var(--text-dim); font-size: 15px; max-width: 70ch; }
.mono-inline {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

/* --- Features grid ----------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.feature-ic {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 13px;
  margin-bottom: 15px;
}
.feature-ic svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 7px;
}
.feature-card p { color: var(--text-dim); font-size: 14px; }

/* --- Pricing ----------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
}
.price-amount span { font-size: 15px; color: var(--text-faint); }
.price-list { margin: 20px 0; }
.price-list li {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.price-list li::before {
  content: "+";
  color: var(--brand);
  font-family: var(--font-mono);
}

/* --- FAQ ---------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 22px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--brand);
  font-size: 16px;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 2px 22px;
  color: var(--text-dim);
  max-width: 70ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--brand); }

/* ============================================================
   AUTH  (login)
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 22px 60px;
}
.auth-box {
  width: 100%;
  max-width: 410px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-box h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.auth-box .auth-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 6px 0 26px;
}

/* --- Form fields ------------------------------------------- */
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.input,
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus { border-color: var(--brand); }
.field input.invalid { border-color: var(--danger); }

.form-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 16px;
  margin-top: 4px;
}
.form-msg.error { color: var(--danger); }
.form-msg.ok    { color: var(--ok); }

/* ============================================================
   APP SHELL  (dashboard / admin)
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.app-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  padding: 6px 8px 22px;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.side-link:hover { background: var(--panel-2); color: var(--text); }
.side-link.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.side-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}
.side-user-meta { min-width: 0; }
.side-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user-mail {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-main {
  padding: 32px 38px;
  overflow-y: auto;
}
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.app-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
}
.app-head p { color: var(--text-dim); font-size: 14px; margin-top: 2px; }

.app-view { display: none; }
.app-view.active { display: block; }

/* --- Stat cards -------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.stat-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

/* --- Panels & cards ---------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}
.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* --- Data table -------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}
.data-table tr:last-child td { border-bottom: none; }
.cell-mono { font-family: var(--font-mono); font-size: 12.5px; }
.cell-actions { text-align: right; }
.empty-row {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 20px 12px;
}

/* --- Pills / status ---------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 100px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
}
.pill-ok     { color: var(--ok);    border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill-warn   { color: var(--warn);  border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill-soon   { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.pill-muted  { color: var(--text-faint); }

/* --- Link / booking cards ---------------------------------- */
.link-card,
.booking-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}
.link-card-top,
.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.link-card h4,
.booking-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.link-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  margin-top: 4px;
  word-break: break-all;
}
.link-meta,
.booking-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.booking-card-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.booking-card-actions .input { flex: 1; min-width: 180px; }

/* Guest's confirmation-page link, shown to the host. */
.booking-guestlink {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.booking-guestlink-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.booking-guestlink-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.booking-guestlink-row .input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
}

/* --- Availability editor ----------------------------------- */
.avail-editor {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 14px;
  margin-bottom: 6px;
}
.avail-day {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.avail-day:last-child { border-bottom: none; }
.avail-day-name {
  width: 54px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 7px;
}
.avail-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}
.slot-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 6px 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.slot-chip:hover { border-color: var(--brand); }
.slot-chip.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.slot-chip.removable::after { content: " ×"; opacity: 0.6; }

/* ============================================================
   PUBLIC BOOKING PAGE
   ============================================================ */
.bk-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
}
.bk-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

/* --- Loading / error states -------------------------------- */
.bk-state {
  text-align: center;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bk-state h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.bk-state p { color: var(--text-dim); font-size: 14px; }
.bk-spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* --- Shell: host card + panel ------------------------------ */
.bk-shell {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

/* --- Host card --------------------------------------------- */
.bk-host {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
}
.bk-host .avatar-lg {
  width: 92px; height: 92px;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px rgba(0,0,0,0.22);
}
.bk-host-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 20px;
}
.bk-host-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-top: 5px;
  line-height: 1.15;
  word-break: break-word;
}
.bk-host-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.bk-host-facts li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.bk-host-facts li:last-child { border-bottom: 1px solid var(--line); }
.bk-host-facts svg {
  width: 16px; height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}
.bk-host-facts span { word-break: break-word; }
.bk-tz-pick { margin-top: 22px; }
.bk-tz-pick label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.bk-tz-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* --- Step panel -------------------------------------------- */
.bk-panel {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: var(--shadow);
}
.bk-steptag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.bk-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.bk-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 26px;
}
.bk-slots-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 28px;
  margin-bottom: 4px;
}

/* --- Day list ----------------------------------------------- */
.bk-daylist {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bk-day {
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bk-day:hover:not(.open) { border-color: var(--line-strong); }
.bk-day.open {
  background: var(--brand);
  border-color: var(--brand);
}
.bk-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
}
.bk-day-when {
  display: flex;
  align-items: center;
  gap: 15px;
}
.bk-day-num {
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 500;
  min-width: 34px;
  color: var(--text);
}
.bk-day.open .bk-day-num { color: #fff; }
.bk-day-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bk-day-wk {
  font-size: 14px;
  color: var(--text);
}
.bk-day.open .bk-day-wk { color: #fff; }
.bk-day-mo {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.bk-day.open .bk-day-mo { color: rgba(255, 255, 255, 0.72); }
.bk-day-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.bk-day.open .bk-day-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bk-day-slots:empty { display: none; }
.bk-day.open .bk-day-slots {
  padding: 2px 16px 16px;
}
.bk-day.open .bk-day-slots .loading {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 4px;
  font-size: 13px;
}
.bk-day.open .bk-slots-label {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  margin-bottom: 10px;
}
.bk-horizon {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  padding: 12px 0 2px;
}
.bk-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 40px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* --- Time slot grid ---------------------------------------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.time-slot {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
              color 0.15s ease, transform 0.12s ease;
}
.time-slot:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.time-slot.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* --- Done state: celebratory confirmation ------------------ */
.book-done {
  text-align: center;
  padding: 14px 6px 6px;
  position: relative;
}
.book-done-mark {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--brand-soft),
              0 14px 36px color-mix(in srgb, var(--brand) 40%, transparent);
  animation: bk-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bk-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.book-done h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.025em;
}
.book-done p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 8px;
}

/* Confirmation summary — clean card with paired rows. */
.book-summary {
  margin-top: 26px;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.book-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.book-summary-row:last-child { border-bottom: none; }
.book-summary-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}
.book-summary-row span:last-child {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text);
}

/* Confirmation-page link button in the done state. */
.bk-confirm-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 9px;
  text-align: center;
}

/* ============================================================
   CONFIRMATION PAGE  (/c/<id>)
   ============================================================ */
.cf-shell {
  width: 100%;
  max-width: 620px;
}
.cf-banner {
  text-align: center;
  margin-bottom: 22px;
}
.cf-check {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--brand-soft),
              0 14px 36px color-mix(in srgb, var(--brand) 40%, transparent);
  animation: bk-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cf-check-off {
  background: var(--text-faint);
  box-shadow: 0 0 0 8px var(--line);
}
.cf-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 29px;
  letter-spacing: -0.025em;
}
.cf-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 8px;
}
.cf-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* Two people, with a link icon between them. */
.cf-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cf-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cf-ava {
  width: 64px; height: 64px;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1px var(--line-strong);
  margin-bottom: 10px;
}
.cf-person-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.cf-person-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
.cf-people-link {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
}
.cf-people-link svg { width: 19px; height: 19px; }

/* Detail rows. */
.cf-rows { padding: 8px 0; }
.cf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cf-row:last-child { border-bottom: none; }
.cf-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}
.cf-v {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text);
  word-break: break-word;
}

/* Meeting link box. */
.cf-linkbox {
  margin-top: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.cf-linkbox-wait { border-style: dashed; }
.cf-linkbox-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.cf-join {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand);
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
.cf-join:hover { border-bottom-color: var(--brand); }
.cf-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.cf-wait-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: cf-pulse 1.4s ease-in-out infinite;
}
@keyframes cf-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.cf-foot {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 18px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  transform: translateY(14px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 16px;
}

/* --- Toast -------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 600;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- Reveal animation -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* --- Loading state ----------------------------------------- */
.loading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding: 24px;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid,
  .callapps-grid,
  .feature-grid,
  .price-grid   { grid-template-columns: 1fr; }
  .hero-card-mini-1 { right: 4px; }
  .hero-card-mini-2 { left: 0; }
  .flow-step { gap: 16px; }
  .flow-num { font-size: 26px; width: 42px; }
  .stat-row     { grid-template-columns: repeat(2, 1fr); }
  .panel-split  { grid-template-columns: 1fr; }
  .bk-shell     { grid-template-columns: 1fr; }
  .bk-host      { position: static; }
  .bk-panel     { padding: 28px 22px; }
  .bk-topbar    { padding: 18px 20px; }
  .bk-main      { padding: 28px 16px 48px; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(76vw, 300px);
    flex-direction: column;
    gap: 0;
    padding: 90px 26px 26px;
    background: var(--bg-soft);
    border-left: 1px solid var(--line-strong);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }

  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    overflow-x: auto;
  }
  .side-brand { padding: 0 14px 0 4px; }
  .side-nav { flex-direction: row; }
  .side-link span.label { display: none; }
  .side-foot {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
  }
  .side-user { display: none; }
  .app-main { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .container   { padding: 0 18px; }
  .section     { padding: 70px 0; }
  .stat-row    { grid-template-columns: 1fr; }
  .auth-box,
  .modal       { padding: 24px 20px; }
}
