/* QuincesAI tool-page design system — matches the main route (editorial,
   light/dark via prefers-color-scheme). Self-contained; no Tailwind needed. */
:root {
  --page: #09070a;
  --surface: rgba(16, 14, 18, 0.76);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #fff7fb;
  --muted: rgba(255, 247, 251, 0.68);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #ff4f83;
  --accent-2: #78dec8;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 14px;
  color-scheme: dark;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #ffffff;
    --surface: #ffffff;
    --surface-2: rgba(20, 30, 24, 0.05);
    --ink: #11130f;
    --muted: rgba(31, 38, 32, 0.66);
    --line: rgba(31, 38, 32, 0.13);
    --line-strong: rgba(31, 38, 32, 0.24);
    --accent: #d94867;
    --accent-2: #14766e;
    --shadow: 0 28px 80px rgba(68, 76, 58, 0.14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -6%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.page-shell { width: min(100%, 1120px); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.01em; line-height: 1.08; }

/* ---- Nav ---- */
.tp-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.tp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.tp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.tp-brand img { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); }
.tp-nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 600; font-size: 0.94rem; }
.tp-nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .tp-nav-links a:not(.button) { display: none; } }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--ink); }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--page); }
.button-primary:hover { border-color: var(--ink); }

/* ---- Hero ---- */
.tp-hero { padding: clamp(48px, 8vw, 92px) 0 clamp(30px, 5vw, 52px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  color: var(--muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.tp-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0 0 18px; max-width: 16ch; }
.tp-hero p.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.6; max-width: 56ch; margin: 0 0 26px; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sections & cards ---- */
.tp-section { padding: clamp(34px, 6vw, 64px) 0; }
.tp-section-head { max-width: 60ch; margin-bottom: 30px; }
.tp-section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 10px; }
.tp-section-head p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; margin: 0; }

.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .tp-grid { grid-template-columns: 1fr; } }

.tp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.tp-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tp-card figcaption, .tp-card .tp-card-body { padding: 14px 16px; color: var(--muted); font-size: 0.95rem; }

/* Steps */
.tp-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .tp-steps { grid-template-columns: 1fr; } }
.tp-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
}
.tp-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-weight: 800; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.tp-step h3 { font-family: "Outfit", sans-serif; font-size: 1.1rem; margin: 0 0 6px; }
.tp-step p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 0.98rem; }

/* Cross-sell strip */
.tp-suite { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tp-suite a {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem; background: var(--surface-2);
  transition: color 140ms ease, border-color 140ms ease;
}
.tp-suite a:hover { color: var(--ink); border-color: var(--ink); }

/* CTA band */
.tp-cta {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: clamp(30px, 5vw, 52px);
}
.tp-cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 10px; }
.tp-cta p { color: var(--muted); margin: 0 auto 22px; max-width: 48ch; }

/* Footer */
.tp-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0; color: var(--muted); }
.tp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.tp-footer a:hover { color: var(--ink); }
.tp-footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.92rem; }
