/* ==========================================================================
   Cloud9 support booking page
   A trimmed copy of the cloud9-v3 design system (see that repo's DESIGN.md):
   the tokens, base, nav, anchor, booking and footer rules this page uses,
   plus the .sp- notes beside the calendar. Keep tokens in step with v3.
   ========================================================================== */

/* 1. Tokens */

:root {
  --ink-900: #0b1015;
  --ink-800: #1b232c;
  --ink-700: #333f4b;
  --ink-600: #4a5866;
  --ink-500: #62707e;
  --ink-400: #8896a4;

  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --paper-3: #eef2f6;
  --line: #e2e8ee;
  --line-strong: #cfd8e1;

  --anchor-900: #070f16;
  --anchor-800: #0b1a26;
  --anchor-line: rgba(255, 255, 255, 0.12);
  --on-anchor: #ffffff;
  --on-anchor-2: #b9cbd8;
  --on-anchor-3: #8ba3b5;
  --on-anchor-4: #6f889b;

  --brand: #0070a0;
  --brand-700: #005b84;
  --brand-300: #70b0d0;
  --brand-200: #a8cfe4;
  --brand-100: #e3f0f7;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-2xs:  0.8125rem;
  --fs-xs:   0.875rem;
  --fs-sm:   0.9375rem;
  --fs-md:   1rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.125rem;
  --fs-3xl:  2rem;
  --fs-5xl:  2.9rem;

  --e3: 0 8px 18px rgba(11, 26, 38, 0.08), 0 28px 64px rgba(11, 26, 38, 0.14);

  --gutter: clamp(20px, 5vw, 64px);
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--brand-200); color: var(--anchor-900); }

h1, h2 {
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--anchor-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* 3. Layout */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.anchor {
  background: var(--anchor-900);
  color: var(--on-anchor-2);
}
.anchor h1 { color: var(--on-anchor); }

/* 4. Navigation. Not sticky: the page is one short task, and a fixed bar
   would only eat calendar height on a phone. */

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  background: var(--anchor-900);
  border-bottom: 1px solid var(--anchor-line);
}
.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__mail {
  display: none;
  color: var(--on-anchor-3);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav__mail:hover { color: #fff; }
@media (min-width: 640px) { .nav__mail { display: block; } }

/* 5. Booking surface */

.bk-page { min-height: 100vh; display: flex; flex-direction: column; }
.bk-page main { flex: 1; }
.bk-main { padding-block: clamp(36px, 5vw, 60px) clamp(56px, 7vw, 96px); }

.bk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  align-items: end;
  gap: clamp(28px, 7vw, 96px);
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px);
  text-align: left;
}
.bk-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0;
}
.bk-hero p {
  margin: 0 0 0.25rem;
  max-width: 46ch;
  font-size: clamp(var(--fs-md), 1.5vw, var(--fs-lg));
  color: var(--on-anchor-2);
  line-height: 1.6;
}

/* The widget draws its own bordered card, so this frame adds only the lift
   and the rounding; a second border and padding read as a card in a card. */
.bk-frame {
  min-width: 0;
  max-width: 960px;
  width: 100%;
  margin-inline: auto;
  min-height: 700px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--e3);
  overflow: hidden;
}
/* The widget closes with a hairline a few px above its own bottom edge; the
   negative margin lets the frame's overflow clip it along with blank padding. */
.bk-frame iframe {
  position: relative !important;
  left: auto !important;
  width: 100%;
  border: 0;
  min-height: 700px;
  margin-bottom: -14px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (max-width: 639px) { .bk-frame iframe { margin-bottom: -34px; } }

.bk-noscript { padding: 24px; }
.bk-noscript a { color: var(--brand-700); font-weight: 500; }

/* 6. Notes above the calendar. A rule-separated list rather than three
   matched cards: stacked on phones, one row from 720px. They sit above rather
   than beside so the widget gets the width for its two-column layout. */

.sp-layout {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}

.sp-notes {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.sp-notes ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sp-notes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 1rem;
  align-items: start;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line-strong);
}
.sp-notes li:first-child { border-top: 0; padding-top: 0; }
.sp-notes li:last-child { padding-bottom: 0; }

.sp-notes h2 { font-size: var(--fs-md); letter-spacing: -0.02em; margin-top: 0.1rem; }
.sp-notes p { margin-top: 0.35rem; color: var(--ink-500); font-size: var(--fs-xs); line-height: 1.6; }
.sp-notes a { color: var(--brand-700); font-weight: 500; overflow-wrap: anywhere; }

