@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* =========================
   TOKENS
   ========================= */
:root {
  /* Spacing scale */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 4rem;

  /* Typography */
  --font-sans: "Inter", sans-serif;
  --base-font-size: 16px;
  --line-height: 1.5;

  /* Fluid type scale */
  --fs-hero: clamp(2rem, 4.2vw, 4rem);
  --fs-h1: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h2: clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1rem);

  /* Layout */
  --container-max: 1200px;
  --gutter: var(--space-m);

  /* Shape & elevation */
  --radius: 15px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);

  /* Motion */
  --ease: cubic-bezier(.2, .9, .3, 1);
  --speed: 220ms;
  --transition: 0.2s ease;

  /* Palette (light as base) */
  --bg: #fff;
  --bg-alt: #f8f8f8;
  --surface: #f7f7f7;
  --muted: #6b7280;
  --text: #0b1220;
  --accent: #0a84ff;
  --accent-600: #0066ff;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.4);
  --border: #ccc;
  --hover: #f0f0f0;
  --selected-bg: #d0f0c0;
  --selected-border: #769c62;
}

@media (prefers-color-scheme: light) {
  h1 span {
    background: linear-gradient(90deg, #ff5f6d, #ffb347, #42e695, #4776e6);
    background-size: 300% 300%;
  }
}

/* Dark scheme auto */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --bg-alt: #2a2a2a;
    --surface: #0f1720;
    --muted: #9aa4b2;
    --text: #e6eef8;
    --accent: #3f8fea;
    --accent-600: #2480ea;
    --glass: rgba(6, 10, 15, 0.6);
    --glass-2: rgba(6, 10, 15, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.65);
    --border: #444;
    --hover: #333;
    --selected-bg: #295f32;
    --selected-border: #1d4d25;
  }

  h1 span {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb);
    background-size: 300% 300%;
  }
}

/* Gradient text only on span inside h1 */
h1 span {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #47caff, #845ec2);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

/* Smooth animated gradient */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Explicit theme overrides */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: var(--base-font-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: var(--line-height);
  font-size: var(--fs-body);
  background-color: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   LAYOUT
   ========================= */
.container {
  width: min(100% - var(--gutter) * 2, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(var(--space-m), 2vw, var(--space-l));
  grid-template-columns: 1fr;
}

@media (min-width: 580px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   COMPONENTS
   ========================= */

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-s) var(--gutter);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(6px);
  z-index: 40;
}

.header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-weight: 600;
}

.header .nav {
  display: flex;
  gap: var(--space-m);
  align-items: center;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all var(--speed) var(--ease);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn:active {
  transform: scale(.97);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  box-shadow: none;
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: none;
  color: #000;
}

/* Hero */
.hero {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl);
  align-items: center;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  align-items: center;
  justify-content: space-between;
}

.hero .title {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.hero .subtitle {
  margin: 0;
  max-width: 65ch;
  font-size: var(--fs-h2);
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

/* Ensure hero video scales correctly */
.hero__media {
  width: 100%;
  max-width: 720px;
  /* optional, controls max size */
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--card-elev);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ensures the video fills container without distortion */
  display: block;
  border-radius: calc(var(--radius) * 1.2);
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.card__media {
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.card__media img,
.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.card__title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
}

.card__meta {
  font-size: 1rem;
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.card.calculator:hover {
  transform: none;
}

#services .card:hover {
 transform: none;
}




/* Footer */
.footer {
  margin-top: auto;
  padding-block: var(--space-l);
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

/* =========================
   UTILITIES
   ========================= */
.lead {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  color: var(--text);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  align-items: center;
}

.col {
  flex: 1 1 0%;
}

.hide-sm {
  display: none;
}

@media (min-width: 580px) {
  .hide-sm {
    display: initial;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inputs */
.input {
  padding: 0.65rem 0.85rem;          /* slightly bigger and comfy */
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  background: transparent;
  color: var(--text);
  max-width: 1000px;
  font-size: 1rem;
  font-family: inherit;              /* match surrounding text */
  transition: 
    border-color 0.2s ease, 
    box-shadow 0.2s ease, 
    background-color 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

/* subtle background highlight on hover */
.input:hover {
  background-color: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

/* focus with prominent accent */
.input:focus-visible {
  outline: none;                     /* remove default focus */
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* optional: placeholder styling */
.input::placeholder {
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

/* Animations */
.pulse {
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .5
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.parallax {
  transform: translateY(0);
  transition: transform .3s linear;
  will-change: transform;
}

section {
  scroll-margin-top: 60px;
  margin-bottom: 100px !important;
}

.tinted {
  background-color: rgb(245, 245, 247);
  width: 100vw;
  padding: 60px 20px;
}

.inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

h2.title {
  font-size: 250%;
}

.fade-element {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  /* optional, hides interactivity until visible */
}

.fade-element.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Calculator */

/* --- Layout --- */
.card.calculator {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
}

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-group p {
  color: var(--text);
  margin-bottom: 0;
}

/* --- Buttons --- */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}

.btn-radio,
.btn-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-radio:hover,
.btn-checkbox:hover {
  background: var(--hover);
}

.btn-radio input,
.btn-checkbox input {
  display: none;
}

/* --- Selected States --- */
.btn-radio.selected,
.btn-checkbox.selected,
.btn-checkbox input:checked + span,
.btn-radio input:checked + span {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  font-weight: 600;
  color: var(--text);
}

/* Checkmark indicator */
.btn-radio.selected::after,
.btn-checkbox input:checked + span::after {
  content: "✔";
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--selected-border);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* --- Tooltip --- */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  color: var(--accent);
  cursor: pointer;
}

.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  width: 260px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

@media (prefers-color-scheme: dark) {
  .info-tooltip::after {
    background: #f4f4f4;
    color: #111;
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.15);
  }

  .tinted {
  background-color: rgb(19, 23, 27);
  }
}

.info-tooltip:hover::after {
  opacity: 1;
}

/* --- Price display --- */
.price-display {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
  }
}


/* Make the whole card link inherit text color and remove underlines */
a.card,
a.card * {
  color: var(--text);
  text-decoration: none;
  -webkit-text-decoration: none;
  -moz-text-decoration: none;
  line-height: 1.2;
}

/* Optional hover/focus styling */
a.card:hover,
a.card:focus,
a.card:hover *,
a.card:focus * {
  /* For example, slightly lift the body or change color */
  color: var(--text);
  text-decoration: none;
}


#copyinfo {
  display: none;
  width: 280px;
  margin: 0 auto;
  font-size: 80%;
}

.emoji {
  font-size: 2rem;
}