/* Homepage-specific styles */

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero + section {
  margin-top: 28px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(29,161,219,.12), transparent 60%),
    radial-gradient(50% 35% at 0% 30%, rgba(62,85,119,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), white 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy { min-width: 0; }
.dashboard { min-width: 0; }
.hero-copy h1 {
  margin-top: 24px;
}
.hero-copy h1 em {
  font-style: normal;
  font-size: .86em;
  background: linear-gradient(120deg, var(--blue-500), var(--navy-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead { margin-top: 20px; }
.hero-cta { margin-top: 36px; }
.hero-microcopy {
  margin: 14px 0 0;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 500;
}
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-500);
}
.trust-item strong { color: var(--ink-900); font-weight: 600; font-family: var(--font-mono); }
.trust-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-500);
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

/* ============ Dashboard mockup ============ */
.dashboard {
  position: relative;
  perspective: 1400px;
}
.dash-window {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--ink-100);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 999px; background: #DDE3EC; display: block; }
.dash-dots i:nth-child(1) { background: #FF6058; }
.dash-dots i:nth-child(2) { background: #FFBD2E; }
.dash-dots i:nth-child(3) { background: #28C840; }
.dash-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  background: white;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--ink-100);
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
  white-space: nowrap;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-mono);
}

.dash-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 380px;
}
.dash-side {
  background: #FAFBFD;
  border-right: 1px solid var(--ink-100);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}
.dash-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  padding: 0 6px;
}
.dash-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.dash-nav li {
  font-size: 13px;
  color: var(--ink-500);
  padding: 7px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-nav li.on {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}
.dash-i {
  font-size: 14px;
  width: 16px;
  display: inline-block;
  text-align: center;
}
.dash-plan {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.dash-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.dash-row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: #FAFBFD;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 12px;
}
.stat-label {
  font-size: 10px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
.stat-value { font-size: 18px; font-weight: 600; margin: 4px 0 8px; color: var(--ink-900); }
.stat-value-storage {
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}
.stat-bar {
  height: 5px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: var(--blue-500);
  border-radius: 999px;
  transition: width 800ms ease;
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.dash-card {
  background: #FAFBFD;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 14px;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.dash-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--ink-700);
}
.spark { width: 100%; height: 70px; }
.dash-sites { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-sites li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-700);
  padding: 6px 8px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--ink-100);
}
.dash-sites li .mono { margin-left: auto; font-size: 10px; color: var(--green-500); padding: 2px 6px; background: var(--green-50); border-radius: 4px; }

/* Floating chips */
.dash-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh-md);
}
.dash-chip-i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-500);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.dash-chip-1 { left: -16px; top: 22%; animation: float 5s ease-in-out infinite; }
.dash-chip-2 { right: -16px; bottom: 14%; animation: float 6s ease-in-out infinite -2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ Logo strip ============ */
.logo-strip {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.logos { display: flex; gap: 14px; flex-wrap: wrap; }
.logo-pill {
  font-size: 12px;
  color: var(--ink-400);
  padding: 6px 12px;
  border: 1px solid var(--ink-100);
  border-radius: 6px;
  background: white;
}

/* ============ Benefits ============ */
.benefit {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all 200ms;
}
.benefit:hover {
  box-shadow: var(--sh-md);
  border-color: var(--blue-100);
}
.benefit-num {
  font-size: 12px;
  color: var(--blue-700);
  letter-spacing: .1em;
  margin-bottom: 28px;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--ink-500); font-size: 16px; margin: 0; line-height: 1.45; }

/* ============ Products ============ */
.prod-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .prod-grid { grid-template-columns: 1fr; }
}
.prod {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 200ms;
  min-height: 260px;
}
.prod:hover { border-color: var(--blue-500); box-shadow: var(--sh-md); transform: translateY(-3px); }
.prod-lg {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  border-color: transparent;
}
.prod-lg h3, .prod-lg p, .prod-lg .btn-link { color: white; }
.prod-lg .prod-foot .mono { color: rgba(255,255,255,.6); }
.prod-head { display: flex; justify-content: space-between; align-items: start; }
.prod-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
}
.prod-lg .prod-icon { background: rgba(29,161,219,.18); color: #7CC9EA; }
.prod-icon svg { width: 22px; height: 22px; }
.prod h3 { margin: 0; font-size: 22px; }
.prod p { color: var(--ink-500); font-size: 14px; margin: 0; flex: 1; }
.prod-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  font-size: 13px;
}
.prod-lg .prod-foot { border-top-color: rgba(255,255,255,.1); }
.prod-foot .mono { font-size: 12px; color: var(--ink-500); }

