/* ===========================
   TAAC — Global Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f5f2ec;
  --accent: #ff6a1a;        /* vibrant orange — brand accent */
  --accent-dark: #e05510;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: rgba(10,10,10,0.10);
  --card-bg: #ffffff;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ——— Typography ——— */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }

/* ——— Layout ——— */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ——— Navbar ——— */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,242,236,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo img { height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(10,10,10,0.06); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-label {
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  transition: background var(--transition);
}
.nav-links .dropdown-label:hover { background: rgba(10,10,10,0.06); }
.nav-links .dropdown-label svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-links .dropdown:hover .dropdown-label svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  padding-top: 8px; /* invisible bridge so cursor can travel to menu */
  background: transparent;
}
.dropdown-menu-inner {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.dropdown-menu a:hover { background: var(--cream); }
.btn-nav {
  background: var(--black); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 50px !important; font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.btn-nav:hover { background: #2a2a2a !important; transform: translateY(-1px); }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 50px; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,106,26,0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

/* ——— Hero ——— */
.hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
  margin-bottom: 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-bg); color: var(--text-muted); font-size: 0.85rem;
  padding: 6px 14px 6px 6px; border-radius: 50px; margin-bottom: 28px;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-badge span.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ——— Feature Grid ——— */
.feature-grid  { display: grid; gap: 24px; }
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feature-card .icon {
  width: 48px; height: 48px; background: var(--cream);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon img { width: 24px; height: 24px; object-fit: contain; }
.feature-card .icon.icon-round { border-radius: 50%; background: var(--accent); }
.feature-card .icon.icon-round img { filter: brightness(0) invert(1); }
.feature-card .icon-branded { margin-bottom: 20px; }
.feature-card .icon-branded img { width: 64px; height: 64px; object-fit: contain; }
.feature-card h4 { margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 0.9rem; }

/* ——— Split (two-col) section ——— */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text h2 { margin-bottom: 20px; }
.split-text p  { margin-bottom: 24px; }
.split-img img { width: 100%; border-radius: var(--radius); }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; line-height: 1.5; color: var(--text-muted);
}
.checklist li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--black); border-radius: 24px; padding: 72px 64px;
  text-align: center; margin: 0 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,0.6); margin-bottom: 36px; font-size: 1.05rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ——— FAQ ——— */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; cursor: pointer; gap: 16px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-question svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 24px; font-size: 0.95rem; }

/* ——— Why taac cards ——— */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border);
}
.why-card .why-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.why-card h4 { margin-bottom: 10px; }

/* ——— Steps ——— */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: var(--black);
}
.step-body h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* ——— Stats row ——— */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 48px; }
.stat { }
.stat .stat-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--text); }
.stat .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ——— Hero image ——— */
.hero-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
}
.hero-img-wrap img { width: 100%; display: block; }

/* ——— Page hero (inner pages) ——— */
.page-hero {
  padding-top: calc(var(--nav-h) + 100px); padding-bottom: 80px;
  text-align: center;
}
.page-hero p { font-size: 1.15rem; max-width: 600px; margin: 16px auto 36px; }

/* ——— Tabbed switcher ——— */
.tab-bar { display: flex; gap: 8px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 50px; padding: 6px; width: fit-content; margin: 0 auto 48px; }
.tab-btn {
  padding: 10px 24px; border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; background: none;
  color: var(--text-muted); transition: all var(--transition);
}
.tab-btn.active { background: var(--black); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ——— Form ——— */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: var(--card-bg); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,0.06); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success {
  display: none; padding: 16px 20px; background: var(--accent); border-radius: var(--radius-sm);
  font-weight: 500; color: var(--black);
}
.form-error {
  display: none; padding: 16px 20px; background: #fee2e2; border-radius: var(--radius-sm);
  font-weight: 500; color: #b91c1c;
}

/* ——— Contact info ——— */
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item a { font-weight: 500; color: var(--text); transition: color var(--transition); }
.contact-item a:hover { color: var(--accent-dark); }

/* ——— Footer ——— */
footer {
  background: var(--black); color: var(--white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 260px; }
.footer-col h5 { color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ——— Gradient decoration ——— */
.grad-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.28; pointer-events: none;
}

/* ——— Animate on scroll ——— */
.anim { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim.visible { opacity: 1; transform: none; }

/* ——— Punto cassa split & pay promo ——— */
.pos-splitpay-promo {
  background: var(--black);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) {
  .pos-splitpay-promo {
    grid-template-columns: 1fr;
    padding: 36px 32px;
  }
}
@media (max-width: 640px) {
  .pos-splitpay-promo {
    padding: 32px 24px;
  }
}

/* ——— Punto cassa bento grid ——— */
.pos-bento {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
}
.pos-bento-center {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.pos-bento-center h3 { font-size: 1.3rem; margin-bottom: 12px; }
.pos-bento-center img { width: 100%; margin-top: auto; padding-top: 20px; object-fit: contain; border-radius: var(--radius-sm); }

/* ——— Page hero 2-column variant ——— */
.page-hero-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  text-align: left;
}
.page-hero-2col .page-hero-text p { max-width: none; margin-left: 0; margin-right: 0; }
.page-hero-2col .page-hero-img .hero-img-wrap { max-width: none; margin: 0; }

/* ——— Mobile ——— */
@media (max-width: 950px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: var(--cream); padding: 20px 16px;
    border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-links.open a { padding: 12px 16px; font-size: 1rem; }
  .nav-hamburger { display: block; }
}
@media (max-width: 900px) {
  .split, .tab-panel.active { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .feature-grid-3 { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  /* Image above text in homepage hero */
  .hero .split > *:last-child { order: -1; }
  /* 2-col page hero collapses */
  .page-hero-2col { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .page-hero-2col .page-hero-text p { margin-left: auto; margin-right: auto; }
  .page-hero-2col > .page-hero-img { order: -1; }
  .page-hero-2col .page-hero-img .hero-img-wrap { max-width: 85vw; margin: 0 auto; }
  /* Bento grid collapses to 2-col */
  .pos-bento { grid-template-columns: 1fr 1fr; }
  .pos-bento-center { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .feature-grid-2, .feature-grid-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
  .stats-row { gap: 32px; }
  h1 { font-size: 1.9rem; }
  /* Bento grid fully stacked */
  .pos-bento { grid-template-columns: 1fr; }
  .pos-bento-center { grid-column: span 1; }
}
