/* ==========================================================================
   DCV Risinājumi — dizaina sistēma (vienas lapas versija)
   ========================================================================== */

:root {
  --navy: #0F1F3D;
  --navy-2: #16294D;
  --navy-deep: #0A1428;
  --red: #C41E4C;
  --red-dark: #9E1839;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --border: #E3E8EF;
  --text: #16213A;
  --text-muted: #5B6472;
  --ok: #2E9E5B;
  --ok-text: #1F7A44;
  --warn: #E8873A;
  --warn-text: #B5651D;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-w: 1160px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 20, 40, 0.35);
}

/* ---- Reset ------------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--text-muted); }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--border); }

.container {
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

section { padding: 116px 0; }
section[id] { scroll-margin-top: 80px; }

/* ---- Section headings ---------------------------------------------------- */
.overline {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { font-size: 17px; margin-bottom: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 30, 76, 0.30);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(196, 30, 76, 0.38);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* ---- Header -------------------------------------------------------------*/
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 31, 61, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { height: 40px; width: auto; }
.logo-link { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--red);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch a {
  display: flex;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.lang-switch a:hover { opacity: 0.75; }
.lang-switch a.lang-active { opacity: 1; }
.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(15, 31, 61, 0.12);
}

/* ---- Hero ---------------------------------------------------------------*/
.hero {
  background: radial-gradient(1100px 560px at 50% -12%, var(--navy-2) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 96px 0 0;
}
.hero-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.6vw, 66px);
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 20px;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-showcase {
  max-width: 980px;
  margin: 64px auto -130px;
  padding: 0 24px;
}
.demo-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin: 14px 0 0;
}
.section-demo-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -36px;
  margin-bottom: 48px;
}

/* ---- App window mockup ---------------------------------------------------*/
.appwin {
  background: #fff;
  border: 1px solid rgba(15, 31, 61, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
  color: var(--text);
  max-width: 100%;
}
.appwin-sm { box-shadow: 0 16px 44px rgba(10, 20, 40, 0.14); }

.appwin-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-deep);
  padding: 10px 16px;
}
.appwin-titlebar .dots { display: flex; gap: 6px; }
.appwin-titlebar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: block;
}
.appwin-titlebar .title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.appwin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.appwin-brand { display: flex; align-items: center; gap: 10px; }
.appwin-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 3px;
}
.appwin-logo::after {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  display: block;
}
.appwin-name { font-size: 14px; font-weight: 700; color: var(--navy); }

