/* ===========================================
   Till Yi — marketing site
   =========================================== */

:root {
  --ink:        #0F172A;
  --soft:       #334155;
  --muted:      #64748B;
  --faint:      #94A3B8;
  --bg:         #FFFFFF;
  --surface:    #F8FAFC;
  --surface-2:  #F1F5F9;
  --border:     #E2E8F0;
  --accent:     #E32525;
  --accent-soft:#FEE7E7;
  --accent-strong:#B41F1F;
  --ok:         #16A34A;
  --warn:       #F59E0B;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:     0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 24px 48px rgba(15, 23, 42, 0.12);
  --radius:     12px;
  --radius-lg:  18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

/* ---- CONTAINER ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: white;
  border-radius: 8px;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--soft); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); }
.nav-burger { display: none; background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; color: var(--soft); cursor: pointer; }

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
  .nav-links a:last-child { border-bottom: none; margin-top: 10px; }
  .nav-burger { display: inline-flex; align-items: center; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: white !important;
  box-shadow: 0 4px 14px rgba(227, 37, 37, 0.32);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(227, 37, 37, 0.36); color: white !important; }
.btn-ghost { background: white; color: var(--ink) !important; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink) !important; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 20% 10%, rgba(227, 37, 37, 0.06), transparent 70%),
    radial-gradient(ellipse 600px 400px at 90% 30%, rgba(227, 37, 37, 0.04), transparent 70%),
    linear-gradient(to bottom, var(--bg) 0%, var(--surface) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-text h1 {
  font-size: 56px; line-height: 1.05;
  margin: 12px 0 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.eyebrow-light {
  background: rgba(255,255,255,0.12);
  color: white;
}
.hero-sub {
  font-size: 18px; color: var(--soft);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 24px; color: var(--muted); font-size: 13.5px; }

.hero-visual { position: relative; height: 460px; }
.hero-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-card-1 {
  top: 0; left: 0; width: 320px;
  border-top: 4px solid var(--accent);
}
.hero-card-2 {
  top: 130px; right: 0; width: 320px;
}
.hero-card-3 {
  bottom: 0; left: 60px; width: 280px;
}
.hc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.hc-value { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.hc-value.hc-yellow { color: var(--warn); }
.hc-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hc-bars { display: flex; align-items: flex-end; gap: 6px; height: 50px; margin-top: 14px; }
.hc-bars div { flex: 1; background: linear-gradient(to top, var(--accent), #FF6B6B); border-radius: 3px 3px 0 0; }
.hc-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--soft); border-bottom: 1px solid var(--surface-2); }
.hc-line:last-of-type { border-bottom: none; }
.hc-line.hc-total { font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 2px solid var(--surface-2); }
.hc-num { font-variant-numeric: tabular-nums; }
.hc-paid { margin-top: 8px; padding: 6px 10px; background: #DCFCE7; color: var(--ok); border-radius: 6px; font-size: 11.5px; font-weight: 600; text-align: center; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-text h1 { font-size: 42px; }
  .hero-visual { height: 420px; max-width: 380px; margin: 0 auto; }
  .hero-card-1 { left: 0; width: 260px; }
  .hero-card-2 { right: 0; width: 260px; top: 110px; }
  .hero-card-3 { left: 30px; width: 230px; }
}

/* ---- TRUST STRIP ---- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 24px;
  font-size: 13px; color: var(--muted);
}
.strip-inner strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 760px) { .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; } }

/* ---- SECTION SHELLS ---- */
.section { padding: 90px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head h2 {
  font-size: 38px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
  color: var(--ink);
}
.section-sub { color: var(--soft); font-size: 17px; margin: 0; }

/* ---- FEATURES ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.feature p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- WHY ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.why-num {
  font-size: 36px; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.why-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.why-card p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- STEPS ---- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  position: absolute; top: -16px; left: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent); color: white;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(227, 37, 37, 0.3);
}
.step h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; color: var(--ink); }
.step p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  background: white;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--accent-soft); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq summary::after {
  content: '+'; font-weight: 400; font-size: 22px; color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq p {
  margin: 12px 0 0;
  color: var(--soft); font-size: 14.5px; line-height: 1.6;
}

/* ---- DEMO CTA ---- */
.section-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #B41F1F 100%);
  color: white;
}
.demo-inner { text-align: center; max-width: 660px; margin: 0 auto; }
.demo-inner h2 {
  font-size: 38px; font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}
.demo-inner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  margin: 0 0 28px;
}
.section-cta .btn-primary {
  background: white;
  color: var(--accent) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.section-cta .btn-primary:hover { background: var(--surface-2); transform: translateY(-1px); color: var(--accent) !important; }
.demo-alt { margin-top: 20px !important; font-size: 14px !important; color: rgba(255, 255, 255, 0.85) !important; }
.demo-alt a { color: white; text-decoration: underline; text-underline-offset: 3px; }
.demo-alt a:hover { color: white; }

/* ---- FOOTER ---- */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 40px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { color: white; display: block; font-size: 16px; }
.footer-brand small { color: #64748B; font-size: 12.5px; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-meta a { color: #CBD5E1; font-size: 14px; }
.footer-meta a:hover { color: white; }
.footer-fine { color: #64748B; font-size: 12.5px; align-self: end; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-fine { align-self: start; }
}
