/*
 * Shared visual system for Horix product, pricing, support and legal pages.
 * Page-specific styles keep ownership of their layouts; this layer unifies
 * hierarchy, spacing, surfaces and conversion patterns across the site.
 */
:root {
  --internal-ink: #102f35;
  --internal-muted: #5b7276;
  --internal-teal: #0e766e;
  --internal-teal-dark: #095f59;
  --internal-mint: #e8f5f2;
  --internal-mint-soft: #f3faf8;
  --internal-blue: #3d67d8;
  --internal-line: #d9e7e4;
  --internal-shadow: 0 18px 48px rgba(16, 47, 53, .08);
  --internal-shadow-hover: 0 24px 60px rgba(16, 47, 53, .13);
}

body {
  background:
    radial-gradient(circle at 8% 6%, rgba(113, 204, 188, .12), transparent 26rem),
    #f8fcfb;
}

body main {
  overflow: clip;
}

body main > .hero,
body main > .section:first-of-type {
  isolation: isolate;
}

body main > .hero {
  min-height: min(780px, calc(100svh - var(--site-header-height, 68px)));
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vw, 124px) 0 clamp(64px, 8vw, 108px);
  border-bottom: 1px solid rgba(14, 118, 110, .12);
  background:
    radial-gradient(circle at 82% 16%, rgba(94, 181, 166, .22), transparent 24rem),
    radial-gradient(circle at 16% 68%, rgba(61, 103, 216, .07), transparent 22rem),
    linear-gradient(180deg, #eff9f7 0%, #f8fcfb 78%);
}

body main > .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(14, 118, 110, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 118, 110, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

body main > .hero::after {
  width: 34rem;
  height: 34rem;
  top: -15rem;
  right: -9rem;
  background: rgba(71, 176, 159, .14);
  filter: blur(80px);
}

body main .hero-center {
  max-width: 980px;
}

body main .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}

body main .hero h1,
body main > .section:first-of-type .hero-center h1 {
  max-width: 980px;
  color: var(--internal-ink);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: .99;
}

body main .hero-grid h1 {
  font-size: clamp(42px, 5.2vw, 68px);
}

body main .eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  justify-self: start !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(14, 118, 110, .16);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .72);
  color: var(--internal-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  box-shadow: 0 5px 18px rgba(16, 47, 53, .04);
}

body main .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #36a994;
  box-shadow: 0 0 0 4px rgba(54, 169, 148, .12);
}

body main .hero .lead,
body main > .section:first-of-type .hero-center .lead {
  margin-top: 24px;
  color: #4d676b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

body main .hero-center .lead {
  max-width: 790px;
}

body main .actions {
  gap: 12px;
}

body main .hero .actions {
  margin-top: 30px;
}

body main .btn {
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 19px;
  font-weight: 760;
}

body main .btn-primary {
  border-color: var(--internal-teal);
  background: var(--internal-teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 118, 110, .22);
}

body main .btn-primary:hover {
  border-color: var(--internal-teal-dark);
  background: var(--internal-teal-dark);
  transform: translateY(-1px);
}

body main .btn-demo {
  border-color: #bfd4d1;
  background: rgba(255, 255, 255, .82);
}

body main .hero-actions-note {
  max-width: 620px;
  margin-top: 14px;
  color: #708387;
  font-size: 13px;
}

body main .hero-center .hero-actions-note {
  margin-right: auto;
  margin-left: auto;
}

body main .hero-mockup-wrap,
body main .hero-mockup-section {
  position: relative;
  z-index: 2;
}

body main .hero-mockup-wrap {
  margin-top: 10px;
}

body main .hero-mockup,
body main .browser-mockup,
body main .chat-mockup {
  border-color: rgba(16, 47, 53, .12);
  border-radius: 22px;
  box-shadow:
    0 32px 80px rgba(16, 47, 53, .14),
    0 5px 18px rgba(16, 47, 53, .07);
}

body main .hero-mockup-wrap::before,
body main .hero-mockup-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 9% -6%;
  border-radius: 50%;
  background: rgba(72, 172, 155, .18);
  filter: blur(55px);
}

