/* ===================================================================
   FillRadar — Stylesheet
   Redesigned based on sApp Template structure and effects
   Deep Green / Emerald Palette · Modern Glassmorphism
   =================================================================== */

/* --- Fonts: self-hosted ------------------------------------------
   Manrope (variable, 400-800) and a Material Symbols Outlined subset holding only the icons
   the site uses. Served from this origin rather than Google Fonts, so a visit sends nothing to a
   third party before the visitor has chosen anything, and so the stylesheet is no longer held up
   by a chain of @imports. Adding an icon means regenerating the subset - see docs/website-seo.md. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.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: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('assets/fonts/material-symbols-v3.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* --- Design Tokens ------------------------------------------------ */
:root {
  /* Brand colors */
  --green-950: #051408;
  --green-900: #0f3d18;
  --green-800: #1a5c27;
  --green-700: #1B5E20;
  --green-600: #2E7D32;
  --green-500: #2ea34b;
  --green-400: #4CAF50;
  --green-100: #e8f5e9;
  --green-50:  #f1f8e9;
  --gold-500:  #ffb300;

  /* Neutrals */
  --white:     #ffffff;
  --gray-50:   #fafafa;
  --gray-100:  #f5f5f5;
  --gray-200:  #eeeeee;
  --gray-300:  #e0e0e0;
  --gray-400:  #bdbdbd;
  --gray-500:  #9e9e9e;
  --gray-600:  #757575;
  --gray-700:  #616161;
  --gray-800:  #424242;
  --gray-900:  #212121;
  --slate-900: #0b150e;

  /* Semantic */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-500);
  --surface:        var(--white);
  --surface-alt:    var(--gray-50);
  --border:         var(--gray-200);
  --accent:         var(--green-500);
  --accent-dark:    var(--green-800);
  --accent-light:   var(--green-100);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 40%, var(--green-800) 100%);
  --gradient-accent: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 50%, var(--green-400) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(5, 20, 8, 0.95) 0%, rgba(15, 61, 24, 0.9) 100%);
  --gradient-light: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);

  /* Typography */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.5rem;
  --font-size-4xl:  3.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Shadows */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:  0 16px 36px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-max: 1140px;
  --header-height: 80px;
}

/* --- Reset & Base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent);
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Container ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- Section Base ------------------------------------------------- */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section--alt {
  background-color: var(--surface-alt);
}

.section--primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  background: var(--green-50);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.section--primary .section__label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-100);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.section--primary .section__title {
  color: var(--white);
}

.section__subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.7;
}

.section--primary .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46, 163, 75, 0.35);
}

.btn--primary:hover {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(46, 163, 75, 0.45);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  background-color: var(--white);
  color: var(--green-900);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-10);
}

.btn--google-play {
  background-color: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
  box-shadow: var(--shadow-md);
}

.btn--google-play:hover {
  background-color: var(--slate-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--google-play svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- Preloader ---------------------------------------------------- */
.preloader-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-wapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader {
  position: relative;
  z-index: 10001;
  width: 150px;
  height: 150px;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.dot {
  transform-origin: center;
  animation: gooPulse 2s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: -1s;
}

@keyframes gooPulse {
  0%, 100% {
    transform: scale(0.6) translate(-30px, 0);
  }
  50% {
    transform: scale(1.1) translate(30px, 0);
  }
}

.loader-section {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--green-950);
  z-index: 10000;
  transition: transform var(--duration-slow) cubic-bezier(0.77, 0, 0.175, 1);
}

.section-left {
  left: 0;
}

.section-right {
  right: 0;
}

.preloader-main.loaded .loader-section.section-left {
  transform: translateX(-100%);
}

.preloader-main.loaded .loader-section.section-right {
  transform: translateX(100%);
}

.preloader-main.loaded .preloader {
  opacity: 0;
}

.preloader-main.loaded {
  display: none;
}

/* --- Header & Navbar ---------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled,
.header.header--standalone {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: var(--font-size-lg);
  transition: color var(--duration-fast) var(--ease-out);
}

.header.scrolled .header__brand,
.header.header--standalone .header__brand {
  color: var(--text-primary);
}

.header__brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
}

.footer-items__logo img,
.footer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.header__nav-links li {
  display: flex;
  align-items: center;
}

.header__nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.header.scrolled .header__nav-links a,
.header.header--standalone .header__nav-links a {
  color: var(--text-secondary);
}

.header__nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.header__nav-links a:hover,
.header__nav-links a.active {
  color: var(--white);
}

.header.scrolled .header__nav-links a:hover,
.header.scrolled .header__nav-links a.active,
.header.header--standalone .header__nav-links a:hover,
.header.header--standalone .header__nav-links a.active {
  color: var(--text-primary);
}

.header__nav-links a:hover::after,
.header__nav-links a.active::after {
  width: 100%;
}

/* --- Header Dropdown Menu ---------------------------------------- */
.header__nav-links li.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  user-select: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.header.scrolled .dropdown-toggle,
.header.header--standalone .dropdown-toggle {
  color: var(--text-secondary);
}

.dropdown-toggle:hover,
.has-dropdown:hover .dropdown-toggle {
  color: var(--white);
}

.header.scrolled .dropdown-toggle:hover,
.header.scrolled .has-dropdown:hover .dropdown-toggle,
.header.header--standalone .dropdown-toggle:hover,
.header.header--standalone .has-dropdown:hover .dropdown-toggle {
  color: var(--text-primary);
}

.dropdown-chevron {
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 4px;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-out);
}

.has-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 175px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 1010;
  display: flex;
  flex-direction: column;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background: var(--green-50);
  color: var(--green-800) !important;
}

/* Mobile Submenu */
.mobile-sub-menu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-sub-menu a {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  opacity: 0.85;
}

.header.scrolled .btn--secondary,
.header.header--standalone .btn--secondary {
  color: var(--green-900);
  border-color: var(--green-800);
}

.header.scrolled .btn--secondary:hover,
.header.header--standalone .btn--secondary:hover {
  background-color: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--white);
}

.header.scrolled .header__menu-btn,
.header.header--standalone .header__menu-btn {
  color: var(--text-primary);
}

.header__menu-btn svg {
  width: 28px;
  height: 28px;
}

/* --- Mobile Menu Overlay ------------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--slate-900);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  flex-direction: column;
  gap: var(--space-8);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.mobile-menu__links a {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--white);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

/* --- Hero Section ------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--gradient-primary);
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-24);
  overflow: hidden;
  color: var(--white);
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-content h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: var(--font-size-md);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.button-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.android-frame {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19.5;
  background-color: #0c180e;
  border: 11px solid #000000; /* Black phone bezel */
  border-radius: 38px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 1;
}

/* Punch-hole camera (Android style) */
.android-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 10;
}

/* Speaker receiver grill */
.android-frame::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: #111e14;
  border-radius: 3px;
  z-index: 10;
}

