/* ── Fiscalia · Landing Page ─────────────────────────────────────────── */

:root {
  --ink:         #101426;
  --ink-soft:    #4B5168;
  --paper:       #FAFBFD;
  --white:       #FFFFFF;
  --blue:        #2742F5;
  --blue-deep:   #1B30C9;
  --blue-soft:   #EDEFFE;
  --green:       #16C868;
  --green-deep:  #0E9B4F;
  --green-soft:  #E6F9EF;
  --line:        rgba(16,20,38,.09);
  --radius:      24px;
  --display:     'Bricolage Grotesque', sans-serif;
  --body:        'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; overflow-x: hidden; }
::selection { background: var(--green); color: var(--ink); }
a { text-decoration: none; color: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── Logo ────────────────────────────────────────────────────────────── */
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo .i { position: relative; color: inherit; font-style: normal; }
.logo .i::before {
  content: "";
  position: absolute;
  top: -.18em; left: 50%;
  transform: translateX(-50%);
  width: .34em; height: .3em;
  background: var(--green);
  border-radius: 45% 45% 45% 6%;
}
.logo .i span  { visibility: hidden; }
.logo .i::after { content: "ı"; position: absolute; left: 0; top: 0; }

/* ── Navigation ──────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(250,251,253,.8);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: none;
  letter-spacing: -.01em;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(39,66,245,.5);
}
.btn-green {
  background: var(--green);
  color: var(--ink);
  padding: 14px 26px;
  font-weight: 700;
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(22,200,104,.55);
}
.btn-ghost {
  color: var(--ink);
  padding: 14px 24px;
  background: transparent;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.link-quiet {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.link-quiet:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 70px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 7px 16px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 28px;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem,5.6vw,4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
h1 .wa      { color: var(--green-deep); }
h1 .resolve { color: var(--blue); }
.hero-sub {
  margin-top: 26px;
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 46ch;
  font-weight: 500;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-note {
  margin-top: 20px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { flex: none; }

/* Phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(350px,100%);
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 44px 90px -32px rgba(16,20,38,.42);
  transform: rotate(2deg);
}
.screen { background: #EFEAE3; border-radius: 30px; overflow: hidden; }
.wa-header {
  background: #0B5C4D;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--ink);
}
.wa-header b   { font-size: .92rem; font-weight: 700; font-family: var(--display); letter-spacing: -.01em; }
.wa-header span { display: block; font-size: .72rem; opacity: .85; font-weight: 500; }
.chat {
  padding: 16px 14px 20px;
  display: flex; flex-direction: column; gap: 10px; min-height: 380px;
}
.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: .86rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  animation: pop .5s ease forwards;
  box-shadow: 0 1px 1px rgba(0,0,0,.07);
}
.bubble.in  { background: #fff; align-self: flex-start; border-top-left-radius: 5px; }
.bubble.out { background: #D7F8DF; align-self: flex-end; border-top-right-radius: 5px; }
.bubble .time {
  display: block; font-size: .64rem;
  color: rgba(0,0,0,.38); text-align: right; margin-top: 3px; font-weight: 600;
}
.bubble.b1 { animation-delay: .3s; }
.bubble.b2 { animation-delay: 1.1s; }
.bubble.b3 { animation-delay: 2s; }
.bubble.b4 { animation-delay: 2.9s; }
@keyframes pop { to { opacity: 1; transform: none; } }

.chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 17px;
  font-size: .8rem;
  box-shadow: 0 20px 44px -18px rgba(16,20,38,.28);
  opacity: 0;
  animation: pop .6s ease forwards;
}
.chip b   { font-family: var(--display); font-size: .88rem; letter-spacing: -.01em; }
.chip .tag {
  font-size: .64rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 3px;
}
.chip-1 { top: 5%; left: -7%; animation-delay: 1.6s; }
.chip-2 { bottom: 9%; right: -8%; animation-delay: 3.4s; }
.chip .ok { color: var(--green-deep); }

/* ── Ticker ──────────────────────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--white); }
.ticker-track {
  display: flex; gap: 60px; padding: 18px 0;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.ticker span {
  font-size: .85rem; font-weight: 700; color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); letter-spacing: -.01em;
}
.ticker i {
  width: 7px; height: 7px;
  border-radius: 45% 45% 45% 8%;
  background: var(--green);
  display: inline-block;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -42px;
  position: relative;
  z-index: 2;
  box-shadow: 0 32px 64px -42px rgba(16,20,38,.35);
}
.stat { background: var(--white); padding: 32px 28px; }
.stat b {
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  display: block;
  line-height: 1.1;
}
.stat b em { color: var(--blue); font-style: normal; }
.stat span { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }

/* ── Features ────────────────────────────────────────────────────────── */
section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem,3.8vw,2.9rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.06rem; font-weight: 500; }

.feat-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -30px rgba(16,20,38,.3); }
.card h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 20px 0 8px; letter-spacing: -.02em; }
.card p  { font-size: .94rem; color: var(--ink-soft); font-weight: 500; }
.card .icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark p   { color: rgba(255,255,255,.64); }
.card.dark .icon { background: rgba(22,200,104,.16); color: var(--green); }
.c-span3 { grid-column: span 3; }
.c-span2 { grid-column: span 2; }

/* ── How it works ────────────────────────────────────────────────────── */
.how {
  background: var(--ink);
  color: #fff;
  border-radius: 40px;
  padding: 84px 0;
  margin: 0 28px;
}
.how .wrap h2  { color: #fff; }
.how .section-head p { color: rgba(255,255,255,.6); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: rgba(255,255,255,.03);
  transition: border-color .25s, background .25s;
}
.step:hover { border-color: var(--green); background: rgba(22,200,104,.05); }
.step-mark {
  width: 34px; height: 34px; border-radius: 12px;
  background: rgba(22,200,104,.14);
  color: var(--green);
  font-family: var(--display); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 18px 0 10px; letter-spacing: -.02em; }
.step p  { font-size: .93rem; color: rgba(255,255,255,.62); font-weight: 500; }

/* ── CTA section ─────────────────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { max-width: 19ch; margin: 0 auto; }
.cta p  { margin: 18px auto 0; max-width: 48ch; color: var(--ink-soft); font-weight: 500; }
.cta .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  background: var(--white);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.foot .nav-links { gap: 24px; }
.foot-url { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { order: -1; }
  .phone { transform: rotate(0); }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .stats { grid-template-columns: repeat(2,1fr); margin-top: 24px; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .c-span3, .c-span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .c-span3, .c-span2 { grid-column: span 1; }
  .how { margin: 0 12px; padding: 60px 0; }
  section { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .bubble, .chip { opacity: 1; transform: none; }
}
