/* ==========================================================================
   FRAMEWORK.CSS
   A small CSS framework built on the coral → sunset → violet → sky palette
   sampled from the SolidGigs mockup. Trustpilot green intentionally
   excluded — it belonged to a third-party badge, not this brand's scheme.

   Structure:
     1. Design tokens (custom properties)  — light + dark
     2. Reset & base element styles
     3. Typography
     4. Layout (container, grid, stack)
     5. Buttons
     6. Forms
     7. Cards & surfaces
     8. Badges & tags
     9. Alerts
     10. Gradient utilities
     11. Utility classes (color, spacing, radius, shadow, display)

   Usage: link this file, then optionally set <html data-theme="dark">
   (or "light") to force a theme — omit it to follow the OS setting.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Ransta';
  src: url('inc/fonts/Ransta.woff') format('woff');
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* -- Brand colors -- */
  --color-coral:        #FF6B54;  /* primary */
  --color-coral-strong: #E85A44;  /* primary hover/active */
  --color-coral-soft:   #FDE9E4;  /* primary tint, for backgrounds */
  --color-sunset:       #FC5B6A;  /* primary */
  --color-sunset-strong:#EB4A59;  /* primary hover/active */
  --color-sunset-soft:  #FDEAEC;   /* primary tint, for backgrounds */
  --color-violet:       #7A6EB0;  /* secondary */
  --color-violet-strong:#665C96;
  --color-violet-soft:  #ECE9F7;
  --color-sky:          #4395D8;  /* tertiary / info */
  --color-sky-strong:   #3179B5;
  --color-sky-soft:     #E3F0FA;

  --gradient-brand: linear-gradient(90deg, var(--color-coral) 0%, var(--color-sunset) 34%, var(--color-violet) 68%, var(--color-sky) 100%);
  --gradient-ring:  linear-gradient(135deg, var(--color-coral) 0%, var(--color-sunset) 38%, var(--color-violet) 70%, var(--color-sky) 100%);

  /* -- Neutrals (warm-tinted, not true gray) -- */
  --color-ink:          #0A0806;  /* headings, high-emphasis text */
  --color-body:         #3A3A3A;  /* body copy */
  --color-muted:        #79695F;  /* captions, placeholders, helper text */
  --color-inactive-muted:#f9f6f5;  /* captions, placeholders, helper text */
	
  --color-border:       #E9DCD6;  /* default border / divider */
  --color-border-soft:  #F4EDE7;  /* soft / subtle border */
  --color-border-strong:#D8C4BB;  /* emphasized border, input focus rest state */
  --color-canvas:       #FFF9F7;  /* page background */
  --color-surface:      #FFFFFF;  /* card / input background */
  --color-surface-2:    #FBF4F1;  /* recessed panel, table stripe */
  --color-surface-translucent: color-mix(in srgb, var(--color-surface) 55%, transparent); /* gradient-border button fill */

  /* -- Semantic aliases (map roles to the tokens above) -- */
  --color-primary:      var(--color-sunset);
  --color-primary-hover:var(--color-sunset-strong);
  --color-primary-soft: var(--color-sunset-soft);
  --color-secondary:    var(--color-violet);
  --color-info:         var(--color-sky);
  --color-info-soft:    var(--color-sky-soft);
  --color-danger:       var(--color-sunset);
  --color-danger-soft:  var(--color-sunset-soft);

  --color-bg:           var(--color-canvas);
  --color-text:         var(--color-ink);
  --color-text-body:    var(--color-body);
  --color-text-muted:   var(--color-muted);
  --color-text-inactive:rgba(58, 58, 58, 0.5);

  --color-focus-ring:   rgba(255, 107, 84, 0.35);

  /* -- Typography -- */
  --font-display: 'Ransta', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.375rem;  /* 22px */
  --text-2xl:  1.75rem;   /* 28px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* -- Spacing scale (4px base) -- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* -- Radius scale -- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* Component defaults — set once here, used everywhere below */
  --radius-control: 4px; /* buttons, inputs, selects */
  --radius-box:      9px; /* cards, panels, alerts */

  /* -- Shadow scale (warm-tinted, not neutral black) -- */
  --shadow-sm: 0 1px 2px rgba(60, 30, 20, 0.05);
  --shadow-md: 0 1px 2px rgba(60, 30, 20, 0.04), 0 8px 24px rgba(60, 30, 20, 0.07);
  --shadow-lg: 0 4px 8px rgba(60, 30, 20, 0.06), 0 16px 40px rgba(60, 30, 20, 0.10);

  /* -- Inner shadow scale -- */
  --inner-shadow-sm: inset 0 1px 2px rgba(60, 30, 20, 0.05);
  --inner-shadow-md: inset 0 2px 4px rgba(60, 30, 20, 0.08);
  --inner-shadow-lg: inset 0 4px 8px rgba(60, 30, 20, 0.12);

  /* -- Motion -- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.12s;
  --duration-base: 0.2s;
  --hover-up-distance: 5px;
  --hover-up-duration: 0.4s;
  --anim-bobbing-name: bobbing;
  --anim-bobbing-duration: 2s;
  --anim-bobbing-timing: ease-in-out;
  --anim-bobbing-iteration: infinite;
}

/* -- Dark theme: follows OS setting by default, or force with data-theme -- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-ink:           #F3E9E2;
    --color-body:          #D9CCC3;
    --color-muted:         #B4A398;
    --color-border:        #3A2C24;
    --color-border-soft:   #2F271D;
    --color-border-strong: #4C3B31;
    --color-canvas:        #17110E;
    --color-surface:       #221A15;
    --color-surface-2:     #1D1611;
    --color-text-inactive: rgba(217, 204, 195, 0.5);

    --color-coral:         #FF8266;
    --color-coral-strong:  #FF9A82;
    --color-coral-soft:    #3A231C;
    --color-sunset:        #FF7A85;
    --color-sunset-strong: #FF6975;
    --color-sunset-soft:   #3A1F22;
    --color-violet:        #9C90D4;
    --color-violet-strong: #B3A9E0;
    --color-violet-soft:   #2A2540;
    --color-sky:           #6BB2ED;
    --color-sky-strong:    #8FC5F2;
    --color-sky-soft:      #1B2C3A;

    --color-focus-ring:    rgba(255, 130, 102, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.30), 0 16px 40px rgba(0, 0, 0, 0.40);

    --inner-shadow-sm: inset 0 1px 2px rgba(0, 0, 0, 0.30);
    --inner-shadow-md: inset 0 2px 4px rgba(0, 0, 0, 0.40);
    --inner-shadow-lg: inset 0 4px 8px rgba(0, 0, 0, 0.50);
  }
}
:root[data-theme="dark"] {
  --color-ink:           #F3E9E2;
  --color-body:          #D9CCC3;
  --color-muted:         #B4A398;
  --color-border:        #3A2C24;
  --color-border-soft:   #2F271D;
  --color-border-strong: #4C3B31;
  --color-canvas:        #17110E;
  --color-surface:       #221A15;
  --color-surface-2:     #1D1611;
  --color-text-inactive: rgba(217, 204, 195, 0.5);

  --color-coral:         #FF8266;
  --color-coral-strong:  #FF9A82;
  --color-coral-soft:    #3A231C;
  --color-sunset:        #FF7A85;
  --color-sunset-strong: #FF6975;
  --color-sunset-soft:   #3A1F22;
  --color-violet:        #9C90D4;
  --color-violet-strong: #B3A9E0;
  --color-violet-soft:   #2A2540;
  --color-sky:           #6BB2ED;
  --color-sky-strong:    #8FC5F2;
  --color-sky-soft:      #1B2C3A;

  --color-focus-ring:    rgba(255, 130, 102, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.30), 0 16px 40px rgba(0, 0, 0, 0.40);

  --inner-shadow-sm: inset 0 1px 2px rgba(0, 0, 0, 0.30);
  --inner-shadow-md: inset 0 2px 4px rgba(0, 0, 0, 0.40);
  --inner-shadow-lg: inset 0 4px 8px rgba(0, 0, 0, 0.50);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { 
  font-size: 16px;
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--color-primary); text-decoration: none; font-weight: bold; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }
blockquote { margin: 0; padding: 0; }
figure { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 var(--space-3);
	letter-spacing: .005em;
}
h1 { font-size: clamp(1.875rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }
h6 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 auto var(--space-4) auto; line-height: var(--leading-relaxed); }
small, .text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

h2.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-2) 0;
}
code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
code, kbd, samp { padding: 0.15em 0.4em; }
pre { padding: var(--space-4); overflow-x: auto; border-radius: var(--radius-md); }
pre code { border: none; padding: 0; background: none; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn, button, input[type='button'], input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
 font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
padding: 0 var(--space-4);
	border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease),
              background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
	line-height: 1.5em;
	height: 3em;
}
.btn:active, button:active { transform: translateY(2px); }

.btn-primary, input[type='submit'], button { background: var(--color-ink); color: var(--color-surface); }
.btn-primary:hover, input[type='submit']:hover, button.btn-primary:hover { background: var(--color-primary-hover); }

input[type='submit'], input[type='submit']:hover {border: 0px; outline: 0px;}

.btn-outline { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-surface-2); }

.btn-accent { background: var(--color-primary); color: #FFFFFF; }
.btn-accent:hover { background: var(--color-primary-hover); }

.btn-white-outline { background: transparent; border: 2px solid white; color: white; }
.btn-white-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* Gradient-bordered — semi-transparent fill, gradient ring, rounded corners.
   Two background layers do the work: one solid-color layer clipped to the
   padding-box (the visible fill), one gradient layer clipped to the
   border-box (the ring). border-radius applies to both automatically, so
   this needs no SVG mask or border-image trick to get rounded corners.
   The plain border-color/background set first is the fallback for the rare
   browser without multi-layer background-clip — it's simply left in place
   if the layered background below fails to parse. */
