/* ============================================================
   AppointIQ — static landing page
   Visual language mirrored from the Softsphere case pages
   (assets/css/_apps.scss): pure-black surfaces, cyan #00ffe1
   accent, pill buttons, browser-chrome frames, cyan eyebrows.
   ============================================================ */

/* ---------- Inter (self-hosted, variable weight) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #000;
  --panel: #0a0d0e;
  --panel-2: #0d1117;
  --bar: #11161c;

  --accent: #00ffe1;
  --accent-strong: #3affee;
  --on-accent: #021a18;
  --flash: #a06bff; /* off-palette violet, used only for the heading letter-sweep flash */

  --text: #ffffff;
  --soft: #cfd8d8;
  --muted: #aab4b4;
  --muted-2: #8d9999;
  --faint: #6b7575;

  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --cyan-line: rgba(0, 255, 225, 0.1);
  --cyan-line-strong: rgba(0, 255, 225, 0.3);

  --radius: 8px;
  --radius-sm: 4px;
  --pill: 999px;

  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(0, 154, 255, 0.06);
  --shadow-screen: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 154, 255, 0.08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #050708; }
::-webkit-scrollbar-thumb { background: #1b2426; border-radius: 999px; border: 3px solid #050708; }
::-webkit-scrollbar-thumb:hover { background: #28383a; }

/* ---------- Icons (lucide-style sprite) ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 8vw; }
@media (min-width: 1500px) { .container { padding-inline: 0; } }
.container-narrow { max-width: 920px; }

.section { position: relative; padding-block: 7vh; }
@media (min-width: 1024px) { .section { padding-block: 9vh; } }

.muted { color: var(--muted); }

/* cyan eyebrow label */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* emphasised heading word (was a gradient in the React app, now solid cyan) */
.text-gradient { color: var(--accent); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.section-head p { font-size: 1rem; line-height: 1.75; color: var(--muted); }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 4px 26px; border-radius: var(--pill);
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(0, 255, 225, 0.25);
  transform: translateY(-2px);
}
.btn-secondary, .btn-outline-primary {
  background: transparent; color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-secondary:hover, .btn-outline-primary:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1rem; padding: 4px 30px; }

/* ---------- Cards / panels ---------- */
.card-glass {
  border-radius: var(--radius);
  border: 1px solid var(--cyan-line);
  background: var(--panel);
}
.card-feature { padding: 26px 24px; transition: border-color .22s ease, transform .22s ease; }
.card-feature:hover { border-color: var(--cyan-line-strong); transform: translateY(-3px); }

/* Icon tiles */
.icon-tile {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: rgba(0, 255, 225, 0.07); border: 1px solid rgba(0, 255, 225, 0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--accent); flex-shrink: 0;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile-lg { width: 48px; height: 48px; }
.icon-tile-lg svg { width: 24px; height: 24px; }

.feature-list { display: flex; flex-direction: column; gap: .55rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.92rem; line-height: 1.55; color: var(--soft);
}
.feature-list .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex-shrink: 0; margin-top: 8px; }

/* tag pills */
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pills > span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 500; color: #8fd9d0;
  padding: 6px 13px; border-radius: var(--pill);
  border: 1px solid rgba(0, 255, 225, 0.22); background: rgba(0, 255, 225, 0.05);
}
.tag-pills > span svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Browser-chrome frame ---------- */
.app-screen { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-2); box-shadow: var(--shadow-screen); }
.app-screen-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line-soft);
}
.app-screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-screen-bar i:first-child { background: rgba(0, 255, 225, 0.5); }
.app-screen-bar em { font-style: normal; font-size: 0.72rem; color: var(--faint); margin-left: 10px; }
.app-screen img { display: block; width: 100%; height: auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 9, 10, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1400px; margin-inline: auto; padding-inline: 6vw;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
@media (min-width: 1280px) { .nav-inner { height: 72px; } }
.nav-logo img { height: 40px; width: auto; object-fit: contain; }

.nav-links { display: none; align-items: center; gap: 1.4rem; margin-inline: 1.5rem; }
.nav-link {
  background: none; border: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 500; transition: color .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }

.nav-actions { display: none; align-items: center; gap: .6rem; }
.nav-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 4px 16px; border-radius: var(--pill);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: all 0.22s ease;
}
.nav-pill-demo { background: rgba(0, 255, 225, 0.12); border: 1px solid rgba(0, 255, 225, 0.55); color: var(--accent); }
.nav-pill-demo:hover { border-color: var(--accent); background: rgba(0, 255, 225, 0.22); }
.nav-pill-login { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--soft); }
.nav-pill-login:hover { border-color: var(--accent); color: var(--accent); }
.nav-pill-start { padding: 4px 20px; }

