/* RunLoop design system: theme.css (palette, roles, themes and every token).
   Generated by _tools/design-system/generate.mjs from _tools/design-system/maps/runloop.mjs (with runloop.auto.json). Edit the source, then run it again. */
/* How it works
   - The palette is locked. Sections never read it directly, they read roles (--role-*).
   - Roles are set for the Original theme on :root. A theme is <html data-theme="<id>">.
   - Style panel changes go on :root after this file (inline style on <html> or a later <style>).
   - Derived colours, buttons and aliases are declared on ":root, [data-theme]" so they follow the roles. */

/* 1. Named palette (locked) */
:root {
  --color-cream: #fcfbf7;
  --color-white: #ffffff;
  --color-linen: #f3f1ed;
  --color-sand: #ebe9e5;
  --color-stone-line: #cccac7;
  --color-pebble: #dbd9d6;
  --color-aubergine: #302023;
  --color-taupe: #807e7c;
  --color-jet: #000000;
  --color-plum: #4e374a;
  --color-lavender-glow: #988ba5;
  --color-tab-line: #c9c8c1;
  --color-live-green: #4cc02b;
  --color-alert-red: #ed2525;
  --color-warning-wash: #fcf8d8;
  --color-warning-ink: #5e5515;
  --color-error-ink: #3b0b0b;
  --color-error-wash: #f8e4e4;
}

/* 2. Colour roles: Original */
:root {
  --role-ink: var(--color-aubergine);
  --role-page: var(--color-cream);
  --role-surface: var(--color-linen);
  --role-accent: var(--color-aubergine);
  --role-accent-deep: var(--color-aubergine);
  --role-line: var(--color-stone-line);
  --role-on-photo: var(--color-cream);
  --role-overlay: var(--color-jet);
  --role-surface-2: var(--color-sand);
  --role-line-soft: var(--color-pebble);
  --role-ink-soft: var(--color-taupe);
  --role-bright: var(--color-white);
  --role-plum: var(--color-plum);
  --role-glow: var(--color-lavender-glow);
  --role-on-accent: var(--color-cream);
}

/* 3. Themes: each sets every role. Photo overlay stays dark in every theme. */
[data-theme="original"] {
  --role-ink: var(--color-aubergine);
  --role-page: var(--color-cream);
  --role-surface: var(--color-linen);
  --role-accent: var(--color-aubergine);
  --role-accent-deep: var(--color-aubergine);
  --role-line: var(--color-stone-line);
  --role-on-photo: var(--color-cream);
  --role-overlay: var(--color-jet);
  --role-surface-2: var(--color-sand);
  --role-line-soft: var(--color-pebble);
  --role-ink-soft: var(--color-taupe);
  --role-bright: var(--color-white);
  --role-plum: var(--color-plum);
  --role-glow: var(--color-lavender-glow);
  --role-on-accent: var(--color-cream);
}
[data-theme="agent-ocean"] {
  color-scheme: light;
  --role-ink: #152238;
  --role-page: #fbfcfe;
  --role-surface: #f0f3f7;
  --role-accent: #1d3a66;
  --role-accent-deep: #142a4b;
  --role-line: #c6cfdb;
  --role-on-photo: #fbfcfe;
  --role-overlay: #000000;
  --role-surface-2: #e6ebf2;
  --role-line-soft: #d5dce6;
  --role-ink-soft: #66717f;
  --role-bright: #ffffff;
  --role-plum: #2c4a73;
  --role-glow: #8aa4c8;
  --role-on-accent: #fbfcfe;
}
[data-theme="olive-loop"] {
  color-scheme: light;
  --role-ink: #232a1c;
  --role-page: #fbfbf5;
  --role-surface: #f1f2ea;
  --role-accent: #2e3a22;
  --role-accent-deep: #222b19;
  --role-line: #cbcdbf;
  --role-on-photo: #fbfbf5;
  --role-overlay: #000000;
  --role-surface-2: #e8eade;
  --role-line-soft: #d8dacd;
  --role-ink-soft: #73776a;
  --role-bright: #ffffff;
  --role-plum: #46553a;
  --role-glow: #9fae8c;
  --role-on-accent: #fbfbf5;
}
[data-theme="terracotta-run"] {
  color-scheme: light;
  --role-ink: #3a1d14;
  --role-page: #fdf9f4;
  --role-surface: #f6eee5;
  --role-accent: #5b2a1b;
  --role-accent-deep: #43200f;
  --role-line: #dccbbb;
  --role-on-photo: #fdf9f4;
  --role-overlay: #000000;
  --role-surface-2: #efe4d7;
  --role-line-soft: #e5d7c8;
  --role-ink-soft: #857164;
  --role-bright: #ffffff;
  --role-plum: #7a3b27;
  --role-glow: #d39b84;
  --role-on-accent: #fdf9f4;
}
[data-theme="lilac-lab"] {
  color-scheme: light;
  --role-ink: #241a3a;
  --role-page: #fbfaff;
  --role-surface: #f2effa;
  --role-accent: #33245a;
  --role-accent-deep: #251a43;
  --role-line: #cdc6dc;
  --role-on-photo: #fbfaff;
  --role-overlay: #000000;
  --role-surface-2: #e9e4f5;
  --role-line-soft: #dad4e8;
  --role-ink-soft: #776f86;
  --role-bright: #ffffff;
  --role-plum: #4a3678;
  --role-glow: #b39ad6;
  --role-on-accent: #fbfaff;
}
[data-theme="inverted"] {
  color-scheme: dark;
  --role-ink: #fcfbf7;
  --role-page: #302023;
  --role-surface: #3a292d;
  --role-accent: #fcfbf7;
  --role-accent-deep: #ffffff;
  --role-line: #56444a;
  --role-on-photo: #fcfbf7;
  --role-overlay: #000000;
  --role-surface-2: #443236;
  --role-line-soft: #4c3a3f;
  --role-ink-soft: #b9aeb0;
  --role-bright: #3a292d;
  --role-plum: #ebe3e9;
  --role-glow: #988ba5;
  --role-on-accent: #302023;
}

