/* ═══════════════════════════════════════════════════════════════════
   SetForth — shared marketing-site styles (built on colors_and_type.css)
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap, .wrap-wide { padding: 0 20px; } }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn .arw { display: inline-block; transition: transform .2s ease; }
.btn:hover .arw { animation: forthTrail .8s ease-in-out infinite; }
.btn-primary { background: var(--foreground); color: var(--background); }
.btn-primary:hover { background: rgba(26,22,20,0.88); }
.btn-accent { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); border-color: var(--warm-300); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }

/* ── HEADER ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; height: 26px; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--warm-700);
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--foreground); background: var(--muted); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* hamburger toggle + mobile drawer (injected by site.js) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-left: 4px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--foreground); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover { background: var(--muted); border-color: var(--warm-300); }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.nav-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.nav-drawer.open { visibility: visible; }
.nav-drawer-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--warm-900) 32%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s ease; }
.nav-drawer.open .nav-drawer-scrim { opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 86vw);
  background: var(--background); border-left: 1px solid var(--border); box-shadow: var(--shadow-xl);
  padding: 18px 20px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.nav-drawer.open .nav-drawer-panel { transform: none; }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer-head img { height: 24px; width: auto; display: block; }
.nav-drawer-close { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.nav-drawer-close:hover { background: var(--muted); }
.nav-drawer-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-drawer-links { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.nav-drawer-link { font-size: 16px; font-weight: 500; color: var(--warm-800); text-decoration: none; padding: 14px 12px; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.nav-drawer-link:hover { background: var(--muted); color: var(--foreground); text-decoration: none; }
.nav-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.nav-drawer-actions .btn { width: 100%; height: 48px; font-size: 15px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .nav-actions .nav-signin { display: none; } }

/* ── SECTION SCAFFOLD ────────────────────────────────────────── */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--peach-text); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--peach); display: inline-block; }
.section-head { max-width: 680px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 16px 0 0;
}
.section-head p { font-size: 19px; line-height: 1.6; color: var(--warm-600); margin: 18px 0 0; }

/* ── ATMOSPHERE: glows + arrow pattern ───────────────────────── */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(8px);
}
.glow-peach { background: radial-gradient(circle, var(--peach-subtle), transparent 70%); animation: floatGlow 14s ease-in-out infinite; }
.glow-lav { background: radial-gradient(circle, var(--lavender-subtle), transparent 70%); animation: floatGlowR 17s ease-in-out infinite; }
.glow-blush { background: radial-gradient(circle, var(--blush-subtle), transparent 70%); animation: floatGlow 19s ease-in-out infinite; }
@keyframes floatGlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px,-22px); } }
@keyframes floatGlowR { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px,20px); } }

.arrow-pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><path d='M16 32h28M30 18l14 14-14 14' stroke='%23f5812d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.3'/></svg>");
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.45), transparent 65%);
          mask-image: linear-gradient(135deg, rgba(0,0,0,0.45), transparent 65%);
}

/* ── REVEAL ON SCROLL ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .glow-peach, .glow-lav, .glow-blush { animation: none; }
}

/* ── BADGES / PILLS ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 500; line-height: 1;
  background: var(--card); border: 1px solid var(--border); color: var(--warm-700);
  box-shadow: var(--shadow-xs);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; line-height: 1; }
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; }
.badge-active   { background: var(--peach-subtle);    color: var(--peach-text); }
.badge-active .bdot { background: var(--peach); }
.badge-complete { background: var(--sage-subtle);     color: var(--sage-text); }
.badge-complete .bdot { background: var(--sage); }
.badge-review   { background: var(--lavender-subtle); color: var(--lavender-text); }
.badge-review .bdot { background: var(--lavender); }
.badge-blocked  { background: var(--blush-subtle);    color: var(--blush-text); }
.badge-blocked .bdot { background: var(--blush); }
.badge-queued   { background: var(--muted);           color: var(--muted-foreground); }
.badge-queued .bdot { background: var(--warm-400); }

/* ── PRODUCT WINDOW FRAME ────────────────────────────────────── */
.window {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: var(--warm-50);
}
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-url {
  margin-left: 12px; flex: 1; max-width: 360px; min-width: 0;
  height: 26px; border-radius: 7px; background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window-url, .window-url * { white-space: nowrap; }
@media (max-width: 480px) { .window-url { font-size: 11px; padding: 0 9px; } }

/* App chrome inside the product window */
.app-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--card);
}
.app-head .logo-i { height: 22px; width: auto; }
.app-tabs { display: flex; gap: 2px; }
.app-tab { font-size: 13px; font-weight: 500; color: var(--muted-foreground); padding: 7px 12px; border-radius: 8px; }
.app-tab.on { background: var(--peach-subtle); color: var(--peach-text); }

