/* ============================================================================
   InfiniteStandup — marketing landing page
   Restyled around the new infinity mark: violet→green gradient, Space Grotesk.
   ========================================================================== */

:root {
  --bg: #0b0d17;            /* deep navy hero */
  --bg-2: #ffffff;          /* light sections */
  --bg-alt: #f6f7fb;        /* alt light section */
  --ink: #10121b;           /* primary text on light */
  --ink-2: #4a4f66;         /* muted text on light */
  --ink-inv: #eef0fb;       /* text on dark */
  --ink-inv-2: #a7adca;     /* muted text on dark */
  --brand: #6d5efc;         /* violet (logo) */
  --brand-2: #8b7bff;
  --brand-ink: #ffffff;
  --accent: #16b364;        /* green (logo — sync/go) */
  --accent-2: #3ee88f;      /* bright green on dark */
  --warm: #f97316;          /* coral — conflicts / warnings */
  --grad: linear-gradient(150deg, #6d5efc 0%, #16b364 100%);
  --border: #e6e8f0;
  --border-dark: #23263a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(16, 18, 27, 0.10);
  --shadow-lg: 0 24px 70px rgba(109, 94, 252, 0.28);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(109, 94, 252, 0.5); filter: saturate(1.05) brightness(1.03); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.btn--ghost:hover { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn--lg { padding: 0.98rem 1.65rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Brand mark (infinity tile) ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(109, 94, 252, 0.35);
  flex-shrink: 0;
}
.brand__glyph { width: 64%; height: 64%; display: block; }
.brand__name { font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 23, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--ink-inv);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.94rem; color: var(--ink-inv-2); font-family: var(--font-display); }
.nav__links a:hover { color: var(--ink-inv); }
.nav__cta { display: flex; gap: 0.6rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 78% -10%, rgba(109, 94, 252, 0.38), transparent 60%),
    radial-gradient(760px 420px at 8% 8%, rgba(22, 179, 100, 0.20), transparent 60%),
    var(--bg);
  color: var(--ink-inv);
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--border-dark);
}
.hero__inner { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(109, 94, 252, 0.14);
  border: 1px solid rgba(109, 94, 252, 0.3);
  padding: 0.35rem 0.85rem; border-radius: 999px;
  margin: 0 0 1.2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  font-weight: 700;
}
.hero__sub {
  max-width: 680px; margin: 0 auto 1.8rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--ink-inv-2);
}
.hero__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero__note { margin: 1rem 0 0; font-size: 0.88rem; color: var(--ink-inv-2); font-family: var(--mono); }