/* 4. Derived colours: worked out from roles with color-mix, never stored */
:root,
[data-theme] {
  --tone-ink-93-1-bright: color-mix(in srgb, var(--role-ink) 93.1%, var(--role-bright));
  --tone-accent-93-1-bright: color-mix(in srgb, var(--role-accent) 93.1%, var(--role-bright));
  --tone-bright-57-page: color-mix(in srgb, var(--role-bright) 57%, var(--role-page));
  --tone-bright-16: rgb(from var(--role-bright) r g b / 16%);
  --tone-jet-12: rgb(from var(--color-jet) r g b / 12%);
  --tone-bright-86-5-jet: color-mix(in srgb, var(--role-bright) 86.5%, var(--color-jet));
  --tone-jet-a26: rgb(from var(--color-jet) r g b / calc(26 / 255));
  --tone-bright-80-jet: color-mix(in srgb, var(--role-bright) 80%, var(--color-jet));
  --tone-jet-86-5-bright: color-mix(in srgb, var(--color-jet) 86.5%, var(--role-bright));
  --tone-bright-a3: rgb(from var(--role-bright) r g b / calc(3 / 255));
  --tone-jet-80-bright: color-mix(in srgb, var(--color-jet) 80%, var(--role-bright));
  --tone-bright-91-line: color-mix(in srgb, var(--role-bright) 91%, var(--role-line));
  --tone-bright-78-3-jet: color-mix(in srgb, var(--role-bright) 78.3%, var(--color-jet));
  --tone-jet-60: rgb(from var(--color-jet) r g b / 60%);
  --tone-bright-86-ink-soft: color-mix(in srgb, var(--role-bright) 86%, var(--role-ink-soft));
  --tone-bright-90-ink-soft: color-mix(in srgb, var(--role-bright) 90%, var(--role-ink-soft));
  --tone-bright-80-surface: color-mix(in srgb, var(--role-bright) 80%, var(--role-surface));
  --tone-jet-a77: rgb(from var(--color-jet) r g b / calc(77 / 255));
  --tone-bright-60-jet: color-mix(in srgb, var(--role-bright) 60%, var(--color-jet));
  --tone-jet-40: rgb(from var(--color-jet) r g b / 40%);
  --tone-bright-94-ink-soft: color-mix(in srgb, var(--role-bright) 94%, var(--role-ink-soft));
  --tone-bright-87-ink-soft: color-mix(in srgb, var(--role-bright) 87%, var(--role-ink-soft));
  --tone-ink-79-jet: color-mix(in srgb, var(--role-ink) 79%, var(--color-jet));
  --tone-ink-77-jet-28-plum: color-mix(in srgb, color-mix(in srgb, var(--role-ink) 77%, var(--color-jet)) 28%, var(--role-plum));
  --tone-bright-85-jet: color-mix(in srgb, var(--role-bright) 85%, var(--color-jet));
  --tone-jet-a13: rgb(from var(--color-jet) r g b / calc(13 / 255));
  --tone-bright-a26: rgb(from var(--role-bright) r g b / calc(26 / 255));
  --tone-bright-65-jet: color-mix(in srgb, var(--role-bright) 65%, var(--color-jet));
  --tone-bright-20: rgb(from var(--role-bright) r g b / 20%);
  --tone-page-20: rgb(from var(--role-page) r g b / 20%);
  --tone-jet-84-bright: color-mix(in srgb, var(--color-jet) 84%, var(--role-bright));
  --tone-jet-a38: rgb(from var(--color-jet) r g b / calc(38 / 255));
  --tone-ink-soft-70-2-bright: color-mix(in srgb, var(--role-ink-soft) 70.2%, var(--role-bright));
  --tone-overlay-20: rgb(from var(--role-overlay) r g b / 20%);
  --tone-jet-92: color-mix(in srgb, var(--color-jet) 92%, transparent);
  --tone-glow-87-live-green-75-bright: color-mix(in srgb, color-mix(in srgb, var(--role-glow) 87%, var(--color-live-green)) 75%, var(--role-bright));
  --tone-bright-88-5-jet: color-mix(in srgb, var(--role-bright) 88.5%, var(--color-jet));
  --tone-bright-90-5-ink-soft: color-mix(in srgb, var(--role-bright) 90.5%, var(--role-ink-soft));
  --tone-jet-86-5-bright-40: rgb(from color-mix(in srgb, var(--color-jet) 86.5%, var(--role-bright)) r g b / 40%);
  --tone-bright-40: rgb(from var(--role-bright) r g b / 40%);
  --tone-jet-90: rgb(from var(--color-jet) r g b / 90%);
  --tone-jet-a8: rgb(from var(--color-jet) r g b / calc(8 / 255));
  --tone-bright-87-jet: color-mix(in srgb, var(--role-bright) 87%, var(--color-jet));
  --tone-jet-a18: rgb(from var(--color-jet) r g b / calc(18 / 255));
  --tone-line-soft-60-tab-line: color-mix(in srgb, var(--role-line-soft) 60%, var(--color-tab-line));
  --tone-page-86-ink-soft-86-bright: color-mix(in srgb, color-mix(in srgb, var(--role-page) 86%, var(--role-ink-soft)) 86%, var(--role-bright));
  --tone-line-87-ink-soft: color-mix(in srgb, var(--role-line) 87%, var(--role-ink-soft));
  --tone-ink-soft-59-3-page: color-mix(in srgb, var(--role-ink-soft) 59.3%, var(--role-page));
  --tone-surface-69-1-jet: color-mix(in srgb, var(--role-surface) 69.1%, var(--color-jet));
  --tone-surface-63-jet: color-mix(in srgb, var(--role-surface) 63%, var(--color-jet));
}

