/* ==================================================================
   Calendarific — public-site components (cf-ui)
   Header, footer, hero pills, worldwide-coverage map and tiles, and the
   workflow tabs on the home page. Structural ideas come from CurrencyBeacon's
   "Halo" theme (cb-lara PR #55), recoloured to the Calendarific identity:
   brand blue #191d88, CTA yellow #ffc436, AvenirLT.
   Every class is prefixed `cf-` so nothing collides with Tabler/Bootstrap.
   ================================================================== */

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
  --cf-blue: #191d88;          /* existing header / hero blue */
  --cf-blue-2: #151876;
  --cf-midnight: #0d1050;
  --cf-yellow: #ffc436;        /* existing "Start Now for Free" yellow */
  --cf-yellow-hover: #ffd15c;
  --cf-yellow-ink: #002407;
  --cf-ink: #0f1f3d;           /* headings, strong text */
  --cf-body: #3b4a63;
  --cf-muted: #6b7a90;
  --cf-line: #e3e8f0;
  --cf-grey: #f8fafc;          /* = .bg-tabler-lt */
  --cf-wash: #eef0fb;
  --cf-soft: #e8eafc;          /* pale indigo for kickers and pills */
  --cf-green: #12945a;
  --cf-green-soft: #e7f6ee;
  --cf-font: "AvenirLT", "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --cf-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cf-radius: 16px;
  --cf-shadow-sm: 0 1px 2px rgba(15, 31, 61, .05);
  --cf-shadow-md: 0 1px 2px rgba(15, 31, 61, .05), 0 12px 32px -18px rgba(15, 31, 61, .22);
  --cf-head-h: 64px;
}

/* ------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------ */
.cf-wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }
.cf-section { padding: 80px 0; }
.cf-band { background: var(--cf-grey); border-top: 1px solid var(--cf-line); border-bottom: 1px solid var(--cf-line); }
.cf-wf-panel[hidden], .cf-country[hidden], .cf-empty[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   Buttons, pills, chips, kicker, icons, cards
   ------------------------------------------------------------------ */
.cf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--cf-font); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cf-btn:hover { transform: translateY(-1px); text-decoration: none; }
.cf-btn svg { width: 16px; height: 16px; }
.cf-btn-yellow { background: var(--cf-yellow); color: var(--cf-yellow-ink); }
.cf-btn-yellow:hover { background: var(--cf-yellow-hover); color: var(--cf-yellow-ink); }
.cf-btn-blue { background: var(--cf-blue); color: #fff; }
.cf-btn-blue:hover { background: var(--cf-blue-2); color: #fff; }
.cf-btn-white { background: #fff; color: var(--cf-ink); border-color: var(--cf-line); box-shadow: var(--cf-shadow-sm); }
.cf-btn-white:hover { border-color: #cdd4e0; color: var(--cf-ink); }
.cf-btn-ghost { background: transparent; color: var(--cf-ink); min-height: 40px; padding: 0 14px; }
.cf-btn-ghost:hover { background: var(--cf-grey); transform: none; color: var(--cf-ink); }
.cf-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.cf-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

.cf-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--cf-line); background: #fff; color: var(--cf-ink);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
}
.cf-pill-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.cf-pill-dark:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.cf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #47c652; box-shadow: 0 0 0 3px rgba(71, 198, 82, .18); flex: none; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-chips li {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--cf-grey); color: var(--cf-ink); font: 500 13px/1 var(--cf-mono); white-space: nowrap;
}
.cf-chips-dark li { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.cf-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--cf-blue); color: #fff; flex: none; }
.cf-ico svg { width: 18px; height: 18px; }
.cf-ico-soft { background: var(--cf-soft); color: var(--cf-blue); }
.cf-card { background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: none; }

.cf-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.cf-sec-head h2 {
  margin: 0; color: var(--cf-ink); font-weight: 600; letter-spacing: -.012em; line-height: 1.15;
  font-size: clamp(28px, 3vw, 36px); max-width: 720px; text-wrap: balance;
}
.cf-sec-head p { margin: 12px 0 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--cf-body); }
.cf-sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.cf-sec-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cf-sec-head.center .cf-sec-actions { justify-content: center; margin-top: 26px; }
.cf-sec-head.center p { margin-inline: auto; }
/* Shared pricing / FAQ partials on the home page: same heading style, their own utility paddings neutralised */
.cf-home-section > .container.py-5, .cf-home-section > .container.pb-5 { padding-top: 0 !important; padding-bottom: 0 !important; }
.cf-home-section > .container > h1 { margin: 0 auto; font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--cf-ink); letter-spacing: -.012em; line-height: 1.15; text-wrap: balance; }
.cf-home-section > .container > h1 + p { margin: 12px auto 0 !important; padding: 0 !important; max-width: 640px; font-size: 17px !important; line-height: 1.6; color: var(--cf-body) !important; }
.cf-home-section > .container > h1 + p + * { margin-top: 28px !important; }

/* ------------------------------------------------------------------
   Header: the brand-blue bar with pill links, grouped
   Developers / Holidays panels and a status indicator
   ------------------------------------------------------------------ */
