/* ============================================================
   SuccessKit marketing site
   ============================================================ */

:root {
  --brand: #4A1B6E;
  --brand-dark: #34134D; /* --brand darkened 30% */
  --brand-tint: rgba(74, 27, 110, 0.07);
  --brand-tint-strong: rgba(74, 27, 110, 0.14);

  --ink: #071108;
  --ink-secondary: rgba(7, 17, 8, 0.66);
  --ink-muted: rgba(7, 17, 8, 0.46);

  --gray-a: #BFB1C1;
  --gray-b: #B5BEC6;
  --band: rgba(181, 190, 198, 0.18);
  --band-strong: rgba(181, 190, 198, 0.34);

  --buy: #FFC857;
  --buy-dark: #E8AE30;

  --surface: #ffffff;
  --border: rgba(7, 17, 8, 0.12); /* decorative edges only — exempt from 1.4.11 */
  --border-strong: #918E96; /* neutral-500; 3.22:1 on white, the faintest step that
                               meets WCAG 1.4.11 for control boundaries. Do not lighten. */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px rgba(7, 17, 8, 0.04), 0 8px 24px rgba(7, 17, 8, 0.05);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

section { position: relative; }

.band {
  background: var(--band);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }

code { color: #A31621; }
.terminal code { color: inherit; }

.ref-link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.ref-link:hover {
  text-decoration-color: var(--brand);
}

.section-head {
  max-width: 66.6%;
  margin: 0 0 44px;
}

.section-head h2 {
  font-size: clamp(49px, 6.4vw, 64px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-secondary);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--buy);
  color: var(--ink);
}
.btn-primary:hover { background: var(--buy-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn-block { width: 100%; }

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.logo-icon {
  display: block;
  height: 26px;
  width: auto;
}

.nav .logo {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.nav-links a:not(.btn):hover { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 88px;
  background: var(--brand-dark);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.5;
  color: #fff;
}

.hero h1 mark {
  background: var(--gray-a);
  color: var(--brand);
  padding: 0.05em 0.28em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.hero .ref-link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.hero .ref-link:hover {
  text-decoration-color: #fff;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* Secondary hero button becomes an outline in white so it reads against
   the brand-purple background; primary keeps its normal gold treatment,
   which already has enough contrast on purple. */
.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Terminal mockup ---------- */

.terminal {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 24px 26px;
  box-shadow: 0 20px 40px rgba(7, 17, 8, 0.22);
}

.terminal-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.terminal pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal .prompt { color: #C9A6E6; }
.terminal .check { color: var(--gray-b); }
.terminal .arrow { color: #fff; font-weight: 600; }
.terminal .dim { color: rgba(255,255,255,0.4); }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-tile svg {
  width: 20px; height: 20px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ---------- Why (2-up) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 15px;
  color: var(--ink-secondary);
}

/* ---------- Built on, not rebuilt ---------- */

.builton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.builton-grid h2 {
  font-size: clamp(45px, 5.6vw, 56px);
  margin-bottom: 16px;
}

.builton-grid > div:first-child p {
  font-size: 16px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  font-size: 15px;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.check-list svg {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 18px; height: 18px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stack ---------- */

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tag:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.stack-note {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Requirements ---------- */

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.req-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-b);
}

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.price {
  font-size: 56px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.price-suffix {
  font-size: 16px;
  color: var(--ink-muted);
  font-weight: 500;
}

.price-model {
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 46ch;
  margin: 4px auto 28px;
}

.included-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.included-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink);
}

.included-list svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px; height: 18px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-fine {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-question .plus::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-question .plus::after { width: 2px; height: 14px; top: 3px; left: 9px; }

.faq-item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 62ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 {
  font-size: clamp(45px, 6vw, 60px);
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 16px;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-secondary);
}
.footer-links a:hover { color: var(--brand); }

.footer-copy {
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}
.footer-copy a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* ---------- Sections spacing ---------- */

.section-pad { padding: 88px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .builton-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: 60ch; }
}

@media (max-width: 700px) {
  .section-head { max-width: 100%; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav.open .nav-links a.btn { align-self: stretch; text-align: center; }

  .section-pad { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .features { grid-template-columns: 1fr; }
  .req-list { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 22px; }
  .price { font-size: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