.nav-toggle { display: inline-flex; padding: .5rem; background: none; border: none; color: var(--text); }
@media (min-width: 1280px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

.lang-switch { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lang-btn { background: none; border: none; padding: 2px 3px; border-radius: 4px; line-height: 0; opacity: .35; transition: opacity .2s; flex: none; }
.lang-btn:hover { opacity: .7; }
.lang-btn.active { opacity: 1; }
.lang-btn img { width: 22px; height: 15px; min-width: 22px; object-fit: cover; border-radius: 2px; display: block; }

.nav-mobile { max-width: 1400px; margin-inline: auto; padding: 1rem 6vw; border-top: 1px solid var(--line-soft); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-links .nav-link { text-align: left; padding: .4rem 0; }
.nav-mobile-actions { display: flex; flex-direction: column; gap: .5rem; padding-top: .5rem; }
.nav-mobile-actions .nav-pill, .nav-mobile-actions .btn { justify-content: center; }
@media (min-width: 1280px) { .nav-mobile { display: none; } }

/* ============================================================
   HERO (2-column: text + browser screen, shader background)
   ============================================================ */
.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: calc(64px + 4vh); padding-bottom: 7vh;
}
@media (min-width: 1280px) { .hero { padding-top: calc(72px + 4vh); } }
#hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 87%, rgba(0, 0, 0, 0.55) 95%, #000 100%),
    radial-gradient(80% 60% at 70% 30%, transparent, rgba(0, 0, 0, 0.35) 100%);
}
@media (max-width: 980px) { .hero::after { display: none; } }
.hero .container { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0, 255, 225, 0.3); border-radius: var(--radius-sm);
  padding: 4px 10px; margin-bottom: 20px;
}
@media (max-width: 480px) {
  .hero-badge { font-size: 0.7rem; letter-spacing: 0.05em; padding: 4px 9px; white-space: nowrap; }
}
.hero-badge .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); animation: pulse 2s ease-in-out infinite; }

.hero h1 { font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: var(--muted); max-width: 38rem; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
/* frosted-glass over the animated shader */
.hero-cta .btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-cta .btn-secondary { background: rgba(8, 12, 13, 0.4); border-color: rgba(255, 255, 255, 0.22); }
.hero-cta .btn-secondary:hover { background: rgba(0, 255, 225, 0.14); border-color: var(--accent); color: var(--accent); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; }
/* frosted chips over the animated shader */
.hero-trust > span, .hero-badge {
  background: rgba(8, 12, 13, 0.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-visual { order: -1; }       /* screenshot back, above the text */
  /* trust tags: one flat row, separated by vertical lines (no pills) */
  .hero-trust { display: flex; flex-wrap: nowrap; gap: 0; justify-content: center; }
  .hero-trust > span { border: 0; background: none; border-radius: 0; padding: 0 7px; font-size: clamp(0.6rem, 2.8vw, 0.9rem); white-space: nowrap; }
  .hero-trust > span + span { border-left: 1px solid var(--line); }
  .hero-trust > span svg { display: none; }
}

/* ============================================================
   HOW IT WORKS (steps)
   ============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; }
.step-card { padding: 28px 26px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(0, 255, 225, 0.07); border: 1px solid rgba(0, 255, 225, 0.18); margin-bottom: 18px;
}
.step-num span { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.step-icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent);
}
.step-icon svg { width: 24px; height: 24px; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.step-connector { display: none; position: absolute; top: 50px; left: 62%; width: 100%; height: 1px; background: linear-gradient(to right, rgba(0,255,225,.4), transparent); }
@media (min-width: 1000px) { .step-connector { display: block; } }

.card-feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-feature > p { color: var(--muted); margin-bottom: 16px; font-size: 0.93rem; line-height: 1.7; }

/* ROLES */
.role-card .role-sub { color: var(--muted-2); font-size: 0.88rem; margin-bottom: 18px; }
.role-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* FEATURES */
.feature-card { position: relative; }
.addon-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--pill);
  background: rgba(0, 255, 225, 0.08); color: var(--accent); border: 1px solid rgba(0, 255, 225, 0.22);
}