body main > .hero[style*="padding-bottom: 0"] {
  padding-bottom: 0 !important;
}

body main > .hero[style*="padding-bottom: 0"] + .section {
  padding-top: clamp(86px, 10vw, 132px);
}

body main > .section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
}

body main > .section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(232, 245, 242, .54), rgba(245, 251, 250, .82));
}

body main > .section[style*="border-top"] {
  border-color: rgba(16, 47, 53, .08) !important;
}

body main .section-head {
  max-width: 760px !important;
  margin-bottom: clamp(30px, 4vw, 48px) !important;
}

body main .section-head h2,
body main > .section .hero-center h1 {
  color: var(--internal-ink);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1.04;
}

body main .section-head p {
  max-width: 700px;
  color: var(--internal-muted) !important;
  font-size: clamp(16px, 1.7vw, 18px) !important;
  line-height: 1.65;
}

body main .grid,
body main .grid-2,
body main .grid-3,
body main .grid-4,
body main .flujo-grid,
body main .included-grid {
  gap: clamp(14px, 2vw, 22px);
}

body main .card {
  border: 1px solid rgba(16, 47, 53, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--internal-shadow);
  backdrop-filter: blur(12px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body main article.card:hover,
body main .related-card:hover,
body main .route:hover,
body main .module:hover,
body main .term-item:hover {
  border-color: rgba(14, 118, 110, .28);
  box-shadow: var(--internal-shadow-hover);
  transform: translateY(-4px);
}

body main .card h2,
body main .card h3 {
  color: var(--internal-ink);
}

body main .card h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.025em;
}

body main .card h3 {
  font-size: 19px;
  line-height: 1.25;
}

body main .card p,
body main .card li {
  color: var(--internal-muted);
  line-height: 1.65;
}

body main .card p:last-child {
  margin-bottom: 0;
}

body main .grid-3 > .card:first-child:nth-last-child(3),
body main .grid-3 > .card:first-child:nth-last-child(3) ~ .card {
  position: relative;
  overflow: hidden;
}

body main .grid-3 > .card:first-child:nth-last-child(3)::before,
body main .grid-3 > .card:first-child:nth-last-child(3) ~ .card::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--internal-teal), #76cabb);
}

body main .step-card {
  counter-increment: premium-step;
}

body main .related-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

body main .related-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

body main #faq .card {
  box-shadow: 0 8px 28px rgba(16, 47, 53, .055);
}

body main #faq .card h3 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}

body main #faq .card h3::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--internal-mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230e766e' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.82 1c0 2-3 2-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

body main > .section:last-of-type {
  padding-top: clamp(60px, 7vw, 88px);
  padding-bottom: clamp(76px, 9vw, 120px);
  background: #f8fcfb;
}

body main > .section:last-of-type > .wrap > .card:only-child {
  max-width: 1040px !important;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  padding: clamp(38px, 6vw, 70px) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(103, 206, 187, .22), transparent 18rem),
    linear-gradient(135deg, #0c554f, #0e766e 58%, #13877d) !important;
  box-shadow: 0 30px 70px rgba(10, 91, 84, .22);
}

body main > .section:last-of-type > .wrap > .card:only-child h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(31px, 4.4vw, 50px) !important;
}

body main > .section:last-of-type > .wrap > .card:only-child p {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 17px !important;
}

body main > .section:last-of-type > .wrap > .card:only-child .btn-primary {
  border-color: #fff;
  background: #fff;
  color: var(--internal-teal-dark);
}

