/* ==========================================================================
   Skry Chatbots — design system
   --------------------------------------------------------------------------
   Visual direction takes its palette and stylistic cues from podium.com
   (dark charcoal surfaces, soft periwinkle accent, off-white alternating
   sections, semibold headings, 8px radii). All markup, copy and assets here
   are original.

   EVERYTHING RESTYLABLE LIVES IN :root BELOW. To re-skin the site, change the
   tokens — not the component rules.
   ========================================================================== */

:root {
  /* --- Surfaces --- */
  --ink:            #18181c;   /* primary dark surface (hero, footer) */
  --ink-deep:       #111114;   /* deepest dark */
  --ink-raised:     #24242a;   /* cards on dark */
  --paper:          #ffffff;
  --paper-alt:      #f7fafc;   /* off-white alternating section */
  --paper-sunken:   #eef2f7;

  /* --- Brand accent --- */
  --accent:         #7d9ef0;   /* periwinkle */
  --accent-strong:  #6189ed;
  --accent-deep:    #3f68d4;   /* for text on light — meets contrast */
  --accent-wash:    #eef3fe;   /* tinted background */

  /* --- Text --- */
  --text:           #18181c;
  --text-muted:     #4a5568;
  --text-faint:     #6b7686;
  --text-invert:    #ffffff;
  --text-invert-muted: #b6b6bd;

  /* --- Lines & effects --- */
  --line:           #e4e7ec;
  --line-dark:      #33333b;
  --shadow-sm:      0 1px 2px rgba(16, 20, 32, .06);
  --shadow-md:      0 4px 16px rgba(16, 20, 32, .08);
  --shadow-lg:      0 18px 48px rgba(16, 20, 32, .14);

  /* --- Shape --- */
  --radius-sm:      6px;
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-pill:    999px;

  /* --- Type --- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --fs-hero:   clamp(2.25rem, 1.2rem + 4.2vw, 3.5rem);   /* ~36 → 56px */
  --fs-h2:     clamp(1.75rem, 1.15rem + 2.2vw, 2.5rem);
  --fs-h3:     clamp(1.15rem, 1rem + .5vw, 1.375rem);
  --fs-lead:   clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body:   1rem;
  --fs-sm:     .9375rem;
  --fs-xs:     .8125rem;

  /* --- Layout --- */
  --wrap:      1140px;
  --wrap-tight: 760px;
  --gap:       24px;
  --section-y: clamp(56px, 7vw, 104px);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: var(--fs-hero); letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .875em;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Visible focus everywhere — we sell an accessible widget, so the site must be one. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--text-invert);
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-tight { width: min(100% - 40px, var(--wrap-tight)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-alt); }
.section--sunken { background: var(--paper-sunken); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-invert); }
.section--dark p { color: var(--text-invert-muted); }
.section--dark a { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-lead); color: var(--text-muted); }
.section--dark .section-head p { color: var(--text-invert-muted); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.lead { font-size: var(--fs-lead); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  font: inherit; font-weight: 600; font-size: var(--fs-sm);
  line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #10131f; }
.btn--primary:hover { background: var(--accent-strong); color: #0b0e18; box-shadow: var(--shadow-md); }

.btn--dark { background: var(--ink); color: var(--text-invert); }
.btn--dark:hover { background: #2b2b33; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text-muted); background: var(--paper-alt); }

.section--dark .btn--ghost { color: var(--text-invert); border-color: var(--line-dark); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.06); border-color: #4a4a55; }

.btn--lg { padding: 16px 30px; font-size: var(--fs-body); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 14px; }
.section--dark .btn-note { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: 1.125rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--paper-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .site-header { position: relative; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(64px, 9vw, 120px);
  position: relative; overflow: hidden;
}
/* Soft periwinkle glow, echoing Podium's dark hero treatment. */
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%;
  height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125,158,240,.22), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--text-invert); max-width: 16ch; }
.hero .lead { color: var(--text-invert-muted); max-width: 58ch; font-size: var(--fs-lead); }
.hero-inner { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 22px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(125,158,240,.12);
  border: 1px solid rgba(125,158,240,.28);
  border-radius: var(--radius-pill);
}
.section--dark .eyebrow { color: var(--accent); }
.eyebrow--light {
  color: var(--accent-deep); background: var(--accent-wash); border-color: #d3e0fb;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); }
.card--flat { box-shadow: none; }
.card--dark { background: var(--ink-raised); border-color: var(--line-dark); color: var(--text-invert); }
.card--dark h3 { color: var(--text-invert); }
.card--dark p { color: var(--text-invert-muted); }

.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 16px;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--accent-deep); background: var(--accent-wash);
  border-radius: var(--radius-pill);
}
.section--dark .card-num, .card--dark .card-num { color: var(--accent); background: rgba(125,158,240,.14); }

/* Icon-ish bullet used on feature lists */
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233f68d4'%3E%3Cpath d='M8.2 13.6 5 10.4l1.1-1.1 2.1 2.1 5.7-5.7L15 6.8z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section--dark .tick-list li { color: var(--text-invert-muted); }
.section--dark .tick-list li::before {
  background-color: rgba(125,158,240,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237d9ef0'%3E%3Cpath d='M8.2 13.6 5 10.4l1.1-1.1 2.1 2.1 5.7-5.7L15 6.8z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Chat example (the homepage centrepiece)
   -------------------------------------------------------------------------- */
.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 600;
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--good { background: #2f9e6d; }
.dot--limit { background: var(--accent-strong); }
.chat-body { padding: 20px 18px; display: grid; gap: 14px; flex: 1; }

.bubble { max-width: 88%; padding: 11px 15px; border-radius: var(--radius-lg); font-size: var(--fs-sm); line-height: 1.55; }
.bubble--user { justify-self: end; background: var(--ink); color: var(--text-invert); border-bottom-right-radius: 5px; }
.bubble--bot  { justify-self: start; background: var(--paper-sunken); color: var(--text); border-bottom-left-radius: 5px; }
.bubble-source {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--text-faint);
}
.bubble-source::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7686'%3E%3Cpath d='M4 3h8l4 4v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm7 1.5V8h3.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-caption { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper-alt); font-size: var(--fs-sm); color: var(--text-muted); }
.chat-caption strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Code snippet
   -------------------------------------------------------------------------- */
.snippet {
  position: relative;
  margin: 0; padding: 20px 22px;
  background: var(--ink-deep); color: #e6e6ea;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: .875rem; line-height: 1.7;
}
.snippet .tag  { color: #7d9ef0; }
.snippet .attr { color: #9dd6a4; }
.snippet .val  { color: #e6c07b; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: var(--fs-sm);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; background: var(--paper-alt); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--text-muted); }
table.data td strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.plans { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.plan {
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan--feature { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 30px;
  padding: 5px 13px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em;
  color: #10131f; background: var(--accent); border-radius: var(--radius-pill);
}
.plan-name { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.plan-price { font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan-for { margin: 14px 0 22px; color: var(--text-muted); font-size: var(--fs-sm); }
.plan .tick-list { margin-bottom: 26px; }
.plan .btn { margin-top: auto; width: 100%; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a5568'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%234a5568' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-deep); }
.faq .faq-answer { padding: 0 4px 22px; color: var(--text-muted); max-width: 68ch; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: var(--fs-body); color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125,158,240,.25);
}
.field textarea { min-height: 120px; resize: vertical; }
.req { color: #c0392b; }
.form-note { font-size: var(--fs-sm); color: var(--text-muted); }
/* Spam honeypot — must stay invisible to humans, reachable by bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Founder / about
   -------------------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }
.founder-photo { width: 200px; height: 200px; border-radius: var(--radius-xl); overflow: hidden; background: var(--paper-sunken); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Anything still holding placeholder content is visibly marked, so it cannot
   be shipped by accident. Remove the class when real content lands. */
.placeholder {
  border: 2px dashed var(--accent-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent, transparent 9px, rgba(125,158,240,.07) 9px, rgba(125,158,240,.07) 18px);
  padding: 16px 18px;
  position: relative;
}
.placeholder::before {
  content: "PLACEHOLDER";
  position: absolute; top: -10px; left: 14px;
  padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: #fff; background: var(--accent-strong); border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */
.note {
  padding: 20px 22px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note--warn { background: #fff8e6; border-left-color: #e0a800; }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-invert-muted); padding-block: 60px 34px; font-size: var(--fs-sm); }
.site-footer .brand { color: var(--text-invert); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-invert); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-invert-muted); }
.site-footer a:hover { color: var(--text-invert); }
.footer-tagline { margin-top: 16px; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 1.1em; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 40px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
