/* Landing page for the Nonjiz product */
/* The order: font then design tokens then the base then the shared components then the sections in the order they appear */
/* The breakpoints are four: 30rem and 40rem and 64rem and 75rem, and media queries do not accept tokens so their values are written out */

/* Cairo font hosted locally and every file is variable weight for one character set */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/cairo/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscQyyS4J0.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/cairo/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscSCyS4J0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/cairo/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscRiyS.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens: every literal value is defined here once */
:root {
  color-scheme: light;

  /* Brand colors: turquoise is the base and orange is the accent that appears in every section: the sign-in button and the title line and the numbers and the icons */
  /* Every surface and fill in the brand color is the turquoise itself, not a darker shade of it, and it carries white text */
  /* And turquoise is darkened only for text: the text shade is the lightest shade that reaches the contrast on the page background and the strong shade is the lightest shade that reaches it on the light tint, which is the hover color on buttons */
  /* And orange does not carry white text and small text is not written with it on white */
  --brand-teal: #198195;
  --brand-teal-text: #187d90;
  --brand-teal-strong: #167689;
  --brand-orange: #fb641b;
  --brand-ink: #152a31;
  --brand-mist: #f6f8f8;

  /* Colors above brand surfaces, fixed in both modes, and the text on them is white alone since no other color reaches the contrast on turquoise */
  --on-deep: #ffffff;
  --on-deep-muted: #cfe6eb;
  --on-deep-line: rgb(255 255 255 / 0.16);
  --on-deep-fill: rgb(255 255 255 / 0.08);
  --deep-band: var(--brand-teal);
  --deep-card: var(--brand-teal);
  --cta: var(--brand-teal);
  --accent: var(--brand-orange);
  --accent-hover: #fe7a38;
  --on-accent: var(--brand-ink);
  --capsule: var(--brand-teal);

  /* Interface colors in light mode */
  --bg: var(--brand-mist);
  --bg-band: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f1f5f5;
  --border: #e1e8e9;
  --border-strong: #c5d1d4;
  --text: var(--brand-ink);
  --text-muted: #4f666c;
  --primary: var(--brand-teal);
  --primary-hover: var(--brand-teal-strong);
  --on-primary: #ffffff;
  --primary-text: var(--brand-teal-text);
  --primary-soft: #e2f1f4;
  --on-primary-soft: var(--brand-teal-strong);
  --focus: var(--brand-teal);
  --chip-bg: #e9eff0;
  --chip-text: #334e56;
  --info: #1d4ed8;
  --info-soft: #e3ebfd;
  --success: #047857;
  --success-soft: #dcf2e9;
  --warning: #92400e;
  --warning-soft: #fbeedb;
  --danger: #b91c1c;
  --danger-soft: #fbe4e4;
  --mark-good: #10b981;
  --mark-warn: #f59e0b;
  --mark-info: #3b82f6;
  --stage: var(--brand-teal);
  --device: #0d1f24;
  --shadow-rgb: 12 52 62;
  --glow: rgb(25 129 149 / 0.1);
  --title-from: var(--brand-teal-text);
  --title-to: var(--brand-teal-text);
  --show-on-light: block;
  --show-on-dark: none;

  /* Fixed colors inside the drawings that do not follow the page mode */
  --on-deep-dots: rgb(255 255 255 / 0.2);
  --on-deep-chrome: rgb(255 255 255 / 0.35);
  --demo-light: var(--brand-mist);
  --demo-light-line: #c5d1d4;
  --demo-light-accent: var(--brand-teal);
  --demo-light-edge: rgb(12 52 62 / 0.12);
  --demo-dark: #0a1a1e;
  --demo-dark-line: #315d68;
  --demo-dark-accent: #5ac3d8;
  --demo-dark-edge: rgb(255 255 255 / 0.14);
  --swatch-brand: var(--brand-teal);
  --swatch-blue: #2f5ea8;
  --swatch-plum: #7e3f8f;
  --swatch-clay: #b45309;
  --swatch-olive: #4d7c0f;
  --on-swatch: #ffffff;

  /* Typography */
  --font: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  /* Section headings are smaller and follow the screen width at the owner's request (decision 350) */
  --fs-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --fs-hero: clamp(2.125rem, 1.55rem + 2.4vw, 3.5rem);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;
  --lh-flat: 1;
  --lh-tight: 1.3;
  --lh-heading: 1.35;
  --lh-ui: 1.5;
  --lh-body: 1.8;
  --tracking-heading: 0;
  --measure: 38rem;
  --measure-wide: 46rem;

  /* Spacing on one scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --section-y: clamp(4rem, 2.6rem + 6vw, 7.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2rem);
  --container: 75rem;

  /* Corners */
  --r-sm: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-device: 2.5rem;
  --r-screen: 1.9rem;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgb(var(--shadow-rgb) / 0.06);
  --shadow-2: 0 2px 4px rgb(var(--shadow-rgb) / 0.04), 0 12px 28px -10px rgb(var(--shadow-rgb) / 0.16);
  --shadow-3: 0 4px 10px rgb(var(--shadow-rgb) / 0.05), 0 28px 56px -22px rgb(var(--shadow-rgb) / 0.34);

  /* Sizes */
  --page-min: 20rem;
  --mask-on: #000;
  --line: 1px;
  --line-2: 1.5px;
  --stroke: 1.75;
  --stroke-bold: 2.25;
  --focus-w: 3px;
  --focus-gap: 3px;
  --header-h: 4rem;
  --touch: 2.75rem;
  --control-h: 3rem;
  --icon: 1.25rem;
  --icon-sm: 1rem;
  --icon-lg: 1.5rem;
  --logo-h: 2.5rem;
  --logo-ratio: 212 / 123;
  --tile: 2.75rem;
  --tile-sm: 2.25rem;
  --avatar: 1.75rem;
  --dot: 0.5rem;
  --chip-h: 1.5rem;
  --edge: 0.25rem;
  --bar-h: 0.375rem;
  --skel-h: 0.5rem;
  --ring: 6.5rem;
  --ring-stroke: 9;
  --art-h: 13.5rem;
  --art-card: 15rem;
  --mock-btn-h: 2.125rem;
  --phone-w: 17rem;
  --phone-h: 34.5rem;
  --phone-pad: 0.5rem;
  --notch-w: 4.5rem;
  --notch-h: 1.125rem;
  --fab: 2.75rem;
  --swatch: 1.75rem;
  --thumb-h: 3.25rem;
  --stage-max: 40rem;
  --chip-hang: 4rem;
  --stage-inset: 11%;
  --stage-task: 66%;
  --stage-score: 33%;
  --stage-toast: 38%;
  --stage-edge: 3%;
  --look-w: 26rem;
  --lost-w: 34rem;
  --skel-max: 5.5rem;
  --tick-icon: 0.75rem;
  --tick-stroke: 3;
  --swatch-icon: 0.875rem;
  --swatch-stroke: 2.5;
  --hero-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --cta-pad: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  --glow-w: 52rem;
  --glow-h: 30rem;
  --blur: 14px;
  --header-fill: 94%;
  --wash: 7%;
  --dot-ink: 26%;
  --grid-dot: 1.375rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 640ms;
  --dur-4: 1100ms;
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --stagger: 80ms;
  --float: 7s;
  --float-wait: 1.6s;
  --rise: 0.875rem;
  --slide: 1rem;
  --pop-from: 0.6;
  --dash: 120;
  --drift: 18s;
  --drift-by: 3%;
  --dots-drift: 9s;
  --nudge: 2.4s;
  --nudge-by: 0.25rem;
  --bob: 1.6s;
  --bob-by: 0.125rem;
  --pulse: 2.8s;
  --pulse-to: 1.55;
  --tilt: -8deg;
  --lift: 1.12;
  --progress-h: 2px;
  --underline-h: 0.07em;
  --underline-gap: -0.2em;
  /* The line direction as a number so offsets and the transform origin follow it */
  --dir: 1;
  --origin-start: 0 50%;

  /* Layers */
  --z-raised: 2;
  --z-float: 3;
  --z-header: 50;
  --z-skip: 100;
}