.btn-gradient-outline {
 
  border-width: 2px;
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background:
    linear-gradient(var(--color-surface-2), var(--color-surface-2)) padding-box,
    var(--gradient-ring) border-box;
	 border-color: transparent;
}

.btn-gradient-outline:hover {background: var(--color-primary); border-color: var(--color-primary) }

.btn-sm { padding: 0.6em 1.1em; font-size: var(--text-xs); }

.btn-wide { width: clamp(220px, 100%, 350px); }
.btn-lg { font-size: var(--text-base); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Monthly-only is hidden by default so nothing flashes before JS sets the body class */
body:not(.billing-monthly) .billing-monthly-only,
body.billing-monthly .billing-annual-only { display: none; }

/* --------------------------------------------------------------------------
   5b. TOGGLES / TAB SWITCHES
   -------------------------------------------------------------------------- */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  position: relative;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.toggle-btn:hover:not(.active) {
  color: var(--color-text-default);
}

.toggle-btn.active {
  background: var(--color-bg);
  color: var(--color-text-default);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-strong);
}

.toggle-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.35em 0.65em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-info-soft);
  color: var(--color-info);
  white-space: nowrap;
  margin-left: var(--space-2);
}

/* --------------------------------------------------------------------------
   6. FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label, form label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field .hint, form .hint { font-size: var(--text-xs); color: var(--color-text-muted); }

.input, input[type=text], input[type=email], input[type=password], .textarea, textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.75em 1em;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
	line-height: var(--space-5);
}
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.75em 1em;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5em;
  background: var(--color-surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23545454" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 0.75em center / 1.2em;
  cursor: pointer;
}
.input::placeholder, .textarea::placeholder, input::placeholder, textarea::placeholder { color: var(--color-text-muted); }
.input:hover, .textarea:hover, select:hover, input:hover, textarea:hover, select:hover { border-color: var(--color-border-strong); }
.input:focus, .textarea:focus, select:focus, input:not([type="checkbox"]):focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

input[type="radio"]:focus {box-shadow: none;}

select:focus {
  background: var(--color-surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FC5B6A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 0.75em center / 1.2em;
}
.textarea { min-height: 8em; resize: vertical; }
.field.is-invalid .input,
.field.is-invalid .textarea { border-color: var(--color-danger); }
.field.is-invalid .hint { color: var(--color-danger); }

.checkbox, .radio { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.checkbox input, .radio input { accent-color: var(--color-primary); width: 1.1em; height: 1.1em; }

/* Fieldsets and legends */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 var(--space-3);
  padding: 0;
}

