/* The signed-out pages (landing, pricing): paper, not glass. White surfaces on a soft mint-grey tint, black accents,
   1px hairlines instead of glows, pastel entries. Loaded after glass.css, which brings the tint (on body) and the tokens.
   The landing explains with pictures: a centred hero, one drawn app window that plays the story, three ideas,
   three steps, the providers, one question. No script anywhere: every motion is CSS, and with reduced motion
   every picture simply shows its last frame. */
:root {
  --cm-gut: 44px;
  --hr: clamp(28px, 4.6vh, 42px);
  --cm-mute: #676C71;        /* small grey text: 5.3:1 on white, 4.8:1 on the pill grey (--faint is too light for text here) */
  --cm-pill: #F1F2F3;        /* the reference's filter pills */
  --cm-mix: 22%;             /* how much of a calendar's colour goes into an entry */
  --cm-mix-busy: 9%;
}
:root[data-theme="dark"] {
  --cm-mute: var(--faint);
  --cm-pill: #202325;
  --cm-mix: 30%;
  --cm-mix-busy: 12%;
}

/* ------------------------------------------------------------------ type, buttons, shared bits */
.ld-top { padding: 22px 32px; }
.ld-h1 { font-weight: 200; font-size: clamp(40px, 8vw, 84px); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.ld-h1 b { font-weight: 500; }
.ld-lead { font-size: 21px; line-height: 1.45; margin: 22px 0 34px; max-width: 420px; color: var(--body); }
.ld-sec { border-top: 0; padding: 56px 0; }
.ld-h2 { font-weight: 200; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; color: var(--ink); }
.ld-h2 b { font-weight: 500; }
.ld-small { font-size: 14px; }
.ld-k { color: var(--cm-mute); }
.cm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* black pills first, white pills with a hairline second, quiet text links third */
.ld .btn { border-radius: 999px; }
.ld .btn.dark { background: var(--ink); border: 1px solid var(--ink); color: var(--g-on); box-shadow: none; }
.ld .btn.dark:hover { background: color-mix(in srgb, var(--ink) 84%, var(--g-base)); border-color: transparent; }
.ld .btn.light, .ld .btn.pv { background: var(--g-solid); border: 1px solid var(--g-rim); color: var(--ink); box-shadow: none; }
.ld .btn.light:hover, .ld .btn.pv:hover { background: var(--g-solid); border-color: color-mix(in srgb, var(--ink) 22%, var(--g-rim)); }
.ld .btn.ghost { color: var(--body); }
.ld .btn.ghost:hover { color: var(--ink); }
.ld .btn.pv { border-radius: 999px; min-height: 48px; }
.ld .btn.lg { border-radius: 999px; min-height: 48px; padding: 12px 28px; }
.pv-terms { color: var(--cm-mute); }

.ld-foot { border-top: 1px solid var(--g-hair); color: var(--cm-mute); }
.ld-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); }
.ld-foot nav a:hover { color: var(--ink); }

/* panes: plain white paper, a 1px hairline, 24px corners; only the app window lifts, and only softly */
.cm-win, .cm-tile, .pr-card, .pr-card.pro {
  background: var(--g-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--g-rim); border-radius: 24px; color: var(--ink); box-shadow: none;
}
.cm-win { box-shadow: var(--g-shadow); }

/* small labels: light grey pills, like the reference's filters */
.cm-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  letter-spacing: .01em; color: var(--cm-mute); background: var(--cm-pill); border: 0; }

/* ------------------------------------------------------------------ 1. hero: one centred stack */
.ld-hero.cm-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 72px 0 52px; }
.cm-hero .ld-lead { margin: 20px auto 34px; }
.cm-hero .ld-in { width: 100%; max-width: 360px; margin: 0 auto; text-align: start; }
.cm-hero .ld-in:empty { display: none; }
.cm-hero .pv-terms { text-align: center; }
.cm-hero .ld-or { justify-content: center; gap: 4px 20px; margin-top: 10px; }
.cm-hero .ld-or a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); }
/* no Google or Microsoft buttons on this server: email becomes the one black pill */
.cm-hero .ld-in:empty + .ld-or .cm-em { padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--g-on); text-decoration: none; font-size: 15.5px; font-weight: 500; min-height: 48px; }
.cm-hero .ld-small { margin: 8px 0 0; color: var(--cm-mute); }