/* ============================================================
   SCREENSHOTS (scattered floating collage)
   ============================================================ */
.shots { position: relative; }
.collage { position: relative; }
.shot-card { margin: 0; }
/* crop each capture to a consistent banner so tall screens don't dominate */
.shot-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; display: block; }
/* the focal centre card shows more of the (tall) dashboard */
.shot-card.is-center img { aspect-ratio: 4 / 5; }
.shot-card .app-screen-bar em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* desktop: scatter the cards full-bleed across the viewport, bleeding off the edges */
@media (min-width: 1024px) {
  /* whole section fits one viewport: header on top, collage fills the rest */
  #screenshots {
    height: 100vh; min-height: 660px; padding: 5vh 0 2vh;
    display: flex; flex-direction: column; overflow: hidden;
  }
  #screenshots .section-head { margin-bottom: 2.5vh; flex: 0 0 auto; position: relative; z-index: 10; }
  .shots { flex: 1 1 auto; min-height: 0; padding-inline: 6vw; }
  .collage { height: 100%; }
  .collage .shot-card {
    position: absolute;
    left: var(--x); top: var(--y); width: var(--w);
    transform: rotate(var(--r, 0deg)); z-index: var(--z, 1);
    transition: transform .6s cubic-bezier(.2, .7, .3, 1), opacity .55s ease, box-shadow .35s ease, border-color .35s ease;
  }
  .collage .shot-card:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 30;
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 255, 225, 0.12);
  }
  /* centre card sits exactly in the middle (ignores --x/--y) */
  .collage .shot-card.is-center { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
  .collage .shot-card.is-center:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); }
  /* choreographed entrance: .pre = hidden/offset; removing it animates to rest */
  .collage .shot-card.pre { opacity: 0; }
  .collage .shot-card.pre.from-left  { transform: translateX(-9vw) rotate(var(--r, 0deg)); }
  .collage .shot-card.pre.from-right { transform: translateX(9vw) rotate(var(--r, 0deg)); }
  .collage .shot-card.is-center.pre  { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.72); }
}

