/* ===========================================================================
   TilesPOS — by Pxier | Design system
   Self-contained, no external CDNs. Teal + terracotta, tile-inspired.
   =========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0e1a1f;
  --ink-soft:   #33474f;
  --muted:      #5b6f77;
  --line:       #e3ebec;
  --bg:         #ffffff;
  --bg-soft:    #f5f9f9;
  --bg-tint:    #eef6f5;

  --teal:       #0f766e;
  --teal-600:   #0d6a63;
  --teal-700:   #0b544e;
  --teal-bright:#14b8a6;
  --terra:      #e2603b;
  --terra-600:  #d24f2b;
  --sand:       #f3ede4;
  --gold:       #f2b34b;

  --grad: linear-gradient(135deg, #0f766e 0%, #0b544e 55%, #123b3a 100%);
  --grad-terra: linear-gradient(135deg, #e2603b 0%, #d24f2b 100%);

  --shadow-sm: 0 1px 2px rgba(14,26,31,.06), 0 1px 3px rgba(14,26,31,.05);
  --shadow-md: 0 6px 18px rgba(14,26,31,.08), 0 2px 6px rgba(14,26,31,.05);
  --shadow-lg: 0 24px 60px -20px rgba(11,84,78,.35), 0 10px 24px rgba(14,26,31,.08);
  --radius:   14px;
  --radius-lg:22px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section  { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.bg-soft  { background: var(--bg-soft); }
.bg-tint  { background: var(--bg-tint); }
.center   { text-align: center; }
.eyebrow  {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); background: var(--bg-tint);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.terra-text { color: var(--terra); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-terra); color: #fff; box-shadow: 0 10px 22px -8px rgba(210,79,43,.6); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(210,79,43,.7); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { color:#fff; background: var(--teal-700); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--light:hover { background: rgba(255,255,255,.24); color:#fff; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }
.lang-switch { display: inline-flex; align-items: center; font-weight: 700; font-size: .88rem; letter-spacing: .02em; color: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.lang-switch:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 88px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle,#c9efe9,transparent 66%); top: -160px; right: -120px; }
.hero::after  { width: 480px; height: 480px; background: radial-gradient(circle,#ffd9cb,transparent 66%); bottom: -220px; left: -140px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 26px; }
.hero-mock {
  position: relative; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.hero-mock .bar { display: flex; gap: 7px; padding: 12px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6dfe0; display: inline-block; }
.hero-mock .bar i:nth-child(1){ background:#ff5f57;} .hero-mock .bar i:nth-child(2){ background:#febc2e;} .hero-mock .bar i:nth-child(3){ background:#28c840;}
.hero-mock img { width: 100%; display: block; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--teal); }

/* ---------- Trusted / stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe4e1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--teal); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .98rem; }
.card--terra .ico { background: #fdeee8; color: var(--terra); }

/* ---------- Split / alternating feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); background:#fff; }
.split ul.checks { margin-top: 18px; }
ul.checks { list-style: none; display: grid; gap: 12px; }
ul.checks li { position: relative; padding-left: 32px; color: var(--ink-soft); font-weight: 500; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color:#fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.pop { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-card .tier { font-weight: 800; font-size: 1.25rem; }
.price-card .tag { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--grad-terra); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:6px 15px; border-radius:999px; }
.price-card .amt { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 0; color: var(--ink); }
.price-card .amt sup { font-size: 1.3rem; font-weight: 700; top: -1.1rem; margin-right: 2px; }
.price-card .per { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.price-card .who { color: var(--ink-soft); font-size: .95rem; margin-bottom: 22px; min-height: 42px; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 26px; }
.price-card ul li { position: relative; padding-left: 28px; font-size: .96rem; color: var(--ink-soft); }
.price-card ul li::before {
  content:""; position:absolute; left:0; top:3px; width:18px; height:18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-card .btn { margin-top: auto; }

/* comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background:#fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: .96rem; }
table.compare thead th { background: var(--bg-soft); font-weight: 800; color: var(--ink); font-size: 1rem; }
table.compare tbody th { text-align: left; font-weight: 600; color: var(--ink-soft); }
table.compare td .yes { color: var(--teal); font-weight: 800; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
table.compare .hi { background: var(--bg-tint); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq {
  border: 1px solid var(--line); border-radius: var(--radius); background:#fff; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--teal); transition: transform .2s ease; line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad); border-radius: 28px; padding: 62px 48px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit;
  font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.field textarea { min-height: 128px; resize: vertical; }
.contact-info { background: var(--grad); color:#fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.contact-info h3 { color:#fff; }
.contact-info a { color:#fff; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 3px; color: #a9e8e0; }
.contact-item b { display:block; font-size:.98rem; } .contact-item span { color: rgba(255,255,255,.82); font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1618; color: #b7c6c8; padding: 66px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7f9498; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: #b7c6c8; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-about p { color: #93a6a9; max-width: 320px; margin: 16px 0; }
.parent-note { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 8px 16px; color:#d7e2e3; font-weight:600; font-size:.9rem; }
.parent-note a { color: var(--teal-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; flex-wrap: wrap; color: #7f9498; }

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

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .grid-3, .steps, .pricing { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 30px; }
  .price-card.pop { transform: none; }

  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 0; transform: translateY(-140%); transition: transform .28s ease; z-index: 55;
  }
  .nav-links.open { transform: none; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 15px 24px; border-bottom: 1px solid var(--bg-soft); }
  .nav-toggle { display: block; min-height: 44px; min-width: 44px; }
  .nav-cta .btn { display: none; }        /* hero carries the CTA on mobile; hamburger holds the nav */
  .nav-cta { gap: 8px; }
  .nav-cta .lang-switch { min-height: 42px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 24px; }
  .footer-bottom { flex-direction: column; text-align:center; }
  .lang-switch { padding: 7px 9px; font-size: .82rem; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .container { padding: 0 16px; }
  .btn { white-space: normal; }          /* long CTA labels wrap instead of forcing width */
  .btn--lg { padding: 15px 22px; font-size: 1rem; }
  .price-card, .card, .faq summary { overflow-wrap: anywhere; }
}

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.blog-card:hover { color: inherit; }
.blog-card .tagrow { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.blog-card .cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--bg-tint); padding: 5px 11px; border-radius: 999px; }
.blog-card h3 { margin-bottom: .45em; transition: color .15s ease; }
.blog-card:hover h3 { color: var(--teal); }
.blog-card p { color: var(--ink-soft); margin: 0 0 16px; font-size: .98rem; }
.blog-card .readmore { margin-top: auto; font-weight: 700; color: var(--teal); font-size: .95rem; }
.blog-meta { color: var(--muted); font-size: .9rem; font-weight: 600; }

.article { max-width: 748px; margin: 0 auto; }
.article-head { max-width: 820px; margin: 0 auto 8px; text-align: center; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.article-body { font-size: 1.09rem; color: var(--ink-soft); }
.article-body > p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.article-body h2 { margin: 1.7em 0 .5em; font-size: 1.5rem; color: var(--ink); }
.article-body h3 { margin: 1.4em 0 .4em; font-size: 1.18rem; color: var(--ink); }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.article-body li { margin-bottom: .55em; }
.article-body strong { color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--teal); background: var(--bg-soft); padding: 14px 20px; margin: 1.5em 0; border-radius: 0 10px 10px 0; color: var(--ink); font-style: italic; }
.article-cta { margin-top: 36px; padding: 30px; background: var(--bg-tint); border-radius: var(--radius-lg); text-align: center; }
.article-cta h3 { margin-bottom: .4em; }
.article-cta p { color: var(--ink-soft); margin: 0 auto 18px; max-width: 460px; }