.android-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px; /* Slightly smaller to fit bezel curve */
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-thumb .android-frame {
  transform: rotate(-3deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5), 
    0 0 40px rgba(46, 163, 75, 0.45), 
    0 0 80px rgba(46, 163, 75, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  transition: all var(--duration-slow) var(--ease-out);
}

.hero-thumb:hover .android-frame {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6), 
    0 0 50px rgba(46, 163, 75, 0.55), 
    0 0 100px rgba(46, 163, 75, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.shape-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.shape-bottom svg {
  width: 100%;
  height: 90px;
  fill: var(--white);
}

/* --- Counter Area ------------------------------------------------- */
.counter-area {
  position: relative;
  z-index: 4;
  margin-top: -60px;
  padding-bottom: var(--space-16);
}

.counter-grid {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-10) var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  border: 1px solid var(--border);
  text-align: center;
}

.counter-item {
  position: relative;
}

.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.counter-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
  display: block;
}

.counter-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* --- Features Section (Image Box) --------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.image-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.image-box:hover {
  transform: translateY(-8px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
}

.image-box__icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--green-800);
  transition: all var(--duration-normal) var(--ease-out);
}

.image-box:hover .image-box__icon-wrapper {
  background: var(--gradient-accent);
  color: var(--white);
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 8px 16px rgba(46, 163, 75, 0.25);
}

.image-box__icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.image-box h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.image-box p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Content / Showcase Sections --------------------------------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase-row--reverse {
  direction: rtl;
}

.showcase-row--reverse > * {
  direction: ltr;
}

.showcase-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  line-height: 1.25;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.showcase-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.showcase-list-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-list-item__icon svg {
  width: 20px;
  height: 20px;
}

.showcase-list-item__text h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.showcase-list-item__text p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-visual .android-frame {
  width: 270px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4), 
    0 0 35px rgba(46, 163, 75, 0.35), 
    0 0 70px rgba(46, 163, 75, 0.2);
}

/* Staggered double visual on EV section */
.ev-visual-stack {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

.ev-visual-stack .android-frame {
  width: 230px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4), 
    0 0 30px rgba(46, 163, 75, 0.35), 
    0 0 60px rgba(46, 163, 75, 0.2);
}

.ev-visual-stack .android-frame:nth-child(2) {
  margin-top: var(--space-16);
}

/* --- How It Works Section (Work Area) ----------------------------- */
.work-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.work-section .shape-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.work-section .shape-top svg {
  width: 100%;
  height: 70px;
  fill: var(--white);
}

.work-section .intro h2 {
  color: var(--white);
}

.work-section .intro p {
  color: rgba(255, 255, 255, 0.8);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  position: relative;
  margin-top: var(--space-8);
}

.work-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.work-step__icon-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.work-step:hover .work-step__icon-box {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--green-400);
  border-style: solid;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.work-step__icon-box .material-symbols-outlined,
.work-step__icon-box svg {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: transform var(--duration-normal) var(--ease-out);
}

.work-step:hover .work-step__icon-box .material-symbols-outlined,
.work-step:hover .work-step__icon-box svg {
  color: var(--white);
  transform: scale(1.1);
}

.work-step__number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.work-step h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.work-step p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 290px;
  margin: 0 auto;
}

/* Connectors */
.steps-grid::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.05));
  z-index: 1;
}

/* --- Screenshots Section ----------------------------------------- */
.screenshots-area {
  padding: var(--space-20) 0;
  overflow: hidden;
}

.app-screenshots-slides {
  margin-top: var(--space-10);
  position: relative;
  width: 100%;
}

.slider-mid {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: var(--space-8) 0;
  -webkit-overflow-scrolling: touch;
}

.slider-mid::-webkit-scrollbar {
  display: none;
}

.slider-mid__track {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  padding: 0 var(--space-6);
}

.slider-slide {
  flex-shrink: 0;
  width: 250px;
  scroll-snap-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: zoom-in;
  opacity: 0.55;
  transform: scale(0.9);
}

.slider-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.slider-slide .android-frame {
  width: 100%;
}

.slider-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-nav {
  position: static;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 10;
}

#slider-prev {
  left: -28px;
}

#slider-next {
  right: -28px;
}

.slider-btn:hover {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1200px) {
  #slider-prev {
    left: 0;
  }
  #slider-next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .slider-btn {
    display: none; /* Hide on mobile and rely on touch swipe */
  }
}

/* --- Review Section ----------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}

.review-card__body {
  padding: var(--space-8) var(--space-6);
  flex-grow: 1;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
  color: var(--gold-500);
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-card__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.review-card__text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.review-card__meta {
  background: var(--green-950);
  color: var(--white);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.review-card__reviewer h5 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.review-card__reviewer span {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  display: block;
}

.review-card__quote-icon {
  position: absolute;
  bottom: 60px;
  right: var(--space-6);
  width: 40px;
  height: auto;
  opacity: 0.15;
}

/* --- Price Plan Area ---------------------------------------------- */
.price-plan-section {
  background: var(--gradient-primary);
  color: var(--white);
}

.price-plan-section .section__title {
  color: var(--white);
}

.price-plan-section .section__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1140px;
  margin: 0 auto;
  /* The section sits on a near-black gradient; without this the grid gap shows raw dark
     background between the white cards as three flat vertical bars. A softer, rounded tint
     reads as an intentional recessed panel instead. */
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