.cf-head {
  position: sticky; top: 0; z-index: 1030;
  background: linear-gradient(180deg, #1b1f92 0%, #161a7c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: #c9cdf1;
}
.cf-nav { position: relative; display: flex; align-items: center; gap: 8px; min-height: var(--cf-head-h); }
.cf-brand { display: flex; align-items: center; margin-right: 8px; }
.cf-brand img { height: 32px; width: auto; display: block; }
.cf-nav-menu { display: contents; }
.cf-nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.cf-nav-links > li { position: relative; }
.cf-nav-links > li > a, .cf-nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent;
  font: 500 15px var(--cf-font); color: #d7daf5; cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.cf-nav-links > li > a:hover, .cf-nav-links > li > button:hover, .cf-nav-group.is-open > button { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.cf-nav-links > li > a[aria-current="page"], .cf-nav-links > li > button[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); font-weight: 600; }
.cf-nav-links > li > button svg { width: 12px; height: 12px; opacity: .6; transition: transform .15s ease; }
.cf-nav-group.is-open > button svg { transform: rotate(180deg); }
.cf-nav-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; padding: 8px;
  background: #fff; border: 1px solid var(--cf-line); border-radius: 16px; color: var(--cf-body);
  box-shadow: 0 1px 2px rgba(15, 31, 61, .05), 0 20px 48px -20px rgba(15, 31, 61, .3);
}
.cf-nav-panel.is-wide { min-width: 560px; grid-template-columns: 1fr 1fr; gap: 4px; }
.cf-nav-group.is-open > .cf-nav-panel { display: block; }
.cf-nav-group.is-open > .cf-nav-panel.is-wide { display: grid; }
.cf-nav-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--cf-body); text-decoration: none; }
.cf-nav-panel a:hover { background: var(--cf-grey); text-decoration: none; }
.cf-nav-panel .cf-ico { width: 34px; height: 34px; border-radius: 10px; }
.cf-nav-panel strong { display: block; font-size: 14.5px; color: var(--cf-ink); font-weight: 600; }
.cf-nav-panel small { display: block; font-size: 12.5px; color: var(--cf-muted); margin-top: 1px; line-height: 1.4; }
.cf-nav-actions { display: flex; align-items: center; gap: 6px; }
.cf-nav-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 13px; color: #d7daf5; text-decoration: none; }
.cf-nav-status:hover { color: #fff; text-decoration: none; }
.cf-head .cf-btn-ghost { color: #fff; }
.cf-head .cf-btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.cf-head .cf-btn-white { background: #fff; color: var(--cf-blue); border-color: #fff; }
.cf-head .cf-btn-white:hover { background: #eef0fb; border-color: #eef0fb; color: var(--cf-blue); }
.cf-menu { position: relative; }
.cf-menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; color: #fff; }
.cf-menu-btn:hover { background: rgba(255, 255, 255, .09); }
.cf-menu-btn svg { width: 14px; height: 14px; }
.cf-avatar { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--cf-grey) center / cover no-repeat; flex: none; border: 1px solid rgba(255, 255, 255, .3); }
.cf-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; display: none; z-index: 70;
  background: #fff; border: 1px solid var(--cf-line); border-radius: 14px; box-shadow: var(--cf-shadow-md);
}
.cf-menu.is-open .cf-menu-panel { display: block; }
.cf-menu-panel a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font: 500 14.5px var(--cf-font); color: var(--cf-body); text-decoration: none; }
.cf-menu-panel a:hover { background: var(--cf-grey); color: var(--cf-ink); }
.cf-menu-panel svg { width: 16px; height: 16px; opacity: .75; }
.cf-menu-panel hr { border: 0; border-top: 1px solid var(--cf-line); margin: 6px 0; }
.cf-nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer;
}
.cf-nav-toggle svg { width: 20px; height: 20px; }
.cf-nav-toggle .i-close { display: none; }
.cf-head.is-open .cf-nav-toggle .i-close { display: block; }
.cf-head.is-open .cf-nav-toggle .i-menu { display: none; }

/* ------------------------------------------------------------------
   Footer: indigo gradient, dotted world map, CTA row,
   four link groups, status pill
   ------------------------------------------------------------------ */
.cf-foot {
  position: relative; overflow: hidden; padding: 64px 0 28px; color: #a9aee0;
  background: linear-gradient(180deg, #171b7e 0%, #0d1050 100%); --cf-foot-line: rgba(255, 255, 255, .12);
}
.cf-foot .cf-wrap { position: relative; z-index: 1; }
.cf-foot-glow { position: absolute; right: 8%; top: -30%; width: 40%; height: 80%; background: radial-gradient(closest-side, rgba(139, 147, 255, .22), transparent); pointer-events: none; }
.cf-foot-map {
  position: absolute; right: -4%; top: -6%; width: 58%; aspect-ratio: 845.2 / 458; background: #9aa3ff; opacity: .16; pointer-events: none;
  -webkit-mask: url(../images/world-map.svg) center / contain no-repeat; mask: url(../images/world-map.svg) center / contain no-repeat;
}
.cf-foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--cf-foot-line); flex-wrap: wrap; }
.cf-foot-brand img { height: 30px; width: auto; display: block; }
.cf-foot-brand p { margin: 14px 0 0; max-width: 420px; font-size: 15px; line-height: 1.55; color: #a9aee0; }
.cf-foot-social { display: flex; gap: 8px; margin-top: 22px; }
.cf-foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cf-foot-line); display: grid; place-items: center; color: #fff; text-decoration: none; }
.cf-foot-social a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cf-foot-social svg { width: 17px; height: 17px; }
.cf-foot-code { display: block; margin-bottom: 10px; font: 500 12.5px var(--cf-mono); letter-spacing: .04em; color: var(--cf-yellow); }
.cf-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cf-foot .cf-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); min-height: 46px; padding: 0 20px; }
.cf-foot .cf-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cf-foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cf-foot h4 { margin: 0 0 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #fff; }
.cf-foot ul { list-style: none; margin: 0; padding: 0; }
.cf-foot li { margin: 9px 0; }
.cf-foot li a { font-size: 14.5px; color: #a9aee0; text-decoration: none; }
.cf-foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cf-foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cf-foot-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.cf-foot-bottom p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); max-width: 900px; }
.cf-foot-status { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cf-foot-line); font-size: 12px; font-weight: 600; color: #fff; text-decoration: none; }
.cf-foot-status:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------
   Hero pills and endpoint chips (the illustration itself is untouched)
   ------------------------------------------------------------------ */
.cf-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cf-hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.cf-hero-meta .cf-chips li { font-size: 12.5px; }
.cf-hero-meta .cf-more { color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--cf-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cf-hero-meta .cf-more:hover { color: var(--cf-yellow); }

/* ------------------------------------------------------------------
   Worldwide coverage: dotted map with upcoming holidays,
   popular-country tiles and a searchable compact list of all countries
   ------------------------------------------------------------------ */
.cf-map-stage { position: relative; width: min(100%, 1000px); margin: 0 auto; aspect-ratio: 845.2 / 458; }
.cf-map-dots {
  position: absolute; inset: 0; background: #d3d8e6;
  -webkit-mask: url(../images/world-map.svg) center / contain no-repeat; mask: url(../images/world-map.svg) center / contain no-repeat;
}
.cf-ping { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cf-blue); animation: cf-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; animation-delay: var(--d, 0s); }
.cf-ping::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.cf-map-card {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--cf-line); box-shadow: var(--cf-shadow-md);
  font-size: 13px; font-weight: 600; color: var(--cf-ink); white-space: nowrap; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cf-map-card:hover { transform: translate(-50%, -54%); box-shadow: 0 16px 36px -16px rgba(15, 31, 61, .35); color: var(--cf-ink); text-decoration: none; }