/* Task rows (product) */
.tasklist { display: flex; flex-direction: column; }
.taskrow { display: flex; align-items: center; gap: 13px; padding: 13px 22px; border-bottom: 1px solid var(--border); }
.taskrow:last-child { border-bottom: 0; }
.taskrow.is-review { background: var(--lavender-subtle); }
.task-no { width: 22px; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.task-ico { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-ico svg { width: 14px; height: 14px; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 500; }
.task-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; font-family: var(--font-mono); }
.task-queued .task-title { color: var(--muted-foreground); }
.ico-complete { background: var(--sage-subtle);    color: var(--sage); }
.ico-active   { background: var(--peach-subtle);   color: var(--peach); }
.ico-review   { background: var(--lavender-subtle);color: var(--lavender); }
.ico-blocked  { background: var(--blush-subtle);   color: var(--blush); }
.ico-queued   { background: var(--muted);          color: var(--warm-400); }

/* progress */
.prog { height: 6px; background: var(--muted); border-radius: 3px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--gradient-accent); border-radius: 3px; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ICON CHIP ───────────────────────────────────────────────── */
.ichip { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ichip svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ichip-peach { background: var(--peach-subtle); color: var(--peach-text); }
.ichip-sage  { background: var(--sage-subtle);  color: var(--sage-text); }
.ichip-lav   { background: var(--lavender-subtle); color: var(--lavender-text); }
.ichip-blush { background: var(--blush-subtle); color: var(--blush-text); }

/* generic icon stroke */
.ico { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-xs); transition: all .2s ease; position: relative;
}
.card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--warm-200); transform: translateY(-3px); }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--warm-600); font-size: 15px; line-height: 1.6; }

/* ── PRICING ─────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.price-card.featured { border-color: var(--peach-light); box-shadow: var(--shadow-lg); }
.price-card.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient-top-border); }
.price-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.price-tag { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price-amt { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-per { font-size: 14px; color: var(--muted-foreground); }
.price-desc { font-size: 14px; color: var(--warm-600); min-height: 42px; margin-top: 8px; }
.price-feats { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--warm-700); }
.price-feats svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--sage); stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.price-card .btn { margin-top: 24px; width: 100%; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 72px 0 40px; background: var(--warm-50); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand img { height: 26px; }
.footer-brand p { color: var(--warm-600); font-size: 14px; margin: 16px 0 0; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--warm-700); padding: 6px 0; text-decoration: none; }
.footer-col a:hover { color: var(--peach-text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-foreground); }

/* forth arrow idle nudge for hero CTA */
@keyframes forthTrail { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ── STEPS (how-it-works, shared by A & C) ───────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--card); }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 26px; border-right: 1px solid var(--border); position: relative; }
.step:last-child { border-right: 0; }
@media (max-width: 860px){ .step:nth-child(2){ border-right: 0; } .step:nth-child(1),.step:nth-child(2){ border-bottom: 1px solid var(--border);} }
.step-no { font-family: var(--font-mono); font-size: 13px; color: var(--peach); font-weight: 600; }
.step h4 { font-size: 17px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--warm-600); line-height: 1.55; margin: 0; }
.step .sarrow { position: absolute; right: -10px; top: 38px; z-index: 2; width: 20px; height: 20px; color: var(--warm-300); background: var(--background); }
@media (max-width: 860px){ .step .sarrow { display: none; } }