/* --------------------------------------------------------------------------
   6.5 DROPDOWNS
   -------------------------------------------------------------------------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75em 1em;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-base) var(--ease), 
              background var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
}

.dropdown-trigger:hover {
  border-color: var(--color-border-strong);
  background: color-mix(in srgb, var(--color-surface-2) 50%, transparent);
}

.dropdown-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.dropdown-trigger::after {
  content: '▼';
  font-size: 0.65em;
  transition: transform var(--duration-base) var(--ease);
  display: inline-block;
  transform: scalex(1.6);
}

.dropdown.open .dropdown-trigger::after {
  transform: scalex(1.6) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  max-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-base) var(--ease),
              visibility var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75em 1em;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.dropdown-item:hover {
  background-color: var(--color-surface-2);
  color: var(--color-primary);
}

.dropdown-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.dropdown-item.active {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

.dropdown-divider {
  margin: var(--space-1) 0;
  border-top: 1px solid var(--color-border);
}

.dropdown-header {
  padding: var(--space-2) 1em;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}

.dropdown-menu:first-child .dropdown-header {
  border-radius: var(--radius-box) var(--radius-box) 0 0;
}

/* Dropdown alignment modifier — right-align menu when trigger is near left edge */
.dropdown.dropdown-align-right .dropdown-menu {
  left: auto;
  right: 0;
}

