/* ChargeSecured: the look of the site's own pages (demo.html, support.html), the landing page's to the letter.
   index.html keeps the same rules inline (its tokens at the top of its head, the apple.com layer at the end of its
   main style), so a change to the look is made in both. Link this after the kit's stylesheets. */

/* ---------- the two appearances (index.html's tokens): light is white and #f5f5f7 with ink #1d1d1f and the green
   deepened to #08794a; dark is black and #1c1c1e with the brand's own #1fbf75. Body grey 7:1 and more on both */
:root {
  --p-bg: #ffffff; --p-surface: #f5f5f7; --p-ink: #1d1d1f; --p-muted: #515154;
  --p-accent: #08794a; --p-accent-ink: #ffffff; --p-action: #08794a; --p-action-ink: #ffffff;
  --p-inv-bg: #000000; --p-inv-surface: #1c1c1e; --p-inv-ink: #f5f5f7; --p-inv-muted: #a8a8ad;
  --p-inv-accent: #1fbf75; --p-inv-accent-ink: #04140b; --p-inv-action: #1fbf75; --p-inv-action-ink: #04140b;
  --ground-bg: #f5f5f7; --ground-surface: #fbfbfd; --ground-ink: #1d1d1f; --ground-muted: #515154; --ground-accent: #08794a;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.025em;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --p-bg: #000000; --p-surface: #111112; --p-ink: #f5f5f7; --p-muted: #a8a8ad;
  --p-accent: #1fbf75; --p-accent-ink: #04140b; --p-action: #1fbf75; --p-action-ink: #04140b;
  --p-inv-bg: #ffffff; --p-inv-surface: #f5f5f7; --p-inv-ink: #1d1d1f; --p-inv-muted: #515154;
  --p-inv-accent: #08794a; --p-inv-accent-ink: #ffffff; --p-inv-action: #08794a; --p-inv-action-ink: #ffffff;
  --ground-bg: #1c1c1e; --ground-surface: #232325; --ground-ink: #f5f5f7; --ground-muted: #a8a8ad; --ground-accent: #1fbf75;
  color-scheme: dark;
}

/* ---------- the header's and the footer's lockups, the footer's legal row and note (index.html) */
.nav__logo img { height: 44px; }
@media (max-width: 639px) { .nav__logo img { height: 36px; } }
.footer__logo img { height: auto; width: min(100%, 280px); }
@media (max-width: 639px) { .footer__logo img { width: min(100%, 248px); } }
.footer__legal-l { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-5); }
@media (max-width: 639px) { .footer__legal-l { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } .footer__legal-l > span:first-child { grid-column: 1 / -1; } }
.footer__note { color: var(--muted); font-size: var(--t-small); max-width: 80ch; }
.socials a { justify-content: center; }

/* ---------- the apple.com manner (index.html's layer): the system face at 600, a translucent header, pill buttons,
   links in the green with a chevron, flat tiles with 28px corners, light and dark */