.pricing-table {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: left;
  color: var(--text-primary);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-table--popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

.pricing-table--popular::before {
  content: 'POPULAR';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.pricing-table--featured {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.pricing-table--featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.pricing-table__trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  margin: -10px 0 14px 0;
  border: 1px solid var(--green-200);
}

.pricing-table__type {
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.08em;
  display: block;
}

.pricing-table__price {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: #000000;
  margin: var(--space-2) 0 var(--space-6);
  line-height: 1;
}

.pricing-table__price small {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: #000000;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-8);
}

.pricing-list li {
  font-size: var(--font-size-sm);
  color: #000000;
  border-bottom: 1px solid var(--gray-100);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.pricing-list li span.pricing-text {
  flex: 1;
  display: block;
}

.pricing-list li strong,
.pricing-list li span.pricing-text strong {
  color: #000000;
  font-weight: 700;
}

.pricing-list li .material-symbols-outlined {
  font-size: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-list li.disabled {
  color: var(--text-muted);
  opacity: 0.65;
}

.pricing-list li.disabled span.pricing-text {
  text-decoration: line-through;
}

.pricing-list li.disabled .material-symbols-outlined {
  color: var(--gray-400);
  text-decoration: none !important;
}

.pricing-table .btn {
  width: 100%;
  font-size: var(--font-size-sm);
}

.pricing-notice {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.pricing-notice a {
  color: var(--white);
  text-decoration: underline;
}

/* --- FAQ Section (Accordion) -------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-out);
}

.faq-card.active {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}

.faq-card__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
}

.faq-card__question:hover {
  color: var(--accent-dark);
}

.faq-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-muted);
}

.faq-card.active .faq-card__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-card__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-card__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-card__answer-inner a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* --- Final CTA / Download Area ------------------------------------ */
.download-section {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.download-section .container {
  position: relative;
  z-index: 2;
}

.download-content {
  max-width: 780px;
  margin: 0 auto;
}

.download-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.download-content p {
  font-size: var(--font-size-md);
  opacity: 0.85;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.download-content .button-group {
  justify-content: center;
}

/* --- Footer ------------------------------------------------------- */
.footer-area {
  background: var(--slate-900);
  color: var(--gray-400);
  padding: var(--space-16) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding-bottom: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: var(--space-8);
}

.footer-items h4 {
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-items__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.footer-items__logo img {
  width: 32px;
  height: 32px;
}

.footer-items p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.social-icon:hover {
  background: var(--gradient-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-6) 0;
  font-size: var(--font-size-xs);
  color: var(--gray-600);
}

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

/* --- Scroll To Top ------------------------------------------------ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  pointer-events: auto;
}

.lightbox__image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.lightbox__image.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox__caption-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 320px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  padding: 0 var(--space-2);
}

.lightbox__caption {
  font-weight: 500;
  opacity: 0.95;
  margin-right: var(--space-4);
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
  font-weight: 600;
  color: var(--green-400);
  background: rgba(76, 175, 80, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  flex-shrink: 0;
  border: 1px solid rgba(76, 175, 80, 0.3);
  letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2010;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--green-400);
  transform: scale(1.05);
  border-color: var(--green-400);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
}

.lightbox__prev {
  position: absolute;
  left: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  position: absolute;
  right: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox__next:hover {
  transform: translateY(-50%) scale(1.05);
}

/* --- Media Queries ------------------------------------------------ */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
  .counter-grid {
    padding: var(--space-8) var(--space-4);
  }
  .lightbox__prev {
    left: var(--space-4);
  }
  .lightbox__next {
    right: var(--space-4);
  }
}

@media (max-width: 992px) {
  .hero-section__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  .hero-content {
    margin: 0 auto;
  }
  .button-group {
    justify-content: center;
  }
  .hero-thumb {
    order: -1;
  }
  .hero-thumb img {
    width: 250px;
    transform: rotate(0);
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-4);
  }
  .counter-item:nth-child(2)::after {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  .showcase-visual {
    order: -1;
  }
  .showcase-list-item {
    text-align: left;
  }
  .ev-visual-stack .phone-mock:nth-child(2) {
    margin-top: 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .steps-grid::after {
    display: none;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .pricing-table--featured {
    transform: scale(1);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-20: 3.5rem;
    --space-16: 2.5rem;
  }
  .header__nav-links,
  .header__nav .btn {
    display: none;
  }
  .header__menu-btn {
    display: block;
  }
  .preloader {
    width: 100px;
    height: 100px;
  }
  .counter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .counter-item:not(:last-child)::after {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .ev-visual-stack {
    flex-direction: column;
  }
  .lightbox__prev,
  .lightbox__next {
    display: none; /* Swipe only on mobile */
  }
  .lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }
  .lightbox__content {
    max-width: 95vw;
    gap: var(--space-4);
  }
  .lightbox__image {
    max-height: 75vh;
  }
  .lightbox__caption-wrapper {
    max-width: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Utility / Animations ----------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Legal Pages Styling ----------------------------------------- */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-20);
  background-color: var(--surface-alt);
  min-height: 100vh;
}

.legal-container {
  max-width: 880px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: var(--space-8);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background-color: var(--green-50);
  color: var(--green-800);
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 163, 75, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.legal-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.legal-updated .material-symbols-outlined {
  font-size: 18px;
  color: var(--green-700);
}

.legal-lead {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* Quick Navigation / Table of Contents */
.legal-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.legal-toc__title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.legal-toc__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.legal-toc__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--duration-fast) var(--ease-out);
}

.legal-toc__link:hover {
  background: var(--green-50);
  color: var(--green-800);
  border-color: rgba(46, 163, 75, 0.3);
  transform: translateY(-1px);
}

/* Legal Cards */
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast) var(--ease-out);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.legal-card:hover {
  box-shadow: var(--shadow-md);
}

.legal-card__title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.3;
}

.legal-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-800);
  font-size: 22px;
  flex-shrink: 0;
}

.legal-card p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.legal-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-500);
}

.legal-list li strong {
  color: var(--text-primary);
}

/* Legal Link Cards Grid */
.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.legal-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--font-size-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.legal-link-card:hover {
  background: var(--green-50);
  border-color: rgba(46, 163, 75, 0.3);
  color: var(--green-800);
  transform: translateY(-2px);
}

/* Callout Box */
.legal-callout {
  background: var(--green-50);
  border: 1px solid rgba(46, 163, 75, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.legal-callout__icon {
  color: var(--green-800);
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-callout__content p {
  color: var(--green-950);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Widgets Showcase Section ------------------------------------ */
.section__label--green-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
}

.section__label--green-dot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-500);
}

.widget-preview-wrapper {
  flex: 1;
  max-width: 520px;
  width: 100%;
}

.widget-preview-card {
  position: relative;
  background: linear-gradient(145deg, #1b263b 0%, #0e1626 50%, #0a0f1d 100%);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(10, 20, 35, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.widget-preview-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(46, 163, 75, 0.25) 0%, rgba(46, 163, 75, 0) 70%);
  pointer-events: none;
}

.widgets-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widgets-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.widget-box {
  background: #121926;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: var(--font-family);
  transition: transform var(--duration-fast) var(--ease-out);
}

.widget-box:hover {
  transform: translateY(-2px);
}

.widget-box--small {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.widget-box__header {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.widget-heart {
  font-size: 13px;
  line-height: 1;
}

.widget-box__price {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.widget-box__price .price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.widget-box__price .price-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.widget-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.widget-badge .material-symbols-outlined {
  font-size: 13px;
}

.widget-tag-mini {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2ea34b;
  white-space: nowrap;
}

.widget-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.widget-box--medium {
  padding: 18px;
  width: 100%;
}

.widget-box__med-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.widget-tag-green {
  color: #2ea34b;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.widget-station-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-station-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-station-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rank-num {
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  width: 16px;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1.2;
}

.brand-badge--asda {
  background: #78be20;
  color: #ffffff;
}

.brand-badge--murco {
  background: #004b87;
  color: #ffffff;
}

.brand-badge--tesco {
  background: #ee1c2e;
  color: #ffffff;
}

.station-info {
  flex: 1;
  overflow: hidden;
}

.station-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.station-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.station-price--green {
  color: #2ea34b;
}

/* Widget Filter Tags Group */
.widget-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-6);
}

.widget-tag-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-family);
}

.widget-tag-pill:hover,
.widget-tag-pill.active {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .widgets-top-row {
    grid-template-columns: 1fr;
  }
}

/* --- Price Alerts Section & Notification Card --------------------- */
.alert-settings-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 12px 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.alert-setting-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.alert-setting-item:last-child {
  border-bottom: none;
}

.alert-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-icon-box .material-symbols-outlined {
  font-size: 24px;
}

.alert-setting-info {
  flex: 1;
}

.alert-setting-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
  line-height: 1.3;
}

.alert-setting-info p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin: 0;
}

/* iOS/Android Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  border-radius: 30px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #2ea34b;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL (Google Analytics Consent)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 22px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.cookie-banner__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.cookie-banner__text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--green-700);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.cookie-banner__btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-fast) ease;
  border: none;
  font-family: inherit;
}

.cookie-banner__btn--accept {
  background: var(--green-600);
  color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--green-700);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transform: translateY(-1px);
}

.cookie-banner__btn--decline {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
}

.cookie-banner__btn--decline:hover {
  background: var(--gray-200);
  color: #000000;
}

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 18px;
  }
  
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }
  
  .cookie-banner__btn {
    width: 100%;
  }
}

/* ===================================================================
   HERO BETA BADGE
   =================================================================== */
.hero-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 9999px;
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  width: fit-content;
}

.hero-beta-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ===================================================================
   EARLY ACCESS MODAL
   =================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 36px 32px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal__dialog {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: var(--gray-200);
  color: #000000;
  transform: rotate(90deg);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__header {
  margin-bottom: 20px;
}

.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse-dot 2s infinite;
}

.modal__title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.modal__description {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.modal .form-group {
  margin-bottom: 6px;
  text-align: left;
}

.modal .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.modal .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modal .input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 20px;
  pointer-events: none;
}

.modal .form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #111827;
  background: #f9fafb;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.modal .form-input:focus {
  border-color: var(--green-600);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.modal .form-input.input-error {
  border-color: #ef4444;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.modal .form-error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

.modal .form-error-msg.visible {
  display: block;
}

.modal__submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 16px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.modal__submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.modal__submit-btn.is-loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.modal__submit-btn.is-loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
  to {
    transform: rotate(360deg);
  }
}

.modal__privacy-note {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Modal Success View */
.modal__success {
  text-align: center;
  padding: 10px 0 0 0;
}

.modal__success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal__success-icon span {
  font-size: 36px;
}

@media (max-width: 576px) {
  .modal {
    padding: 16px;
  }
  .modal__dialog {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .modal__title {
    font-size: 1.35rem;
  }
}


/* ===================================================================
   Home-page additions and content pages (features, LPG, boat fuel)
   =================================================================== */

/* Fuel-type chips under the hero copy */
.fuel-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
  padding: 0;
}
.fuel-chips li {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.counter-grid {
  grid-template-columns: repeat(4, 1fr);
}

.features-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.features-grid--4 .image-box {
  padding: var(--space-8) var(--space-6);
}
.features-grid .image-box p a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
}
.section__more {
  text-align: center;
  margin-top: var(--space-10);
}
.section__subtitle a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
}
.boat-note {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.6;
  padding: var(--space-2) var(--space-2) 0;
}

@media (max-width: 1200px) {
  .features-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .features-grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); padding: var(--space-6) var(--space-3); }
  .counter-item:not(:last-child)::after { display: none; }
  .counter-number { font-size: var(--font-size-2xl); }
}

