/* ============================================
   TillEase — VoiceBox Design System Integration
   Colors: lime #C6FF3E · navy #1B1F2A · slate #2F3645 · off-white #F8FAFC
   Type: Plus Jakarta Sans (display) + Inter (body)
   Rules: Flat, 0px border-radius, 2px borders, sharp edges
   ============================================ */

:root {
  --navy: #1B1F2A;
  --navy-alt: #1B2234;
  --slate: #2F3645;
  --lime: #C6FF3E;
  --off-white: #F8FAFC;
  --white: #FFFFFF;
  --ink: #000000;
  --muted: #97A0B3;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; border-bottom: 2px solid var(--navy-alt); }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 0; /* VoiceBox sharp edges */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: none;
}
.btn:hover { 
  transform: translate(-4px, -4px); 
  box-shadow: 4px 4px 0 var(--ink); 
}

.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-lime:hover { background: var(--navy); color: var(--lime); border-color: var(--navy); }

.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--off-white); }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--off-white);
  border-bottom: 2px solid var(--ink);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 44px; width: auto; max-width: 100%; display: block; object-fit: contain; }
@media (max-width: 768px) { .brand-logo { height: 32px; } }
@media (max-width: 480px) { .brand-logo { height: 26px; } }
.logo .mark { width: 32px; height: 32px; color: var(--ink); }
.logo .word { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }

nav.primary ul { display: flex; gap: 30px; align-items: center; }
nav.primary a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
nav.primary a:hover, nav.primary a.active { border-bottom: 3px solid var(--lime); padding-bottom: 2px; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  nav.primary { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0; min-height: calc(100vh - 80px); display: flex; align-items: center; position: relative; background: var(--navy); color: var(--off-white); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero::before, .page-hero::before {
  content: ''; position: absolute; top: 50%; left: 75%; width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(198,255,62,0.08) 0%, rgba(27,31,42,0) 60%);
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 14ch; color: var(--off-white); letter-spacing: -0.03em; margin-bottom: 12px; }
.hero .lead { font-size: 16px; max-width: 52ch; margin-bottom: 20px; color: var(--off-white); font-weight: 400; }
.hero .eyebrow {
  display: inline-flex;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink);
  background: var(--lime);
  padding: 6px 12px;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
}

.hero .btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero .btn-lime:hover { background: var(--off-white); border-color: var(--off-white); }
.hero .btn-ghost { border-color: var(--off-white); color: var(--off-white); }
.hero .btn-ghost:hover { background: var(--off-white); color: var(--ink); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

@keyframes pop-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero .lead, .hero-actions, .hero .eyebrow, .hero-note,
.page-hero h1, .page-hero .lead, .page-hero .hero-actions, .page-hero .eyebrow, .breadcrumb {
  animation: pop-up 800ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hero .eyebrow, .page-hero .eyebrow, .breadcrumb { animation-delay: 100ms; }
.hero h1, .page-hero h1 { animation-delay: 200ms; }
.hero .lead, .page-hero .lead { animation-delay: 300ms; }
.hero-actions, .page-hero .hero-actions { animation-delay: 400ms; }
.hero-note { animation-delay: 500ms; }

/* ---------- Stats bar ---------- */
.stats {
  background: var(--slate);
  color: var(--off-white);
  border-bottom: 2px solid var(--ink);
  padding: 48px 0;
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.stat:hover {
  transform: translateY(-4px);
}
.stat b { display: block; font-family: var(--font-display); font-size: 42px; color: var(--lime); font-weight: 800; line-height: 1; }
.stat span { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--off-white); margin-top: 8px; display: block; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Vertical selector cards ---------- */
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }

.vert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .vert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vert-grid { grid-template-columns: 1fr; } }

.vert-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.vert-card:hover { 
  border-color: var(--ink); 
  background: var(--navy); 
  color: var(--off-white); 
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
}
.vert-card:hover h3, .vert-card:hover p { color: var(--off-white); }
.vert-card .icon { width: 48px; height: 48px; color: var(--ink); }
.vert-card:hover .icon { color: var(--lime); }
.vert-card h3 { font-size: 24px; margin-bottom: 4px; }
.vert-card p { font-size: 16px; margin-bottom: 8px; color: var(--slate); }
.vert-card .go { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.vert-card:hover .go { color: var(--lime); }

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 32px;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.feat:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
}
.feat .icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 24px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { font-size: 16px; margin: 0; color: var(--slate); }

/* ---------- Split Section ---------- */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split h2 { font-size: clamp(32px, 4vw, 48px); }
.check-list { margin-top: 24px; }
.check-list li { display: flex; gap: 16px; padding: 12px 0; font-size: 16px; color: var(--ink); align-items: flex-start; border-bottom: 1px solid var(--ink); }
.check-list li:last-child { border-bottom: none; }
.check-list svg { flex: none; width: 24px; height: 24px; color: var(--ink); }

/* ---------- Receipt element (Flat/Editorial) ---------- */
.receipt {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 40px 32px;
  position: relative;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.receipt:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--lime);
}
.receipt h3 { color: var(--ink); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; font-family: var(--font-body); }
.receipt .divider { border-top: 2px dashed var(--ink); margin: 24px 0; }
.receipt li { display: flex; justify-content: space-between; font-size: 16px; padding: 8px 0; color: var(--slate); }
.receipt li b { color: var(--ink); font-weight: 700; }
.receipt .total { font-family: var(--font-display); font-weight: 800; font-size: 20px; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--off-white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 80px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(36px, 4.5vw, 56px); color: var(--off-white); margin: 0 auto 24px; max-width: 24ch; }
.cta-band p { font-size: 20px; color: var(--off-white); max-width: 48ch; margin: 0 auto 40px; }
.cta-band .eyebrow {
  display: inline-flex; font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--lime); padding: 6px 12px; margin-bottom: 24px; border: 2px solid var(--ink);
}
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { border-color: var(--off-white); color: var(--off-white); }
.cta-band .btn-ghost:hover { background: var(--off-white); color: var(--ink); }