.cm-trust { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.cm-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.cm-trust svg.i { width: 18px; height: 18px; color: var(--cm-mute); }

/* ------------------------------------------------------------------ 2. the app window, drawn like a week grid */
.cm-stage { position: relative; z-index: 1; width: min(940px, 100%); margin: 8px auto -88px; }
.cm-win { overflow: hidden; }
/* the two-calendar picture is a drawing of a left-to-right week: it never mirrors */
.cm-win { direction: ltr; unicode-bidi: isolate; }
.cm-bar { display: flex; gap: 7px; padding: 18px 22px 8px; }
.cm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--g-rim); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.cm-hd, .cm-grid { display: grid; grid-template-columns: var(--cm-gut) minmax(0, 1fr) minmax(0, 1fr); margin: 0 22px; }
.cm-hd { padding: 10px 0 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cm-hd span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cm-hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cm-grid { height: calc(var(--hr) * 9); margin-bottom: 22px; border-top: 1px solid var(--g-hair); }
.cm-gut { position: relative; }
.cm-gut span { position: absolute; top: calc(var(--t) * var(--hr) + 5px); left: 0; font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; } /* ltr: inside the two-calendar picture, which stays left to right */
.cm-col { position: relative; border-left: 1px solid var(--g-hair); /* ltr: inside the two-calendar picture, which stays left to right */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hr) - 1px), var(--g-hair) calc(var(--hr) - 1px) var(--hr)); }

/* an entry: a pastel card in its calendar's colour; no border, no bar */
.cm-ev { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid transparent; background: color-mix(in srgb, var(--c) var(--cm-mix), var(--g-ev));
  color: var(--ink); font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.cm-ev b { min-width: 0; font-weight: 500; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; }
.cm-ev span { color: var(--body); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* the copy: only the time, a much lighter fill and a dashed hairline, in the calendar it lands on */
.cm-ev.cm-busy { color: var(--body); background: color-mix(in srgb, var(--c) var(--cm-mix-busy), var(--g-ev));
  border: 1px dashed color-mix(in srgb, var(--c) 55%, var(--g-ev)); }
.cm-ev.cm-busy b { font-weight: 400; }
.cm-col .cm-ev, .cm-fly { position: absolute; left: 6px; right: 6px; top: calc(var(--t) * var(--hr) + 2px); height: calc(var(--d) * var(--hr) - 4px); } /* ltr: inside the two-calendar picture, which stays left to right */
.cm-fly { border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--c) 60%, var(--g-ev)); opacity: 0; pointer-events: none; }

