/* ==========================================================================
   NoroNetwork – shared styles (all pages)
   Source of truth: Figma "Faktury" → Desktop - 11, 1440px frame
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Header   6. Buttons
   7. Section heads   8. Cards & plans   9. FAQ   10. Forms   11. Footer
   ========================================================================== */

/* 1. Fonts – Zalando Sans SemiExpanded, self-hosted variable font (latin + latin-ext for Slovak) */
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/zalando-sans-semiexpanded-latin-normal.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; }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/zalando-sans-semiexpanded-latin-ext-normal.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/zalando-sans-semiexpanded-latin-italic.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; }
@font-face { font-family: 'Zalando Sans SemiExpanded'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/zalando-sans-semiexpanded-latin-ext-italic.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --c-bg: #070608;
  --c-mint: #BEF3DF;
  --c-mint-hover: #D6F9EC;
  --c-purple: #786DF1;
  --c-purple-hover: #8B81F4;
  --c-white: #FFFFFF;
  --c-input: #262626;
  --c-placeholder: #8C8C8C;
  --c-mint-line: rgba(190, 243, 223, 0.5);  /* 0.5px mint line in Figma */
  --c-divider: rgba(190, 243, 223, 0.2);    /* horizontal dividers between rows */
  --g-card-border: linear-gradient(to bottom left, #4A5551, #0F0E12);
  --g-divider: linear-gradient(90deg, #1F2123, #424C49);

  /* Theme tokens – dark is the default; [data-theme="light"] below swaps them */
  color-scheme: dark;
  --c-ink: #070608;                          /* text on mint and green surfaces, both themes */
  --c-text: #FFFFFF;
  --c-text-2: rgba(255, 255, 255, 0.82);
  --c-text-3: rgba(255, 255, 255, 0.75);
  --c-text-4: rgba(255, 255, 255, 0.6);
  --c-heading: #FFFFFF;
  --c-accent: var(--c-mint);                 /* small accent text, links, icons, lines */
  --c-accent-hl: var(--c-mint);              /* the highlighted half of big headings */
  --c-fill: rgba(255, 255, 255, 0.06);
  --c-line: rgba(190, 243, 223, 0.15);
  --c-hover: rgba(190, 243, 223, 0.04);
  --c-hover-strong: rgba(190, 243, 223, 0.1);
  --c-col-hl: rgba(190, 243, 223, 0.06);
  --c-code-bg: #0F0E12;
  --c-code-line: #262626;
  --c-box-line: #4A5551;
  --c-taken: #F2A7A7;
  --g-card: linear-gradient(126deg, rgba(73, 73, 73, 0.2) 12%, rgba(0, 0, 0, 0.2) 95%);
  --g-card-border-alt: linear-gradient(to top right, #4A5551, #0F0E12);
  --g-footer: linear-gradient(180deg, #070608 0%, #070608 35%, #2F2F2F 100%);
  --g-glow: radial-gradient(closest-side, rgba(190, 243, 223, 0.13), rgba(190, 243, 223, 0.06) 45%, rgba(190, 243, 223, 0) 100%);
  --g-panel: linear-gradient(100deg, rgba(190, 243, 223, 0.08), rgba(0, 0, 0, 0.2) 60%);
  --page-bg: url(/assets/img/hero-bg.jpg);
  --page-bg-opacity: 0.75;

  --font: 'Zalando Sans SemiExpanded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1264px;          /* 88px side margins at 1440 */
  --gutter: 24px;
  --radius-pill: 33.5px;
  --radius-card: 20px;
  --radius-plan: 20px;          /* pricing cards */
  --radius-panel: 30px;          /* large rectangles */

  /* Type scale – exact Figma sizes at 1440px, fluid below */
  --fs-h1: clamp(2.75rem, 2.0019rem + 3.1925vw, 4.875rem);        /* 78px */
  --fs-h2: clamp(2rem, 1.6259rem + 1.5962vw, 3.0625rem);         /* 49px */
  --fs-banner: clamp(2.25rem, 1.5rem + 3.6vw, 4.75rem);         /* 76px at 1440 (Figma 59px, enlarged) */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --fs-price: clamp(3.5rem, 3.17rem + 1.4085vw, 4.4375rem);      /* 71px */
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.83;
  overflow-x: hidden;   /* fallback for Safari < 16 */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; }
/* Inline links in running text move to the next line whole instead of breaking mid-phrase (all are short, max ~40 chars) */
:where(p, li, td, dd) a:not(.btn) { white-space: nowrap; }
@media (max-width: 600px) { :where(p, li, td, dd) a:not(.btn) { white-space: normal; overflow-wrap: anywhere; } }   /* long links must wrap on phones */
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.text-mint { color: var(--c-accent-hl); }
.hero__title, .page-hero__title, .section-title, .dedicated__title, .backup-teaser__title, .vps-why h3, .domain-hit__name { color: var(--c-heading); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--c-mint); color: var(--c-ink); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Desktop-only manual line breaks from the design */
@media (max-width: 1279px) { .br-lg { display: none; } }
@media (max-width: 991px) { .br-desk { display: none; } }
@media (min-width: 992px) { .br-mob { display: none; } }   /* break used only on phones and tablets */

/* Hero background: Figma "dark mode 1" – 1984×1108 at x=-34, image opacity 32% */
.page-bg {
  position: absolute;
  top: 0; left: -34px; right: 0;
  height: 1108px;
  background: var(--page-bg) 0 0 / cover no-repeat;
  opacity: var(--page-bg-opacity);                   /* dark: Figma 32%, raised so the purple shows through more */
  pointer-events: none;
  z-index: 0;
}
/* Desktop: the brighter background covers the first screen only and fades out at its bottom */
@media (min-width: 992px) {
  .page-bg {
    height: min(100svh, 980px);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
            mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 10; }   /* mobile menu panel must sit above the page */
.menu-open { overflow: hidden; }   /* page doesn't scroll behind the full-screen menu */
/* Phones and tablets: no sideways scrolling anywhere (iOS Safari needs it on both html and body).
   Desktop keeps overflow-x: clip only, so position: sticky still works there. */
@media (max-width: 991px) { html, body { overflow-x: hidden; } }

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

/* 5. Header --------------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 42px;
}
.navbar__logo { flex: none; }
.navbar__nav { --nav-gap: clamp(16px, 1.7vw, 24px); display: flex; align-items: center; }   /* one gap for every item in the bar */
.navbar__links { display: flex; gap: var(--nav-gap); font-size: 14px; font-weight: 500; }
.navbar__links a { white-space: nowrap; transition: color .2s var(--ease); }
.navbar__links a:hover, .navbar__links a[aria-current="page"] { color: var(--c-accent); }
.navbar__cta { margin-left: calc(var(--nav-gap) - 10px); }   /* toggle icon has 10px of hit area each side */
/* Theme switch: sun in dark mode, moon in light mode (light theme itself not built yet) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin-left: calc(var(--nav-gap) - 10px); padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.theme-toggle:hover { background: var(--c-hover-strong); }
.theme-toggle img { width: 20px; height: 20px; }
.theme-toggle[hidden] { display: none; }   /* switch hidden until the light theme exists */
.theme-toggle[hidden] + .navbar__cta { margin-left: var(--nav-gap); }   /* keep the even gap without it */
.theme-toggle__moon, [data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
/* Client links after the CTA: icon + label (Figma) */
.navbar__client { display: flex; gap: var(--nav-gap); margin-left: var(--nav-gap); font-size: 14px; font-weight: 500; }
.navbar__client a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; transition: color .2s var(--ease); }
.navbar__client a:hover { color: var(--c-accent); }
.navbar__client img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.navbar__toggle { display: none; }

@media (max-width: 991px) {
  .navbar { position: relative; align-items: center; padding-top: 40px; }
  .navbar__logo img { display: block; }
  .navbar__logo img { width: 136px; height: auto; }
  .navbar__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin-right: -12px;
    border: 0; background: transparent; cursor: pointer;
  }
  .navbar__toggle-bar,
  .navbar__toggle-bar::before,
  .navbar__toggle-bar::after {
    display: block; width: 22px; height: 2px; border-radius: 1px;
    background: var(--c-mint); transition: transform .2s ease, opacity .2s ease;
  }
  .navbar__toggle-bar { position: relative; }
  .navbar__toggle-bar::before, .navbar__toggle-bar::after { content: ''; position: absolute; left: 0; }
  .navbar__toggle-bar::before { top: -6px; }
  .navbar__toggle-bar::after { top: 6px; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar { background: transparent; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  /* Full-screen menu: covers the page, logo and close button stay on top */
  .navbar__logo, .navbar__toggle { position: relative; z-index: 30; }
  .navbar__nav {
    display: none;
    position: fixed; inset: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 28px;
    padding: 140px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--c-bg);
  }
  .navbar__nav.is-open { display: flex; }
  .navbar__links { flex-direction: column; gap: 4px; padding-top: 0; font-size: 28px; font-weight: 700; }
  .navbar__links a { display: block; padding: 8px 0; }
  .navbar__nav .navbar__cta, .navbar__nav .theme-toggle[hidden] + .navbar__cta { margin: 0; align-self: flex-start; height: 48px; padding: 0 28px; font-size: 16px; }
  .theme-toggle { margin: 0 0 0 -10px; align-self: flex-start; }
  .navbar__client { flex-direction: column; gap: 4px; margin: 0; font-size: 18px; }
  .navbar__client a { padding: 6px 0; }
}

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; line-height: 1.22; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-mint); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-mint-hover); }
.btn--outline { padding: 0 26px; border-color: var(--c-accent); color: var(--c-accent); background: transparent; }
.btn--outline:hover { background: var(--c-mint); color: var(--c-ink); }
.btn--dark { background: var(--c-ink); color: var(--c-accent); }
.btn--dark:hover { background: #1a1820; }
.btn--sm { height: 40px; padding: 0 22px; font-size: 14px; }

/* 7. Section heads -------------------------------------------------------- */
.eyebrow {
  color: var(--c-accent);
  font-size: 14px; font-weight: 500; line-height: 1.83;
  letter-spacing: 0.53em;            /* 7.42px */
  text-transform: uppercase;
}
.section-title {
  margin-top: 29.4px;                /* label → title = 55px between tops */
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.22;
}
.section-head--center { text-align: center; }
/* letter-spacing adds trailing space – compensate so centered labels stay centered */
.section-head--center .eyebrow { margin-right: -0.53em; }

/* 8. Cards & plans -------------------------------------------------------- */
/* Gradient 1px border on transparent/translucent cards */
.g-border { position: relative; }
.g-border::before {
  content: '';
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--g-card-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Plan card (pricing) */
.plan {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 382px;
  padding-top: 49px;
  border-radius: var(--radius-plan);
  color: var(--c-accent);
  text-align: center;
}
.plan__family {
  font-size: 12px; line-height: 1.22;
  letter-spacing: 0.38em;  /* 4.56px */
  margin-right: -0.38em;
  text-transform: uppercase;
}
.plan__name {
  margin-top: 16px;
  font-size: 20px; font-weight: 400; line-height: 1.22;
  letter-spacing: 0.38em;  /* 7.6px */
  margin-right: -0.38em;
  text-transform: uppercase;
}
.plan__price { display: flex; flex-direction: column; align-items: center; margin-top: 35.6px; }
.plan__amount { font-size: var(--fs-price); font-weight: 700; line-height: 1.22; }
.plan__amount--text { font-size: clamp(30px, 2.6vw, 38px); white-space: nowrap; }
.plan__period { font-size: 12px; line-height: 1.22; }
.plan__features {
  align-self: stretch;
  margin-top: 43.4px;                /* divider y=4010 */
  padding: 30px 0 0 18px;            /* first item y=4040; text centre sits right of the card centre */
  border-top: 1px solid;
  border-image: var(--g-divider) 1;
  font-size: 16px; line-height: 45px; /* Figma rounds 2.8 × 16 to 45 */
}
/* Text is centred, the check icon hangs to its left (as in Figma) */
.plan__features li { position: relative; width: max-content; max-width: 100%; margin-inline: auto; }
.plan__features li::before {
  content: '';
  position: absolute; right: calc(100% + 21px); top: 13.5px;
  width: 19px; height: 18px;
  background: url(/assets/img/icons/check-19.svg) center / 19px 18px no-repeat;
}
/* Button straddles the bottom edge; gaps differ per card in Figma */
.plan__btn { margin-top: 25px; margin-bottom: -22px; position: relative; }

.plan--featured { width: 383px; background: var(--c-mint); color: var(--c-ink); }
.plan--featured .plan__period { color: #000; }
.plan--featured .plan__features li::before { background-image: url(/assets/img/icons/check-19-inverse.svg); }
.plan--featured .plan__btn { border-color: #000; margin-top: 29px; margin-bottom: -22px; }
.plan--featured .plan__features { margin-top: 44.4px; padding-left: 38px; }



/* 9. FAQ ------------------------------------------------------------------ */
.faq__list { max-width: 678px; margin-inline: auto; }   /* 2/3 of the Figma 1017px */
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--c-divider); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child:not([open]) { padding-bottom: 28px; }
.faq-item[open] { padding-bottom: 31px; }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--c-text);
  font-size: 20px; font-weight: 700; line-height: 2;
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  color: var(--c-accent);
  flex: none;
  width: 29px;
  font-size: 29px; font-weight: 700; line-height: 1.22; text-align: left;   /* glyph starts at x=1199 */
}
.faq-item__q::after { align-self: flex-start; position: relative; top: 4px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-item__q::after { content: '\2212'; top: 4px; }
.faq-item__a { max-width: 600px; margin-top: 9px; font-size: 16px; line-height: 2; }

/* 10. Forms --------------------------------------------------------------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field__input {
  display: block; width: 100%; height: 61px;
  padding: 0 20px;
  border: 0; border-radius: 8px;
  background: var(--c-input);
  color: var(--c-text);
  font-size: 16px; line-height: 1.5;
}
.field__input::placeholder { color: var(--c-placeholder); opacity: 1; }
.field__input--area { height: 236px; padding-top: 16px; padding-bottom: 16px; resize: vertical; }
.field__input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 0; }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #F54137; }
.contact-form__submit { align-self: flex-start; margin-top: 11px; }
.contact-form__status:empty { display: none; }
.contact-form__status { font-size: 14px; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 101px;
  padding: 120px 0 32px;
  background: var(--g-footer);   /* page colour, then a soft tint only towards the very bottom */
  font-size: 14px;
}
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  padding-bottom: 48px;
}
/* Divider runs edge to edge, outside the container */
.site-footer__copy { position: relative; }
.site-footer__copy::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-top: 1px solid var(--c-divider); }
.site-footer__brand img { width: 170px; height: auto; }
.site-footer__brand p { max-width: 320px; margin-top: 32px; color: var(--c-text-3); line-height: 1.7; }
.site-footer__discord {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; white-space: nowrap;
  color: var(--c-text); font-size: 14px; font-weight: 700;
}
.site-footer__col .site-footer__discord { color: var(--c-text); }
@media (max-width: 1279px) { .site-footer__discord { white-space: normal; } }   /* narrow footer column: let the line wrap instead of overflowing */
.site-footer__discord u { text-underline-offset: 3px; }
.site-footer__discord svg { flex: none; }
.site-footer__discord:hover u { color: var(--c-accent); }
.site-footer__title { color: var(--c-text); font-size: 12px; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: 6px; margin-top: 16px; }
.site-footer__col a { color: var(--c-text-2); transition: color .2s var(--ease); }
.site-footer__col a:hover { color: var(--c-accent); }
.site-footer__copy { padding-top: 24px; color: var(--c-text-4); }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 12. Subpages ------------------------------------------------------------ */
/* Page hero: eyebrow + big title + lead, used at the top of every subpage */
.page-hero { padding-top: 96px; }
.page-hero__title { margin-top: 24px; font-size: var(--fs-h1); font-weight: 700; line-height: 1.05; }
.page-hero__lead { max-width: 640px; margin-top: 22px; font-size: 19px; font-weight: 500; line-height: 1.83; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 991px) { .page-hero { padding-top: 64px; } .page-hero__lead { font-size: 17px; } }

.section { scroll-margin-top: 24px; }
.section--sub { padding-top: 140px; }
@media (max-width: 991px) { .section--sub { padding-top: 96px; } }

/* Translucent card with the gradient border (pair with .g-border) */
.card { padding: 40px; border-radius: var(--radius-card); background: var(--g-card); }
.card__title { color: var(--c-accent); font-size: 22px; font-weight: 700; line-height: 1.3; }
.card__text { margin-top: 10px; color: var(--c-text-2); line-height: 1.75; }

/* Comparison table */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius-panel); }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--c-line); }
.spec-table th:first-child, .spec-table td:first-child { text-align: left; color: var(--c-text-3); }
.spec-table thead th { color: var(--c-text); font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.spec-table tbody tr:hover { background: var(--c-hover); }
.spec-table .is-featured { background: var(--c-col-hl); }
/* Phones: no sideways scroll – row label on its own line, the three values below it */
@media (max-width: 600px) {
  .spec-table, .spec-table thead, .spec-table tbody, .spec-table tfoot { display: block; min-width: 0; }
  .spec-table tfoot td { display: flex; justify-content: center; padding: 16px 4px; }
  .spec-table tfoot .btn { padding: 0 18px; }
  .spec-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
  .spec-table th, .spec-table td { padding: 10px 6px; border-bottom: 0; overflow-wrap: anywhere; }
  .spec-table tr > :first-child { grid-column: 1 / -1; padding: 14px 6px 0; }
  .spec-table thead tr > :first-child, .spec-table tr > :first-child:empty { display: none; }
  .spec-table thead th { padding-top: 14px; font-size: 11px; letter-spacing: 0.12em; }
}

/* Long-form text (legal pages) */
.prose { max-width: 780px; color: var(--c-text-2); line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; color: var(--c-accent); font-size: 24px; line-height: 1.3; }
.prose h3 { margin-top: 1.8em; color: var(--c-text); font-size: 18px; line-height: 1.4; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }


/* CONTACT ---------------------------------------------------------------- */
.contact { padding-top: 150px; }                      /* photo y=6114 */
.contact__grid {
  display: grid;
  grid-template-columns: 519px 483px;
  column-gap: 138px;
  justify-content: center;
  align-items: center;                                /* photo centred against the whole form column */                            /* photo + form centred as one block */
}
.contact__media img { width: 519px; border-radius: var(--radius-panel); }
.contact__body { padding-top: 0; }
.contact-form { margin-top: 47.2px; }                 /* first input y=6336 */

@media (max-width: 1279px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
  .contact__media img { width: 100%; }
}
@media (max-width: 991px) {
  .contact { padding-top: 120px; }
  .contact__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .contact__media { order: 2; }
  .contact__media img { max-width: 420px; margin-inline: auto; }
  .contact__body { padding-top: 0; }
  .contact-form { margin-top: 32px; }
}

/* Green CTA banners on the subpages: same height as the homepage banner, content at the bottom */
@media (min-width: 992px) {
  main :is(.hs-cta, .vps-cta, .pb-cta, .domains__cta, .ded__cta) {
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    min-height: 528px; padding: 64px 64px 56px;
  }
  main .vps-cta { gap: 0; }
  main .vps-cta__actions { margin-top: 32px; }
}

/* Proxmox Backup teaser */
.backup-teaser { padding-top: 72px; }

/* Phones: tighter vertical rhythm, roomier sides ---------------------------- */
@media (max-width: 600px) {
  .site-footer { margin-top: 40px; padding-top: 72px; }                         /* 7, 14, 17 */
  .faq__list { padding-inline: 12px; }                                          /* 6 */
}

/* Very small phones (≤ 380px): nothing may be cut at the edge */
@media (max-width: 380px) {
  .page-hero__title, .section-title { overflow-wrap: break-word; hyphens: auto; }
  .page-hero__title { font-size: 38px; }
  .pricing__tab { padding: 0 10px; font-size: 13px; }
  .ded__price { font-size: 36px; }
}

/* Swipe carousels (cards marked data-carousel) ---------------------------- */
.card__check { display: none; width: 30px; height: 29px; margin-bottom: 40px; }   /* double the old 20px gap to the title */
.carousel-ui { display: none; }
@media (max-width: 600px) {
  [data-carousel] {
    display: flex !important; gap: 16px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);   /* full-bleed: cards run to the screen edges */
    scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;   /* finger swipe on the cards, smooth on older iOS */
    scrollbar-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: start; }   /* height follows the text; cards in a row match the tallest */
  [data-carousel] > :last-child { scroll-snap-align: end; }   /* Safari: last card snaps to the right, the previous one stays in view */
  [data-carousel]::after { content: ''; flex: 0 0 calc(var(--gutter) - 16px); }   /* Safari ignores end padding in a scrolling flex row */
  [data-carousel] .card__check { display: block; }
  .carousel-ui { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
  .carousel-ui__btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--c-mint-line); border-radius: 50%;
    background: transparent; color: var(--c-accent); cursor: pointer;
    transition: opacity .2s var(--ease);
  }
  .carousel-ui__btn:disabled { opacity: .3; cursor: default; }
  .carousel-ui__bar { position: relative; flex: 1; height: 2px; border-radius: 1px; background: var(--c-divider); overflow: hidden; }
  .carousel-ui__fill { position: absolute; inset: 0 auto 0 0; border-radius: 1px; background: var(--c-mint); will-change: transform; }   /* no transition: it follows the finger 1:1 */
}