/* The page is light by default even if the device mode is dark, and dark mode is for whoever chose it with the appearance button alone */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a1a1e;
  --bg-band: #0d2126;
  --surface: #12292f;
  --surface-sunken: #0e2227;
  --border: #21434c;
  --border-strong: #315d68;
  --text: #ecf4f6;
  --text-muted: #a5bcc1;
  --primary: #5ac3d8;
  --primary-hover: #7cd3e4;
  --on-primary: #06181c;
  --primary-text: #6dcee0;
  --primary-soft: #173b44;
  --on-primary-soft: var(--primary-text);
  --focus: #6dcee0;
  --chip-bg: #1f3a41;
  --chip-text: #d5e3e6;
  --info: #a5c8fb;
  --info-soft: #1c3661;
  --success: #6ee7b7;
  --success-soft: #123f38;
  --warning: #fcd34d;
  --warning-soft: #40300f;
  --danger: #fca5a5;
  --danger-soft: #4a1d21;
  --mark-good: #34d399;
  --mark-warn: #fbbf24;
  --mark-info: #60a5fa;
  --device: #040c0f;
  --deep-band: #0d323a;
  --deep-card: #12404a;
  --shadow-rgb: 0 0 0;
  --glow: rgb(90 195 216 / 0.1);
  --title-from: #9ee3f0;
  --title-to: #5ac3d8;
  --show-on-light: none;
  --show-on-dark: block;
}

/* Latin lines are shorter than Arabic so the spacing between lines narrows and the heading letters get closer */
:root:lang(en) {
  --lh-tight: 1.2;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --tracking-heading: -0.015em;
  --fs-hero: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
}

@media (min-width: 64rem) {
  :root {
    --header-h: 4.5rem;
    --phone-w: 18rem;
    --phone-h: 36.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  min-inline-size: var(--page-min);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

button {
  font: inherit;
  color: inherit;
}

/* A name in another language inside a sentence is isolated so it does not flip its order */
bdi {
  unicode-bidi: isolate;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-gap);
}

/* Focus moved to the content by the skip link draws no ring around the whole page */
main:focus-visible {
  outline: none;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

.sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--sp-2);
  inset-inline-start: var(--sp-2);
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-block-size: var(--touch);
  padding-inline: var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-2);
}