html[data-radius="round"] { --r-lg: 28px; }
@media (max-width: 639px) { html[data-radius="round"] { --r-lg: 22px; } }
@media (min-width: 640px) { :root { --nav: 64px; } }
:root { --sheet: #fff; --sheet-sh: 0 24px 60px -24px rgb(0 0 0 / .28); --node: #f5f5f7; --head-muted: #6e6e73; }
:root[data-theme="dark"] { --sheet: #1c1c1e; --sheet-sh: 0 30px 70px -24px rgb(0 0 0 / .85); --node: #2c2c2e; --head-muted: #98989d; }
:is(h1, h2) .muted { color: var(--head-muted); }
body { letter-spacing: -0.011em; }
::selection { background: color-mix(in srgb, var(--p-accent) 24%, transparent); }
.ground-surface { --ground-bg: #fff; --ground-surface: #fff; }
:root[data-theme="dark"] .ground-surface { --ground-bg: #1c1c1e; --ground-surface: #232325; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 360ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

.nav { background: transparent; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--p-bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav.is-open::before { background: var(--bg); }
.nav__menu { background: color-mix(in srgb, var(--p-bg) 92%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav__link { font-size: 14px; font-weight: 400; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.nav__link:hover, .nav__link:focus-visible, .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { color: var(--ink); }
.nav__link::before { content: none; }
.nav__actions { gap: var(--s-3); }
.nav__actions .btn { height: 36px; padding-inline: 16px; font-size: 14px; }
.nav__toggle { border-color: transparent; }
.menu-col a:hover { color: var(--accent); }
:root[data-theme="dark"] .logo-light, :root:not([data-theme="dark"]) .logo-dark { display: none; }
.theme-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: color-mix(in srgb, var(--ink) 80%, transparent); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.theme-btn::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.theme-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-btn:active { transform: scale(.92); }
.theme-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 220ms var(--ease), transform 420ms cubic-bezier(.2, .9, .3, 1.2); }
:root:not([data-theme="dark"]) .theme-btn__sun, :root[data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
@media (prefers-reduced-motion: reduce) { .theme-btn, .theme-btn svg { transition: none; } }
/* a tablet keeps the button beside the menu button; a phone has room for the logo, it and the menu button only, so
   the header's Book a demo waits in the menu's sheet (these pages have no bar at the foot) */
@media (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .theme-btn { display: inline-grid; }
  .nav.is-open .theme-btn { display: none; }
}
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions > .btn--primary { display: none; }
  .theme-btn { width: 44px; height: 44px; }
  .theme-btn::before { inset: 0; }
}

.faq :is(.faq__item > h3, summary) { font-weight: 600; letter-spacing: -0.014em; }
.hero .hero__lead { letter-spacing: -0.016em; }
.hero__lead > b { display: block; font-weight: 600; color: var(--ink); text-wrap: balance; }
.hero__lead > .muted { display: block; }
.step-num { width: 28px; height: 28px; border: 0; background: var(--ground-bg); color: var(--ink); font-weight: 600; font-size: 13px; }

html[data-buttons="pill"] .btn--primary::after { content: none; display: none; }
html[data-buttons="pill"] .btn--secondary, html[data-buttons="pill"] .btn-row > .btn--secondary { background-color: transparent; border-color: transparent; padding-inline: 0; color: var(--accent); text-decoration: none; }
html[data-buttons="pill"] .btn--secondary { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 1px; background-position: right 15px bottom 12px;
  transition: background-size 220ms var(--ease), color var(--dur) var(--ease); }
html[data-buttons="pill"] .btn--secondary:hover, html[data-buttons="pill"] .btn--secondary:focus-visible { background-color: transparent; border-color: transparent; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: calc(100% - 15px) 1px; background-position: left 0 bottom 12px; }
html[data-buttons="pill"] .btn--secondary::after { content: ""; flex: none; width: 11px; height: 11px; margin-left: -4px; background: currentColor;
  -webkit-mask: var(--btn-glyph) center / contain no-repeat; mask: var(--btn-glyph) center / contain no-repeat; transition: transform var(--dur) var(--ease); }
.link { --m-rest: transparent; color: var(--accent); font-weight: 400; gap: 3px; text-decoration: none; }
.link::after { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: var(--btn-glyph) center / contain no-repeat; mask: var(--btn-glyph) center / contain no-repeat; }

.footer ul { font-size: 13px; gap: 10px; }
.footer ul a { color: var(--muted); transition: color var(--dur) var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer :is(h3, h4):not(.closing__cta *) { font-size: 13px; font-weight: 600; color: var(--ink); }
.socials a { border-color: transparent; background: var(--ground-bg); color: var(--muted); }
.socials a:hover { border-color: transparent; color: var(--ink); }

/* ================================================================================================================
   a page of its own: the first screen holds the words and the form, side by side and centred under the header; the
   sections under it are as tall as what they hold, and the page ends on the footer's directory (no close: the
   form is the page's one action)
   ================================================================================================================ */
.sub-hero h1 { font-size: var(--ly-h1-col); }
.sub-hero .hero__lead { margin-top: var(--s-5); max-width: 40ch; }
.sub-grid { row-gap: var(--s-7); }
/* a desktop: the words and what follows them on the left, centred together on the form beside them, which is the
   height it needs; on a tall screen the pair keeps a laptop's shape, centred under the header */
@media (min-width: 1024px) {
  /* a screen at most 900px tall, as the landing page's sections on a tall monitor (so the next section starts under
     it rather than a band of empty page), and at least what it holds on a short laptop screen */
  main > .sub-hero { height: auto; min-height: min(100svh, 900px); display: flex; flex-direction: column; }
  .sub-hero > .wrap { flex: 1 0 auto; height: auto; display: flex; flex-direction: column; justify-content: center; }
  .sub-hero > .wrap > .hero-text { height: auto; }
  .sub-grid { grid-template-rows: auto auto; align-content: center; row-gap: 0; }
  .sub-intro { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
  .sub-grid > .sub-more { grid-column: 1 / span 5; grid-row: 2; align-self: start; margin-top: var(--s-7); }
  .sub-form { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: center; }
}
/* a tablet and a phone: one column (the words, the form, then the rest), as tall as it needs from the header down */
@media (max-width: 1023px) {
  main > .sub-hero { height: auto; min-height: 0; }
  .sub-hero > .wrap > .hero-text { height: auto; }
}
@media (min-width: 640px) and (max-width: 1023px) { .sub-hero .sub-intro, .sub-hero .sub-more { max-width: 620px; } }

/* the footer: the landing page's directory, under the last section's ground */
.sub-footer { border-top: 0; padding-block: 72px 32px; }
@media (max-width: 639px) { .sub-footer { padding-block: 56px 24px; } }

/* the sections under the first screen: their content's height, the kit's padding */
:root main > section.sub-section:not(.hero) { height: auto; min-height: 0; padding: var(--padt) 0 var(--padb); }
@media (min-width: 1024px) { :root main > section.sub-section:not(.hero) { padding-bottom: var(--padt); } }

/* the steps after a request (demo) and the ways in (support): rows on hairlines, a title and a grey line each */
.sub-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sub-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); align-items: start; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.sub-list > li > .step-num { margin-top: -2px; }
.sub-list__t { display: block; font-weight: 600; letter-spacing: -0.012em; }
.sub-list__d { display: block; color: var(--muted); font-size: var(--t-small); line-height: 1.5; margin-top: 2px; text-wrap: pretty; }
/* the support page's ways in: each row is its link, the chevron at its end */
.sub-list--links > li { grid-template-columns: minmax(0, 1fr) auto; padding: 0; }
.sub-list--links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column: 1 / -1; align-items: center; column-gap: var(--s-4); padding-block: var(--s-4); color: inherit; text-decoration: none; }
.sub-list--links a::after { content: ""; width: 12px; height: 12px; background: var(--accent); -webkit-mask: var(--btn-glyph) center / contain no-repeat; mask: var(--btn-glyph) center / contain no-repeat; transition: transform var(--dur) var(--ease); }
.sub-list--links a:hover .sub-list__t { color: var(--accent); }
.sub-list--links a:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .sub-list--links a::after { transition: none; } }

/* ---------- the form, on a grey tile: labels above 48px fields, two to a row from 640, the button across the tile */
.sub-form { padding: 40px; border-radius: var(--r-lg); background: var(--ground-bg); }
@media (max-width: 1279px) { .sub-form { padding: 32px; } }
@media (max-width: 639px) { .sub-form { padding: 24px 20px; } }
.sub-form__head { margin-bottom: var(--s-5); }
.sub-form__head h2 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.016em; }
.sub-form__head p { margin-top: var(--s-1); color: var(--muted); font-size: var(--t-small); }
.cs-form { --error: color-mix(in oklab, #d92d20 72%, var(--ink)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cs-form > :is(.field--full, .cs-form__foot) { grid-column: 1 / -1; }
@media (max-width: 639px) { .cs-form { grid-template-columns: minmax(0, 1fr); } }
.cs-form .field { color: var(--ink); }
.cs-form .field > label { font-size: 14px; font-weight: 500; }
.cs-form .field > label small { font-size: inherit; font-weight: 400; color: var(--muted); }
.cs-form .field :is(input, select, textarea) { height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--p-bg); color: var(--ink);
  font: 400 16px/1.4 var(--font-text); letter-spacing: -0.011em; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cs-form .field :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--ink) 34%, transparent); }
.cs-form .field :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 26%, transparent); }
.cs-form .field textarea { height: auto; min-height: 132px; padding-block: 12px; resize: vertical; }
.cs-form .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.cs-form .field input[type="datetime-local"] { min-width: 0; }
.cs-form .field input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.cs-form .field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--error); padding-inline: 13px; }
.cs-form .field textarea[aria-invalid="true"] { padding-block: 11px; }
.cs-form .field__error { font: 500 14px/1.4 var(--font-text); color: var(--error); }
.cs-form .field__error[hidden] { display: none; }
.cs-form .field__error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: var(--s-2);
  border-radius: 50%; background: var(--error); color: var(--p-bg); font-size: 12px; line-height: 1; vertical-align: -2px; }