/* --- Content pages ------------------------------------------------ */
.page-main {
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-20);
}
.page-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.page-head {
  margin-bottom: var(--space-10);
}
.page-head h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.15;
  margin: var(--space-2) 0 var(--space-4);
  color: var(--text-primary);
}
.page-head .lead {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.8;
}
.page-head .button-group {
  margin-top: var(--space-6);
  justify-content: flex-start;
}
.breadcrumb {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--green-700); font-weight: 600; }
.page-updated {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* EV charger pages: live availability and the "popular times" week grid. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.ev-status { font-weight: 700; white-space: nowrap; }
.ev-table td:first-child { min-width: 11rem; }
.ev-table td:last-child, .ev-table td:nth-child(2) b { white-space: nowrap; }
.ev-note { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: var(--space-3); }
.ev-status--free { color: var(--green-600); }
.ev-status--busy { color: #b45309; }
.ev-status--down { color: #c62828; }
.occ-grid {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.occ-grid th { font-weight: 600; text-align: left; padding: 0 2px; white-space: nowrap; }
.occ-grid thead th { text-align: left; }
.occ-grid tbody th { width: 2.5rem; color: var(--text-secondary); }
.occ-grid td { height: 22px; border-radius: 3px; }
.occ-grid__quiet { background: var(--green-500); }
.occ-grid__moderate { background: #f59e0b; }
.occ-grid__busy { background: #d32f2f; }
.occ-grid__none { background: var(--gray-200); }
.occ-grid__legend { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: var(--space-3); line-height: 1.8; }
.occ-grid__key {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-left: 4px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.panel h2 .material-symbols-outlined { color: var(--green-800); }
.panel h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--text-primary);
}
.panel p,
.panel li {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}
.panel p + p { margin-top: var(--space-3); }
.panel ul { padding-left: var(--space-5); margin-top: var(--space-2); }
.panel li { margin-bottom: var(--space-1); }
.panel a { color: var(--green-700); font-weight: 600; text-decoration: underline; }

.feature-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.feature-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature-row__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-row h3 { margin: 0 0 var(--space-1); }
.feature-row p { margin: 0; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.stat-strip div {
  background: var(--green-50);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.stat-strip strong {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--green-900);
}
.stat-strip span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 600;
}

.callout {
  border-left: 4px solid var(--gold-500);
  background: #fff8e1;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.callout p { color: var(--gray-800); }

.table-scroll { overflow-x: auto; margin-top: var(--space-4); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  min-width: 520px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  color: var(--text-secondary);
}
.compare-table th {
  color: var(--text-primary);
  font-weight: 800;
  background: var(--green-50);
}
.compare-table td:first-child { color: var(--text-primary); font-weight: 700; }

.cta-band {
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: var(--font-size-2xl); font-weight: 800; margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--space-6); }

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.related-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-decoration: none;
}
.related-links a:hover { border-color: var(--green-400); color: var(--green-700); }

@media (max-width: 768px) {
  .feature-rows { grid-template-columns: 1fr; }
  .page-head h1 { font-size: var(--font-size-2xl); }
  .panel { padding: var(--space-6) var(--space-5); }
}
.feature-rows + p,
.stat-strip + .feature-rows { margin-top: var(--space-5); }

/* --- Mobile fixes -------------------------------------------------
   A grid item's min-width defaults to its content, so the widget preview card pushed the page 33px wider
   than a 390px phone. Mobile browsers then widen the layout viewport, which cut fixed elements (cookie
   banner, dialogs, scroll-to-top) off at the right edge. body already had overflow-x: hidden, but that
   does not stop the viewport widening; the root element needs it too. */
html {
  overflow-x: clip;
}
.showcase-row > *,
.hero-section__inner > * {
  min-width: 0;
}
@media (max-width: 992px) {
  /* Headline first, phone second. */
  .hero-thumb {
    order: 0;
  }
}
@media (max-width: 576px) {
  .widget-preview-card {
    padding: 16px;
    border-radius: 22px;
  }
  .scroll-to-top {
    right: var(--space-4);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 576px) {
  /* Long labels such as the support email address must wrap rather than run past the card. */
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* The early-access dialog and the cookie banner used to stack, with the banner (z-index 99999) on top. */
body.modal-open .cookie-banner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 576px) {
  .cookie-banner {
    gap: 10px;
  }
  .cookie-banner__header {
    gap: 10px;
  }
  .cookie-banner__icon {
    display: none;
  }
  .cookie-banner__title {
    font-size: 1rem;
  }
  .cookie-banner__text {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}

/* --- EV charging calculator ---------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-4);
}
.calc__inputs { display: flex; flex-direction: column; gap: var(--space-5); }
.calc label, .calc__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.calc__row { display: flex; align-items: center; gap: var(--space-3); }
.calc input[type="number"], .calc select {
  width: 100%;
  font: inherit;
  font-size: var(--font-size-base);
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
}
.calc input[type="number"]:focus, .calc select:focus {
  outline: 2px solid var(--green-400);
  outline-offset: 1px;
  border-color: var(--green-400);
}
.calc__unit { font-size: var(--font-size-sm); color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.calc input[type="range"] { width: 100%; accent-color: var(--green-500); }
.calc__soc { font-weight: 800; color: var(--green-700); }
.calc__presets { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.calc__presets button {
  font: inherit;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
}
.calc__presets button:hover, .calc__presets button[aria-pressed="true"] {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-800);
}
.calc__result {
  background: var(--green-50);
  border: 1px solid #cfe8d2;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.calc__meta { font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: 600; }
.calc__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--green-700);
  margin-left: var(--space-2);
}
.calc__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.calc__card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-4); }
.calc__card span { display: block; font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: 600; }
.calc__card strong { display: block; font-size: var(--font-size-lg); font-weight: 800; color: var(--text-primary); margin: 2px 0; }
.calc__card em { font-style: normal; font-size: var(--font-size-sm); font-weight: 700; color: var(--green-700); }
.calc__note { font-size: var(--font-size-xs); color: var(--text-muted); line-height: 1.6; }

.shot-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: center;
}
.shot-row img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 6px solid #101a13;
  box-shadow: var(--shadow-lg);
}
.forecast-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.forecast-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--space-4) !important;
}
.forecast-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sample-alert {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  background: var(--gray-50);
  margin: var(--space-4) 0;
}
.sample-alert strong { display: block; color: var(--text-primary); margin-bottom: var(--space-1); font-size: var(--font-size-sm); }
.sample-alert p { margin: 0; }

@media (max-width: 768px) {
  .calc { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; justify-items: center; }
  .shot-row img { max-width: 240px; }
}

/* --- Town fuel-price pages (rendered by the townPages Cloud Function) --- */
.town-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.town-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-500);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.town-card__label { display: block; font-size: var(--font-size-sm); font-weight: 700; color: var(--text-secondary); }
.town-card strong { display: block; font-size: var(--font-size-2xl); font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-top: var(--space-1); }
.town-card__sub { display: block; font-size: var(--font-size-xs); color: var(--text-muted); font-weight: 600; }
.town-card p { font-size: var(--font-size-xs); color: var(--text-secondary); line-height: 1.6; margin-top: var(--space-3); }
.town-card p b { color: var(--green-700); }
.town-chart svg { width: 100%; height: auto; display: block; margin-top: var(--space-4); }
.town-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }
.town-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-sm); font-weight: 600; color: var(--text-secondary); }
.town-legend__item span { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.town-table td { vertical-align: middle; }
.town-table__addr { display: block; font-size: var(--font-size-xs); color: var(--text-muted); font-weight: 400; }
.town-table__price { font-weight: 800; color: var(--text-primary) !important; white-space: nowrap; }
.town-table a { color: var(--green-700); text-decoration: none; }
@media (max-width: 992px) {
  .town-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .town-card strong { font-size: var(--font-size-xl); }
}
.town-minis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.town-mini {
  margin: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4) var(--space-2);
}
.town-mini figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-3); }
.town-mini figcaption span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-sm); font-weight: 700; color: var(--text-primary); }
.town-mini figcaption i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.town-mini figcaption b { font-size: var(--font-size-base); font-weight: 800; color: var(--text-primary); }
.town-mini figcaption em { font-style: normal; font-size: var(--font-size-xs); font-weight: 700; color: var(--text-muted); margin-left: auto; }
.town-mini figcaption em.up { color: #c62828; }
.town-mini figcaption em.down { color: var(--green-700); }
.town-mini svg { width: 100%; height: auto; display: block; margin-top: var(--space-2); }
@media (max-width: 640px) {
  .town-minis { grid-template-columns: 1fr; }
}

.counter-note {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* --- Boat fuel regions ---------------------------------------------- */
.boat-jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-8); }
.boat-jump a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
}
.boat-jump a:hover { border-color: var(--green-400); color: var(--green-700); }
.panel .boat-list { list-style: none; padding-left: 0; columns: 2; column-gap: var(--space-8); }
.panel .boat-list li { break-inside: avoid; margin-bottom: var(--space-2); }
.boat-tags {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: var(--radius-full);
  padding: 0 8px;
  margin-left: 4px;
}
.boat-more { font-size: var(--font-size-xs) !important; color: var(--text-muted) !important; }
.boat-waterways { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-8); margin-top: var(--space-4); }
.boat-waterway h3 { display: flex; justify-content: space-between; border-bottom: 1px solid var(--gray-200); padding-bottom: 4px; }
.boat-waterway h3 span { color: var(--text-muted); font-weight: 600; font-size: var(--font-size-sm); }
.boat-waterway .boat-list { columns: 1; }
@media (max-width: 768px) {
  .panel .boat-list { columns: 1; }
  .boat-waterways { grid-template-columns: 1fr; }
}

