/* XTweetly Agent — shared site styles */
:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg2: #0c0e12;
  --surface: rgba(255, 255, 255, 0.028);
  --surface2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.085);
  --border2: rgba(255, 255, 255, 0.16);
  --glow: rgba(126, 166, 255, 0.16);
  --green: #46d38a;
  --amber: #f4c152;
  --ink: #f3f5f8;
  --ink2: #b6bdc7;
  --ink3: #717a86;
  --accent: #7ea6ff;
  --accent2: #6e8bff;
  --accentink: #06122e;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --rsm: 9px;
  --maxw: 880px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: 1.35rem; margin: 30px 0 10px; }
h3 { font-size: 1.05rem; margin: 26px 0 8px; }
p, li { color: var(--ink2); margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--surface); padding: 1px 5px; border-radius: 4px; }

/* Layout */
.site-shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  flex: 1 0 auto;
}
/* Content pages (build-injected shell): breathing room between header/footer.
   The home page uses a bare `.site-shell` and manages its own section rhythm. */
.site-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Header — full-bleed bar, content aligned to the shell column */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.site-chip {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, #1b2435, #0c0f16);
  border: 1px solid var(--border2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px -6px var(--accent);
  color: var(--accent);
}
.site-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}
.site-byline {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--ink2);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accentink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 0 30px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.site-cta:hover { filter: brightness(1.08); }

/* Footer — full-bleed bar, content aligned to the shell column */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.085);
  margin-top: auto;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  width: 100%;
}
.site-disclaimer {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--ink3);
  max-width: 42rem;
  margin: 0 0 1.25rem;
}
.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.site-links a { color: var(--accent); }
.site-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink3);
  margin: 0;
}

/* Utilities */
.top {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.mono { font-family: var(--mono); }
.ink2 { color: var(--ink2); }
.ink3 { color: var(--ink3); }
.accent { color: var(--accent); }

/* Components */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
}
.card + .card { margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  /* Default = filled accent pill (bare `.btn` on content pages relies on this) */
  background: var(--accent);
  color: var(--accentink);
  box-shadow: 0 0 30px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.2s, transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary {
  background: var(--accent);
  color: var(--accentink);
  box-shadow: 0 0 30px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink2);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--border2); color: var(--ink); }
.btn-buy {
  background: var(--accent);
  color: var(--accentink);
  box-shadow: 0 0 30px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}
.table th,
.table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  color: var(--ink2);
  vertical-align: top;
}
.table th { color: var(--ink); }

/* Content-page components (ported from per-page inline styles) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}
.note {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  margin-top: 24px;
}
.price {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 16px 0;
}

/* Home-page specific */
.display { font-family: var(--display); }
.kick { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.hero-h { font-size: clamp(2.5rem, 7vw, 5rem); }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; }
hr.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.rel { position: relative; white-space: nowrap; }
.draw { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.34em; overflow: visible; }
.draw path { stroke: var(--accent); stroke-width: 7; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--glow)); stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 0.9s 0.55s forwards cubic-bezier(0.6, 0, 0.25, 1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--ink3); }
.num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.fade { opacity: 0; transform: translateY(16px); animation: fade 0.85s forwards; }
@keyframes fade { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.52s; }
.feat { padding: 1.5rem 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: baseline; }
.chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: radial-gradient(120% 120% at 30% 20%, #1b2435, #0c0f16); border: 1px solid var(--border2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px -6px var(--accent); }

/* Layout utilities (pure CSS — replaces the Tailwind utilities the home page used) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }

/* Responsive 3-up grid: stacks on mobile, 3 columns from 640px up */
.grid-3 { display: grid; gap: 2rem; grid-template-columns: 1fr; }

/* Section vertical rhythm */
.s-hero    { padding: 4rem 0 2rem; }
.s-pad     { padding: 3rem 0; }
.s-pad-md  { padding: 2.5rem 0; }
.s-pad-lg  { padding: 4rem 0; }
.s-pad-b   { padding-bottom: 2rem; }
.s-pad-b-lg{ padding-bottom: 5rem; }

@media (min-width: 640px) {
  .sm-flex-row { flex-direction: row; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .s-hero { padding: 6rem 0 2rem; }
}

@media (max-width: 680px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 460px) {
  :root { --gutter: 18px; }
  .s-hero { padding: 3rem 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
