/* components.css: cards, tabs/panels, mockups, checks, faq, cta, tables, steps, product sections */

/* Hero stats strip */
.hero-stats {
  position: relative; margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats div { padding: 30px 24px 34px 0; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.hero-stats strong { display: block; font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; }
.hero-stats span { display: block; margin-top: 8px; color: rgba(255,255,255,.6); font-size: 15px; }

/* Product switcher */
.switcher { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch; }
.tabs { display: grid; gap: 10px; align-content: start; }
.tab {
  --c: var(--brand);
  text-align: left; width: 100%;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 20px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tab:hover { border-color: #c9d0e4; }
.tab[aria-selected="true"] { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 14%, transparent); }
.tab-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); }
.tab-icon img { width: 26px; height: 26px; }
.tab strong { display: flex; align-items: center; gap: 8px; font: 700 20px/1.2 var(--font-display); letter-spacing: -0.01em; }
.tab span.desc { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.badge { font: 600 11.5px/1 var(--font-body); padding: 5px 8px; border-radius: 999px; background: #efeaff; color: #5a3fd6; letter-spacing: 0; }

.panel {
  --c: var(--brand);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.panel[hidden] { display: none; }
.panel.is-entering { animation: panelIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-copy { padding: 44px; display: flex; flex-direction: column; }
.panel-copy h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.panel-copy > p { margin-top: 14px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { flex: none; margin-top: 3px; color: var(--c); }
.panel-copy .btn { margin-top: auto; align-self: flex-start; background: var(--c); color: var(--white); }
.panel-copy .btn:hover { filter: brightness(.92); }
.panel-visual {
  background: color-mix(in srgb, var(--c) 9%, var(--paper));
  padding: 40px; display: grid; place-items: center;
  border-left: 1.5px solid var(--line);
}

/* Mockups */
.mockup {
  width: 100%; max-width: 360px; background: var(--white);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c) 45%, rgba(12,24,56,.4)), 0 0 0 1px rgba(12,24,56,.05);
  display: grid; gap: 12px;
}
.mockup-header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mockup-header img { width: 28px; height: 28px; border-radius: 8px; }
.mockup-header strong { font: 700 16px/1 var(--font-display); }
.mockup-header .online { margin-left: auto; font-size: 12px; color: var(--rv); font-weight: 600; }
.mockup-card { background: var(--paper); border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--c); }
.mockup-card small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.mockup-card strong { font-size: 14.5px; line-height: 1.35; display: block; }
.mockup-card.muted { border-left-color: #c5ccdc; opacity: .8; }
.mockup-card .stars { color: #f5a524; letter-spacing: 2px; text-decoration: line-through; text-decoration-color: #e5484d; }
.bubble { font-size: 14px; line-height: 1.4; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); max-width: 84%; }
.bubble.out { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--c); color: var(--white); }
.mockup-stat { display: flex; align-items: baseline; gap: 10px; padding-top: 4px; }
.mockup-stat strong { font: 700 34px/1 var(--font-display); color: var(--c); }
.mockup-stat span { font-size: 13.5px; color: var(--muted); }
.stock-row { display: grid; grid-template-columns: 1fr 70px auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; }
.stock-bar { height: 6px; background: var(--paper); border-radius: 6px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; border-radius: 6px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

/* Steps */
.steps-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step { padding: 8px 40px 8px 0; position: relative; }
.step + .step { padding-left: 40px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--white); font: 700 18px/1 var(--font-display);
  margin-bottom: 24px;
}
.step h3 { font-size: 23px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.four .step { padding-right: 28px; }
.steps.four .step + .step { padding-left: 28px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.quote { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; font-size: 14.5px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-size: 15.5px; }
.quote.feature { background: var(--ink); color: var(--white); border-color: var(--ink); grid-row: span 2; padding: 48px; }
.quote.feature blockquote { font: 600 clamp(24px, 2.6vw, 34px)/1.25 var(--font-display); letter-spacing: -0.02em; }
.quote.feature figcaption { color: rgba(255,255,255,.6); }
.quote.feature figcaption strong { color: var(--white); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 14px; flex: none; }
.stars-row { color: #f5a524; letter-spacing: 3px; margin-bottom: 18px; font-size: 16px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq { border-top: 1.5px solid var(--line); }
.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 600 20px/1.35 var(--font-display); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 48px 26px 0; color: var(--muted); }

/* CTA */
.cta {
  background: var(--ink); color: var(--white); border-radius: 36px;
  padding: 80px 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.cta h2 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.035em; }
.cta p { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 18px; max-width: 30em; }
.cta-links { display: grid; gap: 10px; position: relative; }
.cta-link {
  --c: var(--brand);
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; border-radius: 18px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background-color .2s, border-color .2s;
}
.cta-link:hover { background: rgba(255,255,255,.1); border-color: var(--c); }
.cta-link .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--white); box-shadow: inset 0 -3px 0 var(--c); display: grid; place-items: center; }
.cta-link .ic img { width: 24px; height: 24px; }
.cta-link strong { display: block; font: 600 18px/1.2 var(--font-display); }
.cta-link small { color: rgba(255,255,255,.6); font-size: 14px; }
.cta-link svg { color: rgba(255,255,255,.5); }
.cta-link:hover svg { color: var(--white); }

/* Contact card */
.contact-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px 26px; margin-top: 16px; }
.contact-card address { font-style: normal; line-height: 1.6; color: #3a4566; }

/* Product page components */
.shot { background: var(--white); border-radius: 22px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.shot img { border-radius: 14px; width: 100%; }
.shot-stack { position: relative; }
.shot-stack .mockup { position: absolute; left: -36px; bottom: -36px; max-width: 290px; }
.p-hero .mockup { color: var(--text); }

.feat-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 32px; }
.feat-cols > div { border-top: 3px solid var(--c, var(--brand)); padding-top: 22px; }
.feat-cols h3 { font-size: 21px; font-weight: 700; }
.feat-cols p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.mod { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1.5px solid var(--line); }
.mod:first-child { border-top: 0; padding-top: 0; }
.mod > * { min-width: 0; }
.mod.reverse > :first-child { order: 2; }
.mod .kicker { font-size: 14.5px; font-weight: 600; color: var(--c, var(--brand)); margin-bottom: 10px; display: block; }
.mod h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.025em; }
.mod p { margin-top: 14px; color: var(--muted); }
.mod .checks { margin-bottom: 0; }
.mod .shot { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c, var(--brand)) 50%, rgba(12,24,56,.4)), 0 0 0 1px var(--line); }
.mod .visual-pad { background: color-mix(in srgb, var(--c, var(--brand)) 9%, var(--paper)); border-radius: var(--radius-lg); padding: 40px; display: grid; place-items: center; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 600 15px/1.2 var(--font-body); color: var(--muted); background: var(--paper); }
.compare td:first-child { font-weight: 600; width: 30%; }
.compare .bad { color: #b4373c; }
.compare .good { color: #0f7a44; font-weight: 500; }

.fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.fit-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.fit-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.fit-card .checks { margin: 0; }
.fit-card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fit-card.dark p { color: rgba(255,255,255,.72); }
.fit-card.dark p + p { margin-top: 14px; }

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.use h3 { font-size: 18px; font-weight: 700; }
.use .bubble { max-width: 100%; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; }
.plan { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); }
.plan h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.plan .tag { font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--brand)) 14%, white); color: var(--text); }
.plan .price { margin-top: 18px; font: 700 48px/1 var(--font-display); letter-spacing: -0.03em; }
.plan .price small { font: 500 17px var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan .billed { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plan .checks { margin: 24px 0 28px; }
.plan .checks svg { color: var(--c, var(--brand)); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.fine { margin-top: 20px; color: var(--muted); font-size: 15px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { --c: var(--brand); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 32px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.link-card:hover { border-color: var(--c); }
.link-card .tab-icon { margin-bottom: 8px; }
.link-card h3 { font-size: 22px; font-weight: 700; }
.link-card p { color: var(--muted); font-size: 16px; }
.link-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--c); }
.contact-lines { display: grid; gap: 6px; margin-top: 4px; }
.contact-lines a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines address { font-style: normal; color: var(--muted); line-height: 1.55; font-size: 15.5px; }

.prose-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.prose-cols .big { font: 600 clamp(24px, 2.6vw, 32px)/1.3 var(--font-display); letter-spacing: -0.02em; }
.prose-cols p + p { margin-top: 16px; }
.prose-cols .muted { color: var(--muted); }

@media (max-width: 1080px) {
  .switcher { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 64px 40px; }
  .shot-stack .mockup { left: 16px; bottom: -28px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .feat-cols { --cols: 2 !important; }
}
@media (max-width: 880px) {
  .panel { grid-template-columns: 1fr; }
  .panel-visual { border-left: 0; border-top: 1.5px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step, .step + .step { padding: 0; border-left: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote.feature { grid-row: auto; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .section-head { position: static; }
  .steps.four { grid-template-columns: 1fr; }
  .steps.four .step, .steps.four .step + .step { padding: 0; }
  .mod, .mod.reverse { grid-template-columns: 1fr; gap: 32px; }
  .mod.reverse > :first-child { order: 0; }
  .fit, .cards-3, .prose-cols { grid-template-columns: 1fr; }
  .prose-cols { gap: 24px; }
  .compare { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .hero-stats div, .hero-stats div + div { padding: 22px 0; border-left: 0; }
  .hero-stats div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.1); }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .hero-stats strong { font-size: 32px; }
  .tabs { grid-template-columns: 1fr; }
  .tab { grid-template-columns: 44px 1fr; padding: 16px; }
  .panel-copy, .panel-visual { padding: 28px 22px; }
  .quote, .quote.feature { padding: 28px; }
  .cta { padding: 48px 24px; border-radius: 28px; }
  .shot-stack .mockup { position: static; margin: -40px auto 0; width: 92%; }
  .uses, .feat-cols { grid-template-columns: 1fr; }
  .feat-cols { --cols: 1 !important; }
  .mod { padding: 40px 0; }
  .mod .visual-pad { padding: 20px; }
  .fit-card, .plan { padding: 26px; }
  .compare th, .compare td { padding: 14px; font-size: 14.5px; }
}