/* --- Hero beta form: the site's only sign-up form ------------------- */
.beta-form {
  margin: var(--space-2) 0 var(--space-6);
  max-width: 560px;
}
.beta-form__label {
  display: block;
  color: var(--white);
  font-size: var(--font-size-md);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: var(--space-3);
}
.beta-form__row {
  display: flex;
  gap: var(--space-2);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.beta-form__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  padding: 0 var(--space-4);
}
.beta-form__input.input-error { color: #c62828; }
.beta-form__row:focus-within { box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.45), var(--shadow-lg); }
.beta-form__btn { white-space: nowrap; padding: 0.8rem 1.4rem; }
.beta-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-form .form-error-msg { display: block; margin-top: var(--space-2); color: #ffcdd2; font-size: var(--font-size-sm); }
.beta-form .form-error-msg a { color: var(--white) !important; }
.beta-form__note { color: rgba(255, 255, 255, 0.7); font-size: var(--font-size-xs); margin-top: var(--space-3); }
.beta-form__note a { color: var(--white); text-decoration: underline; }
.beta-form__success {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  color: var(--white);
}
.beta-form__success .material-symbols-outlined { font-size: 32px; color: #a5d6a7; }
.beta-form__success strong { font-size: var(--font-size-lg); }
.beta-form__success p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.85); font-size: var(--font-size-sm); }
@media (max-width: 992px) {
  .beta-form { margin-left: auto; margin-right: auto; text-align: left; }
}
@media (max-width: 480px) {
  .beta-form__row { flex-direction: column; border-radius: var(--radius-lg); padding: 8px; }
  .beta-form__input { padding: 10px 8px; }
  .beta-form__btn { width: 100%; justify-content: center; }
}
.beta-form__success[hidden] { display: none; }
.hero-content .beta-form__note,
.hero-content .beta-form__success p {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  margin-bottom: 0;
}
.hero-content .beta-form__note { margin-top: var(--space-3); }

/* The gallery video: just the Short, no phone bezel and no letterboxing (the Short is 9:16). */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.slider-slide .video-frame img { height: 100%; object-fit: cover; }

