/* Aislewise site. Same layout as the SellStack sibling sites (ClipShot, Stockpact); own teal accent.
   Tokens + header are also inlined in each page's <head> as critical CSS; keep the two in sync. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format("woff2");
}

:root {
  --ink: #0d2326;
  --mint: #f2fbf9;
  --teal: #0f766e;   /* accent on light only */
  --aqua: #5eead4;   /* accent on dark only */

  --bg: #f6faf9;
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #45595c;
  --accent: var(--teal);
  --on-accent: #ffffff;
  --border: #d5e3e1;
  --bubble-shopper: #e3f1ef;

  --radius: 14px;
  --max: 1080px;
  --prose: 72ch;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1c1e;
    --surface: #12292c;
    --text: #eef6f5;
    --muted: #a9bfbd;
    --accent: var(--aqua);
    --on-accent: var(--ink);
    --border: #24403f;
    --bubble-shopper: #1b3a3c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
strong { font-weight: 700; }
code { font-size: .9em; background: var(--surface); border: 1px solid var(--border); padding: .05em .35em; border-radius: 5px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); color: var(--text); padding: .5rem 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { display: block; width: 30px; height: 30px; }
.site-nav { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; font-size: .95rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: .35rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 719px) { .site-nav { order: 3; width: 100%; } .site-header .btn { padding: .5rem .95rem; } }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; padding: .75rem 1.3rem; border-radius: 10px; border: 2px solid transparent; line-height: 1.3; }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* Sections */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }
.alt { background: var(--surface); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.note { font-size: .92rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; align-items: center; }
.text-link { font-weight: 700; }

.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }

/* Hero illustration: a static chat panel built in HTML, not a screenshot. */
.chat-demo { margin: 0; max-width: 420px; width: 100%; justify-self: center; }
.chat-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 32px rgb(13 35 38 / .12); }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .95rem; }
.chat-head img { width: 24px; height: 24px; }
.chat-head .lang { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .05rem .55rem; }
.chat-body { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; font-size: .93rem; }
.bubble { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; margin: 0; }
.bubble.shopper { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--bubble-shopper); border-bottom-left-radius: 4px; }
.product { align-self: flex-start; display: grid; grid-template-columns: 56px 1fr; gap: .7rem; align-items: center; width: 85%; border: 1px solid var(--border); border-radius: 12px; padding: .6rem; background: var(--bg); }
.product .thumb { width: 56px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, var(--bubble-shopper), var(--border)); }
.product p { margin: 0; line-height: 1.35; }
.product .name { font-weight: 700; }
.product .meta { font-size: .82rem; color: var(--muted); }
.product .stock { color: var(--accent); font-weight: 700; }
.chat-demo figcaption { font-size: .88rem; color: var(--muted); margin-top: .9rem; text-align: center; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: .6rem; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 700; margin-bottom: .7rem; }
.after-steps { margin-top: 1.5rem; font-weight: 700; }

.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; margin-top: 1.5rem; }
.callout p { margin: 0; }
.alt .callout { background: var(--bg); }

.points { padding-left: 1.2em; max-width: 70ch; }
.points li + li { margin-top: .5rem; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.badge { font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: .1rem .55rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.plan.popular { border: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 700; color: var(--text); margin: .1rem 0 .2rem; }
.price span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan .quota { color: var(--text); font-weight: 700; margin: 0 0 .8rem; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--muted); }
.plan li { padding: .35rem 0 .35rem 1.5rem; border-top: 1px solid var(--border); position: relative; }
.plan li::before { content: ""; position: absolute; left: .2rem; top: .85rem; width: .55rem; height: .3rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pricing-notes { margin-top: 1.5rem; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; }
.pricing-notes li + li { margin-top: .3rem; }

/* FAQ */
details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.2rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: .6rem 0 0; }
.faq { max-width: 820px; }

/* Prose pages (support, legal) */
.prose { max-width: var(--prose); padding: 3rem 0 4rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li + li { margin-top: .3rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border: 1px solid var(--border); }
.prose thead th { background: var(--surface); }
.meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.email { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }

/* Stack tables into cards on phones; labels come from data-label. */
@media (max-width: 599px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; left: -9999px; }
  .prose tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .75rem; overflow: hidden; }
  .prose td { border: 0; border-top: 1px solid var(--border); }
  .prose tr > :first-child { border-top: 0; background: var(--surface); font-weight: 700; }
  .prose td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; max-width: 60ch; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