/* ============ Differentials / Terminal ============ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diff-list li { display: flex; gap: 14px; }
.diff-list li > div { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; }
.diff-list li > div strong { color: white; font-weight: 600; }
.diff-check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(29,161,219,.2);
  color: #7CC9EA;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.terminal {
  background: #060A14;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.term-bar {
  background: #0E1524;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.term-bar i { width: 11px; height: 11px; border-radius: 999px; background: #2A3344; display: inline-block; }
.term-bar i:nth-child(1) { background: #FF6058; }
.term-bar i:nth-child(2) { background: #FFBD2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { font-size: 12px; color: rgba(255,255,255,.5); margin-left: 12px; }
.term-body {
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #C8D2E0;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}
.t-prompt { color: #7CC9EA; font-weight: 600; }
.t-path { color: #B8E5FF; }
.t-cmd { color: #FFE89A; font-weight: 600; }
.t-info { color: #94A3B8; }
.t-ok { color: #5EE19D; }
.t-dim { color: #2A3344; }
.t-cursor { color: #7CC9EA; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Plans ============ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plans-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans-grid-four { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.plan-feature {
  background: linear-gradient(160deg, var(--blue-700), var(--navy-700));
  color: white;
  border-color: transparent;
  transform: scale(1.03);
  z-index: 1;
  box-shadow: var(--sh-lg);
}
.plan-ribbon {
  position: absolute;
  top: -12px; left: 24px;
  background: white;
  color: var(--blue-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: var(--sh-md);
}
.plan-head h3 { font-size: 22px; }
.plan-feature .plan-head h3 { color: white; }
.plan-head p { font-size: 14px; margin: 6px 0 0; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 18px 0;
}
.plan-feature .plan-price { border-color: rgba(255,255,255,.15); }
.plan-currency { font-size: 20px; color: var(--ink-400); margin-right: 4px; align-self: start; margin-top: 6px; }
.plan-feature .plan-currency { color: rgba(255,255,255,.7); }
.plan-amount { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-cents { font-size: 22px; font-weight: 600; color: var(--ink-500); }
.plan-feature .plan-cents { color: rgba(255,255,255,.85); }
.plan-period { font-size: 14px; color: var(--ink-400); margin-left: 8px; }
.plan-feature .plan-period { color: rgba(255,255,255,.7); }
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-700);
}
.plan-feature .plan-feats { color: rgba(255,255,255,.85); }
.plan-feats li { padding-left: 26px; position: relative; }
.plan-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: 700;
}
.plan-feature .plan-feats li::before { color: #7CC9EA; }
.plan-feature .plan-feats li strong { color: white; }
.plan-feature .plan-head .muted { color: rgba(255,255,255,.85); }
.plan-feature .btn-primary { background: white; color: var(--blue-700); box-shadow: none; }
.plan-feature .btn-primary:hover { background: var(--blue-50); }
.plan-details-link { margin-top: auto; color: var(--blue-700); font-size: 14px; font-weight: 600; }
.plan-feature .plan-details-link { color: white; }
.plan-details-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.plans-grid-four .plan { padding: 28px 22px; gap: 18px; }
.plans-grid-four .plan-amount { font-size: clamp(40px, 4vw, 54px); }
.plans-grid-four .plan-feats { font-size: 13px; }

.storage-note {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--ink-700);
  background: var(--blue-50);
  border: 1px solid rgba(29,161,219,.24);
  border-radius: var(--r-lg);
}
.storage-note-icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue-700);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.storage-note strong {
  display: block;
  color: var(--ink-900);
  font-size: 15px;
  margin-bottom: 4px;
}
.storage-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.plans-foot {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .storage-note {
    margin-top: 24px;
    padding: 16px;
  }
}

/* ============ Testimonials ============ */
.test {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.test-quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -0.005em;
  flex: 1;
}
.test-who { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.metric-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 36px;
  background: var(--navy-900);
  border-radius: var(--r-xl);
  color: white;
}
.metric-strip > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-strip strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}
.metric-strip span { font-size: 13px; color: rgba(255,255,255,.6); }
@media (max-width: 700px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-head {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}
.faq-toggle { color: var(--ink-400); font-size: 22px; transition: transform 200ms; }
.faq.open .faq-toggle { transform: rotate(45deg); color: var(--blue-500); }
.faq-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
  transition: max-height 250ms ease, padding 250ms ease;
}
.faq.open .faq-body { padding: 0 24px 22px; max-height: 200px; }

/* ============ CTA Final ============ */
.cta-final { text-align: center; padding-bottom: 72px; }
.cta-final-inner { max-width: 760px; margin: 0 auto; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 160px minmax(0, 1fr); }
}

/* StackCP editorial sections shared by home and plans */
.btn-primary { background: var(--blue-700); }
.btn-primary:hover { background: var(--navy-700); }
.stackcp-story-section { background: white; }
.stackcp-story-section .section-head { margin-bottom: 36px; }
.stackcp-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding: 54px 0;
  border-bottom: 1px solid var(--ink-100);
}
.stackcp-story:first-of-type { padding-top: 0; }
.stackcp-story:last-child { padding-bottom: 0; border-bottom: 0; }
.stackcp-story:nth-of-type(even) .stackcp-story-media { order: -1; }
.stackcp-story-copy { max-width: 500px; }
.stackcp-story-copy h2 { margin: 18px 0; font-size: clamp(28px, 3vw, 40px); }
.stackcp-story-copy p { color: var(--ink-500); font-size: 17px; line-height: 1.75; }
.stackcp-story-link { display: inline-flex; margin-top: 14px; font-weight: 600; color: var(--blue-700); }
.stackcp-story-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.stackcp-story-media { min-width: 0; }
.stackcp-story-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1160 / 711;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--ink-100);
  box-shadow: var(--sh-md);
}
.home-migration-photo { margin: 0; min-width: 0; }
.home-migration-photo img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
@media (max-width: 760px) {
  .stackcp-story { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .stackcp-story:nth-of-type(even) .stackcp-story-media { order: initial; }
  .stackcp-story-copy p { font-size: 16px; }
}