.appwin-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.appwin-tab {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.appwin-tab.active {
  color: var(--navy);
  border-color: var(--red);
  background: #fff;
}
.appwin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
.tool-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.tool-btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.tool-chip {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 12px;
  white-space: nowrap;
}
.appwin-stats {
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.appwin-scroll { overflow-x: auto; }

.appwin-table { min-width: 800px; font-size: 12.5px; }
.appwin-table-sm { min-width: 520px; }
.aw-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.aw-cols-main { grid-template-columns: 30px 1.1fr 1.5fr 0.5fr 1fr 0.55fr 0.95fr 0.95fr 0.8fr; }
.aw-cols-report { grid-template-columns: 1fr 1.3fr 0.85fr 1fr 1fr 1fr; }
.aw-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--bg-alt);
  border-top: none;
}
.aw-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.aw-row.r-red { background: #FDF1F4; }
.aw-row.r-warn { background: #FDF6EE; }
.aw-row.r-ok { background: #F2F9F4; }

/* Signatūras "dzīvā" rinda: vienīgā animētā vieta lapā, rāda Kavēts -> Nosūtīts */
.aw-row-live { animation: awRowLive 11s ease-in-out infinite alternate; }
.status-live { position: relative; display: inline-flex; }
.status-live .pill-a { animation: awPillOut 11s ease-in-out infinite alternate; }
.status-live .pill-b {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  animation: awPillIn 11s ease-in-out infinite alternate;
}
@keyframes awRowLive {
  0%, 20% { background-color: #FDF1F4; }
  75%, 100% { background-color: #F0F9F3; }
}
@keyframes awPillOut {
  0%, 20% { opacity: 1; }
  23%, 100% { opacity: 0; }
}
@keyframes awPillIn {
  0%, 20% { opacity: 0; }
  23%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-row-live,
  .status-live .pill-a,
  .status-live .pill-b {
    animation: none;
  }
  .status-live .pill-b { opacity: 0; }
}

.cb {
  width: 15px;
  height: 15px;
  border: 1.5px solid #B6BFCC;
  border-radius: 4px;
  display: inline-block;
  background: #fff;
}
.cb.on {
  background: var(--navy);
  border-color: var(--navy);
  position: relative;
}
.cb.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-red { background: #F9E0E8; color: var(--red-dark); }
.pill-warn { background: #FCEBDA; color: var(--warn-text); }
.pill-ok { background: #DFF2E6; color: var(--ok-text); }
.pill-neutral { background: #E9EDF3; color: var(--text-muted); }

.appwin-statusline {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Benefits -------------------------------------------------------------*/
.benefits { background: var(--bg); padding-top: 210px; }
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(196, 30, 76, 0.04);
  border: 1px solid rgba(196, 30, 76, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 56px;
}
.partner-strip-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: -2px;
}
.partner-strip-text {
  flex: 1 1 auto;
  min-width: 60px;
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.partner-strip-link:hover { color: var(--red); border-color: var(--red); }
.partner-strip-link-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.partner-strip-link:hover .partner-strip-link-icon { transform: translate(2px, -2px); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #D5DCE6;
}
.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(196, 30, 76, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { margin-bottom: 0; font-size: 14.5px; }
.benefit-card ul {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.benefit-card li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.benefit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* ---- How it works ---------------------------------------------------------*/
.how-it-works { background: var(--bg-alt); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step { text-align: center; }
.step-number {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(15, 31, 61, 0.22);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* ---- Product feature rows ---------------------------------------------------*/
.product-section { background: var(--bg); }
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 56px;
  align-items: center;
  margin-top: 88px;
}
.feature-row:first-of-type { margin-top: 0; }
.feature-media { min-width: 0; }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy h3 { font-size: clamp(22px, 2.6vw, 28px); }
.feature-copy p { font-size: 15.5px; }
.feature-copy ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.feature-copy li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(196, 30, 76, 0.10);
}
.feature-copy li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7px;
  width: 4px;
  height: 7px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- Add-ons (Ko vēl varam izveidot) -----------------------------------------*/
.addons-section { background: var(--bg-alt); }
.addons-grid { grid-template-columns: repeat(3, 1fr); }
.addons-grid .benefit-card:last-child { grid-column: 2; }
.addon-cta-note {
  font-size: 14px;
  background: rgba(196, 30, 76, 0.06);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 20px;
}
.addons-cta.addon-cta-note {
  display: block;
  max-width: 620px;
  margin: 56px auto 0;
  text-align: left;
}

/* ---- Pricing ---------------------------------------------------------------*/
.pricing { background: var(--bg); }
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 20px 50px rgba(15, 31, 61, 0.16);
  transform: translateY(-3px);
  border-color: #D5DCE6;
}
.pricing-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.price-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.price-per { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.pricing-desc { font-size: 14.5px; margin-bottom: 0; }
.pricing-divider { margin: 26px 0; }
.pricing-row-minor {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pricing-row-minor .minor-label { font-weight: 600; color: var(--navy); }
.pricing-fineprint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 24px 0 0;
}

/* ---- About -------------------------------------------------------------------*/
.about-section { background: var(--bg-alt); }
.about-block h3 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.about-block:first-of-type h3 { margin-top: 0; }
.about-block p { font-size: 15.5px; margin-bottom: 0; }

/* ---- CTA section -----------------------------------------------------------*/
.cta-section {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; font-size: clamp(26px, 3.4vw, 36px); }
.cta-section p { color: rgba(255, 255, 255, 0.68); margin-bottom: 30px; }

/* ---- Contact -----------------------------------------------------------------*/
.contact-section { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: start;
}
.contact-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
}
.contact-panel h3 { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-list strong {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-list a { color: var(--navy); font-size: 17px; font-weight: 600; transition: color 0.2s ease; }
.contact-list a:hover { color: var(--red); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.10);
}
.contact-form .btn { align-self: flex-start; border: none; }

/* ---- Company details (Rekvizīti) ------------------------------------------------*/
.company-details { max-width: 640px; margin: 64px auto 0; }
.company-details h3 { text-align: center; font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.details-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
}
.details-list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.details-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.details-row:last-child { border-bottom: none; padding-bottom: 0; }
.details-row dt { font-weight: 600; color: var(--navy); margin: 0; font-size: 14.5px; }
.details-row dd { margin: 0; color: var(--text-muted); text-align: right; font-size: 14.5px; }
.details-row dd.placeholder {
  color: #8A93A0;
  font-style: italic;
  background: #ECEFF3;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* ---- Footer --------------------------------------------------------------------*/
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.footer-tag { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin: 0; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.45); margin: 0; }
.footer-legal-link { transition: color 0.2s ease; }
.footer-legal-link:hover { color: #fff; }

/* ---- Reveal animations ------------------------------------------------------------*/
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Accessibility: focus states ------------------------------------------------*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---- Responsive ------------------------------------------------------------------*/
@media (max-width: 980px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .lang-switch { padding: 16px 0 0; }

  section { padding: 72px 0; }
  .hero { padding: 64px 0 0; }
  .hero-showcase { margin: 44px auto -70px; }
  .benefits { padding-top: 140px; }
  .partner-strip { flex-direction: column; align-items: flex-start; }
  .partner-strip-text { white-space: normal; overflow: visible; text-overflow: clip; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-card { padding: 34px 24px; }
  .contact-panel { padding: 26px 22px; }
  .feature-row { margin-top: 64px; }

  /* Mockup tabulas: ritināšana paliek IEKŠ loga, ar izbalēšanas norādi labajā malā */
  .appwin-scroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  }
}

@media (max-width: 600px) {
  /* Mazāk kolonnu galvenajā atgādinājumu tabulā, lai mazāk paļautos uz ritināšanu */
  .appwin-table { min-width: 640px; }
  .aw-cols-main { grid-template-columns: 26px 1.15fr 1.5fr 0.85fr 0.7fr 0.85fr 0.85fr; }
  .aw-cols-main > *:nth-child(4),
  .aw-cols-main > *:nth-child(9) {
    display: none;
  }
}

@media (max-width: 560px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .addons-grid .benefit-card:last-child { grid-column: auto; }
}
