/* SenSoftware company site. Static HTML + CSS, no build step. */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e2ded8;
  --ink: #0f2b35;
  --amber: #fdb022;
  /* Product colors, same as each product's logo. */
  --opticore: #0b7a93;
  --opticore-soft: #e2f2f5;
  --senspool: #0b5fcc;
  --senspool-soft: #e3eefc;
  --sensdrive: #d9480f;
  --sensdrive-soft: #fdebe2;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --wrap: 1080px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw + 0.6rem, 3.6rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* Header: light and fixed on top, so the dark intro below stays the highlight */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  color: var(--ink);
  box-shadow:
    0 1px 0 var(--border),
    0 8px 24px -16px rgb(15 43 53 / 35%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header .brand {
  color: var(--ink);
}

.wordmark {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wordmark b {
  font-weight: 800;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav-links a,
.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.lang-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
}

.lang-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.header-cta {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px;
  white-space: nowrap;
}

.header-cta:hover {
  background: #ffc247;
  color: var(--ink);
}

@media (max-width: 479px) {
  .header-right {
    gap: 10px;
  }

  .header-cta {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .lang-link {
    padding: 3px 9px;
    font-size: 0.85rem;
  }
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
}

/* Intro: the first thing people see. Dark, full width, with the three apps on the right. */
.intro {
  background: var(--ink);
  color: #ffffff;
  padding: 48px 0 64px;
  border-bottom: 6px solid;
  border-image: linear-gradient(
      90deg,
      var(--senspool) 0 33.3%,
      var(--sensdrive) 33.3% 66.6%,
      var(--opticore) 66.6% 100%
    )
    1;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .intro {
    padding: 72px 0 96px;
  }

  .intro-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.intro h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4.5vw + 0.8rem, 4.2rem);
}

.intro h1 em {
  font-style: italic;
  color: var(--amber);
}

.intro p {
  max-width: 52ch;
  font-size: 1.15rem;
  color: rgb(255 255 255 / 78%);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
}

.btn-amber:hover {
  background: #ffc247;
  color: var(--ink);
}

.btn-outline {
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%);
}

.btn-outline:hover {
  color: #ffffff;
  background: rgb(255 255 255 / 8%);
}

/* The three apps as little tilted cards */
.intro-art {
  display: grid;
  gap: 14px;
}

.tile {
  background: var(--soft);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 18px 36px -18px rgb(0 0 0 / 60%);
}

.tile.senspool {
  --c: var(--senspool);
  --soft: var(--senspool-soft);
}

.tile.opticore {
  --c: var(--opticore);
  --soft: var(--opticore-soft);
}

.tile.sensdrive {
  --c: var(--sensdrive);
  --soft: var(--sensdrive-soft);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.tile-head img {
  width: 40px;
  height: 40px;
  padding: 5px;
  background: #ffffff;
  border-radius: 10px;
}

.tile-head b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.1;
}

.tile-head small {
  color: var(--c);
  font-weight: 700;
  font-size: 0.85rem;
}

.tile .motif {
  height: 34px;
}

.tile.opticore .motif {
  zoom: 0.6;
  height: 56px;
}

@media (min-width: 900px) {
  .tile:nth-child(1) {
    transform: rotate(-3deg) translateX(-12px);
  }

  .tile:nth-child(2) {
    transform: rotate(2deg) translateX(28px);
  }

  .tile:nth-child(3) {
    transform: rotate(-1.5deg) translateX(-4px);
  }
}

@media (max-width: 599px) {
  .intro-art {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .tile-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }

  .tile-head b {
    font-size: 1rem;
  }

  .tile-head small {
    font-size: 0.72rem;
  }

  .tile.opticore .motif span:nth-child(n + 3) {
    display: none;
  }
}

/* Sections */
/* Keep the sticky header from covering a section when jumping to it */
[id] {
  scroll-margin-top: 80px;
}

section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw + 0.8rem, 2.8rem);
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
}

/* Small label above each section title, with the three product colors */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.kicker::before {
  content: '';
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--senspool) 0 33.3%,
    var(--sensdrive) 33.3% 66.6%,
    var(--opticore) 66.6% 100%
  );
}

/* Product cards: each one dressed like its trade */
.products {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--soft);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  border-radius: 16px;
  overflow: hidden;
}

.product.opticore {
  --c: var(--opticore);
  --soft: var(--opticore-soft);
}

.product.senspool {
  --c: var(--senspool);
  --soft: var(--senspool-soft);
}

.product.sensdrive {
  --c: var(--sensdrive);
  --soft: var(--sensdrive-soft);
}

.product-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-head img {
  width: 48px;
  height: 48px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  flex: none;
}

.product h3 {
  margin: 0;
  color: var(--ink);
}

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--c);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 2px 0 0;
}

.product .for {
  font-weight: 600;
  color: var(--ink);
}

.product .detail {
  color: var(--text-muted);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 8px;
}

.product-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--c);
  color: #ffffff;
}

.product-links a + a {
  background: transparent;
  color: var(--c);
  box-shadow: inset 0 0 0 1.5px var(--c);
}