/* Stays off screen until keyboard focus reaches it */
.skip-link:not(:focus) {
  inline-size: 1px;
  block-size: 1px;
  min-block-size: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  inline-size: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Icons are line icons from one registry in the page header */
.icon {
  inline-size: var(--icon);
  block-size: var(--icon);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  --icon: var(--icon-sm);
}

.icon--bold {
  stroke-width: var(--stroke-bold);
}

.icon--lg {
  --icon: var(--icon-lg);
}

/* Arrows and whatever has a direction flip in Arabic */
[dir='rtl'] .icon--dir {
  transform: scaleX(-1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-block-size: var(--control-h);
  padding-inline: var(--sp-6);
  border: var(--line) solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}

.btn:active {
  transform: translateY(var(--line));
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-2);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--primary-text);
  color: var(--primary-text);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-2);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--sm {
  min-block-size: var(--touch);
  padding-inline: var(--sp-5);
  font-size: var(--fs-sm);
  box-shadow: none;
}

.btn .icon {
  transition: transform var(--dur-2) var(--ease);
}

.btn:hover .icon--nudge {
  transform: translateX(var(--sp-1));
}

[dir='rtl'] .btn:hover .icon--nudge {
  transform: scaleX(-1) translateX(var(--sp-1));
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  inline-size: var(--touch);
  block-size: var(--touch);
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) var(--wash), transparent);
  color: var(--text);
}

/* The icon square */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: var(--tile);
  block-size: var(--tile);
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary-text);
}

.tile--sm {
  --tile: var(--tile-sm);
}

.tile--accent {
  background: var(--accent);
  color: var(--on-deep);
}

/* Sections and their headings */
.section {
  padding-block: var(--section-y);
}

.section--band {
  background: var(--bg-band);
}

/* A section in the brand color redefines the colors locally so components follow it with no special rules */

.section-head {
  display: grid;
  gap: var(--sp-4);
  max-inline-size: var(--measure-wide);
  margin-block-end: var(--sp-8);
}

/* The orange dot is the accent color in the identity */

.section-title {
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-heading);
}

/* The header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) var(--header-fill), transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(var(--blur));
  backdrop-filter: saturate(1.6) blur(var(--blur));
  border-block-end: var(--line) solid transparent;
  transition:
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}

.site-header[data-scrolled],
.site-header[data-open] {
  border-block-end-color: var(--border);
  box-shadow: var(--shadow-1);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--sp-2);
  min-block-size: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-block-size: var(--touch);
  /* The logo link is a full touch target even if the logo drawing is narrower than it */
  min-inline-size: var(--touch);
  margin-inline-end: auto;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-flat);
}

/* The logo is a bold word whose height is set and the width follows it by its ratio */
.brand-logo {
  inline-size: auto;
  block-size: var(--logo-h);
  aspect-ratio: var(--logo-ratio);
}

.on-light {
  display: var(--show-on-light);
}

.on-dark {
  display: var(--show-on-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.lang-switch {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--touch);
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}

.lang-switch:hover {
  background: color-mix(in srgb, var(--text) var(--wash), transparent);
  color: var(--text);
}

.theme-toggle,
.menu-toggle {
  display: none;
}

/* The menu button is first in the header from the start side (decision 350) */
.menu-toggle {
  margin-inline-start: calc((var(--icon-lg) - var(--touch)) / 2 - var(--icon-lg) / 6);
}

/* The sign-in link beside the start button */
.header-signin {
  display: none;
  align-items: center;
  min-block-size: var(--touch);
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.header-signin:hover {
  background: color-mix(in srgb, var(--text) var(--wash), transparent);
}

/* The section opens with its heading under the header with no gap */
.section[id] {
  scroll-margin-block-start: calc(var(--sp-2) - var(--section-y));
}

/* Whoever signed in to the platform is not shown the second sign-in link beside the button that opens it */
.is-member [data-member-hide] {
  display: none;
}

.js .theme-toggle,
.js .menu-toggle {
  display: inline-grid;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

/* With no script the links appear as a row under the header and with the script they become a panel opened by the button */
.site-nav {
  order: 3;
  flex-basis: 100%;
  padding-block-end: var(--sp-3);
}

/* A tall header with no script does not stick to the top of the screen so it does not hide content */
html:not(.js) .site-header {
  position: static;
}

/* The menu panel is screen width under the header and its links' text is on the content line from the start side */
.js .site-nav {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  display: none;
  max-block-size: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--sp-3) calc(var(--gutter) - var(--sp-3)) var(--sp-5);
  text-align: start;
  background: var(--surface);
  border-block-end: var(--line) solid var(--border);
  box-shadow: var(--shadow-2);
}

.js .site-header[data-open] .site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.js .nav-list {
  flex-direction: column;
  flex-wrap: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--touch);
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}

.js .nav-link {
  min-block-size: var(--control-h);
  color: var(--text);
  font-size: var(--fs-base);
}

.nav-link:hover {
  background: color-mix(in srgb, var(--text) var(--wash), transparent);
  color: var(--text);
}

.nav-link[aria-current] {
  color: var(--primary-text);
}

.js .nav-extra {
  margin-block-start: var(--sp-2);
  padding-block-start: var(--sp-2);
  border-block-start: var(--line) solid var(--border);
}

@media (min-width: 30rem) {
  .header-actions {
    gap: var(--sp-2);
  }

  .lang-switch,
  .header-signin {
    display: inline-flex;
  }

  .nav-extra {
    display: none;
  }
}

@media (min-width: 64rem) {
  .header-row {
    flex-wrap: nowrap;
    column-gap: var(--sp-4);
  }

  .brand {
    margin-inline-end: 0;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .site-nav,
  .js .site-nav {
    position: static;
    order: 0;
    display: block;
    flex: 1;
    max-block-size: none;
    overflow: visible;
    margin-inline-start: var(--sp-4);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list,
  .js .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .nav-link,
  .js .nav-link {
    min-block-size: var(--touch);
    color: var(--text-muted);
    font-size: var(--fs-sm);
  }

  .nav-link:hover,
  .js .nav-link:hover {
    color: var(--text);
  }

  .nav-link[aria-current],
  .js .nav-link[aria-current] {
    color: var(--on-primary-soft);
    background: var(--primary-soft);
  }

  /* The link's background and the two language and mode buttons and the sign-in link are one layer sliding across the whole bar that the script places (decisions 403 and 407) */
  .header-row.has-thumb {
    position: relative;
  }

  .has-thumb .nav-link,
  .has-thumb .lang-switch,
  .has-thumb .theme-toggle,
  .has-thumb .header-signin {
    position: relative;
    z-index: 1;
  }

  .has-thumb .nav-link:hover,
  .has-thumb .nav-link[aria-current],
  .has-thumb .lang-switch:hover,
  .has-thumb .theme-toggle:hover,
  .has-thumb .header-signin:hover {
    background: transparent;
  }

  .nav-thumb {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--r-pill);
    background: var(--primary-soft);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--dur-3) var(--ease),
      width var(--dur-3) var(--ease),
      opacity var(--dur-2) var(--ease);
  }

  .js .menu-toggle {
    display: none;
  }
}

/* The questions */
.faq-layout {
  display: grid;
  gap: var(--sp-8);
}

.faq-layout .section-head {
  margin-block-end: 0;
}

.faq-q .icon {
  color: var(--text-muted);
  transition: transform var(--dur-2) var(--ease);
}

.faq-item[open] .faq-q .icon {
  transform: rotate(180deg);
}

@media (min-width: 64rem) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--sp-16);
    align-items: start;
  }

  .faq-layout .section-head {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--sp-8));
  }
}