/* --------------------------------------------------------------------------
   7. CARDS & SURFACES
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.card-flat { box-shadow: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-box);
  padding: var(--space-4);
}

/* --------------------------------------------------------------------------
   7.5 ACCORDIONS
   -------------------------------------------------------------------------- */
/* Base accordion: using native <details> and <summary> */
details {
  border-radius: var(--radius-box);
  overflow: hidden;
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: inherit;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--duration-base) var(--ease);
}

details summary:hover {
  background-color: color-mix(in srgb, var(--color-border-soft) 50%, transparent);
}

details summary:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: -2px;
}

/* Remove default browser disclosure triangle */
details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

/* Custom icon styling */
.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
}

/* Rotate icon when details is open */
details[open] .accordion-icon {
  transform: rotate(90deg);
}

/* Smooth animation for content */
details > :not(summary) {
  animation: slideDown var(--duration-base) var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CARD VARIANT ---------- */
.accordion-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.accordion-card summary {
  padding: var(--space-5);
}

.accordion-card > :not(summary) {
  padding: var(--space-5);
  padding-top: var(--space-4);
}

/* ---------- PANEL VARIANT ---------- */
.accordion-panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.accordion-panel summary {
  padding: var(--space-4);
}

.accordion-panel > :not(summary) {
  padding: var(--space-4);
  padding-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   8. BADGES & TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
	    line-height: normal;
}
.badge-coral  { background: var(--color-coral-soft);  color: var(--color-coral-strong); border-color: transparent; }
.badge-violet { background: var(--color-violet-soft); color: var(--color-violet-strong); border-color: transparent; }
.badge-sky    { background: var(--color-sky-soft);    color: var(--color-sky-strong); border-color: transparent; }

.note {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--color-sky-soft);
  color: var(--color-sky-strong);
  border: 1px solid transparent;
  border-radius: var(--radius-box);
  padding: var(--space-5);
}

/* --------------------------------------------------------------------------
   8.5 CHECKMARK LISTS
   Reusable pattern for feature lists with checkmark indicators
   -------------------------------------------------------------------------- */
.checkmark-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.checkmark-list li {
  display: flex;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-body);
  margin: 0;
  padding: var(--space-1) 0;
}

.checkmark-list li:not(.list-group-header)::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: var(--space-2);
  flex-shrink: 0;
}

.list-group-header {
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-top: var(--space-4);
  margin-bottom: 0;
  padding-top: var(--space-2);
  padding-bottom: 0px !important;
}

.list-group-header:first-child {
  margin-top: 0 !important;
}

.list-group-header.inactive {
  color: var(--color-text-muted);
}

.list-group-header::before {
  content: "" !important;
  display: none;
}

.checkmark-list li.inactive {
  opacity: 0.5;
  color: var(--color-text-muted);
}

