/* Askura — marketing site
   Direction: conversational warm-minimal
   Palette: refined emerald + warm amber on warm off-white */

:root {
  --ink: #0c1a14;
  --emerald: #0d6b4c;
  --emerald-deep: #0a563d;
  --amber: #e9a23b;
  --paper: #faf9f5;
  --mint: #d7efe2;
  --muted: #5b6b63;
  --surface: #ffffff;
  --line: #e7e6df;
  --line-soft: #eceae2;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(12, 26, 20, .04), 0 18px 40px -28px rgba(12, 26, 20, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

em { font-style: normal; color: var(--emerald); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .72em 1.25em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 10px 24px -14px rgba(13,107,76,.9); }
.btn-primary:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-lg { font-size: 1.06rem; padding: .9em 1.6em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: .55em 1.05em; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 4.6rem); font-weight: 700; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 30ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { margin-top: 26px; font-size: .92rem; color: var(--muted); }

/* ---------- signature: conversation thread ---------- */
.thread-wrap { display: flex; justify-content: center; }
.thread {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  overflow: hidden;
}
.thread-head {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, #fdfdfb);
}
.thread-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  color: #fff; background: #3b2f6b; /* deliberately NOT Askura green — it's the tenant's brand */
}
.thread-org { display: flex; flex-direction: column; line-height: 1.25; }
.thread-org strong { font-size: .95rem; }
.thread-org small { font-size: .72rem; color: var(--muted); }
.thread-live {
  margin-left: auto; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--emerald); background: var(--mint); padding: 4px 9px; border-radius: 999px;
}
.thread-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 348px; }
.bubble {
  max-width: 84%; padding: 11px 15px; font-size: .95rem; line-height: 1.45;
  border-radius: 18px;
}
.bubble.ask { align-self: flex-start; background: var(--mint); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.reply { align-self: flex-end; background: var(--emerald); color: #fff; border-bottom-right-radius: 6px; }
.typing {
  align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px;
  background: var(--mint); border-radius: 18px; border-bottom-left-radius: 6px;
}
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); opacity: .55; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.thread-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--muted); background: #fdfdfb;
}
.thread-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* sequenced reveal — selectors scoped under .thread-body so per-item
   delays win the cascade over the shared base rule */
.thread-body > .bubble,
.thread-body > .typing { opacity: 0; transform: translateY(8px); animation: rise .5s ease forwards; }
.thread-body > .b1 { animation-delay: .25s; }
.thread-body > .r1 { animation-delay: 1.1s; }
.thread-body > .b2 { animation-delay: 3.0s; }
.thread-body > .r2 { animation-delay: 3.8s; }
.thread-body > .b3 { animation-delay: 4.5s; }
/* the typing indicator rises, holds, then hands off to the next ask */
.thread-body > .t1 { animation: rise .5s ease 1.9s forwards, fade-out .35s ease 2.9s forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; margin: 0; } }
@keyframes blink { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-2px); } }

/* ---------- section scaffolding ---------- */
.features, .how { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.eyebrow-center { text-align: center; }
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 18ch; margin: 0 auto 52px;
}

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint); }
.glyph {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--mint); color: var(--emerald); margin-bottom: 16px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-feature { background: var(--ink); border-color: var(--ink); grid-column: span 1; }
.card-feature h3, .card-feature p { color: var(--paper); }
.card-feature p { color: #c4d2cb; }
.card-feature .glyph { background: rgba(231,162,59,.16); color: var(--amber); }
.card-feature em { color: var(--amber); }
.card-feature:hover { border-color: var(--amber); }

/* ---------- how it works ---------- */
.how { background: color-mix(in srgb, var(--mint) 42%, var(--paper)); border-radius: 36px; max-width: 1140px; margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { padding: 8px 6px; }
.step-num {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--emerald);
  display: inline-block; padding-bottom: 14px; border-bottom: 2px solid var(--amber); margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band {
  max-width: var(--maxw); margin: 24px auto 96px; padding: 64px 24px;
  text-align: center; background: var(--ink); border-radius: 32px; color: var(--paper);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--paper); }
.cta-band p { color: #c4d2cb; max-width: 46ch; margin: 16px auto 30px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 64px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-word { font-size: 1.1rem; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.footer-links a:hover { color: var(--emerald); }
.footer-fine { width: 100%; margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; font-weight: 600; color: var(--emerald); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .thread-wrap { order: 2; }
  .lede { max-width: 46ch; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- use cases ---------- */
.usecases { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 24px; }
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.usecase-grid .card { display: flex; flex-direction: column; }
.usecase-link { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--emerald); }
.usecase-link .arrow { transition: transform .18s ease; }
.usecase-link:hover .arrow { transform: translateX(3px); }
.card-feature .usecase-link { color: var(--amber); }

@media (max-width: 760px) { .usecase-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thread-body > .bubble, .thread-body > .typing { opacity: 1; transform: none; animation: none; }
  .typing { display: none; }
  .btn, .card { transition: none; }
}