body main > .section:last-of-type > .wrap > .card:only-child .btn-demo,
body main > .section:last-of-type > .wrap > .card:only-child .btn:not(.btn-primary) {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* Pricing */
body main .summary-card {
  border: 1px solid rgba(14, 118, 110, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 70px rgba(16, 47, 53, .13);
}

body main .price {
  color: var(--internal-teal);
}

body main .module,
body main .term-item {
  border-color: rgba(16, 47, 53, .1);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(16, 47, 53, .055);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Contact and support */
body main .support-grid {
  gap: clamp(22px, 4vw, 44px);
}

body main .routes {
  gap: 14px;
}

body main .route {
  border-color: rgba(16, 47, 53, .1);
  border-radius: 16px;
  background: var(--internal-mint-soft);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body main form {
  display: grid;
  gap: 16px;
}

body main label {
  color: #39565a;
  font-size: 13px;
  font-weight: 760;
}

body main input,
body main select,
body main textarea {
  border-color: #cbdedb;
  border-radius: 11px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
}

body main input:focus,
body main select:focus,
body main textarea:focus {
  border-color: var(--internal-teal);
  box-shadow: 0 0 0 4px rgba(14, 118, 110, .12);
}

/* Legal pages */
body main .content {
  padding: clamp(56px, 7vw, 90px) 0;
}

body main .layout {
  gap: clamp(30px, 5vw, 68px);
}

body main .toc {
  top: calc(var(--site-header-height, 68px) + 24px);
  border-color: rgba(16, 47, 53, .1);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 44px rgba(16, 47, 53, .08);
  backdrop-filter: blur(12px);
}

body main .toc a {
  border-radius: 10px;
}

body main .toc a:hover {
  background: var(--internal-mint);
  color: var(--internal-teal);
}

body main .policy {
  gap: 20px;
}

body main .content > .card,
body main .policy > .card {
  box-shadow: 0 10px 34px rgba(16, 47, 53, .06);
}

body main .meta-row {
  gap: 8px;
}

body main .chip,
body main .meta {
  border-color: rgba(14, 118, 110, .14);
  background: rgba(255, 255, 255, .78);
  color: #557074;
}

/* Blog index and long-form articles */
body main .cards.three {
  gap: clamp(16px, 2.2vw, 24px);
}

body main .cards.three .card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
}

body main .cards.three .card .blog-card-image {
  display: block;
  overflow: hidden;
  margin: calc(clamp(22px, 2.8vw, 30px) * -1) calc(clamp(22px, 2.8vw, 30px) * -1) 22px;
  border-radius: 20px 20px 0 0;
  background: #e9f4f2;
  aspect-ratio: 16 / 10;
}

body main .cards.three .card .blog-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

body main .cards.three .card:hover .blog-card-image img {
  transform: scale(1.03);
}

body main .cards.three .card .text-link {
  margin-top: auto;
  color: var(--internal-teal);
  font-weight: 780;
}

body main .blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 48px);
  color: var(--internal-muted);
  font-weight: 720;
}

body main .blog-pagination a {
  border: 1px solid rgba(14, 118, 110, .18);
  border-radius: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, .76);
  color: var(--internal-teal);
  text-decoration: none;
}

body main .blog-pagination span {
  padding: 10px 0;
}

body main .article {
  padding: clamp(70px, 8vw, 112px) 0 clamp(86px, 10vw, 140px);
  background:
    radial-gradient(circle at 78% 3%, rgba(81, 180, 163, .14), transparent 24rem),
    #f8fcfb;
}

body main .article .narrow {
  max-width: 820px;
}

body main .article h1 {
  max-width: 800px;
  margin-bottom: 22px;
  color: var(--internal-ink);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.02;
}

body main .article .lead {
  margin-bottom: 14px;
  color: #4d676b;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.6;
}

body main .article .muted {
  margin-bottom: clamp(24px, 4vw, 40px);
  color: #718589;
  font-size: 13px;
  font-weight: 700;
}

body main .article .article-hero-image {
  margin: 0 0 clamp(48px, 7vw, 76px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e9f4f2;
}

body main .article .article-hero-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: cover;
}