:root[data-theme="dark"] .cs-form { --error: #ff8a82; }
/* the bot trap the client's form service reads (left empty by people): off the screen, out of the tab order */
.cs-form__trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cs-form__foot { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.cs-form__foot .btn { width: 100%; height: 50px; font-size: 16px; font-weight: 500; }
.cs-form__foot .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.cs-form__status { min-height: 0; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cs-form__status:empty { display: none; }
.cs-form__status[data-tone="ok"] { color: var(--accent); font-weight: 500; }
.cs-form__status[data-tone="err"] { color: var(--error); font-weight: 500; }
.cs-form__note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.cs-form__note a { color: var(--accent); text-decoration: none; }
.cs-form__note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the questions (support): every answer open, as on the landing page, under the heading in two columns
   that end level (a question never split between them), each on its hairline; one column under 1024 */
.sub-faq__list { columns: 2; column-gap: 64px; }
@media (max-width: 1023px) { .sub-faq__list { columns: 1; } }
.sub-faq__list > .faq__item, .sub-faq__list > .faq__item:first-child { break-inside: avoid; padding: 28px 0; border-bottom: 0; border-top: 1px solid var(--line); }
@media (max-width: 639px) { .sub-faq__list > .faq__item, .sub-faq__list > .faq__item:first-child { padding: 20px 0; } }
.sub-faq__list p a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- the onboarding (demo) and the legal centre (support): tiles on one row, flat, 28px corners */
.sub-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.sub-head h2 { max-width: 22ch; }
.sub-head p { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
/* a heading with its one line at the right, on the heading's baseline */
@media (min-width: 640px) { .sub-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--s-6); } }
.sub-tiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--card-gap); margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .sub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .sub-tiles { grid-template-columns: minmax(0, 1fr); } }
.sub-tile { display: flex; flex-direction: column; gap: var(--s-2); padding: 28px; border-radius: var(--r-lg); background: var(--ground-bg); }
@media (max-width: 639px) { .sub-tile { padding: 22px 20px; } }
.sub-tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.016em; }
.sub-tile p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.sub-tile .link { margin-top: auto; padding-top: var(--s-3); font-size: var(--t-small); }
/* the onboarding's durations, set large: the one figure each stage is read by (after its name in the markup, so a
   screen reader hears the stage first) */
