/* AuthorMe.ai premium static marketing site */

:root {
  --ink: #171717;
  --ink-soft: #4b5563;
  --fog: #e5e5e5;
  --sand: #f5f5f5;
  --white: #ffffff;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --moss: #15803d;
  --amber: #f59e0b;
  --ember: #ef4444;
  --surface: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 10px 30px rgba(23, 23, 23, 0.04);
  --shadow-md: 0 18px 50px rgba(23, 23, 23, 0.08);
  --shadow-lg: 0 30px 80px rgba(23, 23, 23, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1160px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.muted-section {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.9), rgba(255,255,255,0.7));
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
}

.section-header h2,
.page-hero h1,
.post-hero h1,
.hero-copy h1 {
  margin: 0 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-header p,
.hero-lead,
.page-hero p,
.post-hero p,
.price-copy,
.benefit-card p,
.feature-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.announcement-bar {
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.announcement-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.announcement-inner a {
  color: var(--blue-dark);
  font-weight: 600;
}

.announcement-pill {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-dark);
  border: 1px solid rgba(59, 130, 246, 0.18);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.compact-header {
  position: sticky;
}

.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a,
.text-link {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
}

.mobile-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 28px; }

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-large {
  min-height: 52px;
  padding-inline: 1.35rem;
}

.button-primary {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.24);
}

.button-primary:hover {
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.28);
}

.button-secondary,
.button-ghost,
.button-danger {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: rgba(23, 23, 23, 0.08);
}

.button-secondary:hover,
.button-ghost:hover,
.button-danger:hover {
  border-color: rgba(23, 23, 23, 0.16);
}

.button-ghost {
  background: transparent;
}

.button-danger {
  color: var(--ember);
}

.full-width {
  width: 100%;
}

.hero-section {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 23, 23, 0.07);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 6px rgba(21, 128, 61, 0.12);
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 10ch;
  margin-top: 1.2rem;
}

.hero-copy .hero-lead {
  max-width: 60ch;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.mini-stat {
  min-width: 130px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 23, 23, 0.07);
  box-shadow: var(--shadow-sm);
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.mini-stat span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-topbar {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.12);
}

.workspace-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.workspace-sidebar {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(245,245,245,0.8), rgba(255,255,255,0.96));
  border-right: 1px solid rgba(23, 23, 23, 0.06);
}

.workspace-sidebar h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.workspace-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workspace-sidebar li {
  padding: 0.72rem 0.82rem;
  border-radius: 12px;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.workspace-sidebar li.active {
  color: var(--ink);
  background: rgba(59, 130, 246, 0.09);
}

.workspace-content {
  padding: 1.35rem;
  display: grid;
  gap: 1rem;
}

.workspace-card,
.workspace-footer-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.workspace-card-header,
.workspace-footer-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.card-label {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-card h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.status-tag {
  flex-shrink: 0;
  background: rgba(21, 128, 61, 0.12);
  color: var(--moss);
  border: 1px solid rgba(21, 128, 61, 0.18);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.story-pills,
.agent-stack {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.story-pills span,
.agent-stack span,
.ui-pill {
  background: rgba(23, 23, 23, 0.05);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.ui-pill-muted { background: rgba(59, 130, 246, 0.08); color: var(--blue-dark); }
.ui-pill-success { background: rgba(21, 128, 61, 0.1); color: var(--moss); }
.ui-pill-alert { background: rgba(245, 158, 11, 0.14); color: #a16207; }

.workspace-grid,
.metric-card-grid,
.element-grid {
  display: grid;
  gap: 1rem;
}

.workspace-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 800;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}

.floating-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.floating-card span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.floating-a {
  bottom: 14%;
  left: -5%;
}

.floating-b {
  top: 6%;
  right: -5%;
}

.logo-band {
  padding: 1rem 0 2rem;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.logo-row span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 23, 23, 0.07);
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
}

.feature-grid,
.benefit-grid,
.pricing-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.benefit-card,
.price-card,
.metric-card,
.sample-card,
.element-panel,
.stat-card,
.article-author-card,
.share-card,
.related-card,
.post-sidebar-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.benefit-card,
.price-card,
.element-panel,
.stat-card,
.post-sidebar-card,
.sample-card,
.share-card,
.related-card {
  padding: 1.35rem;
}

.feature-card h3,
.benefit-card h3,
.sample-card h3 {
  margin: 0.9rem 0 0.55rem;
  font-size: 1.1rem;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-item > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-dark);
  font-weight: 800;
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.metric-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card span,
.sample-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.metric-card strong,
.sample-card strong {
  display: block;
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.testimonial-track {
  position: relative;
  min-height: 230px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 360ms ease, transform 360ms ease;
  padding: 1.65rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.testimonial-card p {
  margin: 0 0 1.2rem;
  font-size: 1.22rem;
  line-height: 1.7;
}

.testimonial-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.testimonial-card span {
  color: var(--ink-soft);
}

.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-size: 1.6rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.large-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  position: relative;
}

.price-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.price-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.price-card h3 span:last-child {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.3rem;
  display: grid;
  gap: 0.72rem;
}

.price-list li {
  position: relative;
  padding-left: 1.2rem;
}

.price-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 800;
}

.featured {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-dark);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255,255,255,0.88);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
}

.faq-question[aria-expanded="true"]::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.2rem;
  margin: 0;
  color: var(--ink-soft);
}

.cta-section {
  padding-top: 2rem;
}

.cta-shell {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(255,255,255,0.95));
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  display: flex;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: center;
}

