/* Xyra Studios · Book a meeting · page styles */
  :root {
    --ink: #ffffff;
    --ink-2: #9a9a9a;
    --ink-3: #4d4d4d;
    --ground: #000000;
    --panel: #0a0a0a;
    --line: #ffffff;
    --line-2: #2a2a2a;
    --hover: #161616;
    --error: #ff5c5c;
    --display: 'Montserrat', 'Arial Black', Arial, sans-serif;
    --body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { background: var(--ground); }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  .page { max-width: 1120px; margin: 0 auto; padding-block: 22px 28px; padding-inline: 24px; }
  @media (max-width: 480px) { .page { padding-inline: 16px; } }

  a { color: var(--ink); }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  button { font: inherit; color: inherit; }
  [hidden] { display: none !important; }

  /* ---------- masthead ---------- */
  .masthead { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo title badges"; align-items: center; gap: 24px; padding-bottom: 14px; }
  .logo { grid-area: logo; justify-self: start; display: block; line-height: 0; }
  .logo img { height: 50px; width: auto; display: block; }
  @media (max-width: 480px) { .logo img { height: 46px; } }
  .masthead h1 {
    grid-area: title; text-align: center; margin: 0;
    font-family: var(--display); font-weight: 900;
    font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
    text-wrap: balance;
  }
  .badges { grid-area: badges; justify-self: end; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
  .badge {
    font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 12px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap;
  }
  .badge.fill { background: var(--ink); color: var(--ground); }
  .badge-meet { display: inline-flex; align-items: center; gap: 7px; }
  .meet-icon { width: 17px; height: 17px; flex: none; vertical-align: -3px; margin-right: 7px; }
  .badge-meet .meet-icon { margin-right: 0; }
  .rule { border: 0; border-top: 3px solid var(--line); margin: 0; }
  @media (max-width: 900px) {
    .masthead { grid-template-columns: 1fr auto; grid-template-areas: "logo badges" "title title"; row-gap: 18px; }
    .masthead h1 { text-align: left; }
  }

  /* ---------- labels & shared ---------- */
  .label {
    font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  }
  .label-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 4px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
  }
  .label-row .muted { color: var(--ink-2); font-size: 14px; }
  .tz { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .tz select {
    background: var(--panel); color: var(--ink); border: 1px solid var(--ink-3); border-radius: 0; cursor: pointer;
    padding: 5px 30px 5px 10px; font: inherit; font-size: 14px; max-width: min(250px, 72vw);
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
  }
  .tz select:focus { outline: none; border-color: var(--line); }
  .muted { color: var(--ink-2); }
  .bar { background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; }

  /* ---------- columns ---------- */
  .cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; margin-top: 18px; }
  @media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 40px; } }

  /* ---------- picker ---------- */
  .picker-wrap { container-type: inline-size; }
  .picker { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; }
  @container (max-width: 540px) {
    .picker { grid-template-columns: 1fr; }
    .times-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
  }
  @media (max-width: 560px) {
    .picker { grid-template-columns: 1fr; }
    .times-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
  }

  .cal { border: 1px solid var(--line-2); padding: 12px; }
  .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .cal-title { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
  .nav {
    width: 34px; height: 34px; background: transparent; border: 1px solid var(--line-2); cursor: pointer;
    display: grid; place-items: center; transition: border-color .15s, background .15s;
  }
  .nav:hover:not(:disabled) { border-color: var(--line); background: var(--hover); }
  .nav:disabled { opacity: .3; cursor: default; }
  .nav svg { width: 14px; height: 14px; }
  .dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
  .dow span { text-align: center; font-size: 14px; color: var(--ink-2); letter-spacing: 0.04em; padding: 4px 0; }
  .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .day {
    aspect-ratio: 1; min-width: 0; min-height: 0; padding: 0; display: grid; place-items: center;
    background: transparent; border: 1px solid transparent; cursor: default;
    font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-3);
    transition: background .12s, border-color .12s;
    position: relative;
  }
  .day.out { color: var(--ink-3); opacity: .45; }
  .day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
  .day.avail { color: var(--ink); font-weight: 700; cursor: pointer; border-color: var(--line-2); }
  .day.avail:hover { background: var(--hover); border-color: var(--line); }
  .day.full { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
  .day.sel { background: var(--ink); color: var(--ground); border-color: var(--ink); }
  .legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--line-2); }
  .legend i.on { border-color: var(--ink); }
  .legend i.x { border-color: var(--ink-3); background: linear-gradient(to top left, transparent 46%, var(--ink-3) 48%, var(--ink-3) 52%, transparent 54%); }

  .times { display: flex; flex-direction: column; min-height: 0; }
  .times .bar { margin-bottom: 8px; white-space: nowrap; }
  .times-day { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; min-height: 18px; margin: -2px 0 8px; }
  .times-list { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; max-height: 440px; overflow-y: auto; padding-right: 2px; }
  .times-list::-webkit-scrollbar { width: 6px; }
  .times-list::-webkit-scrollbar-thumb { background: var(--line-2); }
  .time {
    width: 100%; padding: 10px 12px; background: transparent; border: 1px solid var(--line-2); cursor: pointer;
    font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; text-align: center;
    transition: border-color .12s, background .12s;
  }
  .time:hover { border-color: var(--line); background: var(--hover); }
  .time[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
  .times-empty { padding: 14px 4px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

  /* Loading text: gradient shimmer sweeping through cycling phrases (same motion as the AI Text Loading component) */
  .ai-loading { display: flex; align-items: center; justify-content: center; padding: 28px 4px; overflow: hidden; }
  .ai-loading__text {
    display: inline-block; white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: 0.01em;
    background-image: linear-gradient(90deg, #ffffff 0%, #525252 50%, #ffffff 100%);
    background-size: 200% 100%; background-position: 200% center;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: ai-shimmer 2.5s linear infinite, ai-in 0.3s ease both;
  }
  .ai-loading__text.is-out { animation: ai-shimmer 2.5s linear infinite, ai-out 0.3s ease both; }
  @keyframes ai-shimmer { from { background-position: 200% center; } to { background-position: -200% center; } }
  @keyframes ai-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes ai-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }
  @media (prefers-reduced-motion: reduce) {
    .ai-loading__text, .ai-loading__text.is-out { animation: none; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); background: none; }
  }
  .times-empty b { color: var(--ink); }

  /* ---------- selection ---------- */
  .selection { border: 1px solid var(--line-2); padding: 10px 14px; margin-top: 14px; }
  #skip-selection { margin: 0 0 20px; }
  .selection .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
  .selection .row:last-child { border-bottom: 0; }
  .selection .row span:first-child { color: var(--ink-2); }
  .selection .row span:last-child { font-weight: 700; text-align: right; }
  .selection .empty { color: var(--ink-2); font-size: 14px; }
  .selection .edit { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 0; padding: 0; margin-left: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

  /* ---------- form ---------- */
  form { display: grid; gap: 10px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 4px; }
  .field label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .field label .opt { color: var(--ink-2); font-weight: 400; letter-spacing: 0.04em; text-transform: none; margin-left: 6px; }
  .field input, .field select, .field textarea {
    width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--ink-3);
    padding: 9px 12px; font: inherit; font-size: 15px; border-radius: 0; transition: border-color .12s;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--line); }
  .field textarea { min-height: 64px; resize: vertical; }
  .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
  .err { display: none; color: var(--error); font-size: 14px; }
  .field.invalid .err { display: block; }
  .banner { border: 1px solid var(--error); color: var(--error); padding: 10px 12px; font-size: 14px; }

  .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border: 1px solid var(--line); background: transparent; color: var(--ink);
    font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
    transition: background .12s, color .12s, opacity .12s; border-radius: 0; min-height: 44px;
  }
  .btn:hover:not(:disabled) { background: var(--hover); }
  .btn.fill { background: var(--ink); color: var(--ground); }
  .btn.fill:hover:not(:disabled) { background: #e2e2e2; }
  .btn:disabled { opacity: .45; cursor: default; }
  .btn svg { width: 14px; height: 14px; }
  @media (max-width: 420px) { .actions .btn { flex: 1 1 100%; } }
  .hint { color: var(--ink-2); font-size: 14px; margin: 0; line-height: 1.45; }

  /* Short desktop screens (most laptops): tighter still, so the page fits without scrolling */
  @media (min-width: 901px) and (max-height: 780px) {
    .page { padding-block: 12px 16px; }
    .masthead { padding-bottom: 10px; }
    .masthead h1 { font-size: 30px; }
    .logo img { height: 42px; }
    .cols { margin-top: 12px; }
    .label-row { margin-bottom: 8px; }
    form { gap: 7px; }
    .field input, .field select, .field textarea { padding: 7px 12px; }
    .field textarea { min-height: 48px; }
    .hint { display: none; }
    .times-list { max-height: 380px; }
  }

  /* ---------- skip + thanks ---------- */
  .narrow { max-width: 560px; margin-top: 34px; }
  .display {
    margin: 0 0 14px; font-family: var(--display); font-weight: 900;
    font-size: clamp(30px, 5vw, 42px); line-height: 1.05; letter-spacing: 0.07em; text-transform: uppercase; text-wrap: balance;
  }
  .lede { font-size: 17px; line-height: 1.55; margin: 0 0 24px; }
  .lede b { font-weight: 700; }
  .box { border: 1px solid var(--line); padding: 16px 18px; margin-top: 20px; }
  .box .label { color: var(--ink-2); display: block; margin-bottom: 8px; }
  .box .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
  .box .row:last-child { border-bottom: 0; }
  .box .row span:first-child { color: var(--ink-2); }
  .box .row span:last-child { font-weight: 700; text-align: right; }

  /* ---------- email preview (only present in the preview build) ---------- */
  .email-frame { margin-top: 22px; border: 1px solid var(--line-2); }
  .email-frame > * { max-width: 100%; }


  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