.checkmark-list li.inactive::before {
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   8.5 SCROLLBARS
   -------------------------------------------------------------------------- */
/* WebKit scrollbars (Chrome, Safari, Edge, Opera) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-border);
}

/* Firefox scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

/* --------------------------------------------------------------------------
   9. ALERTS
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-box);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.alert-info   { background: var(--color-info-soft);   border-color: transparent; color: var(--color-sky-strong); }
.alert-danger { background: var(--color-danger-soft); border-color: transparent; color: var(--color-sunset); }

/* --------------------------------------------------------------------------
   9.5 TABLES
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-box);
  overflow: hidden;
}

thead {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

thead th {
  padding: var(--space-4);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  border-right: 1px solid var(--color-border);
}

thead th:last-child {
  border-right: none;
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: var(--space-4);
  color: var(--color-text-body);
  border-right: 1px solid var(--color-border-soft);
}

tbody td:last-child {
  border-right: none;
}

/* Striped rows variant */
tbody tr:nth-child(even) {
  background-color: var(--color-surface-2);
}

/* Table caption */
caption {
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

/* Optional utility classes for table variants */
.table-compact {
  font-size: var(--text-xs);
}

.table-compact thead th,
.table-compact tbody td {
  padding: var(--space-2) var(--space-3);
}

.table-striped tbody tr:nth-child(odd) {
  background-color: var(--color-surface-2);
}

.table-bordered {
  border: 1px solid var(--color-border-strong);
}

.table-bordered thead th,
.table-bordered tbody td {
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   10. GRADIENT UTILITIES
   Reserve for a single hero moment — this is the signature brand gesture,
   not a pattern to repeat across a page.
   -------------------------------------------------------------------------- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text {
  display: inline-block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient { background: var(--gradient-brand); }
.gradient-bar { height: 6px; border-radius: var(--radius-full); background: var(--gradient-brand); }
.border-gradient {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-ring) border-box;
}

/* --------------------------------------------------------------------------
   11. UTILITY CLASSES
   -------------------------------------------------------------------------- */
/* Text color */
.text-ink { color: var(--color-text); }
.text-body { color: var(--color-text-body); }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-violet { color: var(--color-violet); }
.text-sky { color: var(--color-sky); }
.text-on-dark { color: #FFFFFF; }

/* Background color */
.bg-canvas { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }
.bg-surface-2 { background: var(--color-surface-2); }
.bg-primary { background: var(--color-primary); }
.bg-ink { background: var(--color-ink); }
.dotted-canvas {
  background: var(--color-bg);
  background-image: radial-gradient(circle, var(--color-border) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  background-position: 100% 100%;
}
.gradient-canvas { background: var(--gradient-brand); }

/* Borders */
.border { border: 1px solid var(--color-border); }
.border-soft { border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent); }
.border-strong { border: 1px solid var(--color-border-strong); }
.border-primary { border: 1px solid var(--color-primary); }
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }

/* Radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Inner Shadow */
.inner-shadow-sm { box-shadow: var(--inner-shadow-sm); }
.inner-shadow-md { box-shadow: var(--inner-shadow-md); }
.inner-shadow-lg { box-shadow: var(--inner-shadow-lg); }

/* Spacing (margin/padding, scale 1-8) */
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); } .p-5 { padding: var(--space-5); } .p-6 { padding: var(--space-6); }

/* Display / flex helpers */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.hidden { display: none; }

/* Screen reader only — hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Margin auto (centering) */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Cursor & pointer events */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Text utilities */
.text-nowrap { white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Font weights */
.font-normal { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Font sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Font families */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* Text transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Line height */
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-screen { width: 100vw; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.6s ease; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-3); }
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes bobbing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.bobbing {
  animation-name: var(--anim-bobbing-name);
  animation-duration: var(--anim-bobbing-duration);
  animation-timing-function: var(--anim-bobbing-timing);
  animation-iteration-count: var(--anim-bobbing-iteration);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS - RADIO & CHECKBOX
   -------------------------------------------------------------------------- */
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* Styled radio buttons */
input[type="radio"] {
    border-radius: 50%;
    cursor: pointer;
    width: auto;
    margin-right: var(--space-2);
}

/* Styled checkboxes */
input[type="checkbox"] {
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
}

/* ====== */
.max-500 {max-width: 500px;}
