/* SnapPact marketing site — purple/violet brand, built on the same
   token/pattern conventions as the other ortino-family sites. */

@font-face {
  font-family: "Inter";
  src: local("Inter");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-elevated: #f6f5fc;
  --bg-sunken: #efedf9;
  --border: #e4e1f2;
  --text: #17132b;
  --text-muted: #5c5670;
  --text-faint: #9691ab;
  --invert: #ffffff;
  --success: #16a34a;
  --primary: #6d4dff;
  --primary-dark: #5a3af0;
  --primary-light: #7c5cff;
  --primary-tint: rgba(109, 77, 255, 0.1);
  --shape-tint: 109, 77, 255;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d0b1a;
  --bg-elevated: #17142b;
  --bg-sunken: #0a0815;
  --border: #2a2545;
  --text: #f5f3ff;
  --text-muted: #b3aecf;
  --text-faint: #716c8c;
  --invert: #0d0b1a;
  --success: #4ade80;
  --primary: #8f7aff;
  --primary-dark: #6d4dff;
  --primary-light: #a595ff;
  --primary-tint: rgba(143, 122, 255, 0.14);
  --shape-tint: 143, 122, 255;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0b1a;
    --bg-elevated: #17142b;
    --bg-sunken: #0a0815;
    --border: #2a2545;
    --text: #f5f3ff;
    --text-muted: #b3aecf;
    --text-faint: #716c8c;
    --invert: #0d0b1a;
    --success: #4ade80;
    --primary: #8f7aff;
    --primary-dark: #6d4dff;
    --primary-light: #a595ff;
    --primary-tint: rgba(143, 122, 255, 0.14);
    --shape-tint: 143, 122, 255;
  }
}

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

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 100;
  background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- decorative shapes ---------- */
.shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shapes svg { position: absolute; }
.blob-a { width: 900px; height: 900px; right: -280px; top: -320px; }
.blob-b { width: 640px; height: 640px; left: -220px; top: 120px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(155deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 15px; height: 15px; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.navlinks a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-elevated); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  border-radius: var(--radius-pill); padding: 8px 30px 8px 14px; font-size: 13px; font-weight: 600;
  font-family: var(--sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c5670' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.hamburger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.store-badge {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg-elevated);
  border-radius: var(--radius-md); padding: 9px 16px; font-size: 13px; font-weight: 600;
}
.store-badge svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-pill);
  padding: 7px 16px; margin-bottom: 26px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 auto 22px; max-width: 820px;
}
.hero h1 span { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; margin-bottom: 20px; }
.hero .store-badges { justify-content: center; }

.hero-shot { position: relative; z-index: 1; margin: 56px auto 0; max-width: 300px; }
.hero-shot__frame {
  background: #0a0a0a; padding: 10px; border-radius: 34px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 90px -30px rgba(109,77,255,0.35);
}
.hero-shot__frame img { display: block; width: 100%; border-radius: 24px; }

/* ---------- works-with / trust strip ---------- */
.trust-strip { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.trust-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 30px 26px; position: relative; }
.step__num {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* template marketplace teaser */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.template-card {
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-lg);
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
}
.template-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--primary-tint);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
:root[data-theme="dark"] .template-card__icon { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { .template-card__icon { color: var(--primary-light); } }
.template-card__body { flex: 1; min-width: 0; }
.template-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.template-card__row h3 { font-size: 15.5px; font-weight: 700; margin: 0; }
.template-card__price { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--primary-dark); white-space: nowrap; }
:root[data-theme="dark"] .template-card__price { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { .template-card__price { color: var(--primary-light); } }
.template-card p { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 10px; line-height: 1.5; }
.template-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.template-badge {
  display: inline-flex; align-items: center; gap: 5px; background: var(--primary-tint); color: var(--primary-dark);
  border-radius: var(--radius-pill); padding: 4px 10px; font-weight: 700; font-size: 11px;
}
:root[data-theme="dark"] .template-badge { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { .template-badge { color: var(--primary-light); } }
.template-badge svg { width: 11px; height: 11px; }
.template-card__stars { color: var(--text-faint); font-weight: 600; }

/* security / compliance */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 28px; }
.why-card .glyph { width: 24px; height: 24px; margin-bottom: 16px; color: var(--primary-dark); }
:root[data-theme="dark"] .why-card .glyph { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { .why-card .glyph { color: var(--primary-light); } }
.why-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* pricing */
.pricing-note { max-width: 620px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); font-size: 15px; }
.price-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.price-chip {
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius-lg);
  padding: 18px 22px; min-width: 180px; text-align: left;
}
.price-chip h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 4px; }
.price-chip .amount { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--primary-dark); }
:root[data-theme="dark"] .price-chip .amount { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { .price-chip .amount { color: var(--primary-light); } }

/* faq */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { background: var(--bg); }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; font-size: 15.5px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--sans); }
.faq-q svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--text-faint); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* cta band */
.cta-band {
  border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  padding: 64px 40px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { opacity: 0.9; margin: 0 0 28px; font-size: 15.5px; }
.cta-band .btn-row, .cta-band .store-badges { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.cta-band .store-badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; margin: 12px 0 0; max-width: 260px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- legal pages ---------- */
.legal-main { padding: 64px 0 96px; }
.legal-main .wrap { max-width: 720px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); text-decoration: none; margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.legal-main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 40px; }
.legal-main section { margin-bottom: 36px; }
.legal-main h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.legal-main p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.legal-main .tight { margin-top: -28px; margin-bottom: 36px; }

@media (max-width: 900px) {
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px 24px 16px; gap: 0; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 0; border-top: 1px solid var(--border); }
  .navlinks a:first-child { border-top: none; }
  .hamburger { display: flex; }
  .steps, .why-grid, .template-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-select { padding: 10px 28px 10px 12px; font-size: 12.5px; height: 40px; }
}
@media (max-width: 860px) {
  .topbar-inner { padding: 14px 0; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-select { height: 40px; display: inline-flex; align-items: center; }
}