/* mobile/tablet: simple upright stack */
@media (max-width: 1023px) {
  .shots { padding-inline: 8vw; }
  .collage { display: flex; flex-direction: column; gap: 22px; max-width: 560px; margin-inline: auto; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 36px; flex-wrap: wrap; }
.cycle-group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.currency-select {
  min-width: 150px; height: 42px; padding: 0 14px; border-radius: var(--pill);
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
}
.pricing-state { text-align: center; color: var(--muted); margin-bottom: 36px; }
.pricing-state.error { color: #f87171; }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.card-pricing { padding: 28px 26px; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--cyan-line); background: var(--panel); }
.card-pricing.popular { border-color: rgba(0, 255, 225, 0.45); box-shadow: 0 0 50px rgba(0, 255, 225, 0.07); position: relative; overflow: hidden; }
.plan-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 11px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent);
}
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.plan-desc { color: var(--muted-2); font-size: 0.88rem; line-height: 1.5; }
.plan-head { margin-bottom: 18px; }
.plan-price { margin-bottom: 22px; display: flex; align-items: baseline; gap: .5rem; }
.plan-price .amount { font-size: 2.1rem; font-weight: 700; }
.plan-price .suffix { color: var(--muted-2); font-size: 0.9rem; }
.plan-price .request { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.plan-features { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 24px; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 11px; }
.plan-features svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan-features span { font-size: 0.9rem; color: var(--soft); }
.plan-actions { display: flex; flex-direction: column; gap: .6rem; }
.plan-demo { font-size: 0.85rem; }

.addons-wrap { max-width: 920px; margin-inline: auto; }
.addons-head { text-align: center; margin-bottom: 28px; }
.addons-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--pill);
  background: rgba(0, 255, 225, 0.06); border: 1px solid rgba(0, 255, 225, 0.18);
  margin-bottom: 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.addons-pill svg { width: 15px; height: 15px; color: var(--accent); }