.footer-disclaimer {
  margin: var(--space-3) 0 0;
  font-size: var(--font-size-xs);
  line-height: 1.6;
  opacity: 0.7;
  text-align: center;
}
.town-region { display: flex; justify-content: space-between; align-items: baseline; margin: var(--space-6) 0 var(--space-2); }
.town-region span { font-size: var(--font-size-sm); color: var(--text-muted); font-weight: 600; }
.station-amenity {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--gray-50);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
}
.town-note { font-size: var(--font-size-xs) !important; color: var(--text-muted) !important; margin-top: var(--space-3); }

/* ===================================================================
   REDESIGN, NOVEMBER 2026: "INK / PAPER / VOLT"
   One layer over everything above. It re-skins every page that uses this stylesheet: the static
   pages and the town, forecourt, LPG, boat fuel and EV pages the townPages function renders.
   Ink is the night-forecourt black-green, paper a warm off-white, volt the radar's phosphor lime.
   Headlines are set in Big Shoulders, a condensed face in the family of forecourt price totems;
   Instrument Serif italic is the editorial voice; JetBrains Mono labels the instruments.
   The home page's own sections live in home.css.
   =================================================================== */
@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/bigshoulders-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-latin.woff2') format('woff2');
}

:root {
  --ink: #07100b;
  --ink-2: #0d1a12;
  --ink-3: #15281c;
  --paper: #f3f0e7;
  --paper-2: #e8e4d6;
  --card: #fbfaf5;
  --line: rgba(7, 16, 11, 0.14);
  --line-strong: rgba(7, 16, 11, 0.85);
  --volt: #c8f53b;
  --volt-deep: #a4d613;
  --amber: #ffab1a;
  --flame: #ff5a1f;
  --sea: #37b3d6;
  --signal: #e5484d;

  --font-display: 'Big Shoulders', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --text-primary: var(--ink);
  --text-secondary: #46524a;
  --text-muted: #6d776f;
  --surface: var(--paper);
  --surface-alt: var(--paper-2);
  --border: var(--line);
  --gradient-primary: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  --gradient-accent: linear-gradient(0deg, var(--volt), var(--volt));
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: none;
  --header-height: 72px;
  --ease-swift: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background-color: var(--paper);
  color: var(--ink);
  /* clip, not hidden: hidden would make body a scroll container and break position: sticky. */
  overflow-x: clip;
}
::selection { background: var(--volt); color: var(--ink); }
a { color: var(--ink); }
a:hover { color: var(--green-600); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 5px var(--volt); }

/* --- Buttons --- */
.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  transition: transform 0.35s var(--ease-swift), background-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease-swift);
}
.btn--primary,
.btn--primary:hover {
  background: var(--volt);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 0 var(--ink); }
.btn--secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper) !important; transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--large { font-size: 0.875rem; padding: 1.05rem 1.9rem; }
.btn--google-play { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 0.9rem 1.5rem; box-shadow: none; }
.btn--google-play:hover { background: var(--ink-3); color: var(--volt); }

/* --- Header: one ink bar on every page --- */
.header,
.header.scrolled,
.header.header--standalone {
  height: var(--header-height);
  background: rgba(7, 16, 11, 0.93);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(243, 240, 231, 0.1);
  box-shadow: none;
}
.header__brand,
.header.scrolled .header__brand,
.header.header--standalone .header__brand {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  gap: 10px;
}
.header__brand img { width: 34px; height: 34px; border-radius: 9px; }
.header__nav { gap: 1.75rem; }
.header__nav-links { gap: 1.6rem; }
.header__nav-links a,
.dropdown-toggle,
.header.scrolled .header__nav-links a,
.header.header--standalone .header__nav-links a,
.header.scrolled .dropdown-toggle,
.header.header--standalone .dropdown-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.72);
}
.header__nav-links a:hover,
.header__nav-links a.active,
.dropdown-toggle:hover,
.has-dropdown:hover .dropdown-toggle,
.header.scrolled .header__nav-links a:hover,
.header.scrolled .header__nav-links a.active,
.header.header--standalone .header__nav-links a:hover,
.header.header--standalone .header__nav-links a.active,
.header.scrolled .dropdown-toggle:hover,
.header.scrolled .has-dropdown:hover .dropdown-toggle,
.header.header--standalone .dropdown-toggle:hover,
.header.header--standalone .has-dropdown:hover .dropdown-toggle { color: var(--volt); }
.header__nav-links a::after { background: var(--volt); height: 1px; }
.header .btn--primary { box-shadow: none; padding: 0.6rem 1.1rem !important; font-size: 0.7rem !important; }
.header .btn--primary:hover { box-shadow: 0 0 0 4px rgba(200, 245, 59, 0.25); transform: none; }
.header__menu-btn { color: var(--paper) !important; }
.dropdown-menu {
  background: var(--ink-2);
  border: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 8px;
  min-width: 230px;
}
.dropdown-menu li a,
.header.scrolled .dropdown-menu li a,
.header.header--standalone .dropdown-menu li a {
  color: rgba(243, 240, 231, 0.78) !important;
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
}
.dropdown-menu li a:hover { background: rgba(200, 245, 59, 0.1) !important; color: var(--volt) !important; }
.dropdown-menu li a::after { display: none; }
.mobile-menu { background: var(--ink); }
.mobile-menu__links a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--paper); }
.mobile-menu .btn--secondary { color: var(--ink) !important; background: var(--volt); box-shadow: none; }

/* --- Content pages --- */
.page-main { padding-top: calc(var(--header-height) + 3.5rem); padding-bottom: 6rem; }
.page-wrap { max-width: 980px; }
.page-head { margin-bottom: 3rem; position: relative; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0.75rem 0 1.25rem;
  text-wrap: balance;
}
.page-head .lead {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration-color: var(--ink); }
.page-updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.page-updated::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); margin-right: 8px; box-shadow: 0 0 0 3px rgba(46, 163, 75, 0.2); }

.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 10px;
}
.section__label::before { content: ''; width: 9px; height: 9px; background: var(--volt); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 2px; flex: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 2.1rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}
.panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  gap: 0.7rem;
  align-items: center;
}
.panel h2 .material-symbols-outlined {
  color: var(--ink);
  font-size: 20px;
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--volt);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.panel h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; margin: 1.5rem 0 0.4rem; }
.panel p, .panel li { font-size: 0.95rem; line-height: 1.75; color: var(--text-secondary); }
.panel a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.panel a:hover { color: var(--green-600); }
.panel#faq h3 { padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.panel#faq h2 + h3 { border-top: 0; padding-top: 0; }

.stat-strip { gap: 0; margin: 2rem 0 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); overflow: hidden; background: var(--card); }
.stat-strip div { background: transparent; border-radius: 0; text-align: left; padding: 1.1rem 1.25rem 1rem; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip strong { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--ink); letter-spacing: 0.01em; }
.stat-strip span { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); display: block; margin-top: 0.4rem; }