.sub-tile > .sub-tile__big { order: -1; font: var(--display-weight) clamp(30px, 2.2vw + 6px, 40px)/1.05 var(--font-display); letter-spacing: -0.025em; color: var(--ink); margin-bottom: var(--s-4); font-variant-numeric: tabular-nums; }

/* ---------- the team page (team.html): centred, four people a row, two on phones and tablets ---------- */
.team-hero { --pic-bg: #e3e3e8; --pic-fg: #aeaeb2; }
:root[data-theme="dark"] .team-hero { --pic-bg: #2c2c2e; --pic-fg: #636366; }
.sub-hero > .wrap > .team { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.team__intro { display: grid; justify-items: center; }
.team__intro .hero__lead { margin-inline: auto; max-width: 34ch; text-wrap: balance; }
.team__people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); width: 100%; max-width: 1040px; margin: var(--s-9) 0 0; padding: 0; list-style: none; }
.team__person { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.team__pic { width: min(100%, 176px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--pic-bg); }
.team__pic svg { display: block; width: 100%; height: 100%; fill: var(--pic-fg); }
img.team__pic { height: auto; object-fit: cover; }
.team__name { margin: var(--s-5) 0 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; }
.team__role { margin: var(--s-1) 0 0; color: var(--muted); font-size: 1.0625rem; }
.team__more { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-7); margin: var(--s-9) 0 0; }
@media (max-width: 1023px) { .team__people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; } }
@media (max-width: 639px) {
  .team__people { gap: var(--s-6) var(--s-5); margin-top: var(--s-8); }
  .team__pic { width: min(100%, 136px); }
  .team__name { margin-top: var(--s-4); font-size: 1.1875rem; }
  .team__role { font-size: 0.9375rem; }
  .team__more { margin-top: var(--s-8); }
}
@media (forced-colors: active) { .team__pic { border: 1px solid CanvasText; } .team__pic svg { fill: CanvasText; } }
