/* WageTally Marketing Website */
/* Design System */

:root {
  --color-brand-blue: #5C8DFF;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A9BEE3;
  --color-bg-gradient-1: #060a16;
  --color-bg-gradient-2: #0b1630;
  --color-bg-gradient-3: #122448;
  --color-bg-gradient-4: #16305e;
  --color-glass-bg: rgba(255, 255, 255, 0.06);
  --color-glass-border: rgba(255, 255, 255, 0.14);
  --color-glass-pro-bg: rgba(92, 141, 255, 0.14);
  --color-glass-pro-border: rgba(92, 141, 255, 0.4);
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-system);
  background: linear-gradient(165deg, var(--color-bg-gradient-1) 0%, var(--color-bg-gradient-2) 35%, var(--color-bg-gradient-3) 70%, var(--color-bg-gradient-4) 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 20%, rgba(70, 132, 255, 0.28), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 8vw, 8.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: 1rem;
}

.subheading {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.35;
  margin-bottom: 2rem;
}

body-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(6, 10, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-links ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-brand-blue);
}

a:focus-visible,
.mobile-menu-btn:focus-visible,
.faq-question:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(92, 141, 255, 0.75);
  outline-offset: 4px;
}

.btn:focus-visible {
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-brand-blue);
  color: var(--color-text-primary);
  box-shadow: 0 4px 15px rgba(92, 141, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 141, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section-hero {
  padding: 8rem 1.5rem;
  text-align: center;
}

.hero-text {
  margin-bottom: 3rem;
}

/* Glass Cards */
.glass-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card-pro {
  background: var(--color-glass-pro-bg);
  border: 1.5px solid var(--color-glass-pro-border);
}

.glass-card-pro:hover {
  background: rgba(92, 141, 255, 0.2);
  border-color: rgba(92, 141, 255, 0.6);
}

/* ==========================================================================
   Device gallery
   The source images are 1290x2796 App Store compositions. Measured from them,
   the phone occupies exactly 759 x 1612 at x 265, with an 82px corner radius.
   .device windows onto precisely that box, so none of the composition's own
   background comes with it.

   That matters: the comp carries a steep internal gradient (rgb(10,20,43) at
   its top through rgb(19,41,82) at its bottom) while the page background is a
   fixed gradient running a different direction. Any comp background left in
   frame can only match the page along one horizontal line, and reads as a
   rectangular patch everywhere else. Cropping it out is the only real fix —
   an edge feather cannot hide a mismatch that spans the whole box.

   Percentages are the device box expressed against the container:
     width  1290/759 = 169.960%
     left   -265/759 = -34.914%
     top    -deviceTop/1612 = --crop-y, the one per-slide value
     radius 82/759 and 82/1612, so it stays 82px at any rendered size

   Measure these from the image; do not derive them from the white screen's
   bounds. Deriving cost 24px off the bottom of the phone, which put the crop
   edge through the screen instead of the bezel.
   ========================================================================== */
.device {
  position: relative;
  width: 100%;
  aspect-ratio: 759 / 1612;
  overflow: hidden;
  border-radius: 10.804% / 5.087%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(6, 10, 22, 0.4);
}

.device img {
  position: absolute;
  width: 169.960%;
  height: auto;
  left: -34.914%;
  top: var(--crop-y, -59.553%);
  display: block;
}

/* --------------------------------------------------------------------------
   Base layout: a horizontal swipe carousel with snap points. This is what
   mobile, tablet, reduced-motion and no-JS visitors get, and it must stand on
   its own — no scroll-jacking on touch, where it fights native momentum.

   Deliberately not pinned on phones: pinning makes the device share one
   viewport height with the headline, shrinking it to ~225px, at which point
   the in-app figures stop being readable. Those figures are the pitch.
   -------------------------------------------------------------------------- */
.pin {
  padding: 5rem 0;
}

.pin-stage {
  margin: 0 auto;
}

/* The cross-fading copy is a desktop-only affordance; on mobile each slide
   carries its own caption and only the rail is kept from this block. */
.pin-copy {
  order: 2;
}

.pin-copy [data-copy] {
  display: none;
}

.pin-track {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  list-style: none;
  overflow-x: auto;
  /* Both slides peek in at the edges, which is the affordance that says
     "swipe me"; the padding lets the first and last still reach centre. */
  padding-inline: 11vw;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pin-track::-webkit-scrollbar {
  display: none;
}

.slide {
  margin: 0;
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  /* Opacity only, never scale: animating scale inside a snap container
     fights the snap and produces visible jitter on touch. */
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.slide.is-active {
  opacity: 1;
}

.slide figcaption {
  max-width: 34ch;
  text-align: center;
}

.slide figcaption h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.slide figcaption p:not(.eyebrow) {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Shown in both modes — on mobile it sits under the carousel, on desktop
   under the copy column. */
.pin-rail {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin-top: 2.5rem;
}

.pin-rail li {
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.3s ease;
}

.pin-rail li.is-active {
  background: var(--color-brand-blue);
}

.pin-track:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 8px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Pinned layout. Applied only when main.js adds .is-pinned, which it does
   solely at >=1024px with prefers-reduced-motion unset. Everything above
   remains the fallback.
   -------------------------------------------------------------------------- */
/* JS owns the height while pinned; padding would offset the sticky maths. */
.pin.is-pinned {
  padding: 0;
}

.pin.is-pinned .pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: none;
  padding: 0 0 0 max(3rem, calc((100vw - 1400px) / 2 + 1.5rem));
  overflow: hidden;
}

.pin.is-pinned .pin-copy {
  display: block;
  order: 0;
  flex: 0 0 30%;
  max-width: 26rem;
}

.pin.is-pinned .pin-copy [data-copy] {
  display: block;
}

.pin.is-pinned .pin-copy h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.9rem);
  margin-bottom: 1rem;
}

.pin.is-pinned .pin-copy > p:not(.eyebrow) {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Cross-fade between slides' copy */
.pin.is-pinned .pin-copy [data-copy] {
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.pin.is-pinned .pin-copy.is-swapping [data-copy] {
  opacity: 0;
  transform: translateY(0.5rem);
}

.pin.is-pinned .pin-rail {
  justify-content: flex-start;
}

/* The track's own clipping window. Without it, slides translating leftwards
   pass underneath the copy column instead of disappearing behind its edge. */
.pin.is-pinned .pin-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  align-self: center;
}

/* Reset the carousel defaults: while pinned, position comes from a transform,
   so native scrolling and snapping must be off. */
.pin.is-pinned .pin-track {
  align-items: center;
  gap: 3.5rem;
  overflow: visible;
  padding-inline: 0;
  scroll-snap-type: none;
  will-change: transform;
}

.pin.is-pinned .slide {
  flex: 0 0 auto;
  gap: 0;
  scroll-snap-align: none;
  opacity: 0.4;
  transform: scale(0.93);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.pin.is-pinned .slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.pin.is-pinned .slide .device {
  width: auto;
  height: 74vh;
  max-width: none;
}

/* Brand glow behind the focused device */
.pin.is-pinned .slide::before {
  content: '';
  position: absolute;
  inset: -12% -22%;
  background: radial-gradient(closest-side, rgba(92, 141, 255, 0.30), transparent 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}

.pin.is-pinned .slide {
  position: relative;
}

.pin.is-pinned .slide.is-active::before {
  opacity: 1;
}

/* Captions live in the left column while pinned */
.pin.is-pinned .slide figcaption {
  display: none;
}

/* Industries Grid
   Explicit track counts, not auto-fit: 8 pills must divide evenly (2x4 or 4x2)
   or the last row is left orphaned. */
.industries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

@media (min-width: 900px) {
  .industries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.industry-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.industry-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(92, 141, 255, 0.5);
}

.industry-icon {
  font-size: 1.5rem;
}

/* Pricing Cards */
/* Explicit 2 tracks — auto-fit was resolving to a dead third column. */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  max-width: 900px;
  margin-inline: auto;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.pricing-features li {
  list-style: none;
  padding-left: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-features li:before {
  content: '✓ ';
  color: var(--color-brand-blue);
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-cta {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Privacy Strip */
.privacy-strip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h4 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-brand-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Disclaimer */
.disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 2rem 0;
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content p,
.policy-content li {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy-content ul,
.policy-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content a {
  color: var(--color-brand-blue);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Article / guide pages (articles/*.html)
   ========================================================================== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--color-brand-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-meta {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cta-box {
  background: var(--color-glass-pro-bg);
  border: 1.5px solid var(--color-glass-pro-border);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-box p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.article-image {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.article-image .device {
  max-width: 260px;
}

.related-heading {
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

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

.related-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.related-card h3 {
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.related-card p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* Articles index / hub page */
.articles-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .articles-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-index-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 1.75rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.article-index-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.article-index-card h2 {
  color: var(--color-text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-index-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Homepage depth sections: section-intro, how-it-works steps, worked example
   ========================================================================== */
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.cta-heading {
  /* Semantically an h2 (only one h1 per page), sized to match the closing
     hero's original visual weight. */
  font-size: clamp(2.5rem, 8vw, 8.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

/* How it works */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 0 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  color: var(--color-brand-blue);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

/* Worked example */
.worked-example {
  max-width: 640px;
  margin: 0 auto;
}

.worked-example-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.worked-example-header > span:first-child {
  white-space: nowrap;
}

.worked-example-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.worked-example-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.worked-example-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.worked-example-row dt {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.worked-example-row dd {
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.worked-example-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  opacity: 0.75;
  margin-top: 0.15rem;
}

.worked-example-highlight {
  padding: 0.85rem 1rem;
  background: rgba(92, 141, 255, 0.1);
  border: 1px solid rgba(92, 141, 255, 0.25);
  border-radius: 12px;
}

.worked-example-row-total {
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.worked-example-row-total dt {
  color: var(--color-text-primary);
  font-weight: 700;
}

.worked-example-row-total dd {
  font-size: 1.35rem;
  color: var(--color-brand-blue);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-more {
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
}

.faq-more a {
  color: var(--color-brand-blue);
  text-decoration: none;
}

.faq-more a:hover {
  text-decoration: underline;
}

.faq-item {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
}

.faq-answer {
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-toggle {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Opened by the hamburger button in main.js */
  .nav-links.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: rgba(6, 10, 22, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active ul {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-container {
    position: relative;
  }

  .mobile-menu-btn {
    display: block;
  }

  .industry-pill {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .section-hero {
    padding: 4rem 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section a {
    display: inline;
    margin: 0 0.5rem;
  }

  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* ─────────────────────────────────────────────────────────────
   Ireland Beta page
   Additive only. Reuses the existing tokens, radii and glass
   treatment — no new colours, no new type scale.
   ───────────────────────────────────────────────────────────── */

.beta-qualifier {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Screenshot trio ------------------------------------------------ */
.ie-screens {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}
.ie-screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.ie-screen .device { width: 100%; }
.ie-screen figcaption { text-align: center; }
.ie-screen figcaption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.ie-screen figcaption p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Two-up cards --------------------------------------------------- */
.ie-two-up {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.ie-two-up h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}
.ie-two-up p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Prose block ---------------------------------------------------- */
.ie-prose {
  max-width: 62ch;
  margin: 0 auto;
}
.ie-prose p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.ie-prose strong { color: var(--color-text-primary); }

/* First-run checklist -------------------------------------------- */
.ie-firstrun {
  max-width: 62ch;
  margin: 3rem auto 0;
}
.ie-firstrun h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}
.ie-firstrun > p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.ie-firstrun ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
}
.ie-firstrun li {
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.ie-firstrun strong { color: var(--color-text-primary); }

/* Application form ----------------------------------------------- */
.ie-form-card {
  max-width: 34rem;
  margin: 0 auto;
}
.ie-field {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}
.ie-field label,
.ie-field legend {
  display: block;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.ie-field input[type="text"],
.ie-field input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-system);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
}
.ie-field input[type="text"]:focus,
.ie-field input[type="email"]:focus {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.ie-field input::placeholder { color: rgba(169, 190, 227, 0.5); }

.ie-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
  /* Generous vertical padding so each option clears the 44px
     minimum tap target on a phone. */
  padding: 0.6rem 0;
  cursor: pointer;
}
.ie-radio input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--color-brand-blue);
}
.ie-hint {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  opacity: 0.85;
  margin: 0.5rem 0 0;
}
.ie-form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}
.ie-form-privacy { margin-top: 1.25rem; }

.ie-back {
  text-align: center;
  margin-top: 3rem;
}
.ie-back a {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-weight: 700;
}
.ie-back a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  /* The site's .steps is a 3-up. This page's first list has four, which would
     otherwise orphan the last item on its own row. */
  .steps-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Four screens now, so a 3-up would orphan the last one — same fix as
     .steps-four above. The max-width keeps each device at roughly the size it
     rendered at when this was a 3-up across the full container. */
  .ie-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    gap: 2.5rem;
  }
  .ie-two-up { grid-template-columns: repeat(2, 1fr); }
  .ie-form button[type="submit"] { width: auto; min-width: 14rem; }
}

@media (min-width: 1100px) {
  .steps-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Native radios/checkboxes default to a muddy grey on the dark form card.
   accent-color tints the control itself without replacing the native widget,
   so the tap target and a11y semantics stay exactly as the browser built them. */
.ie-form input[type="radio"],
.ie-form input[type="checkbox"] {
  accent-color: var(--color-brand-blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Beta form: inline error + post-submit success state.
   Both live inside the form card so the applicant never changes page. */
.ie-form-error {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 138, 138, 0.35);
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.09);
  color: #ffc9c9;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ie-form-error a { color: #fff; }

.ie-form-done { text-align: center; }

.ie-form-done h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.ie-form-done p { color: var(--color-text-secondary); }

.ie-form-done .btn { margin: 1.25rem 0 0.5rem; }

/* The success panel takes focus on submit; it is not an interactive control,
   so suppress the ring the tabindex would otherwise draw. */
.ie-form-done:focus { outline: none; }

/* Ireland band on the homepage. Narrower and centred so it reads as a doorway
   to a different audience rather than another feature section. */
.home-ireland {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-ireland h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.home-ireland p {
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