/* The last call to action */
.cta {
  padding-block: 0 var(--section-y);
}

.section--band + .cta {
  padding-block-start: var(--section-y);
}

.cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: var(--cta-pad) var(--sp-6);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--cta);
  color: var(--on-deep);
  text-align: center;
  --focus: var(--on-deep);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at center, var(--on-deep-dots) var(--line), transparent var(--line-2));
  background-size: var(--grid-dot) var(--grid-dot);
  -webkit-mask-image: radial-gradient(60% 90% at 50% 0%, var(--mask-on), transparent);
  mask-image: radial-gradient(60% 90% at 50% 0%, var(--mask-on), transparent);
}

.cta-title {
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-heading);
}

.cta-card .btn {
  margin-block-start: var(--sp-3);
}

/* The footer */
.site-footer {
  padding-block: var(--sp-12) var(--sp-8);
  border-block-start: var(--line) solid var(--border);
  background: var(--bg-band);
}

.footer-grid {
  display: grid;
  gap: var(--sp-8);
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--touch);
  padding-inline: var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: color var(--dur-1) var(--ease);
}

.footer-link:hover {
  color: var(--text);
}

.footer-link--strong {
  color: var(--primary-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  margin-block-start: var(--sp-8);
  padding-block-start: var(--sp-5);
  border-block-start: var(--line) solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

@media (min-width: 64rem) {
  /* The logo and its wordmark at their own width and the links take the rest and wrap when needed */
  .footer-grid {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-12);
  }

  .footer-tagline {
    white-space: nowrap;
  }
}

/* Reveal on scroll is enabled by the script alone so with no script everything is visible */
.reveal-on [data-reveal] {
  opacity: 0;
  translate: 0 var(--sp-5);
  transition:
    opacity var(--dur-3) var(--ease),
    translate var(--dur-3) var(--ease);
}

.reveal-on [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

.reveal-on [data-reveal='2'] {
  transition-delay: var(--stagger);
}

.reveal-on [data-reveal='3'] {
  transition-delay: calc(var(--stagger) * 2);
}

.reveal-on [data-reveal='4'] {
  transition-delay: calc(var(--stagger) * 3);
}

/* Motion */
/* Everything in this section works with the class motion-on that the script adds when the visitor does not ask for reduced motion */
/* So with no script and with reduced motion the page appears in its final state, still */
/* A scene is an element with the attribute data-scene or data-reveal that gets the class is-in when it appears so its elements with the attribute data-m move in the order of the attribute data-d */
/* And a loop is an element with the attribute data-loop whose step data-step the script increments while it is visible and the styling draws each step */

:root[dir='rtl'] {
  --dir: -1;
  --origin-start: 100% 50%;
}

[data-d='1'] {
  --d: 1;
}

[data-d='2'] {
  --d: 2;
}

[data-d='3'] {
  --d: 3;
}

[data-d='4'] {
  --d: 4;
}

[data-d='5'] {
  --d: 5;
}

[data-d='6'] {
  --d: 6;
}

[data-d='7'] {
  --d: 7;
}

[data-d='8'] {
  --d: 8;
}

[data-d='9'] {
  --d: 9;
}

[data-d='10'] {
  --d: 10;
}

[data-d='11'] {
  --d: 11;
}

/* Before appearing */
.motion-on :is([data-scene], [data-reveal]):not(.is-in) [data-m],
.motion-on [data-scene]:not(.is-in) :is(.mock-score, .mock-toast) {
  opacity: 0;
}

.motion-on [data-scene]:not(.is-in) .ring-value {
  stroke-dasharray: 0 100;
}

.motion-on [data-scene]:not(.is-in) .hero-title .accent::after {
  scale: 0 1;
}

/* On appearing */
.motion-on .is-in [data-m] {
  animation-duration: var(--dur-3);
  animation-timing-function: var(--ease);
  animation-delay: calc(var(--stagger) * var(--d, 0));
  animation-fill-mode: backwards;
}

.motion-on .is-in [data-m='rise'] {
  animation-name: m-rise;
}

.motion-on .is-in [data-m='fade'] {
  animation-name: m-fade;
}

.motion-on .is-in [data-m='slide'] {
  animation-name: m-slide;
}

.motion-on .is-in [data-m='grow'] {
  animation-name: m-grow;
  animation-duration: var(--dur-4);
}

.motion-on .is-in [data-m='pop'] {
  animation-name: m-pop;
  animation-timing-function: var(--ease-back);
}

@keyframes m-rise {
  from {
    opacity: 0;
    translate: 0 var(--rise);
  }
}

@keyframes m-fade {
  from {
    opacity: 0;
  }
}

@keyframes m-slide {
  from {
    opacity: 0;
    translate: calc(var(--dir) * -1 * var(--slide)) 0;
  }
}

@keyframes m-grow {
  from {
    inline-size: 0;
  }
}

@keyframes m-pop {
  from {
    opacity: 0;
    scale: var(--pop-from);
  }
}

/* The square's icon draws its lines when its scene appears and then tilts a little on hover */
.motion-on .is-in .tile .icon {
  stroke-dasharray: var(--dash);
  animation: m-draw var(--dur-4) ease-out calc(var(--stagger) * (var(--d, 0) + 2)) backwards;
}

@keyframes m-draw {
  from {
    stroke-dashoffset: var(--dash);
  }
}

.motion-on .tile .icon {
  transition:
    rotate var(--dur-2) var(--ease),
    scale var(--dur-2) var(--ease);
}

/* Numbers that count do not change their width during counting */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* The task log line extends from its start and the steps arrow pulses toward the next one */

@keyframes m-line {
  from {
    scale: 1 0;
  }
}

@keyframes m-nudge {
  50% {
    translate: calc(var(--dir) * var(--nudge-by)) 0;
  }
}

/* The phone's two badges enter and then float and the add button pulses and the waiting icon rises and falls */

@keyframes m-pulse {
  from {
    opacity: 0.7;
    scale: 1;
  }

  70%,
  to {
    opacity: 0;
    scale: var(--pulse-to);
  }
}

@keyframes m-bob {
  50% {
    translate: 0 calc(-1 * var(--bob-by));
  }
}

/* The answer to a question appears rising and the item's height flows where the browser supports it */
.motion-on .faq-item[open] .faq-a {
  animation: m-rise var(--dur-2) var(--ease);
}

@supports (interpolate-size: allow-keywords) {
  .motion-on .faq-item {
    interpolate-size: allow-keywords;
  }

  .motion-on .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--dur-2) var(--ease),
      content-visibility var(--dur-2) allow-discrete;
  }

  .motion-on .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* The call to action card's dots flow slowly */
.motion-on .cta-card::before {
  animation: m-dots var(--dots-drift) linear infinite;
}

@keyframes m-dots {
  to {
    background-position: var(--grid-dot) var(--grid-dot);
  }
}

/* The reading progress line under the header follows scrolling where the browser supports it with no script */
/* Starts and ends under the header pill, not at the screen edges (decision 401) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: '';
      position: absolute;
      inset-inline: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2 + var(--sp-6));
      inset-block-end: 0;
      block-size: var(--progress-h);
      border-radius: var(--r-pill);
      background: var(--accent);
      transform-origin: var(--origin-start);
      scale: 0 1;
      animation: m-progress linear both;
      animation-timeline: scroll(root block);
      pointer-events: none;
    }
  }
}

@keyframes m-progress {
  to {
    scale: 1 1;
  }
}

/* Whoever asked for reduced motion sees no transition or motion or smooth scrolling */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .header-actions,
  .site-nav,
  .skip-link {
    display: none;
  }

  .reveal-on [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

/* Orange is the accent color visible in every section */
/* The text above it is dark ink not white and orange text on the light surface is in its darker shade that reaches the contrast */
:root {
  --accent-soft: #feeee7;
  --accent-text: #c2410c;
  --accent-glow: rgb(251 100 27 / 0.1);
  --accent-ring: rgb(251 100 27 / 0.45);
}

:root[data-theme='dark'] {
  --accent-soft: rgb(251 100 27 / 0.16);
  --accent-text: #ff9a66;
  --accent-glow: rgb(251 100 27 / 0.12);
}

/* A short orange line under each section heading like the check mark under the logo word */
.section-title::after {
  content: '';
  display: block;
  inline-size: var(--sp-12);
  block-size: var(--sp-1);
  margin-block-start: var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--accent);
}

.faq-item[open] .faq-q .icon {
  color: var(--accent-text);
}

.site-footer {
  border-block-start: var(--sp-1) solid var(--accent);
}

.btn--accent:focus-visible {
  outline-color: var(--accent-text);
}

/* Plans: three cards on one grid so the price and button and list align between them and the recommended one has an orange border */
:root {
  --fs-price: 2.75rem;
  --plan-max: 28rem;
  --plan-rows: 4;
}

.js .cycle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: var(--sp-1);
  padding: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
}