/* 4b. Photo areas: text inside that reads the page colour reads Text on photos instead (same colour in Original) */
.card.is-select,
.card.is-last,
.contact_card.is-selected,
.fetures3_metrics_left,
.home2_benefits_card,
.plan_box-header,
.pricing2_card-content,
.home3_benefits_lightbox {
  --role-page: var(--role-on-photo);
  --role-on-accent: var(--role-on-photo);
  --tone-bright-57-page: color-mix(in srgb, var(--role-bright) 57%, var(--role-page));
  --tone-page-20: rgb(from var(--role-page) r g b / 20%);
  --tone-page-86-ink-soft-86-bright: color-mix(in srgb, color-mix(in srgb, var(--role-page) 86%, var(--role-ink-soft)) 86%, var(--role-bright));
  --tone-ink-soft-59-3-page: color-mix(in srgb, var(--role-ink-soft) 59.3%, var(--role-page));
  --button-primary-text: var(--role-on-accent-outer);
}
:root,
[data-theme] {
  --role-on-accent-outer: var(--role-on-accent);
}
:root,
[data-theme] {
  --role-page-outer: var(--role-page);
}
.card.is-select :is(input, select, textarea),
.card.is-last :is(input, select, textarea),
.contact_card.is-selected :is(input, select, textarea),
.fetures3_metrics_left :is(input, select, textarea),
.home2_benefits_card :is(input, select, textarea),
.plan_box-header :is(input, select, textarea),
.pricing2_card-content :is(input, select, textarea),
.home3_benefits_lightbox :is(input, select, textarea) {
  --role-page: var(--role-page-outer);
  --role-on-accent: var(--role-on-accent-outer);
}