.compare-table { font-size: 0.92rem; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: 0.95rem 1rem 0.95rem 0; }
.compare-table thead th {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--ink);
  padding-top: 0.4rem;
  padding-bottom: 0.6rem;
}
.compare-table tbody th { background: transparent; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); width: 11rem; }
.compare-table tbody tr { transition: background-color 0.2s; }
.compare-table tbody tr:hover { background: rgba(200, 245, 59, 0.12); }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 0; }
.town-table a { color: var(--ink); text-decoration: none; }
.town-table a b { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.town-table a:hover b { text-decoration-color: var(--green-500); }
.town-table__addr { font-size: 0.78rem; margin-top: 2px; }
.town-table__price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; letter-spacing: 0.01em; }
.town-table__price .town-table__addr { font-family: var(--font-family); font-weight: 500; letter-spacing: 0; }
.town-table__price sup { font-size: 0.6em; color: var(--text-muted); }

.town-cards { gap: 0.9rem; margin-bottom: 1.5rem; }
.town-card {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-top: 0 !important;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.3rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.town-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(200, 245, 59, 0.22); box-shadow: 0 0 0 22px rgba(200, 245, 59, 0.05), 0 0 0 44px rgba(200, 245, 59, 0.03); pointer-events: none; }
.town-card__label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 240, 231, 0.6); }
.town-card strong { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--volt); margin-top: 0.5rem; letter-spacing: 0.01em; }
.town-card strong .ev-status { color: inherit; white-space: normal; }
.town-card strong .ev-status--busy { color: var(--amber); }
.town-card strong .ev-status--down { color: #ff7b7f; }
.town-card__sub { color: rgba(243, 240, 231, 0.6); font-weight: 500; margin-top: 0.3rem; }
.town-card p { color: rgba(243, 240, 231, 0.72); }
.town-card p b { color: var(--volt); }
.town-card a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 3px; }
.town-mini { border-color: var(--line); border-radius: 12px; background: var(--paper); }
.town-mini figcaption b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.town-region { font-family: var(--font-display) !important; font-weight: 800 !important; font-size: 1.5rem !important; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.35rem; margin-top: 2.25rem !important; }
.town-region span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; }

.related-links { gap: 0.5rem; }
.related-links a, .station-amenity, .boat-jump a {
  font-family: var(--font-family);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease-swift);
}
.related-links a:hover, .boat-jump a:hover { background: var(--volt); border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.station-amenity { background: transparent; font-weight: 600; }

.callout { background: #fff3cf; border-left: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 171, 26, 0.5); }
.feature-row__icon { background: var(--volt); color: var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.forecast-steps li::before { background: var(--volt); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-family: var(--font-mono); font-size: 0.8rem; }
.sample-alert { background: var(--ink); border: 0; border-radius: 14px; }
.sample-alert strong { color: var(--volt); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sample-alert p { color: rgba(243, 240, 231, 0.82) !important; }
.shot-row img { border-radius: 26px; border: 7px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(7, 16, 11, 0.45); }
.calc__result { background: var(--ink); border: 0; color: var(--paper); }
.calc__result .calc__meta { color: rgba(243, 240, 231, 0.7); }
.calc__card { background: var(--ink-3); }
.calc__card span { color: rgba(243, 240, 231, 0.6); }
.calc__card strong { color: var(--volt); font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; }
.calc__card em { color: var(--paper); }
.calc__badge { background: var(--volt); color: var(--ink); }
.calc__note { color: rgba(243, 240, 231, 0.55); }
.calc__soc { color: var(--ink); }
.calc input[type="range"] { accent-color: var(--ink); }
.calc__presets button:hover, .calc__presets button[aria-pressed="true"] { background: var(--volt); border-color: var(--ink); color: var(--ink); }
.boat-tags { background: var(--volt); color: var(--ink); }
.ev-status--free { color: #1d7a36; }
.occ-grid td { border-radius: 4px; height: 24px; }
.occ-grid__none { background: var(--paper-2); }
.occ-grid th { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* Popular times on a charger's page: a blurred example under a lock; the real chart is in the app. */
.occ-teaser { position: relative; margin-top: 1.1rem; border-radius: 14px; overflow: hidden; }
.occ-teaser__grid { display: grid; gap: 4px; padding: 0.4rem 0.2rem; filter: blur(5px) saturate(0.85); opacity: 0.85; user-select: none; pointer-events: none; }
.occ-teaser__row { display: grid; grid-template-columns: 2.4rem repeat(24, minmax(0, 1fr)); gap: 4px; align-items: center; }
.occ-teaser__row span, .occ-teaser__row b { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.occ-teaser__row i { display: block; height: 22px; border-radius: 4px; }
.occ-teaser__lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  text-align: center; padding: 1rem;
  background: radial-gradient(ellipse at center, rgba(251, 250, 245, 0.88) 0%, rgba(251, 250, 245, 0.55) 55%, rgba(251, 250, 245, 0.2) 100%);
}
.occ-teaser__lock .material-symbols-outlined {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--volt); font-size: 26px; box-shadow: 0 0 0 6px rgba(200, 245, 59, 0.35);
}
.occ-teaser__lock strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1; text-transform: uppercase; color: var(--ink); max-width: 22ch; }
.occ-teaser__lock .btn { margin: 0; }
@media (max-width: 680px) {
  .occ-teaser__row { grid-template-columns: 1.9rem repeat(24, minmax(0, 1fr)); gap: 2px; }
  .occ-teaser__grid { gap: 2px; }
  .occ-teaser__row i { height: 26px; border-radius: 2px; }
  .occ-teaser__lock { gap: 0.5rem; }
  .occ-teaser__lock .material-symbols-outlined { width: 44px; height: 44px; font-size: 22px; }
}

/* The band that closes a content page: the radar again. */
.cta-band {
  background: var(--ink);
  border-radius: 22px;
  padding: 4rem 2rem 3.6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 115%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 69px, rgba(200, 245, 59, 0.13) 69px 70px),
    conic-gradient(from 0deg, transparent 0 78%, rgba(200, 245, 59, 0.34));
  animation: fr-sweep 9s linear infinite;
  z-index: -1;
}
@keyframes fr-sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 0.95; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; text-wrap: balance; }
.cta-band p { color: rgba(243, 240, 231, 0.75); max-width: 56ch; margin: 0 auto 1.9rem; }
.cta-band .btn--primary { box-shadow: none; }
.cta-band .btn--primary:hover { box-shadow: 0 0 0 6px rgba(200, 245, 59, 0.22); }

/* --- Footer --- */
.footer-area { background: var(--ink); color: rgba(243, 240, 231, 0.7); position: relative; overflow: hidden; }
.footer-top { padding: 5rem 0 3rem; background: transparent; border: 0; }
.footer-items__logo span { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.02em; color: var(--paper); }
.footer-items h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--volt); margin-bottom: 1.1rem; }
.footer-items p { color: rgba(243, 240, 231, 0.6); }
.footer-nav a { color: rgba(243, 240, 231, 0.78); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--volt); padding-left: 0; }
.social-icon { background: transparent; border: 1px solid rgba(243, 240, 231, 0.2); color: var(--paper); }
.social-icon:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.footer-bottom { background: transparent; border-top: 1px solid rgba(243, 240, 231, 0.1); padding: 1.5rem 0 2rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(243, 240, 231, 0.5); }
.footer-bottom a { color: rgba(243, 240, 231, 0.75); }
.footer-bottom a:hover { color: var(--volt); }
.footer-disclaimer { font-family: var(--font-family); text-transform: none; letter-spacing: 0; font-size: 0.78rem; text-align: left; max-width: 80ch; margin-top: 1rem; }