/* The unselected price is hidden when the button works */
.js [data-billing='monthly'] .price--yearly,
.js [data-billing='yearly'] .price--monthly {
  display: none;
}

.plan-list .icon {
  margin-block-start: var(--sp-1);
  color: var(--accent);
}

/* The last call to action's two buttons are side by side and the second has a white border above the brand color */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-3);
}

.cta-card .cta-actions .btn {
  margin-block-start: 0;
}

.btn--on-deep {
  border-color: var(--on-deep);
  background: transparent;
  color: var(--on-deep);
}

.btn--on-deep:hover {
  background: var(--on-deep-fill);
}

/* Plans details page: the page header then the comparison table then the subscription stages then the questions as groups */
/* Text read by the screen reader and not shown */
.vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A link to another page under a section: all the questions and plan details */
.pricing-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--touch);
  color: var(--primary-text);
  font-weight: var(--fw-bold);
}

.pricing-more:hover {
  text-decoration: underline;
  text-underline-offset: var(--sp-1);
}

/* Separate site pages */
:root {
  --fs-card-price: 2.25rem;
  --fs-doc-title: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  --plans-max: 72rem;
  --plan-lift: 0.5rem;
  --plan-scale: 1.02;
  --toc-w: 16rem;
  --search-w: 36rem;
  --num: 1.75rem;
  --footer-col: 10rem;
  --tick-shift: 0.2em;
  --mark-shift: 0.3em;
}

