/* FG Consulting booking widget — shared styles.
   Consumed by /book/index.html and /book/{30min,45min,60min,secret}.html. */

:root {
  --bg: #ffffff;
  --bg-2: #f7f5f1;
  --bg-3: #efeae0;
  --ink: #14110d;
  --ink-2: #2a2620;
  --ink-3: #4a453d;
  --muted: #6b665c;
  --faint: #a09a8e;
  --line: rgba(20,17,13,0.08);
  --line-2: rgba(20,17,13,0.14);
  --accent: #3a5a7a;
  --accent-2: #557894;
  --accent-3: #7898b0;
  --accent-soft: #e0e8f0;
  --success: #2ea968;
  --danger: #b04b3a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,17,13,0.06), 0 1px 3px rgba(20,17,13,0.04);
  --shadow-md: 0 8px 24px -6px rgba(20,17,13,0.12), 0 2px 6px rgba(20,17,13,0.06);
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-2); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 96px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.topbar a { text-decoration: none; color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-name small {
  font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px;
}
.back {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted);
  transition: color 140ms var(--ease);
}
.back:hover { color: var(--accent); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden;
}

.grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 560px;
}
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } }
/* [hidden] must beat explicit display. Without this, JS setting hidden=true on
   #picker leaves the grid visible next to the success screen. */
.grid[hidden] { display: none; }

.side {
  padding: 32px; background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (max-width: 780px) {
  .side { border-right: none; border-bottom: 1px solid var(--line); }
}

.hero-headshot {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.hero-name {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 2px;
}
.hero-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero-tagline {
  color: var(--ink-3); font-size: 14px; line-height: 1.55;
  margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
}

.side .kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-top: 24px; margin-bottom: 8px;
}
.side h1 {
  font-size: 22px; margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.2;
}
.side .desc { color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 0; }

.type-picker { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.type-tabs {
  display: flex; gap: 6px; margin: 8px 0 16px;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 4px;
}
.type-pill {
  flex: 1; background: transparent; border: 0;
  padding: 8px 10px; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-3); cursor: pointer;
  transition: all 140ms var(--ease);
}
.type-pill:hover { color: var(--accent); }
.type-pill.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(58,90,122,0.25);
}
.type-pill.active:hover { color: #fff; }

.meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted);
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: inline-block; }

.main { padding: 32px; }
.main h2 {
  font-size: 13px; margin: 0 0 12px; letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.main h2 + * { margin-top: 0; }

.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted);
}
.week-nav .range { flex: 1; text-align: center; }
.week-nav button {
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 4px 10px;
  font: inherit; cursor: pointer;
  color: var(--ink-3); transition: all 140ms var(--ease);
}
.week-nav button:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent);
}
.week-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px; margin-bottom: 24px;
}
.day-btn {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 10px 4px;
  cursor: pointer; text-align: center; transition: all 160ms var(--ease);
  font-family: inherit;
}
.day-btn:hover:not(.disabled) { border-color: var(--accent-2); }
.day-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.day-btn .dow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.day-btn.active .dow { color: rgba(255,255,255,0.75); }
.day-btn .num { font-size: 18px; font-weight: 600; }
.day-btn.disabled {
  background: transparent; color: var(--faint);
  cursor: not-allowed; border-color: var(--line);
  border-style: dashed;
}
.day-btn.disabled .dow { color: var(--faint); }
.day-btn.disabled:hover { border-color: var(--line); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.slot {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 10px 12px;
  cursor: pointer; text-align: center; font: inherit; color: var(--ink);
  transition: all 140ms var(--ease);
}
.slot:hover { border-color: var(--accent-2); color: var(--accent); }
.slot.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.field label {
  display: block; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field label .opt { text-transform: none; color: var(--faint); letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--bg); color: var(--ink);
  transition: border-color 140ms var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 84px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }

.actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.btn {
  background: var(--accent); color: #fff; border: 0;
  padding: 12px 20px; border-radius: var(--radius);
  font: inherit; font-weight: 500; cursor: pointer;
  transition: background 140ms var(--ease);
}
.btn:hover:not(:disabled) { background: var(--accent-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--ink-3); border: 1px solid var(--line-2);
}
.btn.ghost:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent); }

.status { color: var(--muted); font-size: 14px; }
.status.err { color: var(--danger); }

.summary {
  background: var(--accent-soft); border: 1px solid rgba(58,90,122,0.15);
  border-radius: var(--radius); padding: 14px 16px; margin: 20px 0 0;
  font-size: 14px; color: var(--ink-2);
}
.summary strong { color: var(--accent); }

.success { text-align: center; padding: 56px 24px; }
.success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.success h2 {
  font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px;
  font-family: 'Inter', sans-serif; text-transform: none; color: var(--ink);
}
.success p { color: var(--ink-3); margin: 6px 0; }
.success .links { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.success a { color: var(--accent); text-decoration: none; font-weight: 500; }
.success a:hover { text-decoration: underline; }

.loading { color: var(--muted); font-size: 14px; padding: 12px 0; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; font-style: italic; }

/* Below-the-widget "About this application" section — subdued footer material.
   Kept prominent enough for Google's OAuth verification reviewer to find, but
   subordinate to the booking widget above so guests focus on the primary task. */
.app-about {
  margin-top: 48px; padding: 40px 0 0;
  border-top: 1px solid var(--line);
}
.app-about-inner { max-width: 720px; }
.app-about h2 {
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 12px;
  text-transform: none;
}
.app-about h2 strong { color: var(--accent); font-weight: 600; }
.app-about p, .app-about li {
  color: var(--ink-3); font-size: 14px; line-height: 1.65;
}
.app-about p { margin: 0 0 12px; }
.app-about p.lead { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.app-about ul { margin: 0 0 12px; padding-left: 22px; }
.app-about li { margin-bottom: 6px; }
.app-about li strong { color: var(--ink-2); font-weight: 600; }
.app-about .fineprint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.app-about a { color: var(--accent); text-decoration: none; }
.app-about a:hover { text-decoration: underline; }

.book-footer {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted);
}
.book-footer a { color: var(--muted); text-decoration: none; transition: color 140ms var(--ease); }
.book-footer a:hover { color: var(--accent); }
.book-footer .sep { opacity: 0.5; }

/* ── Meeting-type index (book/index.html) ── */

.index-hero {
  text-align: left; padding: 32px;
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.index-hero img.hs {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-2); box-shadow: var(--shadow-sm);
}
.index-hero .who h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 4px; }
.index-hero .who .role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.index-hero .who .bio { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

.type-list { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.type-list h2 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px; font-weight: 500;
}
.type-card {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: all 160ms var(--ease); background: var(--bg);
}
.type-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.type-duration {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 20px; font-weight: 600; color: var(--accent);
  text-align: center; line-height: 1;
}
.type-duration small { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.type-title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 2px; }
.type-desc { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.type-arrow { color: var(--muted); font-size: 20px; }
.type-card:hover .type-arrow { color: var(--accent); }