.cta-shell h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.6rem 0 0.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cta-shell p {
  max-width: 58ch;
  color: var(--ink-soft);
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(23, 23, 23, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.footer-brand p {
  max-width: 42ch;
  color: var(--ink-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 23, 23, 0.06);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.single-line {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-hero,
.post-hero {
  padding: 4rem 0 2rem;
}

.page-hero-inner {
  text-align: center;
}

.page-hero h1,
.post-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.billing-toggle {
  display: inline-flex;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 0.3rem;
  gap: 0.3rem;
  margin-top: 1.4rem;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-soft);
}

.billing-toggle button span {
  font-size: 0.8rem;
  color: var(--moss);
  margin-left: 0.3rem;
}

.billing-toggle .is-active {
  background: var(--ink);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-table th,
.feature-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 23, 23, 0.07);
}

.feature-table th {
  background: rgba(245,245,245,0.95);
  font-size: 0.92rem;
}

.elements-stack {
  display: grid;
  gap: 1.2rem;
}

.element-panel h2 {
  margin-top: 0;
}

.demo-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.wrap {
  flex-wrap: wrap;
}

.between {
  justify-content: space-between;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert {
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.alert.success { background: rgba(21,128,61,0.1); color: var(--moss); }
.alert.warning { background: rgba(245,158,11,0.14); color: #a16207; }
.alert.danger { background: rgba(239,68,68,0.1); color: var(--ember); }

.form-demo {
  display: grid;
  gap: 0.9rem;
}

.form-demo label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.9rem 1rem;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.check-row {
  display: grid;
  gap: 0.6rem;
  color: var(--ink-soft);
}

.tabs-demo {
  display: inline-flex;
  background: rgba(245,245,245,0.95);
  padding: 0.3rem;
  border-radius: 999px;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.tabs-demo button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-soft);
}

.tabs-demo button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  border-radius: 18px;
  border: 1px dashed rgba(23, 23, 23, 0.16);
  padding: 1.3rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span,
.avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.9);
  margin-left: -0.4rem;
}

.avatar-stack span:first-child { margin-left: 0; }

.avatar-large {
  width: 54px;
  height: 54px;
  margin-left: 0;
}

.pagination {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.page-chip {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23,23,23,0.05);
  font-weight: 700;
}

.page-chip.active {
  background: var(--ink);
  color: var(--white);
}

.post-hero-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.post-meta {
  color: var(--ink-soft);
  font-weight: 600;
}

.post-sidebar-card,
.article-author-card,
.share-card,
.related-card {
  padding: 1.2rem;
}

.post-sidebar-card h3,
.related-card h4,
.share-card h4 {
  margin-top: 0;
}

.post-sidebar-card ol,
.related-card a {
  display: grid;
  gap: 0.7rem;
}

.article-content {
  max-width: 760px;
}

.article-content p,
.article-content li,
.article-content blockquote {
  font-size: 1.06rem;
  color: #242424;
}

.article-content h2 {
  margin-top: 2.4rem;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-cover {
  margin-bottom: 1.6rem;
}

.article-cover-inner {
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23,23,23,0.08);
  background:
    linear-gradient(135deg, rgba(59,130,246,0.12), rgba(255,255,255,0.8)),
    radial-gradient(circle at top right, rgba(21,128,61,0.08), transparent 35%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.article-cover-inner span {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--blue);
  background: rgba(59,130,246,0.06);
  border-radius: 0 18px 18px 0;
  font-weight: 600;
}

.code-block {
  margin: 1.6rem 0;
  border-radius: 18px;
  background: #121212;
  color: #f8fafc;
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

.inline-cta {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.12);
}

.inline-cta strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .feature-grid,
  .benefit-grid,
  .pricing-grid,
  .large-grid,
  .stats-grid,
  .footer-grid,
  .post-hero-grid,
  .article-layout,
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }

  .large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .floating-a,
  .floating-b {
    position: static;
    margin-top: 1rem;
  }

  .hero-visual {
    display: grid;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(23,23,23,0.06);
  }
}

@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .mobile-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .nav-actions {
    display: none;
  }

  .site-nav.is-open,
  .nav-actions.is-open {
    display: flex;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }

  .nav-actions.is-open {
    gap: 0.75rem;
  }

  .announcement-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .logo-row,
  .feature-grid,
  .benefit-grid,
  .stats-grid,
  .pricing-grid,
  .large-grid,
  .footer-grid,
  .post-hero-grid,
  .article-layout,
  .split-grid,
  .metric-card-grid,
  .two-up,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .testimonial-track {
    min-height: 280px;
  }

  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-section,
  .section,
  .page-hero,
  .post-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .section-header h2,
  .page-hero h1,
  .post-hero h1,
  .cta-shell h2 {
    font-size: 2.1rem;
  }

  .feature-card,
  .benefit-card,
  .price-card,
  .element-panel,
  .stat-card,
  .sample-card,
  .post-sidebar-card {
    padding: 1.1rem;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }
}
