/* Saleso.cloud marketing — intentional blue palette (not purple / indigo SaaS). */
:root {
  color-scheme: light;
  --blue-950: #0a2744;
  --blue-900: #0f3a63;
  --blue-800: #154f86;
  --blue-700: #1b65ad;
  --blue-600: #2478c8;
  --blue-500: #3a8fd9;
  --blue-400: #6aade6;
  --blue-300: #9cc9ef;
  --blue-200: #c5dff5;
  --blue-100: #e3f0fa;
  --blue-50: #f2f7fc;

  --ink: var(--blue-950);
  --ink-soft: var(--blue-900);
  --muted: #4a6278;
  --paper: var(--blue-50);
  --paper-deep: var(--blue-100);
  --surface: #ffffff;
  --line: rgba(15, 58, 99, 0.14);
  --accent: var(--blue-800);
  --accent-hover: var(--blue-950);
  --highlight: var(--blue-600);
  --ok: #1b6b4a;
  --shadow-soft: 0 18px 48px rgba(15, 58, 99, 0.12);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 8% -12%, rgba(58, 143, 217, 0.16), transparent 55%),
    radial-gradient(900px 440px at 100% 0%, rgba(27, 101, 173, 0.1), transparent 52%),
    linear-gradient(180deg, #f5f9fd 0%, var(--blue-50) 40%, #e8f1f9 100%);
  line-height: 1.55;
  min-height: 100vh;
}

body.is-ready .reveal {
  opacity: 1;
  transform: none;
}

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

a {
  color: var(--highlight);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--blue-900);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(242, 247, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--ink);
}

.locale-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.locale-bar label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.locale-bar select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a6278' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1.8rem 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.locale-bar select:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(242, 247, 252, 0.97) 0%,
      rgba(227, 240, 250, 0.92) 34%,
      rgba(197, 223, 245, 0.45) 58%,
      rgba(15, 58, 99, 0.22) 100%
    ),
    linear-gradient(180deg, rgba(27, 101, 173, 0.1), transparent 38%);
}

.hero-copy {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5.5rem);
  max-width: 34rem;
  align-self: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 1%, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(27, 101, 173, 0.4);
  color: var(--blue-800);
}

.btn-block {
  width: 100%;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.capabilities {
  border-top: 1px solid var(--line);
}

.capability-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-list li {
  padding-top: 1rem;
  border-top: 2px solid rgba(36, 120, 200, 0.35);
}

.capability-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.capability-list p {
  margin: 0;
  color: var(--muted);
}

.pricing {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(58, 143, 217, 0.08) 28%,
      rgba(21, 79, 134, 0.06) 68%,
      transparent
    );
}

.pricing-intro {
  max-width: 40rem;
}

.pricing-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plans {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.45rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease;
}

.plan-card.is-visible {
  opacity: 1;
  transform: none;
}

.plan-card:nth-child(2) {
  transition-delay: 0.1s;
}

.plan-card.is-featured {
  border-color: rgba(36, 120, 200, 0.5);
  background: linear-gradient(165deg, #ffffff 0%, var(--blue-100) 100%);
}

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.plan-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-price {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.plan-price .amount {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue-900);
}

.plan-price .period {
  color: var(--muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 0.25rem 0 0.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--blue-600);
}

.plan-features .extra {
  color: var(--ink);
  font-weight: 600;
}

.compare {
  border-top: 1px solid var(--line);
}

.compare-table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1.1rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 600;
  background: rgba(227, 240, 250, 0.75);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .yes {
  color: var(--ok);
  font-weight: 600;
}

.compare-table .no {
  color: var(--muted);
}

.cta {
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

.cta-panel {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #f2f7fc;
}

.cta-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cta-panel p {
  margin: 0;
  max-width: 34rem;
  color: rgba(242, 247, 252, 0.86);
}

.cta-panel .hero-actions {
  margin-top: 1.4rem;
}

.cta-panel .btn-primary {
  background: #fff;
  color: var(--blue-900);
}

.cta-panel .btn-primary:hover {
  background: var(--blue-100);
  color: var(--blue-950);
}

.cta-panel .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-panel .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.footer-soflab-logo {
  width: 18px;
  height: 17px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-inner a {
  color: var(--blue-800);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* Go to top — mirrors Medso FAB UX; logical inset for LTR/RTL */
.go-to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.go-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.go-to-top:hover {
  background: var(--accent-hover);
}

.go-to-top:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.go-to-top[hidden] {
  display: none;
}

[dir='rtl'] .hero-media img {
  object-position: 32% center;
}

[dir='rtl'] .hero-wash {
  background:
    linear-gradient(
      255deg,
      rgba(242, 247, 252, 0.97) 0%,
      rgba(227, 240, 250, 0.92) 34%,
      rgba(197, 223, 245, 0.45) 58%,
      rgba(15, 58, 99, 0.22) 100%
    ),
    linear-gradient(180deg, rgba(27, 101, 173, 0.1), transparent 38%);
}

[dir='rtl'] .plan-features li {
  padding-left: 0;
  padding-right: 1.15rem;
}

[dir='rtl'] .plan-features li::before {
  left: auto;
  right: 0;
}

[dir='rtl'] .locale-bar select {
  background-position: left 0.65rem center;
  padding: 0.4rem 0.65rem 0.4rem 1.8rem;
}

@media (max-width: 860px) {
  .capability-list {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    object-position: 78% center;
  }

  .hero-wash {
    background:
      linear-gradient(
        180deg,
        rgba(242, 247, 252, 0.97) 0%,
        rgba(227, 240, 250, 0.92) 42%,
        rgba(197, 223, 245, 0.5) 72%,
        rgba(15, 58, 99, 0.28) 100%
      );
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1120px, calc(100% - 1.5rem));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 14vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .plan-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
