/* ============================================================
   ai. by Northstack — design system
   Bright, warm, personal. The opposite of enterprise-dark,
   on purpose. One accent color per business type.
   ============================================================ */

:root {
  --paper: #FAF5EC;
  --card: #FFFDF8;
  --ink: #1C1B17;
  --muted: #6E6A5E;
  --line: #E7E0D2;
  --dark: #16150F;
  --accent: #D9480F;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* Accent per business type — everything downstream derives from --accent */
body[data-business="restaurant"]        { --accent: #D9480F; }
body[data-business="law-firm"]          { --accent: #3B5BDB; }
body[data-business="dental-clinic"]     { --accent: #0B7285; }
body[data-business="online-shop"]       { --accent: #C2255C; }
body[data-business="logistics"]         { --accent: #E67700; }
body[data-business="real-estate"]       { --accent: #2B8A3E; }
body[data-business="accounting"]        { --accent: #6741D9; }

body {
  --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--card));
  --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--card));
  --accent-deep: color-mix(in srgb, var(--accent) 80%, var(--ink));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

section { padding: 0 24px; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
  transition: color 0.45s ease;
}
.kicker-light { color: color-mix(in srgb, var(--accent) 55%, #fff); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Morph transition: content fades down/up when the business changes */
.morph { transition: opacity 0.26s ease, transform 0.26s ease; }
.morph.is-morphing { opacity: 0; transform: translateY(10px); }

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 9px; }
.wordmark-ai {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--accent);
  transition: color 0.45s ease;
}
.wordmark-by { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); transition: background 0.25s ease; }

/* ============================ HERO ============================ */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 34px;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
.hero-title {
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  font-weight: 700;
}
.hero-static { display: block; }
.hero-word-wrap { position: relative; display: inline-block; color: var(--accent); transition: color 0.45s ease; }
.hero-word { font-style: italic; font-weight: 600; }
.hero-caret {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  transition: background-color 0.45s ease;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.18em;
  color: var(--accent);
  opacity: 0.55;
  transition: color 0.45s ease;
}
.hero-sub {
  max-width: 620px;
  margin: 34px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.chip {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chips-hint { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* ============================ DEMO ============================ */
.demo-section { padding-top: 40px; padding-bottom: 96px; }
.demo-window {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(28, 27, 23, 0.05),
    0 18px 50px -18px color-mix(in srgb, var(--accent) 30%, rgba(28, 27, 23, 0.25));
  overflow: hidden;
  transition: box-shadow 0.6s ease, opacity 0.26s ease, transform 0.26s ease;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, var(--card));
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #F26D5F; }
.dot-y { background: #F5BE4F; }
.dot-g { background: #58C367; }
.demo-app {
  margin-left: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.demo-replay:hover { color: var(--accent); border-color: var(--accent); }

.demo-body {
  min-height: 360px;
  max-height: 430px;
  overflow-y: auto;
  padding: 22px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg { max-width: 82%; animation: msg-in 0.32s ease both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.msg-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 5px;
}
.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.msg-user { align-self: flex-end; text-align: right; }
.msg-user .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
  text-align: left;
  transition: background-color 0.45s ease;
}
.msg-ai { align-self: flex-start; }
.msg-ai .msg-label { color: var(--accent-deep); transition: color 0.45s ease; }
.msg-ai .msg-bubble {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-bottom-left-radius: 5px;
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.msg-time { font-size: 0.72rem; color: var(--muted); margin-top: 5px; display: block; }

.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--muted));
  animation: bounce 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }

.demo-note {
  padding: 14px 20px 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-deep);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease, color 0.45s ease;
}
.demo-note.is-visible { opacity: 1; }

/* ============================ FEATURES ============================ */
.features-section { padding-bottom: 96px; }
.feature-grid {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--accent) 35%, rgba(28,27,23,.3));
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  margin-bottom: 16px;
  transition: background-color 0.45s ease, color 0.45s ease;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--accent-deep);
  margin-bottom: 12px;
  transition: color 0.45s ease;
}
.feature-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================ OUTCOMES ============================ */
.outcomes-section {
  max-width: 1020px;
  margin: 0 auto 96px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 24px;
  padding: 52px 40px 40px;
  transition: background-color 0.45s ease, border-color 0.45s ease, opacity 0.26s ease, transform 0.26s ease;
}
.outcomes-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}
.outcome-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.05;
  transition: color 0.45s ease;
}
.outcome-label { margin-top: 10px; font-size: 0.92rem; color: var(--muted); max-width: 260px; margin-inline: auto; }
.outcomes-foot {
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--muted) 80%, var(--accent));
}

/* ============================ HOW ============================ */
.how-section { max-width: 1020px; margin: 0 auto; padding-bottom: 110px; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  transition: color 0.45s ease;
}
.step h3 { font-size: 1.45rem; margin: 10px 0 12px; }
.step-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 6px;
}
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============================ CREDIBILITY ============================ */
.cred-section {
  background: var(--dark);
  color: #EFEAE0;
  padding: 96px 24px;
}
.cred-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cred-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 24px; }
.cred-inner p { color: #B9B3A4; margin-bottom: 18px; font-size: 1.03rem; }
.cred-inner p a { color: #EFEAE0; text-decoration-color: color-mix(in srgb, var(--accent) 70%, #fff); }
.cred-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--accent) 45%, #fff);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.45s ease;
}
.cred-link:hover { color: #fff; }

/* ============================ FAQ ============================ */
.faq-section { max-width: 720px; margin: 0 auto; padding-top: 100px; padding-bottom: 90px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 4px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease, color 0.45s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 4px 24px; color: var(--muted); font-size: 0.97rem; }

/* ============================ CTA ============================ */
.cta-section { text-align: center; padding-top: 30px; padding-bottom: 120px; }
.cta-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-title span { color: var(--accent); font-style: italic; transition: color 0.45s ease; }
.cta-sub { max-width: 560px; margin: 22px auto 40px; color: var(--muted); font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 17px 38px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: background-color 0.45s ease, transform 0.15s ease, box-shadow 0.45s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary span { font-style: italic; }
.cta-alt { font-size: 0.9rem; color: var(--muted); }
.cta-alt a { color: var(--ink); }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding: 26px 28px; }
.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .steps, .outcomes-inner { grid-template-columns: 1fr; }
  .outcomes-inner { gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 16px; font-size: 0.85rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 60px; }
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 24px 12px;
    margin-left: -24px;
    margin-right: -24px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .msg { max-width: 92%; }
  .demo-body { min-height: 300px; }
  .outcomes-section { padding: 40px 24px 32px; margin-inline: 16px; }
}

/* ============================ MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