.cf-map-card img { width: 16px; height: 16px; border-radius: 3px; display: block; }
.cf-map-card code { font: 500 12px var(--cf-mono); color: var(--cf-blue); background: none; padding: 0; }
@keyframes cf-ping {
  0% { box-shadow: 0 0 0 0 rgba(25, 29, 136, .45); }
  70% { box-shadow: 0 0 0 16px rgba(25, 29, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 29, 136, 0); }
}
.cf-sub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; }
.cf-sub-head h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--cf-ink); }
.cf-sub-head p { margin: 4px 0 0; font-size: 14px; color: var(--cf-muted); }
.cf-sub-head p b { color: var(--cf-ink); font-weight: 600; }
.cf-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.cf-tile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--cf-line); border-radius: 14px;
  background: #fff; color: var(--cf-body); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cf-tile:hover { border-color: #b9c0e8; transform: translateY(-2px); box-shadow: var(--cf-shadow-md); text-decoration: none; color: var(--cf-body); }
.cf-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cf-tile-top img { width: 28px; height: 28px; border-radius: 6px; display: block; }
.cf-tile-top code { font: 500 12px var(--cf-mono); letter-spacing: .04em; color: var(--cf-muted); background: none; padding: 0; }
.cf-tile-name { font-size: 15.5px; font-weight: 600; color: var(--cf-ink); line-height: 1.3; }
.cf-tile-next { font-size: 13px; color: var(--cf-body); line-height: 1.45; }
.cf-tile-next b { color: var(--cf-ink); font-weight: 600; }
.cf-tile-go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--cf-blue); }
.cf-tile-go svg { width: 12px; height: 12px; transition: transform .15s ease; }
.cf-tile:hover .cf-tile-go svg { transform: translateX(3px); }
.cf-search { position: relative; width: min(100%, 320px); }
.cf-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--cf-muted); pointer-events: none; }
.cf-search input { width: 100%; min-height: 42px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--cf-line); background: #fff; font: 500 14px var(--cf-font); color: var(--cf-ink); outline: none; }
.cf-search input:focus { border-color: var(--cf-blue); box-shadow: 0 0 0 3px rgba(25, 29, 136, .12); }
.cf-countries { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
.cf-country a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border-radius: 8px; font-size: 14px; color: var(--cf-ink); text-decoration: none; }
.cf-country a:hover { background: var(--cf-grey); color: var(--cf-blue); text-decoration: none; }
.cf-country code { font: 500 11.5px var(--cf-mono); color: var(--cf-muted); background: none; padding: 0; width: 22px; flex: none; }
.cf-country img { width: 16px; height: 16px; border-radius: 3px; flex: none; display: block; }
.cf-country span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-empty { padding: 24px; text-align: center; color: var(--cf-muted); font-size: 14px; }
.cf-missing { margin: 24px 0 0; font-size: 14px; color: var(--cf-muted); }
.cf-missing a { color: var(--cf-blue); font-weight: 600; }

/* ------------------------------------------------------------------
   Workflow tabs: one API, four production use cases, each
   showing the exact request it makes
   ------------------------------------------------------------------ */