/* A legal page opened by the phone app carries its mark and does not show what sells the service */
.in-app [data-sales] {
  display: none;
}

/* Footer: the logo and the language and start and sign-in buttons and then three groups of links */
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  margin-inline: calc(-1 * var(--sp-3));
  margin-block-start: var(--sp-2);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--footer-col), 1fr));
  gap: var(--sp-6) var(--sp-8);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: var(--sp-1);
}

.footer-title {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.footer-list {
  display: grid;
  margin-inline: calc(-1 * var(--sp-3));
}

.footer-link[aria-current] {
  color: var(--primary-text);
}

@media (min-width: 64rem) {
  .footer-grid {
    align-items: start;
  }
}

/* The cycle offer with the platform card's classes and colors (decision 363) */
/* Then the unit and then the percentage pill and the offer name and the last day and then the free months pill in the yearly, and each cycle has its own offer */
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
}

.plan-price-was {
  color: var(--text-muted);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  text-decoration-thickness: var(--line-2);
}

.plan-discount {
  justify-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  line-height: var(--lh-tight);
}

.plan-discount-label {
  color: var(--accent-text);
  font-weight: var(--fw-bold);
}

.plan-discount-until {
  color: var(--text-muted);
}

/* The list price is written hidden and appears alone when the site script learns the cycle price at its offer's expiry so the strikethrough and the pill disappear with it */
.price-num--list,
.discount-ended .plan-price-was,
.discount-ended .price-num--sale,
.discount-ended .plan-discount,
.discount-note.discount-ended {
  display: none;
}

.discount-ended .price-num--list {
  display: block;
}

/* The price that appears by switching the cycle enters rising */
.motion-on [data-billing] .price {
  animation: m-price var(--dur-2) var(--ease);
}

@keyframes m-price {
  from {
    opacity: 0;
    translate: 0 var(--sp-2);
  }
}

.guide-list .icon {
  margin-block-start: var(--mark-shift);
  color: var(--accent);
}

