/* ── Wrencher · style.css ─────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --ink:    #0f172a;
  --slate:  #334155;
  --steel:  #64748b;
  --rule:   #e2e8f0;
  --paper:  #f8fafc;
  --white:  #ffffff;
  --blue:   #1d4ed8;
  --blue-h: #1e40af;
  --green:  #166534;
  --amber:  #854d0e;
  --red:    #dc2626;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 48px rgba(15,23,42,.13);

  --max: 1160px;
  --nav-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.paper { background: var(--paper); }
.white { background: var(--white); }
.text-center { text-align: center; }
.text-steel { color: var(--steel); }

/* ── Typography ──────────────────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
h4 { font-size: 15px; font-weight: 600; color: var(--steel); letter-spacing: 0.06em; text-transform: uppercase; }
p { max-width: 68ch; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 8px; border: none;
  cursor: pointer; transition: background .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--slate); color: var(--white);
}
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--slate);
  border: 1.5px solid var(--rule);
}
.btn-outline:hover { border-color: var(--slate); background: var(--paper); }
.btn-lg { font-size: 17px; padding: 16px 32px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--ink);
  text-decoration: none;
}
.nav__brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--steel);
  transition: color .15s;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: .2s;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 0;
  background: var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__tag {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--blue);
  background: #eff6ff;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero__headline { margin-bottom: 20px; }
.hero__sub {
  font-size: 19px; color: var(--steel);
  line-height: 1.6; margin-bottom: 36px;
  max-width: 52ch;
}
.hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__note {
  margin-top: 14px;
  font-size: 13px; color: var(--steel);
}
.hero__screenshot {
  position: relative;
  padding-bottom: 40px;
}
.hero__screenshot img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
  width: 100%;
}
.hero__stripe {
  position: absolute; bottom: 0; right: -24px;
  width: 60%; height: 200px;
  background: var(--paper);
  border-radius: 12px 0 0 0;
  z-index: -1;
}

/* ── Stats bar ───────────────────────────────────────────────────────── */
.stats {
  background: var(--slate);
  padding: 28px 0;
  margin-top: 0;
}
.stats__inner {
  display: flex; justify-content: center;
  gap: 64px; flex-wrap: wrap;
}
.stats__item { text-align: center; }
.stats__num {
  font-size: 28px; font-weight: 800;
  color: var(--white); line-height: 1;
}
.stats__label {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ── Section base ────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section__label {
  font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section__heading { margin-bottom: 16px; }
.section__sub {
  font-size: 18px; color: var(--steel);
  line-height: 1.65; margin-bottom: 48px;
  max-width: 60ch;
}

/* ── Pain section ────────────────────────────────────────────────────── */
.pain { background: var(--paper); }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pain__card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 28px 28px 24px;
  border-left: 3px solid var(--rule);
  transition: border-left-color .2s;
}
.pain__card:hover { border-left-color: var(--slate); }
.pain__icon {
  font-size: 22px; margin-bottom: 12px;
}
.pain__text {
  font-size: 16px; line-height: 1.65;
  color: var(--steel); max-width: none;
}

/* ── Features overview ───────────────────────────────────────────────── */
.features-overview { background: var(--white); }
.features-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feat-card {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feat-card__icon {
  width: 44px; height: 44px;
  background: var(--paper);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feat-card__title { margin-bottom: 8px; font-size: 17px; }
.feat-card__body { font-size: 15px; color: var(--steel); max-width: none; }

/* ── Screenshots section ─────────────────────────────────────────────── */
.screenshots { background: var(--paper); }
.screenshots__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.screenshots__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.shot__cap {
  background: var(--white);
  padding: 14px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--steel);
  border-top: 1px solid var(--rule);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing { background: var(--white); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}
.price-card--featured {
  border-color: var(--slate);
  border-width: 2px;
}
.price-card__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--slate);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-card__name {
  font-size: 14px; font-weight: 600;
  color: var(--steel); text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.price-card__amount {
  margin-bottom: 6px;
}
.price-card__num {
  font-size: 48px; font-weight: 800;
  line-height: 1; color: var(--ink);
}
.price-card__currency {
  font-size: 22px; font-weight: 700;
  vertical-align: top; margin-top: 8px;
  display: inline-block;
}
.price-card__period {
  font-size: 15px; color: var(--steel);
  margin-bottom: 4px;
}
.price-card__was {
  font-size: 14px; color: var(--steel);
  margin-bottom: 20px;
}
.price-card__was s { color: var(--steel); }
.price-card__was strong { color: var(--green); }
.price-card__divider {
  height: 1px; background: var(--rule);
  margin: 20px 0;
}
.price-card__features {
  list-style: none;
  margin-bottom: 28px;
}
.price-card__features li {
  font-size: 15px; color: var(--ink);
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.price-card__features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card__features li.na {
  color: var(--steel);
}
.price-card__features li.na::before {
  content: "—";
  color: var(--rule);
}
.price-card .btn { width: 100%; justify-content: center; }
.pricing__note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px; color: var(--steel);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { background: var(--paper); }
.faq__list { max-width: 720px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__q {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  font-family: inherit; font-size: 17px; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left; gap: 16px;
}
.faq__q svg {
  flex-shrink: 0; transition: transform .2s;
  color: var(--steel);
}
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 0 22px;
  font-size: 16px; color: var(--steel);
  line-height: 1.7;
}
.faq__item.open .faq__a { display: block; }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.cta-section {
  background: var(--slate);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.7); margin: 0 auto 36px; font-size: 18px; }
.cta-section .btn-primary {
  background: var(--white); color: var(--slate);
}
.cta-section .btn-primary:hover { background: var(--paper); }
.cta-section__note {
  margin-top: 14px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800;
  color: var(--white); margin-bottom: 14px;
  text-decoration: none;
}
.footer__brand img { width: 30px; height: 30px; border-radius: 6px; }
.footer__tagline {
  font-size: 14px; color: rgba(255,255,255,.45);
  max-width: 28ch; line-height: 1.6;
}
.footer__col h5 {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 14px; color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer__col a:hover { color: var(--white); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy {
  font-size: 13px; color: rgba(255,255,255,.35);
}

/* ── Page header (inner pages) ───────────────────────────────────────── */
.page-header {
  background: var(--paper);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.page-header p { font-size: 18px; color: var(--steel); }

/* ── Features page ───────────────────────────────────────────────────── */
.feature-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.feature-block:last-child { border-bottom: none; }
.feature-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-block__inner--rev { direction: rtl; }
.feature-block__inner--rev > * { direction: ltr; }
.feature-block__body { }
.feature-block__tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--blue); background: #eff6ff;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 14px;
}
.feature-block__title { margin-bottom: 14px; }
.feature-block__desc { font-size: 17px; color: var(--steel); margin-bottom: 20px; }
.feature-block__list {
  list-style: none;
}
.feature-block__list li {
  font-size: 15px; color: var(--ink);
  padding: 5px 0; display: flex; align-items: flex-start; gap: 10px;
}
.feature-block__list li::before {
  content: "✓"; color: var(--green);
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.feature-block__img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
}

/* ── Docs page ───────────────────────────────────────────────────────── */
.docs__download {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.docs__download h3 { margin-bottom: 6px; }
.docs__download p { font-size: 15px; color: var(--steel); max-width: none; }
.docs__toc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.docs__toc h4 { margin-bottom: 14px; font-size: 13px; }
.docs__toc ol {
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
}
.docs__toc li { font-size: 14px; }
.docs__toc a { color: var(--blue); }
.docs__section { margin-bottom: 48px; }
.docs__section h2 {
  font-size: 24px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-bottom: 16px;
}
.docs__section h3 { font-size: 18px; margin: 20px 0 10px; }
.docs__section p { font-size: 16px; color: var(--steel); margin-bottom: 12px; }
.docs__section ul, .docs__section ol {
  padding-left: 20px; margin-bottom: 12px;
}
.docs__section li { font-size: 15px; color: var(--steel); margin-bottom: 4px; }

/* ── Contact page ────────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}
.contact__info h3 { margin-bottom: 12px; }
.contact__info p { font-size: 16px; color: var(--steel); margin-bottom: 24px; }
.contact__item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.contact__item-icon {
  width: 36px; height: 36px;
  background: var(--paper);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact__item-text { font-size: 15px; }
.contact__item-label {
  font-size: 12px; color: var(--steel);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact__form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--slate);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  background: #dcfce7;
  border: 1px solid #166534;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
  margin-top: 16px;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { margin-bottom: 8px; }
.legal__date { font-size: 14px; color: var(--steel); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p { font-size: 16px; color: var(--steel); margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin-bottom: 14px; }
.legal li { font-size: 16px; color: var(--steel); margin-bottom: 6px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__screenshot { padding-bottom: 0; }
  .hero__stripe { display: none; }
  .pain__grid { grid-template-columns: 1fr; }
  .features-overview__grid { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .feature-block__inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-block__inner--rev { direction: ltr; }
  .contact__grid { grid-template-columns: 1fr; }
  .screenshots__grid { grid-template-columns: 1fr; }
  .screenshots__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .features-overview__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stats__inner { gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .docs__toc ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
