/* ==========================================================================
   Platform service pages (Shopify, WordPress)
   Shared by resources/views/frontend/services/_platform.blade.php
   ========================================================================== */

.pf {
  --pf-accent: #632adb;
  --pf-accent-2: #00b4d8;
  --pf-ink: #111827;
  --pf-text: #5b6477;
  --pf-line: #e7e9f2;
  --pf-soft: #f6f5ff;
  --pf-white: #ffffff;
  --pf-radius: 20px;
  color: var(--pf-text);
}
.pf h2, .pf h3, .pf h4 { color: var(--pf-ink); }
.pf-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.pf-section { padding: 96px 0; }
.pf-section-soft { background: var(--pf-soft); }
.pf-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.pf-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pf-accent); background: rgba(99, 42, 219, .08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.pf-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 600; }
.pf-lead { font-size: 18px; line-height: 1.75; margin: 0; }
.pf-grad {
  background: linear-gradient(90deg, var(--pf-accent), var(--pf-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.pf-hero {
  position: relative; overflow: hidden; padding: 170px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(0, 180, 216, .14), transparent 60%),
    radial-gradient(800px 520px at 10% 0%, rgba(99, 42, 219, .12), transparent 60%);
}
.pf-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pf-hero h1.pf-kicker { font-family: inherit !important; }
.pf-hero-heading {
  font-family: "Sora", sans-serif !important; font-size: clamp(38px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -.045em; color: var(--pf-ink); font-weight: 600; margin: 0 0 22px;
}
.pf-hero-text { font-size: 18.5px; line-height: 1.75; margin: 0 0 30px; max-width: 580px; }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.pf-btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px;
  border: 2px solid var(--pf-ink); color: var(--pf-ink); font-weight: 700; text-decoration: none; transition: all .2s ease;
}
.pf-btn-outline:hover { background: var(--pf-ink); color: #fff; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.pf-checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pf-ink); font-size: 15px; }
.pf-checks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: #e9fbf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Hero illustration (drawn in HTML/CSS) */
.pf-visual { position: relative; min-height: 460px; }
.pf-window {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--pf-line); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, .14); overflow: hidden;
}
.pf-window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--pf-line); background: #fafbff; }
.pf-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e3e5ee; }
.pf-window-bar em { margin-left: 12px; font-style: normal; font-size: 12.5px; color: #8a91a5; background: #fff; border: 1px solid var(--pf-line); border-radius: 999px; padding: 3px 14px; }
.pf-window-body { padding: 22px; }
.pf-float {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--pf-line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .14); padding: 14px 16px; font-size: 13.5px; color: var(--pf-ink);
}
.pf-float strong { display: block; font-size: 14.5px; }
.pf-float small { color: var(--pf-text); }
.pf-float-a { left: -26px; bottom: 34px; }
.pf-float-b { right: -18px; top: 64px; }
.pf-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pf-pill-green { background: #e9fbf1; color: #0f7a43; }
.pf-pill-purple { background: rgba(99, 42, 219, .1); color: var(--pf-accent); }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Store mock */
.pf-store-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pf-store-logo { font-weight: 800; color: var(--pf-ink); letter-spacing: -.02em; }
.pf-store-links { display: flex; gap: 14px; font-size: 12.5px; color: #8a91a5; }
.pf-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pf-product { border: 1px solid var(--pf-line); border-radius: 14px; padding: 10px; }
.pf-product-img { height: 92px; border-radius: 10px; margin-bottom: 10px; }
.pf-product-img.p1 { background: linear-gradient(135deg, #ffd9c2, #ffb38a); }
.pf-product-img.p2 { background: linear-gradient(135deg, #cfe9ff, #8ec5ff); }
.pf-product-img.p3 { background: linear-gradient(135deg, #e5dbff, #b9a2ff); }
.pf-line-a { height: 8px; border-radius: 6px; background: #e8eaf2; margin-bottom: 6px; }
.pf-line-b { height: 8px; width: 55%; border-radius: 6px; background: #d9dcea; }
.pf-cart { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--pf-soft); }
.pf-cart b { color: var(--pf-ink); font-size: 14px; }
.pf-cart span.btn-like { background: var(--pf-ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }

/* Editor mock */
.pf-editor { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.pf-editor-side { border-right: 1px solid var(--pf-line); padding-right: 14px; display: grid; gap: 8px; align-content: start; font-size: 12.5px; }
.pf-editor-side div { padding: 7px 10px; border-radius: 8px; color: #6b7285; }
.pf-editor-side div.on { background: rgba(99, 42, 219, .1); color: var(--pf-accent); font-weight: 700; }
.pf-block { border: 1px dashed #d6d9e6; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pf-block-title { height: 12px; width: 70%; border-radius: 6px; background: #1f2433; margin-bottom: 10px; opacity: .85; }
.pf-block-img { height: 70px; border-radius: 10px; background: linear-gradient(135deg, #d8ecff, #e8dcff); }
.pf-publish { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.pf-publish span { font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pf-line); }
.pf-publish span.go { background: var(--pf-accent); color: #fff; border-color: var(--pf-accent); }

/* ---------- Highlights strip ---------- */
.pf-strip { border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); background: #fff; }
.pf-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pf-strip-item { padding: 26px 22px; border-right: 1px solid var(--pf-line); display: flex; gap: 14px; align-items: flex-start; }
.pf-strip-item:last-child { border-right: 0; }
.pf-strip-item h3 { font-size: 16px; margin: 0 0 4px; }
.pf-strip-item p { font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- Icon cards ---------- */
.pf-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 42, 219, .12), rgba(0, 180, 216, .12)); color: var(--pf-accent);
}
.pf-icon svg { width: 24px; height: 24px; }
.pf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf-card {
  background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; height: 100%;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(17, 24, 39, .08); border-color: rgba(99, 42, 219, .25); }
.pf-card h3 { font-size: 20px; margin: 18px 0 10px; font-weight: 600; }
.pf-card p { margin: 0; line-height: 1.7; font-size: 15.5px; }
.pf-problem { display: flex; gap: 18px; align-items: flex-start; }
.pf-problem h3 { margin-top: 0; }
.pf-problem .pf-fix { margin-top: 12px; font-size: 14.5px; color: var(--pf-ink); font-weight: 600; }
.pf-problem .pf-fix::before { content: "Our fix: "; color: var(--pf-accent); }

/* ---------- Process ---------- */
.pf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.pf-step { position: relative; background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 30px 26px; }
.pf-step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-2)); margin-bottom: 18px; font-size: 16px;
}
.pf-step h3 { font-size: 19px; margin: 0 0 8px; }
.pf-step p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- Included list ---------- */
.pf-included { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.pf-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.pf-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; color: var(--pf-ink); font-weight: 500; }
.pf-list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(99, 42, 219, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23632adb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Comparison ---------- */
.pf-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf-option { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 30px; display: flex; flex-direction: column; }
.pf-option.is-main { border: 2px solid var(--pf-accent); box-shadow: 0 24px 60px rgba(99, 42, 219, .14); position: relative; }
.pf-option.is-main::before {
  content: "This page"; position: absolute; top: -13px; left: 26px; background: var(--pf-accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.pf-option h3 { font-size: 22px; margin: 0 0 6px; }
.pf-option .pf-best { font-size: 14.5px; margin: 0 0 18px; }
.pf-option ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.pf-option li { font-size: 15px; line-height: 1.55; padding-left: 20px; position: relative; }
.pf-option li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--pf-accent-2); }
.pf-option a { margin-top: auto; font-weight: 700; color: var(--pf-accent); text-decoration: none; }
.pf-option a:hover { text-decoration: underline; }

/* ---------- Integrations / industries ---------- */
.pf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--pf-line);
  border-radius: 999px; padding: 12px 20px; font-weight: 600; color: var(--pf-ink); font-size: 15px; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
a.pf-chip:hover { border-color: var(--pf-accent); transform: translateY(-2px); color: var(--pf-accent); }
.pf-chip .pf-dot { color: var(--pf-accent-2); }

/* ---------- Big CTA ---------- */
.pf-cta {
  border-radius: 28px; padding: 64px 56px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1b1340 0%, #3a1f94 55%, #0b7fa8 100%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.pf-cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
}
.pf-cta h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.03em; }
.pf-cta p { color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.7; margin: 0; }
.pf-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.pf-cta-actions .pf-btn-light {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1b1340; font-weight: 800;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
}
.pf-cta-actions .pf-btn-ghost { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .pf-steps { grid-template-columns: repeat(2, 1fr); }
  .pf-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-strip-item:nth-child(2) { border-right: 0; }
  .pf-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--pf-line); }
}
@media (max-width: 991.98px) {
  .pf-section { padding: 72px 0; }
  .pf-hero { padding: 140px 0 72px; }
  .pf-hero-grid, .pf-included, .pf-cta { grid-template-columns: 1fr; }
  .pf-grid-3, .pf-compare { grid-template-columns: 1fr 1fr; }
  .pf-visual { min-height: 0; margin: 10px 12px 0; }
  .pf-cta { padding: 48px 32px; }
}
@media (max-width: 640px) {
  .pf-hero { padding: 150px 0 64px; }
  .pf-grid-2, .pf-grid-3, .pf-compare, .pf-steps, .pf-list, .pf-strip-grid { grid-template-columns: 1fr; }
  .pf-strip-item { border-right: 0; border-bottom: 1px solid var(--pf-line); }
  .pf-strip-item:last-child { border-bottom: 0; }
  .pf-float-a { left: -6px; bottom: -18px; }
  .pf-float-b { right: -6px; top: -18px; }
  .pf-products { grid-template-columns: repeat(2, 1fr); }
  .pf-products .pf-product:nth-child(3) { display: none; }
  .pf-editor { grid-template-columns: 1fr; }
  .pf-editor-side { display: none; }
  .pf-card, .pf-option, .pf-step { padding: 24px; }
  .pf-cta { padding: 40px 24px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-chip, .pf-btn-outline { transition: none; }
  .pf-card:hover, a.pf-chip:hover { transform: none; }
}