/* 5. Fonts */
:root {
  --font-heading: Gambarino, Arial, sans-serif;
  --font-body: Manrope, sans-serif;
  --font-label: "Geist Mono", sans-serif;
}

/* 6. Text sizes: three scales (S 0.9, M 1, L 1.1). Every font size is a size token times its scale.
   Tokens keep the unit of the value they replace: px by number (--size-14), other units in the name (--size-1-25rem). */
:root {
  --scale-headings: 1;
  --scale-body: 1;
  --scale-labels: 1;
  --size-h1: 3.5rem;
  --size-h2: 2.5rem;
  --size-h3: 2rem;
  --size-h4: 1.75rem;
  --size-h5: 1.5rem;
  --size-h6: 1.125rem;
  --size-body-regular: 1rem;
  --size-body-small: 1rem;
  --size-body-large: 1.25rem;
  --size-body-tiny: 1rem;
  --size-body-medium: 1.125rem;
  --size-badge: 1rem;
  --size-button-normal: 1rem;
  --size-button-small: 1rem;
  --size-0-875rem: .875rem;
  --size-1rem: 1rem;
  --size-1-25rem: 1.25rem;
  --size-2-5rem: 2.5rem;
  --size-0-75rem: .75rem;
  --size-12: 12px;
  --size-2-8rem: 2.8rem;
  --leading-body-small: 150%;
  --leading-h1: 110%;
  --leading-h2: 115%;
  --leading-h3: 120%;
  --leading-h4: 120%;
  --leading-h5: 130%;
  --leading-h6: 130%;
  --leading-body-large: 150%;
  --leading-body-tiny: 150%;
  --leading-body-medium: 150%;
  --leading-badge: 140%;
  --leading-button-normal: 150%;
  --leading-button-small: 150%;
  --leading-140: 1.4;
  --leading-150: 1.5;
  --leading-100: 1;
  --tracking-0-6: .6px;
  --tracking-0-4: .4px;
}

/* 7. Spacing: 4px base. Values off the 4px grid keep their own token; rem values keep rem. */
:root {
  --container-width: 1400px;
  --section-spacing: 1;
  --section-padding-medium: 96px;
  --section-padding-large: 144px;
  --section-padding-small: 48px;
  --spacing-1: 1px;
  --spacing-2: 2px;
  --spacing-4: 4px;
  --spacing-5: 5px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-96: 96px;
  --spacing-1-5rem: 1.5rem;
  --spacing-1rem: 1rem;
  --spacing-3rem: 3rem;
  --spacing-2rem: 2rem;
  --spacing-0-5rem: .5rem;
  --spacing-0-75rem: .75rem;
  --spacing-2-5rem: 2.5rem;
  --spacing-4rem: 4rem;
  --spacing-1-25rem: 1.25rem;
  --spacing-0-375rem: .375rem;
  --spacing-6rem: 6rem;
  --spacing-0-25rem: .25rem;
  --spacing-3-5rem: 3.5rem;
  --spacing-5rem: 5rem;
  --spacing-3-75rem: 3.75rem;
  --spacing-0-125rem: .125rem;
  --spacing-8rem: 8rem;
  --spacing-0-5625rem: .5625rem;
  --spacing-1-75rem: 1.75rem;
  --spacing-12rem: 12rem;
  --spacing-1-125rem: 1.125rem;
  --spacing-0-0625rem: .0625rem;
  --spacing-4-5rem: 4.5rem;
  --spacing-0-875rem: .875rem;
  --spacing-0-3rem: .3rem;
  --spacing-7rem: 7rem;
  --spacing-1-875rem: 1.875rem;
  --spacing-5-375rem: 5.375rem;
  --spacing-3-375rem: 3.375rem;
  --spacing-4-125rem: 4.125rem;
  --spacing-10rem: 10rem;
  --spacing-0-6rem: .6rem;
}

