/* ===========================================================================
   Asky — marketing & help site design system
   Light theme. Brand gradient coral → magenta. 8px spacing grid.
   =========================================================================== */

:root {
  /* Brand */
  --brand-coral: #ff6b3d;
  --brand-magenta: #f31e79;
  --brand-gradient: linear-gradient(135deg, #ff6b3d 0%, #f31e79 100%);
  --brand-gradient-soft: linear-gradient(135deg, #fff1ea 0%, #ffe9f2 100%);

  /* Accent (single strong color = magenta) */
  --accent: #f31e79;
  --accent-hover: #d81368;
  --accent-soft: #ffe9f2;

  /* Text */
  --text-primary: #1f2a37;
  --text-secondary: #5b6573;
  --text-tertiary: #8a929e;
  --text-on-brand: #ffffff;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-warm: #fff7f4;
  --surface: #ffffff;

  /* Borders */
  --border: #ececf1;
  --border-strong: #dfe1e7;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, 0.04), 0 1px 3px rgba(31, 42, 55, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 42, 55, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 42, 55, 0.12);
  --shadow-brand: 0 12px 32px rgba(243, 30, 121, 0.28);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; }

p { color: var(--text-secondary); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--maxw-narrow); }

.brand-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; margin-top: 16px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease-out, box-shadow 0.2s ease-out,
    background 0.2s ease-out, border-color 0.2s ease-out;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(243, 30, 121, 0.36); }
.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--text-tertiary); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--bg-warm); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease-out;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text-primary); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.nav__toggle span + span { margin-top: 5px; }

/* ----- Hero ----- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(243, 30, 121, 0.16), transparent 62%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -240px; left: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle at center, rgba(255, 107, 61, 0.14), transparent 62%);
  z-index: -1;
}
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero p.lede { font-size: 20px; max-width: 600px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-tertiary); }
.hero__visual {
  margin: 56px auto 0;
  max-width: 920px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

/* ----- Pill badge ----- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ----- Feature grid ----- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient-soft);
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ----- Steps ----- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ----- Stats band ----- */
.band {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 40px;
  text-align: center;
}
.band h2 { color: #fff; }
.band .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.band .stat__num { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.band .stat__label { font-size: 15px; opacity: 0.9; margin-top: 4px; }

/* ----- CTA band ----- */
.cta-band {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { font-size: 18px; max-width: 520px; margin: 0 auto 28px; }

/* ----- Pricing ----- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 32px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; }
.price-card .price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 4px; }
.price-card .price span { font-size: 16px; font-weight: 500; color: var(--text-tertiary); }
.price-card ul { list-style: none; margin: 20px 0 28px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ----- FAQ / accordion ----- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 24px;
  transition: border-color 0.2s ease-out;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; transition: transform 0.2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 15px; }

/* ----- Doc / help layout ----- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 56px 0 96px; }
.doc__nav { position: sticky; top: 96px; }
.doc__nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 12px; }
.doc__nav ul { list-style: none; display: grid; gap: 4px; margin-bottom: 28px; }
.doc__nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.doc__nav a:hover { background: var(--bg-warm); color: var(--text-primary); }
.doc__nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.doc__body { max-width: 720px; }
.doc__body h1 { font-size: 36px; margin-bottom: 12px; }
.doc__body > p.lede { font-size: 18px; margin-bottom: 32px; }
.doc__body h2 { font-size: 24px; margin: 40px 0 14px; }
.doc__body h3 { font-size: 18px; margin: 28px 0 10px; }
.doc__body p { margin-bottom: 16px; }
.doc__body ul, .doc__body ol { margin: 0 0 16px 20px; }
.doc__body li { margin-bottom: 8px; color: var(--text-secondary); }
.doc__body code {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent-hover);
}
.doc__body pre {
  background: #1f2a37;
  color: #eef0f2;
  border-radius: var(--r-md);
  padding: 20px;
  overflow: auto;
  margin-bottom: 20px;
}
.doc__body pre code { background: none; border: none; color: inherit; padding: 0; font-size: 13px; }
.callout {
  background: var(--brand-gradient-soft);
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-primary);
}
.callout strong { color: var(--accent-hover); }

/* ----- Help index cards ----- */
.kb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kb-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.kb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.kb-card h3 { font-size: 18px; margin-bottom: 8px; }
.kb-card p { font-size: 15px; }
.kb-card .arrow { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 14px; display: inline-block; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-field { display: grid; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----- Footer ----- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--text-secondary); transition: color 0.15s ease-out; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn--secondary { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .grid--3, .grid--2, .grid--4, .steps, .price-grid, .kb-grid, .contact-grid, .band .stats { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .doc__nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