.hero__panel {
  margin: 3rem auto 0;
  max-width: 720px;
  text-align: left;
  background: #0f1120;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__bar { display: flex; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-dark); }
.panel__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2e46; }
.panel__bar span:first-child { background: var(--warm); }
.panel__bar span:nth-child(2) { background: var(--brand-2); }
.panel__bar span:nth-child(3) { background: var(--accent); }
.panel__code {
  margin: 0; padding: 1.1rem 1.2rem;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.85;
  color: var(--ink-inv); white-space: pre-wrap; word-break: break-word;
}
.c-dim { color: #6b7196; }
.c-key { color: var(--brand-2); font-weight: 600; }
.c-ok { color: var(--accent-2); }
.c-warn { color: var(--warm); }

/* ---------- Generic sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band { padding: 64px 0; background: var(--bg-2); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.14; letter-spacing: -0.025em; text-align: center;
  margin: 0 0 1rem; font-weight: 700;
}
.section__lead {
  max-width: 720px; margin: 0 auto; color: var(--ink-2);
  font-size: 1.1rem; text-align: center;
}
.section__lead--center { margin-bottom: 2.4rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(16, 18, 27, 0.14); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: linear-gradient(150deg, rgba(109,94,252,0.16), rgba(22,179,100,0.16));
  border: 1px solid rgba(109,94,252,0.14);
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.12rem; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.card code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-alt); padding: 0.05em 0.35em; border-radius: 5px; color: var(--brand); }

/* ---------- Product showcase ---------- */
.shot {
  margin: 0;
  background: #0f1120;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot--wide { margin-top: 3rem; }
.shot--strip { margin-top: 2.6rem; }
.shot__bar { display: flex; align-items: center; gap: 0.42rem; padding: 0.62rem 0.9rem; border-bottom: 1px solid var(--border-dark); }
.shot__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2e46; }
.shot__bar span:first-child { background: var(--warm); }
.shot__bar span:nth-child(2) { background: var(--brand-2); }
.shot__bar span:nth-child(3) { background: var(--accent); }
.shot__url {
  margin-left: 0.7rem; font-style: normal;
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-inv-2);
  background: rgba(255,255,255,0.05); padding: 0.22rem 0.72rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
.shot__cap { max-width: 760px; margin: 1rem auto 0; text-align: center; color: var(--ink-2); font-size: 0.98rem; }
.shot__cap--inline { max-width: none; text-align: left; padding: 1rem 1.2rem 1.2rem; margin: 0; background: #0f1120; color: var(--ink-inv-2); font-size: 0.92rem; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 2.6rem; align-items: start; }
.shots-2 .shot { display: flex; flex-direction: column; }
.shots-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.8rem; align-items: start; }
.shots-3 .shot { display: flex; flex-direction: column; }

.guide-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 3.4rem; }
.guide-split__copy h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; margin: 0 0 0.8rem; line-height: 1.2; }
.guide-split__copy p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.shot--doc { max-width: 460px; justify-self: center; }
.shot--doc img { max-height: 440px; object-fit: cover; object-position: top; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr);
}
.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
}
.step__num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Pricing ---------- */
.pricing { display: flex; justify-content: center; }
.price-card {
  width: 100%; max-width: 400px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.price-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price-card__name { font-family: var(--font-display); margin: 0 0 0.4rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.price-card__amount { font-family: var(--font-display); margin: 0; font-size: 3.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-card__currency { font-size: 1.6rem; vertical-align: super; margin-right: 2px; }
.price-card__period { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.price-card__flat { margin: 0.4rem 0 1.4rem; color: var(--ink-2); font-size: 0.95rem; }
.price-card__list { list-style: none; margin: 0 0 1.6rem; padding: 0; text-align: left; }
.price-card__list li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
.price-card__list li:last-child { border-bottom: none; }
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.5rem;
  color: var(--accent); font-weight: 800;
}
.price-card__fine { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 12px;
  padding: 0 1.2rem;
}
.faq__item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  padding: 1.05rem 0; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 1.1rem; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Final CTA ---------- */
.cta {
  background:
    radial-gradient(700px 320px at 50% 120%, rgba(109, 94, 252, 0.42), transparent 60%),
    radial-gradient(560px 280px at 15% 0%, rgba(22, 179, 100, 0.16), transparent 60%),
    var(--bg);
  color: var(--ink-inv);
  padding: 96px 0;
  text-align: center;
}
.cta__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.025em; margin: 0 0 0.7rem; font-weight: 700; }
.cta__sub { color: var(--ink-inv-2); font-size: 1.1rem; margin: 0 0 1.8rem; }

/* ---------- Footer ---------- */
.footer { background: #08090f; color: var(--ink-inv-2); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__brand .brand__name { color: var(--ink-inv); font-weight: 700; }
.footer__brand { display: grid; gap: 0.5rem; align-content: start; }
.footer__brand .brand__mark { display: inline-grid; }
.footer__tag { margin: 0.3rem 0 0; font-size: 0.9rem; }
.footer__cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__col { display: grid; gap: 0.55rem; align-content: start; }
.footer__col h4 { font-family: var(--font-display); margin: 0 0 0.4rem; color: var(--ink-inv); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__col a { font-size: 0.94rem; }
.footer__col a:hover { color: var(--ink-inv); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border-dark); font-size: 0.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__legal p { margin: 0; }
.footer__powered { display: inline-flex; align-items: center; gap: 0.6rem; opacity: 0.75; transition: opacity 0.15s ease; }
.footer__powered:hover { opacity: 1; }
.footer__powered span { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-inv-2); }
.footer__powered img { height: 26px; width: auto; display: block; }

/* ---------- Focus visibility (a11y) ---------- */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip link — visually hidden until focused (keyboard a11y) */
.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 50;
  background: var(--brand); color: #fff;
  padding: 0.55rem 0.9rem; border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .shots-2, .shots-3 { grid-template-columns: 1fr; }
  .guide-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 68px; }
  .section { padding: 64px 0; }
  .nav__cta .btn--ghost { display: none; }
  .footer__inner { flex-direction: column; }
}