/* --- The scroll-to-top button --- */
.scroll-to-top { background: var(--volt); color: var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.scroll-to-top:hover { background: var(--ink); color: var(--volt); }

@media (max-width: 768px) {
  .panel { padding: 1.5rem 1.2rem 1.6rem; border-radius: 14px; }
  .panel h2 { font-size: 1.6rem; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(2n) { border-right: 0; }
  .stat-strip div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .town-card strong { font-size: 2.5rem; }
  .compare-table tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Legal and About pages, in the same system --- */
.legal-page { background-color: var(--paper); padding-top: calc(var(--header-height) + 3.5rem); padding-bottom: 6rem; }
.legal-container { max-width: 900px; }
.legal-header { margin-bottom: 2.5rem; }
.legal-badge {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  background: transparent; border: 0; padding: 0; border-radius: 0; color: var(--ink); gap: 10px;
}
.legal-badge .material-symbols-outlined { display: none; }
.legal-badge::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--volt); box-shadow: inset 0 0 0 1.5px var(--ink); }
.legal-header h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 0.94; letter-spacing: -0.005em; margin: 0.75rem 0 1.25rem; text-wrap: balance;
}
.legal-updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-updated .material-symbols-outlined { color: var(--ink); }
.legal-lead { font-size: 1.12rem; line-height: 1.65; max-width: 62ch; }
.legal-toc, .legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: none; }
.legal-toc__title { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.legal-toc__link { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 700; }
.legal-toc__link:hover { background: var(--volt); border-color: var(--ink); color: var(--ink); }
.legal-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: 0.005em; text-transform: uppercase; gap: 0.7rem; }
.legal-card__icon {
  color: var(--ink) !important; background: var(--volt) !important; border-radius: 50% !important;
  width: 36px; height: 36px; font-size: 20px !important; flex: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.legal-card a, .legal-lead a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal-list li::before { background: var(--ink) !important; }
.legal-callout { background: #fff3cf; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 171, 26, 0.5); }
.legal-link-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; color: var(--ink); }
.legal-link-card:hover { background: var(--volt); border-color: var(--ink); transform: translateY(-2px); }
.town-card strong { font-size: clamp(2rem, 3.4vw, 2.7rem); }
@media (max-width: 768px) { .legal-card__title { font-size: 1.55rem; } }
.about-main { padding-top: calc(var(--header-height) + 3.5rem); padding-bottom: 6rem; }
.about-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 0.94; letter-spacing: -0.005em; margin: 0.75rem 0 1.25rem; text-wrap: balance; }
.about-h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.about-h3 .material-symbols-outlined { color: var(--ink) !important; background: var(--volt); border-radius: 50%; width: 36px; height: 36px; font-size: 20px !important; flex: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Legacy tokens, re-pointed so inline-styled blocks (About) join the palette. */
:root { --white: #fbfaf5; --green-50: #eef6cc; --green-100: #e2efb0; --gray-50: #f3f0e7; --gray-100: #ece8dc; --gray-200: #dedacb; }

/* Feature rows inside a panel: the panel's h3 spacing must not push the heading below its icon. */
.panel .feature-row h3 { margin: 0.35rem 0 0.3rem; }
.panel .feature-row p { margin: 0; }
.feature-row__icon .material-symbols-outlined { font-size: 22px; }

/* Radar blips: what the sweep finds. script.js places them and lights each as the beam passes. */
.radar-blips { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.radar-blip { position: absolute; display: grid; justify-items: center; gap: 3px; opacity: 0; color: var(--c, var(--volt)); translate: -50% -50%; }
.radar-blip .material-symbols-outlined { font-size: 22px; filter: drop-shadow(0 0 8px var(--c, var(--volt))); }
.radar-blip b { font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.radar-blip::before { content: ''; position: absolute; left: 50%; top: 11px; width: 34px; height: 34px; border: 1px solid var(--c, var(--volt)); border-radius: 50%; translate: -50% -50%; opacity: 0; }
.radar-blip.is-hit { animation: fr-blip 3.4s ease-out forwards; }
.radar-blip.is-hit::before { animation: fr-blip-ring 1.7s ease-out forwards; }
@keyframes fr-blip { 0% { opacity: 0; scale: 0.6; } 7% { opacity: 1; scale: 1.12; } 18% { scale: 1; } 55% { opacity: 0.8; } 100% { opacity: 0; scale: 1; } }
@keyframes fr-blip-ring { 0% { opacity: 0.9; scale: 0.4; } 100% { opacity: 0; scale: 2.4; } }

/* Market insights on town, retailer and forecourt pages. */
.insight-list { display: grid; gap: 0; margin-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.insight { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.insight__stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.insight__stat span { display: block; margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.panel .insight__text h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.insight__text p { margin: 0; }

/* The forecast record: one card per published outlook. */
.outlook-list { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.outlook { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 1.4rem 1.5rem 1.3rem; position: relative; overflow: hidden; }
.outlook::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(200, 245, 59, 0.2); box-shadow: 0 0 0 30px rgba(200, 245, 59, 0.04), 0 0 0 60px rgba(200, 245, 59, 0.025); pointer-events: none; }
.outlook__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 240, 231, 0.6); }
.outlook__fuel { color: var(--paper); font-weight: 700; }
.outlook__dir { display: inline-flex; align-items: center; gap: 4px; color: var(--volt); font-weight: 700; }
.outlook--rise .outlook__dir { color: var(--amber); }
.outlook__dir .material-symbols-outlined { font-size: 16px; }
.outlook__head time { margin-left: auto; }
.panel .outlook h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; color: var(--paper); margin: 0.9rem 0 0.6rem; }
.panel .outlook p { color: rgba(243, 240, 231, 0.74); }
.panel .outlook .outlook__result { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(243, 240, 231, 0.14); color: var(--paper); }
.outlook__badge { display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; margin-right: 0.5rem; }
.outlook__badge--right { background: var(--volt); color: var(--ink); }
.outlook__badge--wrong { background: var(--signal); color: #fff; }
.outlook__badge--running { box-shadow: inset 0 0 0 1px rgba(243, 240, 231, 0.5); color: var(--paper); }
@media (max-width: 640px) {
  .insight { grid-template-columns: 1fr; gap: 0.6rem; }
  .outlook__head time { margin-left: 0; width: 100%; }
}

/* Google's "Get it on Google Play" badge, used wherever a page asks for the install. Its own artwork:
   not recoloured, cropped or given a border (Google's badge guidelines). */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.35s var(--ease-swift), box-shadow 0.35s var(--ease-swift); }
.play-badge img { display: block; width: 180px; height: auto; }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(200, 245, 59, 0.9); }
.play-badge--hero img { width: 200px; }
.play-badge--big img { width: 240px; }
.h-plan .play-badge { margin-top: auto; align-self: flex-start; }
.cta-band .play-badge:hover { box-shadow: 0 0 0 6px rgba(200, 245, 59, 0.28); }
@media (prefers-reduced-motion: reduce) { .play-badge { transition: none; } .play-badge:hover { transform: none; } }