body main .article h2 {
  margin-top: 2.1em;
  margin-bottom: .65em;
  color: var(--internal-ink);
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

body main .article h3 {
  margin-top: 1.8em;
  margin-bottom: .55em;
  color: var(--internal-ink);
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -.02em;
}

body main .article p,
body main .article li {
  color: #435e62;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.82;
}

body main .article a {
  color: var(--internal-teal);
  text-decoration-color: rgba(14, 118, 110, .3);
  text-underline-offset: 3px;
}

body main .article img {
  margin: clamp(34px, 5vw, 56px) auto;
  border: 1px solid rgba(16, 47, 53, .1);
  border-radius: 20px;
  box-shadow: var(--internal-shadow);
}

body main .article blockquote {
  margin: 32px 0;
  border-left: 4px solid var(--internal-teal);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  background: var(--internal-mint);
}

body main .article .article-cta {
  margin-top: clamp(56px, 8vw, 88px);
  border: 1px solid rgba(14, 118, 110, .2);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(14, 118, 110, .12), rgba(81, 180, 163, .08)),
    #ffffff;
  box-shadow: var(--internal-shadow);
}

body main .article .article-cta h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(27px, 3.6vw, 38px);
}

body main .article .article-cta p {
  max-width: 680px;
  margin-bottom: 0;
}

body main .article .article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body main .article .article-cta-actions .btn-primary {
  color: #fff;
  text-decoration: none;
}

body main .article .article-cta-actions .btn-demo {
  color: var(--internal-teal);
  text-decoration: none;
}

body main .article .article-more {
  margin-top: clamp(36px, 6vw, 64px);
}

body main .article .article-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--internal-teal);
  font-weight: 780;
  text-decoration: none;
}

body main .article .article-related {
  margin-top: clamp(36px, 6vw, 58px);
  border-top: 1px solid rgba(16, 47, 53, .12);
  padding-top: clamp(30px, 5vw, 44px);
}

body main .article .article-related h2 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(26px, 3.2vw, 34px);
}

body main .article .article-related-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body main .article .article-related-card {
  overflow: hidden;
  border: 1px solid rgba(16, 47, 53, .1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 47, 53, .08);
}

body main .article .article-related-card .muted,
body main .article .article-related-card h3,
body main .article .article-related-card p {
  margin-right: 18px;
  margin-left: 18px;
}

body main .article .article-related-card .muted {
  margin-top: 16px;
  margin-bottom: 8px;
}

body main .article .article-related-card h3 {
  margin-top: 0;
  font-size: 20px;
}

body main .article .article-related-card p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
}

body main .article .article-related-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9f4f2;
}

body main .article .article-related-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: block;
  object-fit: cover;
  box-shadow: none;
}

@media (max-width: 960px) {
  body main > .hero {
    min-height: auto;
  }

  body main .hero-grid {
    grid-template-columns: 1fr;
  }

  body main .hero-grid > * {
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  body main .cards.three {
    grid-template-columns: 1fr;
  }

  body main > .hero {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  body main .hero h1,
  body main .hero-grid h1,
  body main > .section:first-of-type .hero-center h1 {
    font-size: clamp(39px, 11vw, 54px);
  }

  body main > .section {
    padding: 66px 0;
  }

  body main .section-head {
    margin-bottom: 28px !important;
  }

  body main .card {
    border-radius: 17px;
  }
}

@media (max-width: 640px) {
  body main .hero .actions,
  body main .hero-center .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body main .hero .actions .btn {
    width: 100%;
  }

  body main .hero-actions-note {
    margin-bottom: 32px;
  }

  body main .browser-mockup,
  body main .hero-mockup,
  body main .chat-mockup {
    border-radius: 16px;
  }

  body main > .section:last-of-type > .wrap > .card:only-child {
    align-items: flex-start !important;
    border-radius: 22px;
    text-align: left !important;
  }

  body main > .section:last-of-type > .wrap > .card:only-child .actions {
    width: 100%;
  }
}