.sp-notes__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
}
.sp-notes__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 720px) {
  .sp-notes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-notes li,
  .sp-notes li:first-child,
  .sp-notes li:last-child {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    padding: 0 clamp(18px, 2.4vw, 30px);
  }
  .sp-notes li:first-child { border-left: 0; padding-left: 0; }
  .sp-notes li:last-child { padding-right: 0; }
}

@media (max-width: 639px) {
  .bk-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .bk-hero p { margin: 0; }
  .sp-notes { border-radius: 16px; }
}

/* 7. Footer. One centred stack at every width: logo, links, copyright. */

.footer {
  background: var(--anchor-900);
  color: var(--on-anchor-3);
  padding-block: clamp(32px, 4vw, 46px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.footer__logo { display: block; }
.footer__logo img { height: 28px; width: auto; opacity: 0.9; }
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.6rem;
  font-size: var(--fs-xs);
}
.footer__links a { color: var(--on-anchor-3); text-decoration: none; transition: color 0.16s ease; }
.footer__links a:hover { color: #fff; }
.footer__copy {
  width: 100%;
  max-width: 680px;
  margin-top: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--anchor-line);
  font-size: var(--fs-2xs);
  color: var(--on-anchor-4);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* 8. Quickstart reference alignment */

:root {
  --ink-900: #0d1b2a;
  --ink-700: #333333;
  --ink-500: #555555;
  --paper-2: #f4f4f4;
  --line: #eeeeee;
  --line-strong: #dcdfe4;
  --anchor-900: #0d1b2a;
  --anchor-line: rgba(255, 255, 255, 0.12);
  --on-anchor-2: #ffffff;
  --on-anchor-3: #aaaaaa;
  --on-anchor-4: #888888;
  --brand: #00c2cb;
  --brand-700: #00a7af;
  --brand-100: #e8fbfc;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-lg: 8px;
  --gutter: clamp(20px, 5.9vw, 40px);
}

body {
  background: var(--paper-2);
  color: var(--ink-700);
  padding-bottom: 3rem;
}

.nav,
.anchor,
main,
.footer {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.nav {
  height: auto;
  padding-block: 32px;
  border-radius: 8px 8px 0 0;
}
.nav__inner { justify-content: center; }
.nav__logo img { width: 200px; height: auto; }
.nav__mail { display: none; }

.anchor { background: #00c2cb; color: #ffffff; }
.anchor h1 { color: #ffffff; }
.bk-hero {
  display: block;
  padding-block: 26px;
  text-align: center;
}
.bk-hero h1 {
  max-width: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.bk-hero p {
  margin: 0.55rem auto 0;
  max-width: 44ch;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
}

main { background: #ffffff; }
.bk-main { padding-block: 32px 40px; }
.sp-layout { gap: 1.75rem; }
.sp-notes {
  padding: 1.1rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sp-notes ul { display: grid; }
.sp-notes li,
.sp-notes li:first-child,
.sp-notes li:last-child {
  grid-template-columns: 28px 1fr;
  gap: 0 0.75rem;
  padding: 0.5rem 0;
  border: 0;
}
.sp-notes li + li { border-top: 0; }
.sp-notes__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
}
.sp-notes__icon svg { stroke-width: 2; }
.sp-notes h2 { color: var(--anchor-900); font-size: 0.92rem; }
.sp-notes p { color: var(--ink-500); font-size: 0.88rem; line-height: 1.65; }
.sp-notes a { color: var(--brand-700); }

.bk-frame {
  max-width: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#calendar iframe {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.footer {
  padding-block: 26px;
  border-radius: 0 0 8px 8px;
}
.footer__inner { gap: 0.45rem; }
.footer__logo img { width: 160px; height: auto; opacity: 1; }
.footer__links { gap: 0.25rem 0.7rem; font-size: 0.74rem; }
.footer__copy {
  max-width: none;
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: 0;
  font-size: 0.74rem;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .sp-notes ul { grid-template-columns: 1fr; }
  .sp-notes li,
  .sp-notes li:first-child,
  .sp-notes li:last-child {
    border-left: 0;
    padding-inline: 0;
  }
  .sp-notes li + li { border-top: 1px solid var(--line); }
}

@media (max-width: 639px) {
  .nav, .anchor, main, .footer { border-radius: 0; }
  .nav { padding-block: 32px; }
  .bk-hero { padding-block: 26px; }
  .bk-hero p { font-size: 0.9rem; }
}
