/*!
 * Landing Pack — shared base styles (v1.0.0)
 * Made by Vortaxis Studio · https://vortaxis.com
 *
 * Layout, components and animations shared by the three landing pages.
 * Each page loads its own theme file (saas/style.css, app/style.css,
 * event/style.css) that sets the design tokens below and adds its own look.
 */

/* ---------- Tokens (overridden by each theme) ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --line: #e4e7f0;
  --ink: #12131a;
  --mute: #5b6070;
  --accent: #5b5bf7;
  --accent-2: #22c3a6;
  --accent-ink: #ffffff;
  --focus: #5b5bf7;
  --danger: #d4344b;
  --success: #138a5e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 18, 30, .06), 0 12px 32px -12px rgba(16, 18, 30, .18);
  --shadow-lg: 0 30px 80px -30px rgba(16, 18, 30, .35);
  --font-head: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.theme-anim, .theme-anim * { transition: background-color .4s ease, border-color .4s ease, color .4s ease !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-ink); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px var(--accent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); border-color: var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme-toggle] .i-sun { display: none; }
[data-theme="dark"] [data-theme-toggle] .i-sun { display: block; }
[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 2px; padding: 16px 24px 28px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility 0s .25s;
  }
  .nav a { font-size: 18px; padding: 14px 12px; }
  .nav .btn { display: inline-flex; margin-top: 10px; color: var(--accent-ink); }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
  .nav-open .header { background: var(--bg); }
}
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

/* ---------- Logos strip ---------- */
.logos { padding: 36px 0 8px; }
.logos p { text-align: center; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 22px; }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px; }
.logos li { color: var(--mute); opacity: .8; transition: opacity .2s, color .2s; }
.logos li:hover { opacity: 1; color: var(--ink); }
.logos svg { height: 28px; width: auto; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature h3 { font-size: 20px; margin: 18px 0 8px; }
.feature p { color: var(--mute); font-size: 16px; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.f-icon svg { width: 24px; height: 24px; }

/* ---------- Pricing ---------- */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -24px 0 44px; font-weight: 600; color: var(--mute); font-size: 15px; }
.switch { width: 56px; height: 32px; border-radius: 999px; border: 0; padding: 4px; background: var(--line); cursor: pointer; position: relative; transition: background-color .25s; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.4,.6,1); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.save-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--ink); }
.is-yearly .billing .lbl-y, .billing .lbl-m { color: var(--ink); }
.is-yearly .billing .lbl-m { color: var(--mute); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 20px; }
.plan .plan-desc { color: var(--mute); font-size: 15px; margin-top: 6px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 22px 0 4px; font-family: var(--font-head); }
.price .cur { font-size: 24px; font-weight: 700; align-self: flex-start; margin-top: 8px; }
.price .amt { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: inline-block; }
.price .per { color: var(--mute); font-family: var(--font-body); font-size: 15px; }
.price-note { color: var(--mute); font-size: 14px; min-height: 22px; }
.plan ul { margin: 24px 0 28px; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 28px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 12px; border-radius: 999px; }
.price-flip { animation: flip .35s ease; }
@keyframes flip { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption b { display: block; font-size: 15px; }
.quote figcaption div span { font-size: 14px; color: var(--mute); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; flex: none; object-fit: cover; }
.stars { display: flex; gap: 2px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; opacity: .6; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .faq-a { padding: 0 22px 22px; color: var(--mute); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; text-align: left; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { padding: 14px 18px; min-height: 110px; resize: vertical; }
.input::placeholder { color: color-mix(in srgb, var(--mute) 75%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1.4em; margin-top: 10px; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.form-status.is-info { color: var(--mute); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 240px; }
.inline-form .btn { min-height: 52px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-grid p { color: var(--mute); margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink); opacity: .85; }
.footer ul a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--mute); }
.socials a:hover { color: var(--ink); border-color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js-reveal [data-reveal="left"] { transform: translateX(-36px); }
.js-reveal [data-reveal="right"] { transform: translateX(36px); }
.js-reveal [data-reveal="zoom"] { transform: scale(.94); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .card { padding: 22px; }
  body { font-size: 16px; }
}