/* ==========================================================================
   LIGHT THEME – white page, purple headings. Toggled by the sun/moon switch
   (data-theme="light" on <html>, set before first paint in layout.html)
   ========================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --c-bg: #FFFFFF;
  --c-text: #1B1424;
  --c-text-2: rgba(27, 20, 36, 0.78);
  --c-text-3: rgba(27, 20, 36, 0.68);
  --c-text-4: rgba(27, 20, 36, 0.55);
  --c-heading: #361055;
  --c-accent: #5A4BD8;                       /* brand purple, darkened for small text on white */
  --c-accent-hl: #361055;                    /* headings are one colour in light mode */
  --c-input: #F3F1F8;
  --c-placeholder: #8A8496;
  --c-mint-line: rgba(54, 16, 85, 0.22);
  --c-divider: rgba(54, 16, 85, 0.12);
  --c-line: rgba(54, 16, 85, 0.12);
  --c-fill: #FFFFFF;
  --c-hover: rgba(120, 109, 241, 0.05);
  --c-hover-strong: rgba(120, 109, 241, 0.12);
  --c-col-hl: rgba(120, 109, 241, 0.07);
  --c-code-bg: #F6F4FB;
  --c-code-line: #E4DFEE;
  --c-box-line: #CFC8E0;
  --c-taken: #C0392B;
  --g-card: linear-gradient(126deg, #FFFFFF 12%, #F6F4FB 95%);
  --g-card-border: linear-gradient(to bottom left, #DCD6EA, #EEEAF5);
  --g-card-border-alt: linear-gradient(to top right, #DCD6EA, #EEEAF5);
  --g-divider: linear-gradient(90deg, #E7E2F0, #D9D2E8);
  --g-footer: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 35%, #EFEBF7 100%);
  --g-glow: radial-gradient(closest-side, rgba(120, 109, 241, 0.16), rgba(120, 109, 241, 0.06) 45%, rgba(120, 109, 241, 0) 100%);
  --g-panel: linear-gradient(100deg, rgba(120, 109, 241, 0.1), #F7F5FC 60%);
  --page-bg: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url(/assets/img/hero-bg-light.jpg);   /* white veil keeps the purple headings readable */
  --page-bg-opacity: 1;
}
/* Hero background fades into the white page on every screen size */
[data-theme="light"] .page-bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Buttons: deep purple instead of mint on white */
[data-theme="light"] .btn--primary { background: #361055; color: #FFFFFF; }
[data-theme="light"] .btn--primary:hover { background: #4B1C72; }
[data-theme="light"] .btn--outline:hover { background: #361055; border-color: #361055; color: #FFFFFF; }
[data-theme="light"] .plan--featured .plan__btn { border-color: #361055; }

/* Mint fills that would vanish on white */
[data-theme="light"] .navbar__toggle-bar,
[data-theme="light"] .navbar__toggle-bar::before,
[data-theme="light"] .navbar__toggle-bar::after { background: #361055; }
[data-theme="light"] .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar { background: transparent; }
[data-theme="light"] .carousel-ui__fill,
[data-theme="light"] .ded__specs li::before { background: var(--c-accent); }

/* Logo: purple lettering in light mode */
.logo--light { display: none !important; }
[data-theme="light"] .logo--dark { display: none !important; }
[data-theme="light"] .logo--light { display: block !important; }

/* Mint line icons recoloured to purple on white (round check icons stay mint) */
[data-theme="light"] :is(.service-card__icon img, .vps-why__icon, .navbar__client img, .pillar img) {
  filter: brightness(0) saturate(100%) invert(27%) sepia(64%) saturate(2700%) hue-rotate(238deg) brightness(88%) contrast(95%);
}

/* Pricing cards: one dark purple for every plan */
[data-theme="light"] .plan,
[data-theme="light"] .plan--featured,
[data-theme="light"] .plan--featured .plan__period { color: #361055; }
[data-theme="light"] .plan--featured .plan__features { border-image: linear-gradient(90deg, rgba(54, 16, 85, 0.25), rgba(54, 16, 85, 0.25)) 1; }

/* Buttons on the green banners: black with white text */
[data-theme="light"] :is(.cta-banner, .hs-cta, .vps-cta, .pb-cta, .domains__cta, .ded__cta) .btn--dark { background: #000000; color: #FFFFFF; }
[data-theme="light"] :is(.cta-banner, .hs-cta, .vps-cta, .pb-cta, .domains__cta, .ded__cta) .btn--dark:hover { background: #1F1F1F; }
/* Button on the purple migration card: white with purple text */
[data-theme="light"] .hs-migrate .btn--dark { background: #FFFFFF; color: #361055; }
[data-theme="light"] .hs-migrate .btn--dark:hover { background: #F1EEFB; }

/* See-through panels over the hero background */
[data-theme="light"] :is(.hs-hero__price, .vps-hero__price, .pb-hero__price) {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
[data-theme="light"] .domains-hero .domain-search__row {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
[data-theme="light"] .domains-hero .domain-search__row .btn--primary { background: var(--c-mint); color: var(--c-ink); }
[data-theme="light"] .domains-hero .domain-search__row .btn--primary:hover { background: var(--c-mint-hover); }

/* AI prompt box: dark purple with white text */
[data-theme="light"] .cc-prompt { background: #361055; }
[data-theme="light"] .cc-prompt pre { color: #FFFFFF; }
[data-theme="light"] .cc-prompt__label { color: var(--c-mint); }

/* Login photos run lower and fade just above the title */
[data-theme="light"] .login-card__photo {
  height: 64%;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
[data-theme="light"] .login-card__title { color: var(--c-heading); }
[data-theme="light"] :is(.hs-hero__amount, .vps-hero__amount, .pb-hero__amount) { color: var(--c-heading); }
/* Home: service card buttons and the features grid in dark purple */
[data-theme="light"] .service-card .service-card__btn { background: #361055; }
[data-theme="light"] .service-card .service-card__btn:hover { background: #4A1A70; }
[data-theme="light"] .feature__icon { content: url(/assets/img/icons/check-30-light.svg); }
[data-theme="light"] .feature__title { color: var(--c-heading); }
/* Mobile menu: same purple background as the first screen */
@media (max-width: 991px) {
  [data-theme="light"] .navbar__nav { background: var(--page-bg) center top / cover no-repeat, var(--c-bg); }
}