/* the story, about 8 seconds: work meeting, its Busy copy; dentist, its Busy copy; hold; fade; again */
@media (prefers-reduced-motion: no-preference) {
  .cm-a, .cm-a2, .cm-b, .cm-b2, .cm-fa, .cm-fb { animation: 8s ease-in-out infinite both; }
  .cm-a  { animation-name: cm-a; }
  .cm-fa { animation-name: cm-fa; }
  .cm-a2 { animation-name: cm-a2; }
  .cm-b  { animation-name: cm-b; }
  .cm-fb { animation-name: cm-fb; }
  .cm-b2 { animation-name: cm-b2; }
}
@keyframes cm-a  { 0%, 6%  { opacity: 0; transform: translateY(4px) scale(.97); } 12%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes cm-fa { 0%, 14% { opacity: 0; transform: none; } 17% { opacity: 1; transform: none; }
  27% { opacity: 1; transform: translateX(calc(100% + 13px)); } 31%, 100% { opacity: 0; transform: translateX(calc(100% + 13px)); } } /* ltr: inside the two-calendar picture, which stays left to right */
@keyframes cm-a2 { 0%, 26% { opacity: 0; } 31%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes cm-b  { 0%, 40% { opacity: 0; transform: translateY(4px) scale(.97); } 46%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes cm-fb { 0%, 48% { opacity: 0; transform: none; } 51% { opacity: 1; transform: none; }
  61% { opacity: 1; transform: translateX(calc(-100% - 13px)); } 65%, 100% { opacity: 0; transform: translateX(calc(-100% - 13px)); } } /* ltr: inside the two-calendar picture, which stays left to right */
@keyframes cm-b2 { 0%, 60% { opacity: 0; } 65%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* ------------------------------------------------------------------ 3. three ideas, a bento of three */
.cm-ideas { padding: 160px 0 64px; }
.cm-bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.cm-t1 { grid-row: span 2; }
.cm-tile { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.cm-tile h3 { margin: 8px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); }
.cm-tile p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.cm-tile > div { margin-top: auto; padding-top: 20px; align-self: stretch; }

/* no double bookings: two columns, one block each, at the same height */
.vz-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vz-pair > div { position: relative; height: 220px; border-radius: 12px; background-color: var(--g-solid); border: 1px solid var(--g-hair);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--g-hair) 35px 36px); }
.vz-pair .dot { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--c); }
.vz-pair b { position: absolute; inset-inline-start: 10px; inset-inline-end: 10px; top: 42%; height: 25%; border-radius: 10px;
  background: color-mix(in srgb, var(--c) var(--cm-mix), var(--g-ev)); border: 1px solid transparent; }
.vz-pair b.cp { background: color-mix(in srgb, var(--c) var(--cm-mix-busy), var(--g-ev)); border: 1px dashed color-mix(in srgb, var(--c) 55%, var(--g-ev)); }
.vz-pair .guide { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: calc(18px + 220px * .42); border-top: 1px dashed var(--cm-mute); opacity: .35; }

/* one tidy view: a small week with every calendar's colours in it */
.vz-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vz-week > div { position: relative; height: 136px; border-radius: 12px; background: var(--g-solid); border: 1px solid var(--g-hair); }
.vz-week b { position: absolute; inset-inline-start: 4px; inset-inline-end: 4px; top: calc(var(--t) * 21px + 6px); height: calc(var(--d) * 21px - 4px); border-radius: 7px;
  background: color-mix(in srgb, var(--c) calc(var(--cm-mix) + 10%), var(--g-ev)); }

/* private: the title stays, only the time crosses */
.vz-priv { display: flex; align-items: center; gap: 10px; }
.vz-priv .cm-ev { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
.vz-priv svg.i { width: 22px; height: 22px; color: var(--cm-mute); flex: none; }

/* ------------------------------------------------------------------ 4. three steps */
.cm-how { padding: 48px 0 64px; }
.cm-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; color: var(--ink); }
.cm-steps li + li::before { content: ""; position: absolute; top: 28px; inset-inline-start: calc(-50% + 40px); inset-inline-end: calc(50% + 40px); border-top: 1px solid var(--g-rim); }
.cm-ic { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--g-solid); border: 1px solid var(--g-rim); box-shadow: none; color: var(--ink); }
.cm-ic svg.i { width: 24px; height: 24px; stroke-width: 1.5; }

/* ------------------------------------------------------------------ 5. works with */
.cm-works { padding: 48px 0 40px; }
.cm-works .ld-k { text-align: center; font-size: 13.5px; font-weight: 500; margin: 0 0 20px; color: var(--cm-mute); }
.cm-marq { overflow: hidden; }
.cm-track { display: flex; justify-content: center; }
.cm-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cm-names li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding-block: 0; padding-inline: 12px 16px; border-radius: 999px;
  font-size: 14.5px; white-space: nowrap; color: var(--ink); background: var(--g-solid); border: 1px solid var(--g-rim); }
.cm-names svg.i { width: 16px; height: 16px; color: var(--cm-mute); }
.cm-dup { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* the names drift slowly between two soft edges; hover holds them still */
  .cm-marq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); /* ltr: the fade is the same at both ends */
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); } /* ltr: the fade is the same at both ends */
  .cm-track { width: max-content; justify-content: flex-start; animation: cm-drift 50s linear infinite; }
  .cm-marq:hover .cm-track { animation-play-state: paused; }
  .cm-names { flex-wrap: nowrap; padding-inline-end: 10px; }
  .cm-dup { display: flex; }
}
@keyframes cm-drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% * var(--dir, 1))); } }

/* ------------------------------------------------------------------ 6. one question */
.ld-end.cm-end { flex-direction: column; justify-content: center; text-align: center; gap: 28px; padding: 80px 0 104px; }
.cm-end .ld-h2 { margin: 0; }
.cm-end .ld-cta { justify-content: center; }