.product-links .soon {
  color: var(--c);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Bottom strip of each card */
.motif {
  height: 64px;
  flex: none;
}

/* OptiCore: an eye chart */
.opticore .motif {
  display: flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  border-top: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  font-family: var(--serif);
  color: var(--c);
  line-height: 1;
}

.opticore .motif span:nth-child(1) {
  font-size: 2.2rem;
}

.opticore .motif span:nth-child(2) {
  font-size: 1.7rem;
}

.opticore .motif span:nth-child(3) {
  font-size: 1.3rem;
}

.opticore .motif span:nth-child(4) {
  font-size: 1rem;
}

.opticore .motif span:nth-child(5) {
  font-size: 0.75rem;
}

/* SenSPool: water */
.senspool .motif {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64' viewBox='0 0 120 64'%3E%3Cpath d='M0 26c15-10 30-10 45 0s30 10 45 0 30-10 30 0V64H0z' fill='%2360a5fa'/%3E%3Cpath d='M0 42c15-9 30-9 45 0s30 9 45 0 30-9 30 0V64H0z' fill='%230b5fcc'/%3E%3C/svg%3E")
    repeat-x bottom / 120px 64px;
}

/* SenSDrive: the road */
.sensdrive .motif {
  background:
    repeating-linear-gradient(90deg, var(--amber) 0 28px, transparent 28px 52px) center / 100%
      5px no-repeat,
    #2b2f33;
  border-top: 6px solid #6b7075;
}

/* Origin stories */
.stories {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}

@media (min-width: 800px) {
  .stories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--c);
  border-radius: 12px;
  padding: 24px;
}

.story.opticore {
  --c: var(--opticore);
}

.story.senspool {
  --c: var(--senspool);
}

.story.sensdrive {
  --c: var(--sensdrive);
}

.story h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.story p {
  margin: 0;
  color: var(--text-muted);
}

/* How we work: warm panel under the stories */
.values {
  background: #fff3d6;
  border-radius: 20px;
  padding: 32px 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .values {
    grid-template-columns: 1fr 2fr;
    padding: 40px;
    gap: 28px 40px;
  }
}

.values-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw + 0.9rem, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.values-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .values-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value {
  border-top: 4px solid var(--c);
  padding-top: 12px;
}

.value.senspool {
  --c: var(--senspool);
}

.value.sensdrive {
  --c: var(--sensdrive);
}

.value.opticore {
  --c: var(--opticore);
}

.value h3 {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.value p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.values-langs {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgb(15 43 53 / 15%);
  color: var(--ink);
}

@media (min-width: 800px) {
  .values-langs {
    grid-column: 1 / -1;
  }
}

.chip {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 2px 12px;
}

/* Custom software: white band with a blank "your app" tile */
.custom {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.custom-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .custom-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.custom-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.steps b {
  color: var(--ink);
}

.steps span {
  color: var(--text-muted);
}

.custom-art {
  display: grid;
  place-items: center;
}

.blank-tile {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border: 3px dashed var(--border);
  border-radius: 24px;
  background: #fff3d6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  transform: rotate(2deg);
}

.blank-tile b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
  margin-top: 8px;
}

.blank-tile small {
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .blank-tile {
    width: 200px;
  }
}

/* Contact: dark block with an amber button */
#contact,
#contacto {
  padding-top: 0;
}

.contact {
  background: var(--ink);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px 24px;
  display: grid;
  gap: 16px 40px;
  align-items: center;
}

@media (min-width: 800px) {
  .contact {
    grid-template-columns: 1fr auto;
    padding: 48px;
  }
}

.contact h2 {
  font-size: clamp(1.8rem, 3vw + 0.8rem, 2.6rem);
  margin-bottom: 8px;
}

.contact p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  max-width: 50ch;
}

.contact-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1.1rem;
  justify-self: start;
}

.contact-btn small {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-btn:hover {
  background: #ffc247;
}

/* Footer: dark band with the same three-color stripe as the intro */
.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 75%);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  border-top: 6px solid;
  border-image: linear-gradient(
      90deg,
      var(--senspool) 0 33.3%,
      var(--sensdrive) 33.3% 66.6%,
      var(--opticore) 66.6% 100%
    )
    1;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-grid p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #ffffff;
}

/* Floating WhatsApp notice (sales rep), on every scroll position */
.wa {
  --wa: #1fa855;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-card {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 16px;
  border-top: 5px solid var(--wa);
  padding: 18px 18px 16px;
  box-shadow: 0 20px 40px -16px rgb(15 43 53 / 45%), 0 0 0 1px var(--border);
  display: none;
}

.wa.is-open .wa-card {
  display: block;
  animation: wa-in 0.35s ease-out;
}

@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa.is-open .wa-card {
    animation: none;
  }
}

.wa-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.wa-close:hover {
  background: var(--bg);
  color: var(--ink);
}

.wa-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wa-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--amber);
  font-weight: 700;
  flex: none;
}

/* Green "available" dot */
.wa-avatar::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 2px #ffffff;
}

.wa-person b {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.wa-person small {
  color: var(--text-muted);
}

.wa-card p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--wa);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.wa-btn:hover {
  background: #178c46;
  color: #ffffff;
}

.wa-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 12px 24px -8px rgb(15 43 53 / 50%);
}

.wa-bubble:hover {
  background: #178c46;
  color: #ffffff;
}

.wa-bubble svg {
  width: 30px;
  height: 30px;
}

/* Simple pages (privacy, terms, 404) */
.page {
  padding: 56px 0 96px;
}

.page .wrap {
  max-width: 720px;
}

.page p {
  color: var(--text-muted);
}

/* Legal pages (terms, privacy): long reading text */
.legal h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.legal .legal-intro {
  font-size: 1.15rem;
  color: var(--text);
}

.legal-toc {
  background: #fff3d6;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 28px 0 8px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2 220px;
  column-gap: 32px;
}

.legal-toc li {
  margin: 2px 0;
  break-inside: avoid;
}

.legal-section {
  padding: 28px 0 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.legal-section strong {
  color: var(--text);
}

/* Highlight the section someone jumped to, e.g. cancellations from the footer */
.legal-section:target h2 {
  background: linear-gradient(transparent 60%, rgb(253 176 34 / 45%) 60%);
  display: inline;
}