.cf-workflows { background: linear-gradient(180deg, var(--cf-wash) 0%, #fff 100%); border-top: 1px solid var(--cf-line); border-bottom: 1px solid var(--cf-line); }
.cf-wf-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.cf-wf-card > *, .cf-wf-panel > * { min-width: 0; }
.cf-wf-tabs { padding: 16px; border-right: 1px solid var(--cf-line); background: var(--cf-grey); display: grid; gap: 4px; align-content: start; }
.cf-wf-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid transparent; border-radius: 12px; background: transparent; font: 600 14.5px var(--cf-font); color: var(--cf-body); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.cf-wf-tabs button small { font-size: 12.5px; font-weight: 400; color: var(--cf-muted); line-height: 1.4; }
.cf-wf-tabs button:hover { background: rgba(255, 255, 255, .7); }
.cf-wf-tabs button.is-active { background: #fff; border-color: var(--cf-line); color: var(--cf-ink); box-shadow: var(--cf-shadow-sm); }
.cf-wf-panel { padding: 32px; }
.cf-wf-panel h3 { margin: 0; font-size: 22px; font-weight: 600; color: var(--cf-ink); line-height: 1.25; }
.cf-wf-panel > p { margin: 8px 0 0; font-size: 15.5px; color: var(--cf-body); line-height: 1.6; }
.cf-wf-caps { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.cf-wf-caps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--cf-soft); color: var(--cf-blue); font-size: 13px; font-weight: 600; }
.cf-wf-caps svg { width: 13px; height: 13px; }
/* Code block — same dark slate as the existing API documentation blocks */
.cf-codeblock { margin-top: 18px; border-radius: 14px; background: #182036; color: #e9edf3; overflow: hidden; border: 1px solid #2b3648; }
.cf-codeblock-head { display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 4px 8px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.cf-codeblock-head .label { font: 600 12.5px var(--cf-mono); }
.cf-codeblock-head .status { margin-left: auto; font: 500 12px var(--cf-mono); color: #8be3a5; }
.cf-codeblock-head .copy { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; font: 500 12px var(--cf-font); cursor: pointer; }
.cf-codeblock-head .copy:hover { background: rgba(255, 255, 255, .1); }
.cf-codeblock-head .copy svg { width: 14px; height: 14px; }
.cf-codeblock pre { margin: 0; padding: 16px 18px; overflow: auto; font: 400 13px/1.6 var(--cf-mono); color: #e9edf3; background: none; border: 0; border-radius: 0; }
.cf-codeblock pre code { font: inherit; color: inherit; background: none; padding: 0; white-space: pre; }
.cf-codeblock .m { color: #8be3a5; font-weight: 500; }
.cf-codeblock .k { color: #ffd479; }
.cf-codeblock .s { color: #b4f0a3; }
.cf-codeblock .c { color: rgba(255, 255, 255, .45); }
.cf-ent-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--cf-line); border-bottom: 1px solid var(--cf-line); }
.cf-ent-controls > div { padding: 22px 24px; border-left: 1px solid var(--cf-line); }
.cf-ent-controls > div:first-child { border-left: 0; padding-left: 0; }
.cf-ent-controls strong { display: block; margin-top: 12px; font-size: 15px; color: var(--cf-ink); font-weight: 600; }
.cf-ent-controls span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--cf-body); line-height: 1.5; }

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */
.cf-reveal { opacity: 0; animation: cf-rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes cf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cf-reveal { animation: none; opacity: 1; }
  .cf-ping { animation: none; }
  .cf-btn, .cf-tile, .cf-map-card { transition: none; }
  .cf-btn:hover, .cf-tile:hover { transform: none; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .cf-nav-toggle { display: grid; }
  .cf-nav { position: static; }
  .cf-nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 20px;
    background: #151876; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55);
  }
  .cf-head.is-open .cf-nav-menu { display: block; }
  .cf-nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .cf-nav-links > li > a, .cf-nav-links > li > button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .cf-nav-panel, .cf-nav-panel.is-wide { position: static; min-width: 0; padding: 0 0 8px 8px; background: transparent; border: 0; box-shadow: none; grid-template-columns: 1fr; }
  .cf-nav-group.is-open > .cf-nav-panel, .cf-nav-group.is-open > .cf-nav-panel.is-wide { display: grid; }
  .cf-nav-panel a:hover { background: rgba(255, 255, 255, .06); }
  .cf-nav-panel strong { color: #fff; }
  .cf-nav-panel small { color: #a9aee0; }
  .cf-nav-panel .cf-ico { background: rgba(255, 255, 255, .1); color: #fff; }
  .cf-nav-status { display: none; }
  .cf-nav-actions { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 8px; }
  .cf-nav-actions .cf-btn { flex: 1; min-height: 46px; }
  .cf-wf-card { grid-template-columns: 1fr; }
  .cf-wf-tabs { border-right: 0; border-bottom: 1px solid var(--cf-line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-ent-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-ent-controls > div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--cf-line); }
  .cf-ent-controls > div:nth-child(-n+2) { border-top: 0; }
  .cf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cf-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-foot-map { width: 90%; right: -20%; top: 0; }
  .cf-sec-head { flex-direction: column; align-items: flex-start; }
  .cf-sec-head.center { align-items: center; }
  .cf-map-card { padding: 6px 8px; font-size: 11.5px; gap: 5px; }
  .cf-map-card code { font-size: 11px; }
  .cf-map-card.is-minor { display: none; }
  .cf-coverage { overflow-x: clip; }
}
@media (max-width: 640px) {
  .cf-wrap { width: min(100% - 32px, 1120px); }
  .cf-section { padding: 64px 0; }
  .cf-foot { padding-top: 48px; }
  .cf-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .cf-foot-top { padding-bottom: 28px; margin-bottom: 28px; }
  .cf-wf-tabs { grid-template-columns: 1fr; }
  .cf-wf-panel { padding: 22px; }
  .cf-ent-controls { grid-template-columns: 1fr; }
  .cf-ent-controls > div:nth-child(2) { border-top: 1px solid var(--cf-line); }
  .cf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cf-tile { padding: 14px; }
  .cf-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================================================================
   App components — forms, alerts, account shell, auth, checkout, tables.
   Ported from the Halo app layer, recoloured to the Calendarific tokens.
   ================================================================== */
/* Forms */
.cf-field { display: grid; gap: 6px; }
.cf-field + .cf-field, .cf-form-row + .cf-form-row, .cf-form-row + .cf-field, .cf-field + .cf-form-row { margin-top: 18px; }
.cf-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cf-form-row > .cf-field + .cf-field { margin-top: 0; }
.cf-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--cf-ink); }
.cf-label small, .cf-help { font-size: 13px; color: var(--cf-muted); font-weight: 400; }
.cf-input, .cf-select, .cf-textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d6dbe4; border-radius: 12px; background: #fff;
  font: 500 15px var(--cf-font); color: var(--cf-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-textarea { min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.cf-select {
  appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { outline: none; border-color: var(--cf-blue); box-shadow: 0 0 0 4px rgba(25, 29, 136, .12); }
.cf-input[readonly], .cf-input:disabled { background: var(--cf-grey); color: var(--cf-body); }
.cf-input[type="file"] { padding: 10px 14px; line-height: 1.4; font-size: 14px; }
.cf-input.is-invalid, .cf-select.is-invalid, .cf-textarea.is-invalid { border-color: #d64545; }
.cf-field-error { font-size: 13px; color: #b93636; }
.cf-input-group { display: flex; }
.cf-input-group .cf-input { border-radius: 0 12px 12px 0; min-width: 0; }
.cf-input-group .cf-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #d6dbe4; border-right: 0; border-radius: 12px 0 0 12px; background: var(--cf-grey); color: var(--cf-muted); font-weight: 600; }
.cf-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--cf-body); cursor: pointer; }
.cf-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cf-blue); flex: none; }
.cf-switch { position: relative; width: 42px; height: 24px; flex: none; }
.cf-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf-switch i { position: absolute; inset: 0; border-radius: 999px; background: #d6dbe4; transition: background .15s ease; }
.cf-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.cf-switch input:checked + i { background: var(--cf-blue); }
.cf-switch input:checked + i::after { transform: translateX(18px); }
.cf-switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(25, 29, 136, .15); }
.cf-radio-list { display: grid; gap: 10px; }
.cf-radio-list label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--cf-line); border-radius: 12px; font-size: 14.5px; color: var(--cf-ink); cursor: pointer; }
.cf-radio-list label:has(input:checked) { border-color: var(--cf-blue); box-shadow: 0 0 0 3px rgba(25, 29, 136, .12); }
.cf-radio-list input { width: 18px; height: 18px; accent-color: var(--cf-blue); flex: none; margin: 0; }
.cf-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.cf-form-card { padding: 28px; }
.cf-form-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--cf-ink); }
.cf-form-card > p { margin: 0 0 22px; font-size: 14.5px; color: var(--cf-body); }
.cf-btn-danger { background: #fdeaea; color: #b93636; }
.cf-btn-danger:hover { background: #fbdcdc; color: #9d2a2a; }
.cf-link { color: var(--cf-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(25, 29, 136, .35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cf-link:hover { text-decoration-color: var(--cf-blue); color: var(--cf-blue); }

/* Alerts */
.cf-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--cf-line); background: var(--cf-grey); font-size: 14.5px; line-height: 1.55; color: var(--cf-body); margin-bottom: 20px; }
.cf-alert svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.cf-alert h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: inherit; }
.cf-alert p { margin: 0; color: inherit; }
.cf-alert ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cf-alert-danger { background: #fdeaea; border-color: #f4c7c7; color: #8d2b2b; }
.cf-alert-success { background: var(--cf-green-soft); border-color: #bfe7cf; color: #135f3c; }
.cf-alert-warning { background: #fff4e5; border-color: #f2dfb3; color: #8a5a00; }
.cf-alert-info { background: var(--cf-soft); border-color: #d9dcf5; color: var(--cf-blue); }
.cf-alert .cf-btn { margin-top: 12px; }

/* Account shell */
.cf-app-shell { background: #fff; }
.cf-app { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 40px 0 96px; }
.cf-app > * { min-width: 0; }
.cf-app-nav { position: sticky; top: 84px; align-self: start; }
.cf-app-nav .who { display: flex; gap: 12px; align-items: center; padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--cf-line); }
.cf-app-nav .who strong { display: block; font-size: 14.5px; color: var(--cf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-app-nav .who small { display: block; font-size: 12.5px; color: var(--cf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-app-nav .who > div { min-width: 0; }
.cf-app-nav h4 { margin: 18px 12px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--cf-muted); font-weight: 600; }
.cf-app-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--cf-body); text-decoration: none; }
.cf-app-nav a:hover { background: var(--cf-grey); color: var(--cf-ink); text-decoration: none; }
.cf-app-nav a.is-active { background: var(--cf-soft); color: var(--cf-blue); font-weight: 600; }
.cf-app-nav a svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.cf-avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: var(--cf-grey) center / cover no-repeat; flex: none; border: 1px solid var(--cf-line); display: block; }
.cf-app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.cf-app-head h1 { margin: 0; font-size: 30px; font-weight: 600; color: var(--cf-ink); letter-spacing: -.012em; line-height: 1.15; }
.cf-app-head p { margin: 6px 0 0; font-size: 15px; color: var(--cf-body); }
.cf-app-head .cf-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-app-head .cf-btn svg { width: 15px; height: 15px; }
.cf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--cf-muted); margin-bottom: 12px; }
.cf-crumbs a { color: var(--cf-muted); text-decoration: none; }
.cf-crumbs a:hover { color: var(--cf-ink); }
.cf-crumbs svg { width: 14px; height: 14px; opacity: .6; }
.cf-app-main .cf-card + .cf-card, .cf-app-main .cf-card + .cf-alert, .cf-app-main .cf-alert + .cf-card { margin-top: 20px; }
.cf-app-main .cf-card:not(.cf-stat-card):not(.cf-table-card) { padding: 22px 24px; }
.cf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cf-card-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--cf-ink); }
.cf-card-head p { margin: 4px 0 0; font-size: 14px; color: var(--cf-body); }
.cf-card-head .cf-btn svg { width: 14px; height: 14px; }
.cf-hub-title { display: flex; gap: 14px; align-items: flex-start; }
.cf-hub-title .cf-ico { margin-top: 2px; }
.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.cf-app-main .cf-stats > .cf-card { margin-top: 0; }
.cf-stat-card { padding: 20px 22px; }
.cf-stat-card .cf-label-sm { font-size: 13px; color: var(--cf-muted); font-weight: 500; }
.cf-stat-card strong { display: block; font-size: 30px; margin-top: 6px; color: var(--cf-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cf-stat-card small { display: block; margin-top: 6px; font-size: 13px; color: var(--cf-muted); }
.cf-progress { height: 8px; border-radius: 999px; background: #e1e4e9; overflow: hidden; }
.cf-progress i { display: block; height: 100%; width: var(--w, 0%); background: var(--cf-blue); border-radius: 999px; }
.cf-progress.is-warn i { background: #d4890a; }
.cf-progress.is-bad i { background: #d64545; }
.cf-quota-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--cf-muted); }
.cf-quota-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--cf-blue); flex: none; }
.cf-quota-legend span { color: var(--cf-ink); font-weight: 600; }
.cf-key-box { display: flex; gap: 8px; align-items: stretch; }
.cf-key-box .cf-input { font-family: var(--cf-mono); font-size: 13.5px; }
.cf-key-box .cf-btn { flex: none; }
.cf-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.cf-subnav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cf-line); font-size: 14px; font-weight: 500; color: var(--cf-body); text-decoration: none; }
.cf-subnav a:hover { border-color: #c9ced8; color: var(--cf-ink); text-decoration: none; }
.cf-subnav a.is-active { background: var(--cf-blue); color: #fff; border-color: var(--cf-blue); }
.cf-kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 14.5px; }
.cf-kv dt { color: var(--cf-muted); font-weight: 500; }
.cf-kv dd { margin: 0; color: var(--cf-ink); font-weight: 500; overflow-wrap: anywhere; }
.cf-upload { display: flex; align-items: flex-start; gap: 18px; }
.cf-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--cf-grey); color: var(--cf-body); }
.cf-status-pill.is-good { background: var(--cf-green-soft); color: var(--cf-green); }
.cf-status-pill.is-warn { background: #fff4e5; color: #8a5a00; }
.cf-status-pill.is-bad { background: #fdeaea; color: #b93636; }
.cf-status-pill.is-legacy { background: #fff4e5; color: #8a5a00; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.cf-empty { padding: 40px 20px; text-align: center; color: var(--cf-muted); font-size: 14.5px; }
.cf-note { margin: 14px 0 0; font-size: 13.5px; color: var(--cf-muted); }
.cf-upgrade-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px !important; background: linear-gradient(135deg, var(--cf-wash), #fff 70%); }
.cf-upgrade-card h2 { margin: 8px 0 0; font-size: 19px; font-weight: 600; color: var(--cf-ink); }
.cf-upgrade-card p { margin: 8px 0 0; font-size: 14.5px; color: var(--cf-body); max-width: 520px; }
.cf-upgrade-card .cf-btn { flex: none; }
.cf-eyebrow { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--cf-soft); color: var(--cf-blue); font-size: 12.5px; font-weight: 600; }
.cf-sub-notes { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--cf-body); }
.cf-sub-notes li { display: flex; gap: 10px; align-items: flex-start; }
.cf-sub-notes svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--cf-green); }
.cf-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--cf-line); }
.cf-usage-chart { min-height: 320px; margin: 4px -8px 0; }
.cf-usage-chart .apexcharts-text { font-family: var(--cf-font) !important; fill: var(--cf-muted); }
.cf-usage-chart .apexcharts-tooltip { font-family: var(--cf-font) !important; border-color: var(--cf-line) !important; box-shadow: var(--cf-shadow-md) !important; }

/* Tables (account, admin-like lists) */
.cf-table-card { overflow: hidden; }
.cf-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.cf-table th, .cf-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--cf-line); vertical-align: middle; color: var(--cf-body); }
.cf-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cf-muted); font-weight: 600; background: var(--cf-grey); white-space: nowrap; }
.cf-table tbody tr:last-child td { border-bottom: 0; }
.cf-table tbody tr:hover td { background: #fbfbfd; }
.cf-table td strong { color: var(--cf-ink); font-weight: 600; }
.cf-table .cf-num { font-variant-numeric: tabular-nums; }
.cf-table .is-right { text-align: right; }
.cf-table a { color: var(--cf-blue); font-weight: 600; text-decoration: none; }
.cf-table a:hover { text-decoration: underline; }
.cf-app-main .cf-card-head + .cf-table-scroll { margin: 0 -24px -22px; }
.cf-pagination { display: flex; justify-content: center; margin-top: 24px; }
.cf-pagination nav { width: 100%; }
.cf-pagination ul.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.cf-pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cf-line); font-size: 14px; color: var(--cf-body); background: #fff; text-decoration: none; }
.cf-pagination .page-link:hover { border-color: #c9ced8; color: var(--cf-ink); }
.cf-pagination .active .page-link { background: var(--cf-blue); color: #fff; border-color: var(--cf-blue); }
.cf-pagination .disabled .page-link { opacity: .4; pointer-events: none; }

/* Auth */
.cf-auth { display: grid; justify-items: center; padding: 56px 0 96px; background: radial-gradient(60% 50% at 50% 0%, rgba(25, 29, 136, .10), rgba(25, 29, 136, 0) 60%), linear-gradient(180deg, var(--cf-wash) 0%, #ffffff 50%); }
.cf-auth .cf-wrap { display: grid; justify-items: center; }
.cf-auth-card { width: min(100%, 440px); padding: 32px; }
.cf-auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; color: var(--cf-ink); letter-spacing: -.012em; }
.cf-auth-card > p { margin: 0 0 22px; font-size: 14.5px; color: var(--cf-body); }
.cf-auth-card .cf-form-actions .cf-btn { width: 100%; }
.cf-auth-card .cf-check { font-size: 14px; margin-top: 16px; }
.cf-auth-card .cf-check a { color: var(--cf-blue); font-weight: 600; }
.cf-auth-card .cf-alert { margin: 0 0 18px; }
.cf-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12px; color: var(--cf-muted); text-transform: uppercase; letter-spacing: .06em; }
.cf-divider::before, .cf-divider::after { content: ""; flex: 1; border-top: 1px solid var(--cf-line); }
.cf-providers { display: grid; gap: 8px; }
.cf-providers .cf-btn { width: 100%; }
.cf-providers .cf-btn svg { width: 18px; height: 18px; }
.cf-auth-alt { width: min(100%, 440px); text-align: center; font-size: 14.5px; margin: 20px 0 0; color: var(--cf-body); }
.cf-auth-alt a { color: var(--cf-blue); font-weight: 600; }
.cf-auth-terms { margin: 14px 0 0; font-size: 13px; color: var(--cf-muted); text-align: center; }
.cf-auth-terms a { color: var(--cf-blue); font-weight: 600; }

/* Checkout */
.cf-checkout { padding: 40px 0 96px; }
.cf-checkout h1 { margin: 18px 0 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; color: var(--cf-ink); letter-spacing: -.012em; line-height: 1.15; }
.cf-checkout-lead { margin: 12px 0 26px; font-size: 16px; color: var(--cf-body); max-width: 620px; line-height: 1.6; }
.cf-checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cf-summary { padding: 28px; position: sticky; top: 84px; }
.cf-summary h2 { margin: 12px 0 0; font-size: 24px; font-weight: 600; color: var(--cf-ink); }
.cf-summary .cf-plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.cf-summary .cf-plan-price strong { font-size: 34px; font-weight: 600; color: var(--cf-ink); letter-spacing: -.02em; }
.cf-summary .cf-plan-price span { font-size: 14px; color: var(--cf-muted); }
.cf-summary-label { margin: 20px 0 0; font-size: 14px; color: var(--cf-muted); }
.cf-summary ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--cf-body); }
.cf-summary li { display: flex; gap: 10px; align-items: flex-start; }
.cf-summary li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--cf-green); }
.cf-summary li .cf-x { color: var(--cf-muted); }
.cf-summary-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--cf-line); font-size: 13.5px; color: var(--cf-muted); }
.cf-pay-options { display: grid; gap: 18px; }
.cf-pay-card { padding: 26px 28px; }
.cf-pay-card h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--cf-ink); }
.cf-pay-note { margin: 12px 0 0; font-size: 13.5px; color: var(--cf-muted); }
.cf-pay-submit { margin-top: 18px; width: 100%; }
.cf-pm-list { display: grid; gap: 10px; }
.cf-pm-radio, .cf-pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--cf-line); border-radius: 12px; font-size: 14.5px; color: var(--cf-ink); }
.cf-pm-radio { cursor: pointer; }
.cf-pm-radio:has(input:checked) { border-color: var(--cf-blue); box-shadow: 0 0 0 3px rgba(25, 29, 136, .12); }
.cf-pm-radio input { width: 18px; height: 18px; accent-color: var(--cf-blue); flex: none; margin: 0; }
.cf-card-brand { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--cf-grey); font: 700 11px/1 var(--cf-mono); letter-spacing: .04em; color: var(--cf-ink); flex: none; text-transform: uppercase; }
.cf-pm-number { font-family: var(--cf-mono); font-size: 14px; letter-spacing: .04em; }
.cf-pm-exp { margin-left: auto; font: 500 13px var(--cf-mono); color: var(--cf-muted); }
.cf-pm-row .cf-pm-delete { margin-left: 8px; color: #b93636; font-weight: 600; text-decoration: none; }
.cf-pm-row .cf-pm-delete:hover { text-decoration: underline; }
.cf-pm-empty { font-size: 14.5px; color: var(--cf-muted); }
.cf-spinner { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cf-muted); padding: 8px 0; }
.cf-spinner i { width: 18px; height: 18px; border: 2px solid var(--cf-line); border-top-color: var(--cf-blue); border-radius: 50%; animation: cf-spin 1s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
#payment-element, #pm-element { margin-bottom: 6px; }

/* Print */
@media print {
  .cf-head, .cf-foot, .cf-app-nav { display: none !important; }
}

/* Responsive (app layer) */
@media (max-width: 900px) {
  .cf-app { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .cf-app-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border: 1px solid var(--cf-line); border-radius: 14px; }
  .cf-app-nav .who, .cf-app-nav h4 { display: none; }
  .cf-app-nav a { padding: 7px 10px; border: 1px solid var(--cf-line); border-radius: 999px; font-size: 13.5px; }
  .cf-checkout-grid { grid-template-columns: 1fr; }
  .cf-summary { position: static; }
}
@media (max-width: 600px) {
  .cf-form-row { grid-template-columns: 1fr; }
  .cf-auth-card { padding: 24px; }
  .cf-form-card { padding: 22px; }
  .cf-app-head h1 { font-size: 26px; }
  .cf-kv { grid-template-columns: 1fr; gap: 4px 0; }
  .cf-kv dt { margin-top: 10px; }
  .cf-upgrade-card { flex-direction: column; align-items: flex-start; }
  .cf-app-main .cf-card-head + .cf-table-scroll { margin: 0 -22px -22px; }
  .cf-pm-row { flex-wrap: wrap; row-gap: 6px; }
  .cf-pm-row .cf-pm-delete { margin-left: auto; }
}

/* Inline code inside app cards and notes (Tabler paints <code> pink by default) */
.cf-app-main code, .cf-note code, .cf-alert code, .cf-auth-card code { font: 500 13px var(--cf-mono); background: var(--cf-grey); padding: 2px 6px; border-radius: 6px; color: var(--cf-ink); overflow-wrap: anywhere; }
.cf-app-main .cf-key-box code, .cf-app-main .cf-input { background: #fff; }
.cf-input[readonly].cf-input-plain { background: #fff; color: var(--cf-ink); }

/* Prose pages — about, terms, privacy, cookies, code samples, supported countries */
.cf-prose-page { padding: 0 0 96px; }
.cf-page-head { padding: 52px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--cf-line); background: radial-gradient(60% 70% at 0% 0%, rgba(25, 29, 136, .07), rgba(25, 29, 136, 0) 60%), linear-gradient(180deg, var(--cf-wash) 0%, #fff 100%); }
.cf-page-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--cf-soft); color: var(--cf-blue); font-size: 13px; font-weight: 600; line-height: 1; margin-bottom: 16px; }
.cf-page-head h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 600; color: var(--cf-ink); letter-spacing: -.015em; line-height: 1.12; max-width: 820px; text-wrap: balance; }
.cf-page-head .lead { margin: 14px 0 0; max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--cf-body); }
.cf-prose { max-width: 800px; }
.cf-prose.cf-prose-wide { max-width: none; }
.cf-prose h2 { margin: 44px 0 0; font-size: 26px; font-weight: 600; color: var(--cf-ink); letter-spacing: -.012em; line-height: 1.2; }
.cf-prose h3, .cf-prose h4, .cf-prose h5 { margin: 28px 0 0; font-size: 19px; font-weight: 600; color: var(--cf-ink); }
.cf-prose h2 + hr, .cf-prose h3 + hr { display: none; }
.cf-prose p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--cf-body); }
.cf-prose ul, .cf-prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 16px; color: var(--cf-body); }
.cf-prose li::marker { color: var(--cf-blue); }
.cf-prose a:not(.cf-btn) { color: var(--cf-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(25, 29, 136, .35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cf-prose a:not(.cf-btn):hover { text-decoration-color: var(--cf-blue); }
.cf-prose hr { border: 0; border-top: 1px solid var(--cf-line); margin: 32px 0; }
.cf-prose strong { color: var(--cf-ink); }
.cf-prose img, .cf-prose-img { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 0 0 24px; }
.cf-prose pre { margin: 14px 0 0; padding: 16px 18px; border-radius: 14px; background: #182036; color: #e9edf3; border: 1px solid #2b3648; font: 400 13px/1.6 var(--cf-mono); overflow: auto; }
.cf-prose pre code { font: inherit; color: inherit; background: none; padding: 0; }
.cf-prose p code, .cf-prose li code { font: 500 13px var(--cf-mono); background: var(--cf-grey); padding: 2px 6px; border-radius: 6px; color: var(--cf-ink); }
.cf-prose .cf-table-wrap { margin-top: 20px; }
.cf-prose .cf-table td { vertical-align: top; }
.cf-prose .cf-table td:first-child a { font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .cf-page-head { padding: 36px 0 28px; margin-bottom: 28px; } .cf-prose h2 { font-size: 22px; } }
.cf-page-head code { font: 500 .85em var(--cf-mono); background: rgba(25, 29, 136, .08); padding: 2px 7px; border-radius: 6px; color: var(--cf-blue); }

/* ==================================================================
   Shared pricing partials (plan cards, enterprise strip, FAQ) inside
   .cf-home-section — used by the home page, /pricing and /checkout/plans.
   ================================================================== */
.cf-home-section .card { border: 1px solid var(--cf-line); border-radius: 16px; box-shadow: none; background: #fff; }
.cf-home-section .card .card-body { padding: 26px 24px 24px; }
.cf-home-section .card .subtitle.text-primary { color: var(--cf-blue) !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.cf-home-section .card .h1.text-dark { color: var(--cf-ink) !important; font-size: 30px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.cf-home-section .card p.text-muted.text-center { white-space: nowrap; }
.cf-home-section .card .h5.text-dark { color: var(--cf-body) !important; font-size: 15px; font-weight: 600; line-height: 1.4; display: inline-block; padding: 8px 0; }
.cf-home-section .card p.text-muted { color: var(--cf-muted) !important; }
.cf-home-section .card .badge { border-radius: 999px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 5px 10px; font-size: 12px; }
.cf-home-section .card .badge.bg-orange { background: var(--cf-yellow) !important; color: #002407; }
.cf-home-section .card hr { border-color: var(--cf-line); opacity: 1; margin: 18px 0 6px; }
.cf-home-section .card .fa-ul li { color: var(--cf-body); font-size: 15px; }
.cf-home-section .card .fa-li.text-primary { color: var(--cf-blue) !important; }
.cf-home-section .card .fa-li.text-muted { color: #b3bccb !important; }
.cf-home-section .card .btn { border-radius: 999px; font-weight: 600; padding: 10px 18px; box-shadow: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.cf-home-section .card .btn-primary { background: var(--cf-blue); border-color: var(--cf-blue); color: #fff; }
.cf-home-section .card .btn-primary:hover, .cf-home-section .card .btn-primary:focus { background: #151876; border-color: #151876; color: #fff; }
.cf-home-section .card .btn:not(.btn-primary) { background: #fff; border-color: var(--cf-line); color: var(--cf-ink); }
.cf-home-section .card .btn:not(.btn-primary):hover { background: var(--cf-grey); border-color: #c9ced8; color: var(--cf-ink); }
.cf-home-section .card .btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(25, 29, 136, .18); }
.cf-home-section .card:has(.ribbon) { border-color: rgba(25, 29, 136, .45); }
.cf-home-section .ribbon.bg-green { background: var(--cf-yellow) !important; color: #002407; }
.cf-home-section .card .h3 { color: var(--cf-ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.cf-home-section .form-check-label.fs-3 { font-size: 15px !important; font-weight: 600; color: var(--cf-ink); }
.cf-home-section .form-check-input.price-toggle { width: 40px; height: 22px; cursor: pointer; }
.cf-home-section .form-check-input.price-toggle:checked { background-color: var(--cf-blue); border-color: var(--cf-blue); }
.cf-home-section .form-check-input.price-toggle:focus { border-color: var(--cf-blue); box-shadow: 0 0 0 4px rgba(25, 29, 136, .12); }
.cf-home-section .accordion-item { border: 1px solid var(--cf-line) !important; border-radius: 12px !important; margin-bottom: 10px; background: #fff; overflow: hidden; }
.cf-home-section .accordion-button { font-weight: 600; color: var(--cf-ink); font-size: 15.5px; padding: 16px 20px; background: #fff; box-shadow: none; }
.cf-home-section .accordion-button:not(.collapsed) { color: var(--cf-blue); background: #fff; }
.cf-home-section .accordion-button:focus { box-shadow: 0 0 0 4px rgba(25, 29, 136, .12); z-index: 1; position: relative; }
.cf-home-section .accordion-button::after { opacity: .6; }
.cf-home-section .accordion-body { color: var(--cf-body); font-size: 15px; line-height: 1.65; padding: 0 20px 18px; }
.cf-home-section .accordion-body p { margin-bottom: 10px; }
.cf-home-section .accordion-body p:last-child { margin-bottom: 0; }

/* ==================================================================
   Holiday listing pages: /holidays/{year}/{cc}, /months/{m}/{y}, /holiday/{slug}
   ================================================================== */
.cf-table-wrap { border: 1px solid var(--cf-line); border-radius: 14px; overflow: hidden; background: #fff; }
.cf-holidays { padding: 28px 0 88px; }
.cf-holidays .cf-ad { margin: 0 0 28px; }
.cf-holidays .cf-ad:empty { display: none; }
.cf-holidays-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cf-holidays-main { min-width: 0; }
.cf-holidays-head { padding: 6px 0 22px; border-bottom: 1px solid var(--cf-line); margin-bottom: 22px; }
.cf-holidays-head .cf-page-kicker { margin-bottom: 14px; }
.cf-holidays-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; color: var(--cf-ink); letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
.cf-holidays-head .cf-share { margin-top: 18px; }
.cf-holidays-intro p, .cf-holidays-outro p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--cf-body); }
.cf-holidays-intro p:last-child, .cf-holidays-outro p:last-child { margin-bottom: 0; }
.cf-holidays-intro a, .cf-holidays-outro a { color: var(--cf-blue); font-weight: 600; text-decoration: none; }
.cf-holidays-intro a:hover, .cf-holidays-outro a:hover { text-decoration: underline; }
.cf-holidays .cf-table-wrap { margin-top: 26px; }
.cf-holidays .cf-table td.cf-date, .cf-holidays .cf-table td.cf-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-holidays .cf-table td.cf-num strong { font-weight: 600; }
.cf-holidays-outro { margin-top: 26px; }
.cf-aside { min-width: 0; }
.cf-aside-ad, .cf-aside-cta, .cf-aside-list { margin-bottom: 20px; }
.cf-aside-ad:empty { display: none; }
.cf-aside-cta { padding: 22px; border-radius: 16px; border: 1px solid var(--cf-line); background: linear-gradient(180deg, var(--cf-wash) 0%, #fff 100%); }
.cf-aside-cta .cf-eyebrow { margin-bottom: 12px; }
.cf-aside-cta h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--cf-ink); letter-spacing: -.01em; line-height: 1.25; }
.cf-aside-cta p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--cf-body); }
.cf-aside-cta .cf-btn { width: 100%; justify-content: center; }
.cf-aside-link { display: block; text-align: center; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--cf-blue); text-decoration: none; }
.cf-aside-link:hover { text-decoration: underline; }
.cf-aside-list { border: 1px solid var(--cf-line); border-radius: 16px; overflow: hidden; background: #fff; }
.cf-aside-list h3 { margin: 0; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cf-muted); font-weight: 600; background: var(--cf-grey); border-bottom: 1px solid var(--cf-line); }
.cf-aside-list ul { list-style: none; margin: 0; padding: 0; }
.cf-aside-list li + li { border-top: 1px solid var(--cf-line); }
.cf-aside-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14.5px; font-weight: 500; color: var(--cf-ink); text-decoration: none; }
.cf-aside-list a:hover { background: var(--cf-grey); color: var(--cf-blue); }
.cf-aside-list a svg { width: 14px; height: 14px; flex: none; color: var(--cf-muted); }
@media (max-width: 900px) {
  .cf-holidays { padding: 20px 0 64px; }
  .cf-holidays-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .cf-holidays .cf-table th, .cf-holidays .cf-table td { padding: 11px 12px; font-size: 14px; }
  .cf-holidays .cf-table td.cf-date { white-space: normal; }
  .cf-holidays-head h1 { font-size: 26px; }
}