/* 7b. Breakpoint values for the role sizes, section paddings and other responsive tokens */
@media screen and (max-width: 991px) {
  :root {
    --section-padding-medium: 84px;
    --section-padding-large: 128px;
    --section-padding-small: 44px;
  }
}
@media screen and (max-width: 767px) {
  :root {
    --size-h1: 2.625rem;
    --size-h2: 1.875rem;
    --size-h3: 1.5rem;
    --size-h4: 1.3125rem;
    --size-h5: 1.125rem;
    --size-h6: 1rem;
    --size-body-large: 1.125rem;
    --size-body-medium: 1.1rem;
    --section-padding-medium: 72px;
    --section-padding-large: 112px;
    --section-padding-small: 40px;
  }
}
@media screen and (max-width: 479px) {
  :root {
    --size-h1: 2.625rem;
    --size-h2: 1.875rem;
    --size-h3: 1.5rem;
    --size-h4: 1.3125rem;
    --size-h5: 1.125rem;
    --size-h6: 1rem;
    --size-body-large: 1.125rem;
    --size-body-medium: 1.1rem;
    --section-padding-medium: 72px;
    --section-padding-large: 112px;
    --section-padding-small: 40px;
  }
}

/* 8. Corners: every corner follows --radius-card in proportion. Pills follow --radius-button.
   rem corners are worked out in px from --radius-card (corners are not text, so they do not need to follow the browser font size). */
:root {
  --radius-card: 12px;
  --radius-button: 50px;
  --radius-pill: var(--radius-button);
  --radius-2: calc(var(--radius-card) * 2 / 12);
  --radius-6: calc(var(--radius-card) * 6 / 12);
  --radius-8: calc(var(--radius-card) * 8 / 12);
  --radius-50: calc(var(--radius-card) * 50 / 12);
  --radius-60: calc(var(--radius-card) * 60 / 12);
  --radius-0-75rem: calc(var(--radius-card) * 12 / 12);
  --radius-0-125rem: calc(var(--radius-card) * 2 / 12);
  --radius-0-25rem: calc(var(--radius-card) * 4 / 12);
  --radius-0-375rem: calc(var(--radius-card) * 6 / 12);
}

/* 9. Buttons: read-only, they follow the roles and --radius-button */
:root,
[data-theme] {
  --button-primary-bg: var(--role-accent);
  --button-primary-text: var(--role-on-accent);
  --button-secondary-bg: var(--role-surface-2);
  --button-secondary-text: var(--role-ink);
}

/* 10. Shadows and focus */
:root,
[data-theme] {
  --shadow-1: 0 0 3px 1px var(--role-accent);
  --shadow-2: 0 6px 1.25rem var(--tone-jet-a8);
  --shadow-3: 0 2px 0 0 var(--color-neutral--shade-50), 0 -2px 0 0 var(--tone-bright-87-jet);
  --shadow-4: 0 0 .25rem 0 var(--role-accent);
  --shadow-5: 0 16px 36px var(--tone-jet-a26), 0 40px 40px var(--tone-jet-a8);
  --shadow-6: 0 16px 36px var(--tone-jet-a18), 0 40px 40px var(--tone-jet-a8);
  --shadow-7: 0 2px var(--role-surface), 0 -2px var(--tone-bright-87-jet);
  --focus-ring: var(--role-accent);
}

/* 11. Motion */
:root {
  --motion-fast: .2s;
  --motion-base: .3s;
  --motion-slow: .6s;
  --ease-1: cubic-bezier(.22,.61,.36,1);
}

/* 12. Breakpoints (for reference; media queries cannot read custom properties)
   desktop: min-width 992px
   tablet: max-width 991px
   mobile-landscape: max-width 767px
   mobile: max-width 479px */