/* ---------- FAQ Section ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--ink); }
.faq-item { 
  border-bottom: 2px solid var(--ink); 
  padding: 24px 0; 
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.faq-item:hover {
  padding-left: 16px;
  background: rgba(198, 255, 62, 0.1);
}
.faq-item h3 { font-size: 24px; margin-bottom: 12px; }
.faq-item p { font-size: 16px; margin: 0; color: var(--slate); max-width: 720px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0; padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: all .2s cubic-bezier(0.2, 0, 0, 1);
}
.price-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}
.price-card.featured { border-top: 8px solid var(--lime); }
.price-card .tag { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.price-card .amount { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--ink); margin-bottom: 8px; line-height: 1; }
.price-card .amount span { font-size: 16px; font-weight: 500; color: var(--slate); }
.price-card p.desc { font-size: 16px; margin-bottom: 32px; color: var(--slate); }
.price-card .check-list { margin-bottom: 32px; flex: 1; margin-top: 0; }
.price-card .check-list li { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink); }

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--white); border: 2px solid var(--ink);
  border-radius: 0; padding: 16px; color: var(--ink); font-family: var(--font-body); font-size: 16px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--lime); }
.contact-detail { display: flex; gap: 16px; margin-bottom: 32px; align-items: flex-start; }
.contact-detail svg { width: 24px; height: 24px; color: var(--ink); flex: none; }
.contact-detail h4 { font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.contact-detail p { font-size: 16px; margin: 0; color: var(--slate); }

/* ---------- Footer ---------- */
footer.site { border-top: 2px solid var(--ink); padding: 80px 0 40px; background: var(--off-white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; margin-bottom: 64px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-col h5 { font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 24px; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { font-size: 16px; color: var(--slate); font-weight: 500; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--slate); flex-wrap: wrap; gap: 16px; font-weight: 500; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 32px 0; min-height: calc(100vh - 80px); display: flex; align-items: center; background: var(--navy); color: var(--off-white); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero .eyebrow { 
  display: inline-flex; font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--lime); padding: 6px 12px; margin-bottom: 12px; border: 2px solid var(--ink); 
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 16ch; margin-bottom: 12px; color: var(--off-white); }
.page-hero .lead { font-size: 16px; max-width: 52ch; margin-bottom: 20px; color: var(--off-white); opacity: 0.9; }
.breadcrumb { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--off-white); }
.breadcrumb a:hover { color: var(--lime); }

.page-hero .btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.page-hero .btn-lime:hover { background: var(--off-white); border-color: var(--off-white); }
.page-hero .btn-ghost { border-color: var(--off-white); color: var(--off-white); }
.page-hero .btn-ghost:hover { background: var(--off-white); color: var(--ink); }

/* ---------- SVG Diagram Animations ---------- */
.diagram-wrap {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.diagram-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.flow-line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-dasharray: 8;
  fill: none;
  animation: flow-dash 1s linear infinite;
}
.flow-packet {
  fill: var(--lime);
  stroke: var(--ink);
  stroke-width: 2;
  animation: flow-pulse 1s cubic-bezier(0.2, 0, 0, 1) infinite alternate;
}
.diagram-box {
  fill: var(--navy);
  stroke: var(--ink);
  stroke-width: 2;
}
.diagram-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  fill: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.diagram-icon {
  stroke: var(--lime);
  stroke-width: 2;
  fill: none;
}
@keyframes flow-dash {
  to { stroke-dashoffset: -16; }
}
@keyframes flow-pulse {
  from { transform: scale(0.8); }
  to { transform: scale(1.4); }
}

.modal .contact-grid { margin: 0; gap: 40px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--slate); }
.modal-close:hover { color: var(--ink); }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Neon Scramble Animation ---------- */
.neon-scramble {
  color: #fff;
  text-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #c5ff3d,
    0 0 40px #c5ff3d,
    0 0 80px #c5ff3d;
  display: inline-block;
}