.addons-head h3 { font-size: 1.35rem; }
.addons-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .addons-grid { grid-template-columns: repeat(2, 1fr); } }
.addon-card { padding: 22px 20px; display: flex; align-items: flex-start; gap: 16px; }
.addon-body { flex-grow: 1; min-width: 0; }
.addon-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 6px; }
.addon-top h4 { font-size: 1rem; font-weight: 700; }
.addon-price { color: var(--accent); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.addon-card p { font-size: 0.88rem; color: var(--muted-2); line-height: 1.6; }
@media (min-width: 768px) { .addon-card.centered { grid-column: 1 / -1; margin-inline: auto; width: 100%; max-width: calc(50% - 10px); } }
.vat-note { margin-top: 28px; text-align: center; font-size: 0.78rem; color: var(--faint); }

/* ============================================================
   ONLINE PAYMENTS
   ============================================================ */
.pay-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
@media (min-width: 768px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
.pay-card { padding: 24px 22px; display: flex; gap: 16px; }
.pay-card h3 { font-size: 1rem; margin-bottom: 6px; }
.pay-card p { font-size: 0.9rem; color: var(--muted-2); line-height: 1.65; }
.pay-trust { width: 100vw; margin-left: calc(50% - 50vw); padding: 40px 8vw; text-align: center; background: rgba(0, 255, 225, 0.05); border: 0; border-radius: 0; box-shadow: none; }
.pay-trust .desc, .pay-trust .commission { max-width: 640px; margin-inline: auto; }
.pay-trust > * + * { margin-top: 12px; }
.pay-trust .addons-pill { margin-bottom: 0; }
.pay-trust .desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.pay-trust .commission { font-size: 0.8rem; color: var(--muted-2); border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding-inline: 24px; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; color: var(--text); text-align: left;
  font-size: 1.02rem; font-weight: 600; padding: 22px 0; transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; color: var(--accent); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.75; overflow: hidden; max-height: 0; transition: max-height .25s ease, padding .25s ease; }
.faq-item.open .faq-a { padding-bottom: 22px; }

/* desktop: two columns so rows aren't long and sparse (single-open accordion, start-aligned) */
@media (min-width: 768px) {
  #faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; }
}

/* ============================================================
   CONTACT
   ============================================================ */
/* subtle full-bleed cyan band, matching the Stripe payments band */
#contact { background: rgba(0, 255, 225, 0.05); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.contact-info h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.contact-info > p { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.contact-rows { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-row .icon-tile { margin-bottom: 0; }
.contact-row h4 { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.contact-row a, .contact-row p { color: var(--muted); transition: color .2s; }
.contact-row a:hover { color: var(--accent); }

.contact-demo { padding: 32px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; background: none; border: 0; }
.contact-demo .play-circle {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: rgba(0, 255, 225, 0.06); border: 1px solid rgba(0, 255, 225, 0.25); color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(0, 255, 225, 0.08);
}
.contact-demo .play-circle svg { width: 32px; height: 32px; }
.contact-demo h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-demo p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.contact-demo .demo-actions { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.contact-demo .demo-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-size: 0.85rem; color: var(--muted-2); transition: color .2s; }
.contact-demo .demo-link:hover { color: var(--accent); }
.contact-demo .demo-note { font-size: 0.75rem; color: var(--faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding-block: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { max-width: 24rem; color: var(--muted-2); font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 { margin-bottom: 14px; font-weight: 700; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a, .footer-col button, .footer-col li { color: var(--muted-2); font-size: 0.9rem; background: none; border: none; padding: 0; text-align: left; transition: color .2s; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-fiscal li { font-size: 0.85rem; }
.footer-fiscal .strong { color: var(--text); font-weight: 600; }

.footer-sal { margin-bottom: 32px; padding: 24px 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
@media (min-width: 640px) { .footer-sal { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-sal h4 { font-size: 0.9rem; }
.footer-sal p { font-size: 0.85rem; color: var(--muted-2); margin-top: 4px; line-height: 1.6; }
.footer-sal a { color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: color .2s; }
.footer-sal a:hover { text-decoration: underline; }

.footer-bottom { display: flex; flex-direction: column-reverse; align-items: center; gap: 1rem; border-top: 1px solid var(--line-soft); padding-top: 28px; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.85rem; color: var(--muted-2); }
.footer-legal { display: flex; align-items: center; gap: 1.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-2); transition: color .2s; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Scroll reveal (IntersectionObserver toggles .in) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.no-anim { transition: none !important; }

/* Letter-by-letter colour sweep on headings (dim → cyan flash → final colour) */
.sweep .ch { color: rgba(255, 255, 255, 0.2); }
.sweep.go .ch {
  animation-name: charSweep; animation-duration: .5s;
  animation-timing-function: ease; animation-fill-mode: forwards;
}
.sweep.go .ch.ch-accent { animation-name: charSweepAccent; }
@keyframes charSweep {
  0%   { color: rgba(255, 255, 255, 0.2); }
  45%  { color: var(--flash); }
  100% { color: #fff; }
}
@keyframes charSweepAccent {
  0%   { color: rgba(255, 255, 255, 0.2); }
  45%  { color: var(--flash); }
  100% { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sweep .ch { color: #fff !important; }
  .sweep .ch.ch-accent { color: var(--accent) !important; }
}

/* ============================================================
   MOBILE: flatten index content cards into divider-separated lists
   ============================================================ */
@media (max-width: 639.98px) {
  #benefits-grid, #steps-grid, #roles-grid, #features-grid, #pay-grid, #pricing-grid, #addons-grid, #faq-list { gap: 0; }

  #benefits-grid > *, #roles-grid > *, #features-grid > *, #pay-grid > *,
  #pricing-grid > *, #addons-grid > *, #faq-list > *, #steps-grid .step-card {
    border: 0; border-radius: 0; background: none; box-shadow: none;
  }
  #benefits-grid > *, #roles-grid > *, #features-grid > *, #pay-grid > *,
  #pricing-grid > *, #addons-grid > *, #steps-grid .step-card { padding: 22px 0; }
  #faq-list > * { padding-inline: 0; }

  /* dividers between items (no need to clear the last one) */
  #benefits-grid > * + *, #roles-grid > * + *, #features-grid > * + *,
  #pay-grid > * + *, #pricing-grid > * + *, #addons-grid > * + *,
  #faq-list > * + *, #steps-grid .step + .step { border-top: 1px solid var(--line); }

  .card-feature:hover { transform: none; }   /* no lift on touch */

  /* keep the "popular" plan recognisable without a box */
  #pricing-grid .card-pricing.popular { border-left: 2px solid var(--accent); padding-left: 12px; background: rgba(0, 255, 225, 0.04); }

  /* steps: number badge on the left, text on the right; drop the redundant icon */
  #steps-grid .step-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  #steps-grid .step-icon { display: none; }
  #steps-grid .step-num { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  #steps-grid .step-card h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; }
  #steps-grid .step-card p { grid-column: 2; grid-row: 2; margin: 0; }

  /* period (cycle) selector: three equal pills, one row */
  .cycle-group { width: 100%; flex-wrap: nowrap; gap: .4rem; }
  .cycle-group .btn { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 0.85rem; }
}

/* ============================================================
   SUBSCRIBE PAGE (/abonare static)
   ============================================================ */
.sub-wrap { padding-top: calc(64px + 5vh); padding-bottom: 8vh; }
@media (min-width: 1280px) { .sub-wrap { padding-top: calc(72px + 5vh); } }
.sub-head { max-width: 720px; margin-bottom: 32px; }
.sub-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.sub-head p { color: var(--muted); font-size: 1rem; line-height: 1.7; }

.sub-error {
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4);
  color: #fca5a5; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: .9rem;
}

.sub-card { padding: 24px; margin-bottom: 24px; display: flex; flex-direction: column; }
.sub-card h2 { font-size: 1.15rem; margin-bottom: 18px; }
/* mobile: drop the outer card chrome so we don't have card-in-card */
@media (max-width: 768px) {
  .sub-card { border: none; background: none; padding: 0; }
}

.sub-grid2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .sub-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--soft); }
.field .hint, .hint { font-size: .75rem; color: var(--faint); line-height: 1.5; }
.field input, .sub-select {
  width: 100%; height: 42px; padding: 0;
  background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .sub-select:focus { outline: none; border-bottom-color: var(--accent); }

.sub-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1000px) { .sub-cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; } }

.sub-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }

.sub-plans { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .sub-plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.plan-pick {
  text-align: left; background: var(--panel-2); color: inherit; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 10px;
}
.plan-pick:hover { border-color: rgba(0, 255, 225, .4); }
.plan-pick.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 255, 225, .25); }
.plan-pick:disabled { opacity: .55; cursor: not-allowed; }
.plan-pick-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-pick-top > div:first-child { flex: 1; min-width: 0; }   /* left block shrinks so the price never wraps */
.plan-pick-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-pick-badge { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 255, 225, .12); color: var(--accent); }
.plan-pick-desc { font-size: .82rem; color: var(--muted-2); line-height: 1.5; }
.plan-pick-price { font-weight: 700; text-align: right; white-space: nowrap; flex-shrink: 0; }
.plan-pick-feats { display: flex; flex-direction: column; gap: 6px; }
.plan-pick-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--muted-2); }
.plan-pick-feats svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* prevent horizontal overflow on mobile: let grid/flex items shrink below content size */
.plan-pick, .plan-pick-top, .plan-pick-top > div, .plan-pick-feats li, .plan-pick-feats span { min-width: 0; }
.plan-pick-feats span { overflow-wrap: anywhere; }
/* mobile: drop the card boxes — flat list separated by dividers, selection = cyan left bar */
@media (max-width: 639.98px) {
  .sub-plans { gap: 0; }
  .plan-pick {
    border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
    border-radius: 0; background: none; box-shadow: none; padding: 16px 12px;
  }
  .plan-pick:hover { border-bottom-color: var(--line); border-left-color: rgba(0, 255, 225, 0.45); }
  .plan-pick.active { border-bottom-color: var(--line); border-left-color: var(--accent); background: rgba(0, 255, 225, 0.05); box-shadow: none; }
  .plan-pick:last-child { border-bottom: 0; }
  .plan-pick-feats { display: none; }
}

.sub-addons { display: flex; flex-direction: column; gap: 12px; }
.addon-pick { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.addon-pick.disabled { opacity: .55; }
.addon-pick .addon-top { display: flex; justify-content: space-between; gap: 10px; }
.addon-pick .addon-name { font-weight: 600; font-size: .92rem; }
.addon-pick .addon-money { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.addon-pick .addon-desc { font-size: .8rem; color: var(--muted-2); line-height: 1.5; margin-top: 3px; }
/* mobile: flat add-on list (placed after the base rules so source order lets it win) */
@media (max-width: 639.98px) {
  .sub-addons { gap: 0; }
  .addon-pick { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .addon-pick:last-child { border-bottom: 0; }
}

.sub-summary { border-top: 1px solid var(--line-soft); margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sub-total-row { display: flex; align-items: center; justify-content: space-between; }
.sub-total { font-weight: 700; font-size: 1.1rem; }
.sub-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.sub-check input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }

/* checkboxes accent */
.addon-pick input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

/* existing-account modal */
.sub-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.sub-modal-box { max-width: 440px; width: 100%; padding: 26px; }
.sub-modal-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.sub-modal-box > p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.sub-modal-box ul { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.sub-modal-box li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font-size: .88rem; }
.sub-modal-box li a { color: var(--accent); }
.sub-modal-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }

/* legal / prose pages (termeni, confidentialitate) */
.legal-wrap { padding-top: calc(64px + 5vh); padding-bottom: 8vh; max-width: 820px; }
@media (min-width: 1280px) { .legal-wrap { padding-top: calc(72px + 5vh); } }
.legal-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.legal-updated { color: var(--muted-2); font-size: .85rem; margin-bottom: 34px; }
.legal-prose { display: flex; flex-direction: column; gap: 26px; }
.legal-prose h2 { font-size: 1.15rem; margin-bottom: 10px; }
.legal-prose h3 { font-size: .98rem; font-weight: 600; margin: 14px 0 6px; color: var(--soft); }
.legal-prose p { color: var(--muted); font-size: .92rem; line-height: 1.75; margin: 0 0 8px; }
.legal-prose ul { list-style: disc; padding-left: 22px; margin: 6px 0; display: flex; flex-direction: column; gap: 5px; }
.legal-prose li { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.legal-prose strong { color: var(--soft); }
.legal-prose a { color: var(--accent); text-decoration: underline; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .88rem; }
.legal-prose th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--soft); font-weight: 600; }
.legal-prose td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted-2); }

/* subscribe success page */
.succes-wrap { padding-top: calc(64px + 5vh); padding-bottom: 8vh; max-width: 620px; }
@media (min-width: 1280px) { .succes-wrap { padding-top: calc(72px + 5vh); } }
.order-ok { border: 1px solid rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .06); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; font-size: .9rem; }
.order-ok .ok-title { color: #4ade80; font-weight: 600; margin-bottom: 8px; }
.order-ok > p { color: var(--muted); line-height: 1.65; margin: 0 0 8px; }
.order-ok .merchant { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; font-size: .78rem; color: var(--muted-2); line-height: 1.5; }
.order-ok .merchant .strong { color: var(--soft); font-weight: 600; }
.order-ok .terms-note { font-size: .78rem; color: var(--muted-2); margin-top: 10px; }
.order-ok a { color: var(--accent); text-decoration: underline; }
.succes-card { padding: 24px; }
.succes-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.succes-card > p { color: var(--muted); font-size: .92rem; line-height: 1.7; margin-bottom: 14px; }
.succes-note { border: 1px solid var(--line); background: rgba(255, 255, 255, .02); border-radius: var(--radius); padding: 12px; font-size: .78rem; color: var(--muted-2); margin-bottom: 16px; line-height: 1.5; }
.succes-grid2 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 600px) { .succes-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.succes-error { color: #fca5a5; font-size: .85rem; margin-top: 10px; }

/* login page */
.login-card { max-width: 560px; margin-inline: auto; padding: 30px; }
.login-card h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.login-card > p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-preview { font-size: .85rem; color: var(--muted-2); }
.login-error { font-size: .85rem; color: #fca5a5; }
.login-foot { font-size: .85rem; color: var(--muted); }
.login-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