.guide-figure {
  margin: var(--sp-2) 0 0;
  overflow: hidden;
  border: var(--line) solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.guide-figure img {
  inline-size: 100%;
  block-size: auto;
}

.guide-figure figcaption {
  padding: var(--sp-3) var(--sp-4);
  border-block-start: var(--line) solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.js .faq-search {
  display: block;
}

/* The two phone app store buttons in the site's taste (decisions 349 and 351) */
/* A button with no link in the same shape does not look disabled and has no explanation beside it, and a button with a link advances a little under the mouse */
:root {
  --store-h: 3.5rem;
  --store-h-sm: 2.75rem;
  --store-mark: 2.5rem;
  --store-mark-sm: 2rem;
  --store-glyph: 1.25rem;
  --store-glyph-sm: 1.0625rem;
}

/* The two store buttons at one width and one height: two equal columns at the width of the wider button (the owner's note) */
.stores {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--sp-3);
  max-inline-size: 100%;
}

.stores > .store {
  justify-content: flex-start;
  min-inline-size: 0;
}

/* A screen narrower than the two buttons side by side: one above the other with the same width */
@media (max-width: 23.99rem) {
  .stores {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    inline-size: 100%;
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-block-size: var(--store-h);
  padding-block: var(--sp-2);
  padding-inline: var(--sp-2) var(--sp-5);
  border: var(--line) solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
}

span.store {
  cursor: default;
}

a.store {
  transition:
    translate var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}

a.store:hover {
  translate: 0 -1px;
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

.store-mark {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--store-mark);
  block-size: var(--store-mark);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
}

.store-glyph {
  inline-size: var(--store-glyph);
  block-size: var(--store-glyph);
}

.store-text {
  display: grid;
  text-align: start;
}

.store-name {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

/* The smaller size in the footer */
.stores--sm {
  gap: var(--sp-2);
  padding-block-start: var(--sp-4);
}

.stores--sm .store {
  gap: var(--sp-2);
  min-block-size: var(--store-h-sm);
  padding-inline: var(--sp-1) var(--sp-4);
  box-shadow: none;
}

.stores--sm .store-mark {
  inline-size: var(--store-mark-sm);
  block-size: var(--store-mark-sm);
}

.stores--sm .store-glyph {
  inline-size: var(--store-glyph-sm);
  block-size: var(--store-glyph-sm);
}

.stores--sm .store-name {
  font-size: var(--fs-sm);
}

/* Under the answer in the help center with the answer's own padding */
.faq-item > .stores {
  padding: 0 var(--sp-5) var(--sp-5);
}

/* A legal page opened by the phone app itself does not show its two download buttons */
.in-app [data-stores] {
  display: none;
}

.why-section .section-title {
  margin-block-end: var(--sp-8);
}

.why-split .guide-figure {
  margin: 0;
  box-shadow: var(--shadow-2);
}

.help-kind .icon {
  --icon: var(--icon-sm);
}

/* The new design of the parts shared between site pages (decision 388) */
/* The deep brand color for large panels */
:root {
  --hero-deep: #0c3a44;
  --hero-deep-2: #0a2c34;
  --hero-glow-1: rgb(36 170 196 / 0.5);
  --hero-glow-2: rgb(251 100 27 / 0.2);
  --hero-accent-from: #d4f5fb;
  --hero-accent-to: #6dcee0;
  --footer-bg: #0b1f24;
  --footer-text: #ecf4f6;
  --footer-muted: #a5bcc1;
  --footer-line: rgb(255 255 255 / 0.1);
  --header-pill-fill: 90%;
}

:root[data-theme='dark'] {
  --hero-deep: #0f3943;
  --hero-deep-2: #0b252c;
  --hero-glow-1: rgb(90 195 216 / 0.32);
  --hero-glow-2: rgb(251 100 27 / 0.14);
  --footer-bg: #061215;
}

/* The header is a floating pill under the top screen edge: a semi opaque surface and a light border and a shadow that deepens on scroll */
.site-header {
  padding-block-start: var(--sp-3);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-block-end: 0;
  pointer-events: none;
}

.site-header[data-scrolled],
.site-header[data-open] {
  box-shadow: none;
}

.header-row {
  --pill-pad: var(--sp-3);
  min-block-size: calc(var(--header-h) - var(--sp-3));
  padding-inline: var(--pill-pad);
  border: var(--line) solid var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) var(--header-pill-fill), transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(var(--blur));
  backdrop-filter: saturate(1.6) blur(var(--blur));
  box-shadow: var(--shadow-1);
  pointer-events: auto;
  transition: box-shadow var(--dur-2) var(--ease);
}

.site-header[data-scrolled] .header-row,
.site-header[data-open] .header-row {
  box-shadow: var(--shadow-2);
}

/* The pill on the phone has narrower padding and a shorter button so it stays on one line */
@media (max-width: 29.99rem) {
  .header-row {
    --pill-pad: var(--sp-1);
    column-gap: var(--sp-1);
  }

  .header-row .brand {
    gap: var(--sp-2);
  }

  .header-row .btn--sm {
    padding-inline: var(--sp-3);
  }
}

/* The narrowest phones: the site name beside the English logo stays for the screen reader alone so the bar does not wrap */
@media (max-width: 23.99rem) {
  .header-row .brand span {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* With no script the links wrap under the logo inside the pill so its corners become smaller */
html:not(.js) .header-row {
  border-radius: var(--r-lg);
}

/* The menu button is at the pill's padding from the start side with no pull to the content line */
.menu-toggle {
  margin-inline-start: 0;
}

/* The menu panel on the phone is a card under the pill at its width and its links' text is on the menu button's line */
/* The pill, with its background blur, is the panel's container so the offset is computed from it */
.js .site-nav {
  inset-inline: 0;
  /* The link text starts on the menu icon's line: the pill's padding and then half of what its button exceeds its icon by, minus the link's padding */
  padding-inline: calc(var(--pill-pad) + (var(--touch) - var(--icon-lg)) / 2 - var(--sp-3));
  margin-block-start: var(--sp-2);
  border: var(--line) solid var(--border);
  border-radius: var(--r-lg);
  pointer-events: auto;
}

@media (min-width: 64rem) {
  .header-row {
    padding-inline: var(--sp-5) var(--sp-2);
  }

  .js .site-nav {
    margin-block-start: 0;
    border: 0;
    border-radius: 0;
  }
}

.faq-q .icon {
  box-sizing: content-box;
  padding: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
}

.faq-item[open] .faq-q .icon {
  background: var(--accent);
  color: var(--on-accent);
}

/* The last call to action is a panel in the deep brand color like the first screen and a large dim check mark at its edge */
.cta-card {
  gap: var(--sp-6);
  background-color: var(--hero-deep);
  background-image:
    radial-gradient(55% 80% at 50% 0%, var(--hero-glow-1), transparent 72%),
    radial-gradient(40% 60% at 95% 100%, var(--hero-glow-2), transparent 70%),
    linear-gradient(180deg, var(--hero-deep), var(--hero-deep-2));
}

:root[data-theme='dark'] .cta-card {
  box-shadow: inset 0 0 0 var(--line) var(--border);
}

.cta-card::after {
  content: '';
  position: absolute;
  inset-block-start: 14%;
  inset-inline-end: 9%;
  z-index: -1;
  inline-size: 5.5rem;
  block-size: 11rem;
  /* The check mark does not flip with the language so its edges are by the physical side, not the logical one */
  border-right: var(--sp-6) solid var(--on-deep-fill);
  border-bottom: var(--sp-6) solid var(--on-deep-fill);
  border-bottom-right-radius: var(--r-sm);
  rotate: 40deg;
  pointer-events: none;
}

.cta-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
}

/* The footer is dark in both modes with the dark mode logo and an orange line above it */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  --focus: var(--footer-text);
}

.site-footer .brand {
  color: var(--footer-text);
}

.site-footer .brand-logo.on-light {
  display: none;
}

.site-footer .brand-logo.on-dark {
  display: block;
}

.site-footer .footer-tagline,
.site-footer .footer-link,
.site-footer .footer-bottom {
  color: var(--footer-muted);
}

.site-footer .footer-link:hover,
.site-footer .footer-link[aria-current],
.site-footer .footer-title {
  color: var(--footer-text);
}

.site-footer .footer-link--strong {
  color: var(--hero-accent-to);
}

.site-footer .footer-bottom {
  border-block-start-color: var(--footer-line);
}

.site-footer .store {
  border-color: var(--footer-line);
  background: var(--on-deep-fill);
  color: var(--footer-text);
  box-shadow: none;
}


/* The language button is a small pill with the two languages' letters and the current one is filled with the brand color (decision 389) */
.lang-switch,
.footer-lang {
  padding-inline: var(--sp-1);
}

.lang-pill {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 var(--line) var(--border);
}

.lang-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  line-height: var(--lh-flat);
}

.lang-mark.is-current {
  background: var(--primary);
  color: var(--on-primary);
}

.lang-switch:hover .lang-mark:not(.is-current),
.footer-lang:hover .lang-mark:not(.is-current) {
  color: var(--text);
}

.site-footer .lang-pill {
  background: var(--on-deep-fill);
  box-shadow: inset 0 0 0 var(--line) var(--footer-line);
}

.site-footer .lang-mark {
  color: var(--footer-muted);
}

.site-footer .lang-mark.is-current {
  background: var(--hero-accent-to);
  color: var(--footer-bg);
}

.site-footer .footer-lang:hover .lang-mark:not(.is-current) {
  color: var(--footer-text);
}

.js .help-tabs {
  display: inline-flex;
}

.js:not(.is-searching) .help-panel-title {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* During search the category links disappear because the results filter them */
.is-searching .help-panel .faq-chips {
  display: none;
}

/* The workflow and measurement images are on a deep panel like the first screen's window and tilt a little on wide screens */
.why-split .guide-figure {
  padding: var(--sp-3) var(--sp-3) 0;
  border: 0;
  border-radius: var(--r-xl);
  background-color: var(--hero-deep);
  background-image:
    radial-gradient(70% 60% at 50% 0%, var(--hero-glow-1), transparent 72%),
    linear-gradient(180deg, var(--hero-deep), var(--hero-deep-2));
  box-shadow: var(--shadow-3);
}

.why-split .guide-figure img {
  border-radius: var(--r-md);
}

.why-split .guide-figure figcaption {
  border: 0;
  color: var(--on-deep-muted);
}

:root {
  --figure-tilt: 6deg;
}

[dir='rtl'] {
  --figure-tilt: -6deg;
}

@media (min-width: 64rem) {
  .why-split {
    perspective: 120rem;
  }

  .why-split .guide-figure {
    transform: rotateY(var(--figure-tilt)) rotateX(2deg);
  }
}

@media (min-width: 64rem) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .why-split .guide-figure {
    transition: transform var(--dur-4) var(--ease);
  }

  .why-split .guide-figure:hover {
    transform: none;
  }
}

.why-deep .section-title {
  color: var(--on-deep);
}

.why-deep .tile {
  background: var(--on-deep-fill);
  color: var(--on-deep);
  box-shadow: inset 0 0 0 var(--line) var(--on-deep-line);
}

/* The featured plan card is a deep panel like the first screen: text colors are reset inside it and its badge is a filled orange */
:root {
  --accent-on-deep: #ffb38a;
}