/* ------------------------------------------------------------------ pricing: two plans, the number of calendars drawn as squares */
.pr-head { padding: 56px 0 32px; }
/* the billing switch: a grey pill track, the chosen period a black pill like the reference's "All" */
.pr-toggle { background: var(--cm-pill); border: 0; box-shadow: none; }
.pr-toggle label { min-height: 44px; box-sizing: border-box; color: var(--body); }
#bill-m:checked ~ .pr-toggle label[for=bill-m], #bill-y:checked ~ .pr-toggle label[for=bill-y] { background: var(--ink); color: var(--g-on); box-shadow: none; }
.pr-save { color: #24684A; background: #E3F1EA; }
:root[data-theme="dark"] .pr-save { color: #8FD3B0; background: #1C2B24; }
#bill-m:focus-visible ~ .pr-toggle label[for=bill-m], #bill-y:focus-visible ~ .pr-toggle label[for=bill-y] { outline: 2px solid var(--ink); outline-offset: 2px; }

.pr-card, .pr-card.pro { padding: 32px; gap: 4px; }
.pr-name, .pr-card.pro .pr-name { font-size: 22px; font-weight: 500; color: var(--ink); margin: 20px 0 6px; letter-spacing: -.01em; }
.pr-price { margin: 0 0 28px; }
.pr-amt { font-weight: 200; font-size: 64px; color: var(--ink); }
.pr-per, .pr-card.pro .pr-per { color: var(--cm-mute); }
/* the plan's calendars drawn as squares, as many as the page value --n says (one 18px square every 25px) */
.cm-dots { width: calc(var(--n, 1) * 25px - 7px); max-width: 100%; height: 18px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='18'%3E%3Crect width='18' height='18' rx='5'/%3E%3C/svg%3E") 0 0 / 25px 18px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='18'%3E%3Crect width='18' height='18' rx='5'/%3E%3C/svg%3E") 0 0 / 25px 18px repeat-x; }
.cm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 64px; padding: 0; }
.cm-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; font-size: 14.5px;
  color: var(--ink); background: var(--g-solid); border: 1px solid var(--g-rim); }
.cm-chips svg.i { width: 16px; height: 16px; stroke-width: 2; color: var(--ink); }
.pr-faq h3 { font-weight: 500; color: var(--ink); }
.pr-faq p { color: var(--body); }
.ld-works li { background: var(--g-solid); border: 1px solid var(--g-rim); }
.ld-works .g { background: var(--cm-pill); color: var(--body); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 900px) {
  .cm-bento { grid-template-columns: minmax(0, 1fr); }
  .cm-t1 { grid-row: auto; }
  .vz-pair > div { height: 160px; }
  .vz-pair .guide { top: calc(18px + 160px * .42); }
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --cm-gut: 30px; }
  .ld-top { padding: 16px; }
  .ld-nav .btn { min-height: 44px; }
  .ld-hero.cm-hero { padding: 40px 0 36px; }
  .cm-hero .ld-lead { font-size: 18px; margin: 14px auto 26px; }
  .cm-trust { gap: 8px 18px; margin-top: 26px; }
  .cm-stage { margin-bottom: -56px; }
  .cm-win { border-radius: 20px; }
  .cm-bar { padding: 14px 14px 4px; }
  .cm-hd, .cm-grid { margin-inline-start: 12px; margin-inline-end: 12px; }
  .cm-hd span { font-size: 13px; }
  .cm-gut span { font-size: 12px; }
  .cm-ev { padding: 4px 7px; font-size: 12.5px; }
  .cm-ev span { font-size: 11.5px; }
  .cm-col .cm-ev, .cm-fly { left: 4px; right: 4px; } /* ltr: inside the two-calendar picture, which stays left to right */
  @keyframes cm-fa { 0%, 14% { opacity: 0; transform: none; } 17% { opacity: 1; transform: none; }
    27% { opacity: 1; transform: translateX(calc(100% + 9px)); } 31%, 100% { opacity: 0; transform: translateX(calc(100% + 9px)); } } /* ltr: inside the two-calendar picture, which stays left to right */
  @keyframes cm-fb { 0%, 48% { opacity: 0; transform: none; } 51% { opacity: 1; transform: none; }
    61% { opacity: 1; transform: translateX(calc(-100% - 9px)); } 65%, 100% { opacity: 0; transform: translateX(calc(-100% - 9px)); } } /* ltr: inside the two-calendar picture, which stays left to right */
  .cm-ideas { padding-top: 112px; }
  .cm-tile { padding: 24px; border-radius: 20px; }
  .cm-tile h3 { font-size: 21px; }
  .cm-steps li { font-size: 15px; }
  .cm-steps li + li::before { inset-inline-start: calc(-50% + 34px); inset-inline-end: calc(50% + 34px); }
  .pr-card, .pr-card.pro { padding: 26px 22px; border-radius: 20px; }
  .ld-end.cm-end { padding: 60px 0 80px; }
}
@media (max-width: 420px) {
  .cm-col .cm-ev span { display: none; }            /* one word per entry on a phone; the row already says the time */
}
