/* =================================================================
   WriterPi — public website styles
   Three themes (Dark default, Forest, Galaxy). The active theme is set
   on <html data-theme="..."> by theme.js / the no-flash head snippet.
   ================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
  transition: background .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* =====================================================
   THEME TOKENS
   Dark is the default. theme.js sets data-theme on <html>,
   and a tiny no-flash snippet in each page <head> applies
   the saved theme before the first paint.
   ===================================================== */
:root,
html[data-theme="dark"] {
  --bg:          #1E1F23;
  --bg-soft:     #26282E;
  --bg-sunken:   #17181B;
  --surface:     #26282E;
  --nav:         rgba(23, 24, 27, 0.88);
  --text:        #F1F3F5;
  --muted:       #AEB4BD;
  --border:      #3A3D45;
  --accent:      #56C98A;
  --accent-2:    #4C8B5E;
  --accent-soft: #243027;
  --grad: linear-gradient(135deg, #5DA975, #2D6A4F);
}
html[data-theme="forest"] {
  --bg:          #FAFCF7;
  --bg-soft:     #F0F4ED;
  --bg-sunken:   #E8EDE3;
  --surface:     #FFFFFF;
  --nav:         rgba(250, 252, 247, 0.85);
  --text:        #14201A;
  --muted:       #5C7560;
  --border:      #D9E3D1;
  --accent:      #2D6A4F;
  --accent-2:    #4C8B5E;
  --accent-soft: #E8EDE3;
  --grad: linear-gradient(135deg, #5DA975, #2D6A4F);
}
html[data-theme="galaxy"] {
  --bg:          #07090F;
  --bg-soft:     #11141C;
  --bg-sunken:   #161B2A;
  --surface:     #11141C;
  --nav:         rgba(7, 9, 15, 0.88);
  --text:        #ECF4FF;
  --muted:       #98A8C4;
  --border:      #232A3E;
  --accent:      #5BE49B;
  --accent-2:    #2BB57F;
  --accent-soft: #14302A;
  --grad: linear-gradient(135deg, #5BE49B, #00AA66);
}

/* =====================================================
   NAV
   ===================================================== */
.wp-nav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: var(--nav);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.wp-nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.1px;
}
.wp-nav-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.wp-nav-links { display: flex; gap: 26px; align-items: center; flex: 1; justify-content: center; }
.wp-nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.wp-nav-links a:hover { color: var(--text); }
.wp-nav-theme { margin-left: 14px; padding-left: 18px; border-left: 1px solid var(--border); display: inline-flex; align-items: center; }
.wp-nav-actions { display: flex; align-items: center; gap: 10px; }
.wp-nav-actions .wp-btn { padding: 8px 14px; font-size: 13.5px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.wp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border: 1px solid transparent;
  border-radius: 9px; font-weight: 600; font-size: 14px;
  transition: filter .15s, background .15s, color .15s, border-color .15s, transform .08s;
}
.wp-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 1px 2px rgba(45,106,79,0.18); }
.wp-btn-primary:hover { filter: brightness(1.06); }
.wp-btn-primary:active { transform: translateY(1px); }
.wp-btn-ghost   { background: var(--surface); color: var(--accent); border-color: var(--border); }
.wp-btn-ghost:hover { background: var(--bg-soft); border-color: var(--accent-2); }
.wp-btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }
.wp-btn-block { width: 100%; }
.wp-btn-danger { color: #DC2626; border-color: #FECACA; }
.wp-btn-danger:hover { background: #FEF2F2; }

.wp-link { background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.wp-link:hover { color: var(--text); }

.wp-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: none; color: var(--muted);
  font-size: 17px; transition: background .12s, color .12s;
}
.wp-iconbtn:hover { background: var(--bg-soft); color: var(--text); }

/* =====================================================
   HERO
   ===================================================== */
.wp-hero {
  position: relative;
  padding: 96px 32px 80px;
  background: radial-gradient(ellipse at 20% 0%, rgba(93,169,117,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 95% 25%, rgba(45,106,79,0.10) 0%, transparent 55%),
              var(--bg);
  overflow: hidden;
}
.wp-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.wp-hero-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}
.wp-hero h1 {
  font-size: 56px; line-height: 1.05;
  font-weight: 800; letter-spacing: -1.4px;
  margin-bottom: 18px;
}
.wp-hero-sub {
  font-size: 18px; color: var(--muted); margin-bottom: 30px;
  max-width: 600px; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.wp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.wp-hero-trust { font-size: 12.5px; color: var(--muted); }

/* Floating orbs in the hero background — visual flair */
.wp-hero-art {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.wp-hero-orb {
  position: absolute; width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,169,117,0.4), transparent 65%);
  top: -80px; right: -80px;
  filter: blur(40px);
  animation: orb-drift 18s ease-in-out infinite;
}
.wp-hero-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(45,106,79,0.35), transparent 65%);
  top: 60%; left: -60px;
  animation-delay: -6s;
}
.wp-hero-orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(167,139,250,0.22), transparent 65%);
  top: 30%; right: 20%;
  animation-delay: -12s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(40px, -30px); }
  66%      { transform: translate(-30px, 50px); }
}

/* =====================================================
   SECTIONS / CARDS / GRID
   ===================================================== */
.wp-section { padding: 80px 32px; max-width: 1180px; margin: 0 auto; }
.wp-section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  max-width: none; padding: 80px 32px;
}
.wp-section-head { text-align: center; margin-bottom: 50px; }
.wp-section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 10px; }
.wp-section-head p  { color: var(--muted); font-size: 16px; max-width: 580px; margin: 0 auto; }

.wp-grid { display: grid; gap: 20px; max-width: 1140px; margin: 0 auto; }
.wp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wp-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .wp-grid-3, .wp-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wp-grid-3, .wp-grid-4 { grid-template-columns: 1fr; }
}

.wp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.wp-card:hover { border-color: var(--accent-2); box-shadow: 0 8px 24px rgba(45,106,79,0.08); transform: translateY(-2px); }
.wp-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--bg-soft); font-size: 20px;
  margin-bottom: 14px;
}
.wp-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.wp-card p  { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* =====================================================
   PRICING
   ===================================================== */
/* ===== Pricing — staggered heights, lift-on-hover, glowing featured plan ===== */
.wp-pricing { gap: 24px; align-items: stretch; }
.wp-pricing .wp-plan {
  position: relative;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
@keyframes wpPlanFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Stagger entry — Free fastest, Max slowest */
.wp-pricing .wp-plan:nth-child(1) { animation: wpPlanFadeUp .55s ease-out 0.05s both; }
.wp-pricing .wp-plan:nth-child(2) { animation: wpPlanFadeUp .55s ease-out 0.18s both; }
.wp-pricing .wp-plan:nth-child(3) { animation: wpPlanFadeUp .55s ease-out 0.30s both; }
.wp-pricing .wp-plan:nth-child(4) { animation: wpPlanFadeUp .55s ease-out 0.42s both; }
.wp-pricing .wp-plan:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(45,106,79,0.22);
}

.wp-plan-name    { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.wp-plan-price   { font-size: 38px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.wp-plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.wp-plan-price span.wp-price-main { font-size: 38px; font-weight: 900; color: var(--text); letter-spacing: -1.2px; }
.wp-plan-credits { color: var(--muted); margin: 6px 0 18px; font-size: 13.5px; }

/* === Offer / discount effects === */
@keyframes wpPricePop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes wpPriceWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25%      { transform: rotate(-10deg) scale(1.15); }
  75%      { transform: rotate(10deg) scale(1.15); }
}
@keyframes wpOfferShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.wp-plan-offer {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,0.45) 0%,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.45) 60%,
      rgba(255,255,255,0) 100%) ,
    linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  background-size: 250% 100%, 100% 100%;
  background-blend-mode: overlay, normal;
  animation: wpOfferShimmer 2.4s linear infinite;
  color: #5C3719;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.wp-price-strike {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(239,68,68,0.85);
  letter-spacing: -0.5px;
  margin-right: 2px;
}
.wp-price-pop {
  display: inline-block;
  animation: wpPricePop 2.2s ease-in-out infinite;
  color: var(--accent) !important;
  text-shadow: 0 0 14px rgba(86,201,138,0.4);
}
.wp-price-emoji {
  display: inline-block !important;
  font-size: 28px !important;
  margin-left: 4px;
  animation: wpPriceWiggle 2.4s ease-in-out infinite;
}
.wp-plan-feats { list-style: none; margin: 0 0 22px; padding: 0; font-size: 13.5px; }
.wp-plan-feats li { padding: 7px 0; color: var(--text); border-bottom: 1px dashed var(--border); }
.wp-plan-feats li:last-child { border-bottom: none; }
.wp-plan-cta { width: 100%; }

/* === Featured (Pro) — lifted, animated gradient border, glowing === */
@keyframes wpFeaturedGlow {
  0%, 100% { box-shadow: 0 14px 38px rgba(45,106,79,0.20), 0 0 0 2px rgba(86,201,138,0.30); }
  50%      { box-shadow: 0 20px 50px rgba(45,106,79,0.35), 0 0 0 4px rgba(86,201,138,0.45); }
}
@keyframes wpFeaturedFloat {
  0%, 100% { transform: translateY(-12px); }
  50%      { transform: translateY(-18px); }
}
.wp-plan-featured {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1.5px solid var(--accent);
  /* Permanently raised compared to neighbors — visually anchors the eye */
  animation: wpFeaturedFloat 3.6s ease-in-out infinite, wpFeaturedGlow 2.8s ease-in-out infinite;
  z-index: 2;
}
.wp-plan-featured:hover {
  transform: translateY(-22px) !important;
}
.wp-plan-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(45,106,79,0.4);
  white-space: nowrap;
}
.wp-pricing-fineprint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* =====================================================
   INSTALL STEPS
   ===================================================== */
.wp-install { max-width: 720px; margin: 0 auto; text-align: center; }
.wp-install-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.wp-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  text-align: left;
}
.wp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800;
  flex-shrink: 0;
}
.wp-step b { display: block; font-size: 14.5px; }
.wp-step-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* =====================================================
   FOOTER
   ===================================================== */
.wp-footer {
  background: var(--bg-soft);
  padding: 60px 32px 30px;
  border-top: 1px solid var(--border);
}
.wp-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px; max-width: 1180px; margin: 0 auto;
}
.wp-footer-grid h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.4px; }
.wp-footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.wp-footer-grid a:hover { color: var(--text); }
.wp-footer-tag { color: var(--muted); margin-top: 8px; }
.wp-footer-bottom {
  text-align: center; color: var(--muted); font-size: 12px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) { .wp-footer-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================
   MODAL
   ===================================================== */
.wp-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 32, 25, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.wp-modal-backdrop.show { display: flex; }
.wp-modal {
  background: var(--surface); border-radius: 18px;
  padding: 36px 32px; max-width: 380px; width: 100%;
  text-align: center; position: relative;
  box-shadow: 0 30px 80px rgba(15, 32, 25, 0.30);
  animation: pop-in .18s ease-out;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wp-modal-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.wp-modal h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.wp-modal p  { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.wp-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--muted); font-size: 22px; line-height: 1;
}
.wp-modal-close:hover { background: var(--bg-soft); color: var(--text); }
.wp-modal-back { margin-top: 14px; font-size: 13px; }
.wp-modal-msg { margin-top: 12px; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.wp-modal-msg.error { color: #DC2626; }
.wp-modal-msg.ok    { color: #16A34A; }

/* =====================================================
   FORM INPUTS
   ===================================================== */
.wp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--surface);
  outline: none;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.wp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }
.wp-input-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; letter-spacing: 6px; font-size: 18px; font-weight: 700; }
.wp-input-sm   { padding: 8px 10px; font-size: 13px; margin: 0; border-width: 1px; }
.wp-codebox {
  background: var(--bg-soft);
  border: 1.5px dashed var(--accent);
  padding: 14px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 8px;
  margin-bottom: 12px;
}
.wp-codebox-hint { font-size: 11.5px; color: var(--muted); margin-top: -4px; margin-bottom: 14px; }

/* =====================================================
   APP SHELL (chat app page)
   ===================================================== */
body.wp-app {
  background: var(--bg);
  height: 100vh; overflow: hidden;
}
.wp-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  position: relative;
}

/* ---------- Sidebar ---------- */
.wp-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wp-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
}
.wp-side-brand { font-size: 16px; }
.wp-side-search { padding: 0 16px 12px; }
.wp-side-list {
  flex: 1; overflow-y: auto;
  padding: 0 12px 12px;
}
.wp-side-list::-webkit-scrollbar { width: 6px; }
.wp-side-list::-webkit-scrollbar-thumb { background: rgba(45,106,79,0.18); border-radius: 3px; }

.wp-chat-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .08s;
  font-family: inherit;
}
.wp-chat-item:hover { background: var(--surface); border-color: var(--border); }
.wp-chat-item.active {
  background: var(--surface);
  border-color: var(--accent-2);
  box-shadow: 0 2px 8px rgba(45,106,79,0.10);
}
.wp-chat-title {
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wp-chat-meta {
  font-size: 11px; color: var(--muted); margin-top: 3px;
  display: flex; gap: 6px; align-items: center;
}
.wp-chat-meta .wp-chat-host {
  background: var(--bg-soft);
  padding: 1px 6px; border-radius: 999px;
  max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wp-side-foot {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
}
.wp-side-user {
  display: flex; align-items: center; gap: 10px;
}
.wp-side-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.wp-side-userinfo { flex: 1; min-width: 0; }
.wp-side-userline {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wp-side-planline { font-size: 11px; color: var(--muted); }
.wp-tag {
  background: var(--accent); color: #fff;
  padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.6px;
}

/* =====================================================
   SCROLL BALL — the signature widget
   Drag the ball up/down to scrub past chats fast.
   ===================================================== */
.wp-scrollball {
  position: absolute;
  left: 268px;          /* sits on the seam between sidebar and main */
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  cursor: grab;
  width: 28px; height: 28px;
  user-select: none;
}
.wp-scrollball:active,
.wp-scrollball.dragging { cursor: grabbing; }
.wp-scrollball-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFF 0%, #C8E2D0 35%, #4C8B5E 75%, #1B3F2D 100%);
  box-shadow:
    0 6px 14px rgba(45,106,79,0.40),
    inset 0 -3px 6px rgba(0,0,0,0.18),
    inset 0 3px 6px rgba(255,255,255,0.30);
  transition: transform .12s ease-out;
}
.wp-scrollball:hover .wp-scrollball-inner { transform: scale(1.12); }
.wp-scrollball.dragging .wp-scrollball-inner { transform: scale(1.18); }
.wp-scrollball-tooltip {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: #14201A;
  color: #FAFCF7;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  max-width: 240px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.wp-scrollball-tooltip::before {
  content: '';
  position: absolute;
  left: -5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: #14201A;
}
.wp-scrollball.dragging .wp-scrollball-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- Main column ---------- */
.wp-main {
  display: flex; flex-direction: column;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}
.wp-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--nav);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.wp-topbar-title h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.wp-topbar-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.wp-topbar-tools { display: flex; align-items: center; gap: 12px; }
.wp-pill-group {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}
.wp-pill-btn {
  background: transparent; border: none;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.wp-pill-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(45,106,79,0.12);
}

/* ---------- Thread ---------- */
.wp-thread {
  flex: 1;
  overflow-y: auto;
  padding: 30px 28px 100px;
  scroll-behavior: smooth;
}
.wp-thread::-webkit-scrollbar { width: 8px; }
.wp-thread::-webkit-scrollbar-thumb { background: rgba(45,106,79,0.18); border-radius: 4px; }

.wp-empty-state {
  max-width: 540px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 20px;
}
.wp-empty-orb {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--grad);
  margin: 0 auto 20px;
  box-shadow: 0 14px 30px rgba(45,106,79,0.30);
  position: relative;
}
.wp-empty-orb::after {
  content: '✨';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.wp-empty-state h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.wp-empty-state p  { color: var(--muted); margin-bottom: 24px; }
.wp-empty-starters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wp-starter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  transition: border-color .12s, background .12s, transform .08s;
}
.wp-starter:hover {
  border-color: var(--accent-2);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

/* ---------- Bubbles ---------- */
.wp-bubble-wrap {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
}
.wp-bubble-wrap.user { justify-content: flex-end; }
.wp-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.wp-bubble.assistant {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.wp-bubble.user {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.wp-bubble-meta {
  font-size: 11px; color: var(--muted);
  margin-top: 4px;
  padding: 0 4px;
}

/* ---------- Composer ---------- */
.wp-composer {
  border-top: 1px solid var(--border);
  background: var(--nav);
  backdrop-filter: blur(10px);
  padding: 14px 28px 16px;
  flex-shrink: 0;
}
.wp-composer-controls {
  display: flex; gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.wp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all .12s;
}
.wp-chip:hover { color: var(--text); border-color: var(--accent-2); }
.wp-chip-active {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.wp-composer-input {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px 8px;
  transition: border-color .15s, box-shadow .15s;
}
.wp-composer-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,79,0.10); }
.wp-attach { font-size: 16px; }
#wpInput {
  flex: 1; resize: none; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--text);
  padding: 10px 4px; max-height: 200px;
  background: transparent;
}
.wp-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
}
.wp-composer-foot {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted);
  margin-top: 7px;
  padding: 0 4px;
}

/* =====================================================
   DRAWER (Settings)
   ===================================================== */
.wp-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(15,32,25,0.10);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 80;
  display: flex; flex-direction: column;
}
.wp-drawer.show { transform: translateX(0); }
.wp-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.wp-drawer-head h3 { font-size: 17px; font-weight: 700; }
.wp-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 18px 20px 30px;
}
.wp-set-section { margin-bottom: 28px; }
.wp-set-label {
  font-size: 11px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.wp-set-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.wp-set-row:last-child { border-bottom: none; }
.wp-set-val { color: var(--muted); }
.wp-set-help { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.wp-link-state {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-soft); border-radius: 8px;
  font-size: 12.5px;
}
.wp-link-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #94A3B8;
}
.wp-link-dot.connected { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }

.wp-theme-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wp-theme-opt {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: border-color .12s;
}
.wp-theme-opt:hover { border-color: var(--accent-2); }
.wp-theme-opt.active { border-color: var(--accent); background: var(--bg-soft); }
.wp-theme-dot {
  width: 22px; height: 22px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.wp-theme-dot-forest { background: linear-gradient(135deg, #5DA975, #2D6A4F); }
.wp-theme-dot-dark   { background: linear-gradient(135deg, #38383E 0%, #18181C 100%); }
.wp-theme-dot-galaxy { background:
    radial-gradient(circle 2px at 32% 30%, #5BE49B 50%, transparent 51%),
    radial-gradient(circle 1.6px at 70% 64%, #FF6B6B 50%, transparent 51%),
    linear-gradient(135deg, #0E2A1E, #07090F); }

/* =====================================================
   THEME OVERRIDES on the app shell
   ===================================================== */
body.wp-app[data-theme="dark"] {
  --bg: #232328; --bg-soft: #2A2A2E; --bg-sunken: #1F1F23;
  --text: #F5F5F7; --muted: #C9C9D2; --border: #4A4A52;
  --accent: #56C98A; --accent-2: #4C8B5E;
  --grad: linear-gradient(135deg, #4C8B5E, #2D6A4F);
}
body.wp-app[data-theme="galaxy"] {
  --bg: #07090F; --bg-soft: #11141C; --bg-sunken: #161B2A;
  --text: #ECF4FF; --muted: #98A8C4; --border: #232A3E;
  --accent: #5BE49B; --accent-2: #2BB57F;
  --grad: linear-gradient(135deg, #5BE49B, #00AA66);
}

/* dark themes need card overrides */
body.wp-app[data-theme="dark"] .wp-card,
body.wp-app[data-theme="galaxy"]   .wp-card,
body.wp-app[data-theme="dark"] .wp-bubble.assistant,
body.wp-app[data-theme="galaxy"]   .wp-bubble.assistant,
body.wp-app[data-theme="dark"] .wp-composer-input,
body.wp-app[data-theme="galaxy"]   .wp-composer-input,
body.wp-app[data-theme="dark"] .wp-chip,
body.wp-app[data-theme="galaxy"]   .wp-chip,
body.wp-app[data-theme="dark"] .wp-input,
body.wp-app[data-theme="galaxy"]   .wp-input,
body.wp-app[data-theme="dark"] .wp-chat-item:hover,
body.wp-app[data-theme="galaxy"]   .wp-chat-item:hover,
body.wp-app[data-theme="dark"] .wp-chat-item.active,
body.wp-app[data-theme="galaxy"]   .wp-chat-item.active,
body.wp-app[data-theme="dark"] .wp-starter,
body.wp-app[data-theme="galaxy"]   .wp-starter,
body.wp-app[data-theme="dark"] .wp-theme-opt,
body.wp-app[data-theme="galaxy"]   .wp-theme-opt {
  background: var(--bg-soft);
  color: var(--text);
}

/* Light tweak: make pill-group reflect theme */
body.wp-app .wp-pill-btn.active { color: var(--accent); }

/* ============================================
   FEATURES SECTION — animated, premium
   ============================================ */
.wp-features { position: relative; }
.wp-section-pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(86,201,138,0.12);
  border: 1px solid rgba(86,201,138,0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 14px;
}
.wp-features .wp-section-head h2 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
.wp-features .wp-section-head p {
  font-size: 16.5px;
  max-width: 640px;
}

/* ----- Card hover lift + glow ----- */
.wp-feat-card {
  position: relative;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.wp-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%),
    rgba(86,201,138,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.wp-feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 20px 44px rgba(45,106,79,0.22),
    0 0 0 1px rgba(86,201,138,0.18);
}
.wp-feat-card:hover::before { opacity: 1; }

/* ----- Reveal-on-scroll: cards fade-in staggered ----- */
@keyframes wpFeatReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wp-feat-card[data-reveal] {
  opacity: 0;
}
.wp-feat-card.is-revealed {
  animation: wpFeatReveal .65s cubic-bezier(.2,.8,.2,1) both;
}
.wp-feat-card.is-revealed:nth-child(1)  { animation-delay: 0.00s; }
.wp-feat-card.is-revealed:nth-child(2)  { animation-delay: 0.08s; }
.wp-feat-card.is-revealed:nth-child(3)  { animation-delay: 0.16s; }
.wp-feat-card.is-revealed:nth-child(4)  { animation-delay: 0.24s; }
.wp-feat-card.is-revealed:nth-child(5)  { animation-delay: 0.32s; }
.wp-feat-card.is-revealed:nth-child(6)  { animation-delay: 0.40s; }
.wp-feat-card.is-revealed:nth-child(7)  { animation-delay: 0.48s; }
.wp-feat-card.is-revealed:nth-child(8)  { animation-delay: 0.56s; }
.wp-feat-card.is-revealed:nth-child(9)  { animation-delay: 0.64s; }

/* ----- Icon glow + subtle float ----- */
@keyframes wpIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.wp-icon-glow {
  position: relative;
  width: 52px; height: 52px;
  font-size: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 20px rgba(45,106,79,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
  animation: wpIconFloat 4s ease-in-out infinite;
}
.wp-feat-card:nth-child(2n) .wp-icon-glow { animation-delay: -1s; }
.wp-feat-card:nth-child(3n) .wp-icon-glow { animation-delay: -2s; }
.wp-feat-card:hover .wp-icon-glow {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(86,201,138,0.15) 0%, rgba(45,106,79,0.06) 100%);
  box-shadow:
    0 10px 28px rgba(86,201,138,0.25),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-4px) scale(1.05);
}
.wp-feat-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.wp-feat-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Mobile feature grid */
@media (max-width: 720px) {
  .wp-features .wp-section-head h2 { font-size: 30px; }
  .wp-features .wp-section-head p  { font-size: 14.5px; }
  .wp-feat-card { padding: 20px; }
}

/* ===== Demo frame — rotating mask snake (the visible big-box rotating effect) ===== */
@keyframes wpDemoRotate { to { transform: rotate(360deg); } }
.wp-demo-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(45,106,79,0.28);
  isolation: isolate;
}
/* Lead snake — bright arc that rotates clockwise */
.wp-demo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 6px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 200deg,
    #5DE49B 230deg,
    #38BDF8 270deg,
    #A78BFA 310deg,
    transparent 340deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: wpDemoRotate 3.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
/* Trail snake — softer, blurred, opposite direction */
.wp-demo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 6px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 210deg,
    rgba(94,234,212,0.85) 240deg,
    rgba(167,139,250,0.70) 290deg,
    transparent 330deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: wpDemoRotate 5.5s linear infinite reverse;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.wp-demo-frame > img,
.wp-demo-frame > video,
.wp-demo-frame > .wp-demo-placeholder {
  position: relative;
  z-index: 1;
}
.wp-demo-frame > img,
.wp-demo-frame > video,
.wp-demo-frame > .wp-demo-placeholder {
  display: block;
  width: 100%;
  height: auto;               /* let the GIF show at its natural aspect ratio */
  max-height: none;           /* no cropping — show the whole thing */
  object-fit: contain;        /* if a fixed parent ever applies, letterbox not crop */
  border-radius: 0;
  background: var(--surface);
}
.wp-demo-frame > .wp-demo-placeholder {
  text-align: center;
  padding: 80px 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .wp-demo-frame { padding: 4px; border-radius: 22px; }
  .wp-demo-frame::before, .wp-demo-frame::after { padding: 4px; border-radius: 22px; }
  .wp-demo-frame > img,
  .wp-demo-frame > video { border-radius: 18px; max-height: none; }
}

/* ===== Rate / social proof band (above footer) ===== */
.wp-rate-band {
  padding: 40px 32px 60px;
  display: flex;
  justify-content: center;
}
.wp-rate-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  width: 100%;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 32px;
  box-shadow: 0 8px 24px rgba(45,106,79,0.08);
}
.wp-rate-info { flex: 1; min-width: 0; }
.wp-rate-stars { font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.wp-rate-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.3px; }
.wp-rate-card p  { font-size: 14px; color: var(--muted); line-height: 1.5; }
.wp-rate-card .wp-btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .wp-rate-band { padding: 32px 18px 48px; }
  .wp-rate-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px;
    gap: 16px;
  }
  .wp-rate-card .wp-btn { width: 100%; justify-content: center; }
  .wp-rate-card h3 { font-size: 18px; }
}

/* =====================================================
   MOBILE / NARROW VIEWPORTS — site shell + hero
   Single source of truth for the landing/contact/account
   pages on phones. Tightens padding, stacks the nav, and
   scales hero typography so nothing overflows on 360px.
   ===================================================== */
@media (max-width: 720px) {
  body { font-size: 14.5px; }

  /* --- NAV: brand left, CTA right, links wrap below --- */
  .wp-nav {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wp-nav-brand { font-size: 15px; }
  .wp-nav-brand span:last-child { display: inline; }
  .wp-nav-links {
    order: 3;
    width: 100%;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    flex: none;
  }
  .wp-nav-links a { font-size: 13px; }
  .wp-nav-theme { border-left: none; padding-left: 0; margin-left: 0; }
  .wp-nav-actions { gap: 8px; }
  .wp-nav-actions .wp-btn { padding: 7px 12px; font-size: 13px; }

  /* --- HERO: shrink heading, tighten padding --- */
  .wp-hero { padding: 56px 18px 50px; }
  .wp-hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.8px; }
  .wp-hero-sub { font-size: 15px; margin-bottom: 22px; }
  .wp-hero-cta .wp-btn-lg { padding: 11px 18px; font-size: 14.5px; }
  .wp-hero-cta { gap: 8px; }

  /* --- SECTIONS --- */
  .wp-section, .wp-section-alt { padding: 56px 18px; }
  .wp-section-head { margin-bottom: 34px; }
  .wp-section-head h2 { font-size: 26px; }
  .wp-section-head p  { font-size: 14.5px; }

  /* --- CARDS / GRID --- */
  .wp-card { padding: 18px; }
  .wp-card h3 { font-size: 15px; }
  .wp-card p  { font-size: 13px; }

  /* --- PRICING --- */
  .wp-plan-price { font-size: 30px; }

  /* --- INSTALL STEPS --- */
  .wp-step { padding: 12px 14px; }
  .wp-step b { font-size: 14px; }
  .wp-step-sub { font-size: 12.5px; }

  /* --- FOOTER --- */
  .wp-footer { padding: 40px 18px 24px; }
  .wp-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .wp-footer-grid h4 { font-size: 12.5px; }

  /* --- MODALS / FORMS --- */
  .wp-modal { padding: 28px 22px; }
  .wp-input { font-size: 16px; /* prevents iOS zoom-on-focus */ }
  .wp-input-mono, .wp-codebox { letter-spacing: 4px; font-size: 20px; }

  /* --- BUTTONS --- */
  .wp-btn-lg { padding: 12px 18px; font-size: 14.5px; }
  .wp-btn { padding: 9px 14px; }
  .wp-hero-cta .wp-btn { min-width: 0; }
}

/* Ultra-narrow phones (≤380px) — one more tier */
@media (max-width: 400px) {
  .wp-nav { padding: 9px 12px; }
  .wp-nav-links { gap: 10px; font-size: 12.5px; }
  .wp-nav > div:last-child .wp-btn { padding: 6px 10px; font-size: 12.5px; }
  .wp-hero h1 { font-size: 30px; }
  .wp-hero-sub { font-size: 14.5px; }
  .wp-section-head h2 { font-size: 23px; }
  .wp-footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   PREMIUM MINIMAL PASS (v1.0.13)
   Overrides + additions layered on top of the base styles above so the
   base file stays intact and reversible. Adds:
     - Dismissible free-Lite offer strip
     - Refined nav (tighter spacing, underline hover)
     - Hero price chip
     - Cleaner pricing (kills bouncy infinite animations, subtle glow only)
     - Softer feature-card reveal
   Reference vibe: Linear / Vercel — quiet, confident, no motion sickness.
   ===================================================================== */

/* --- Offer strip: sticky at very top, above the nav --- */
.wp-offer-strip {
  position: sticky; top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(45,106,79,0.95), rgba(86,201,138,0.9));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  animation: wpOfferSlideDown .35s ease-out both;
}
@keyframes wpOfferSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.wp-offer-strip-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 32px;
  font-size: 13px; font-weight: 500;
}
.wp-offer-strip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.9);
  animation: wpOfferPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes wpOfferPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.35); }
}
.wp-offer-strip-text { flex: 1; letter-spacing: 0.005em; }
.wp-offer-strip-text b { font-weight: 700; }
.wp-offer-strip-cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff; font-weight: 700; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,0.32);
  transition: background .15s, transform .15s;
}
.wp-offer-strip-cta:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.wp-offer-strip-close {
  background: transparent; border: none; color: #fff;
  font-size: 22px; line-height: 1;
  opacity: 0.65; padding: 0 4px;
  transition: opacity .15s;
}
.wp-offer-strip-close:hover { opacity: 1; }
@media (max-width: 640px) {
  .wp-offer-strip-inner { padding: 9px 14px; gap: 10px; font-size: 12px; }
  .wp-offer-strip-text  { line-height: 1.35; }
  .wp-offer-strip-cta   { padding: 4px 10px; font-size: 11.5px; white-space: nowrap; }
}

/* --- Nav refinements: true grid centering, glow hover, animated logo mark --- */
.wp-nav.wp-nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 32px;
}
.wp-nav-grid .wp-nav-brand   { justify-self: start; }
.wp-nav-grid .wp-nav-links   { justify-self: center; flex: none; }
.wp-nav-grid .wp-nav-actions { justify-self: end; }

.wp-nav-links {
  gap: 6px;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.wp-nav-links a {
  position: relative;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  transition: color .18s ease, background .18s ease, box-shadow .25s ease;
  overflow: hidden;
}
.wp-nav-links a::after { content: none !important; }
.wp-nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(86,201,138,0.28) inset,
    0 0 18px rgba(86,201,138,0.25);
}

/* Gentle 'breathe' pulse + soft glow on the Wπ mark */
.wp-nav-mark-anim {
  animation: wpMarkBreathe 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(86,201,138,0.55);
}
@keyframes wpMarkBreathe {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(45,106,79,0.35), 0 0 0 0 rgba(86,201,138,0.5);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(45,106,79,0.45), 0 0 20px rgba(86,201,138,0.55);
  }
}
.wp-nav-brand:hover .wp-nav-mark-anim { animation-duration: 0.6s; }

/* Theme switcher divider (now on the right) */
.wp-nav-theme {
  margin: 0 6px 0 0 !important;
  padding: 0 12px 0 0 !important;
  border-left: none !important;
  border-right: 1px solid var(--border);
}

/* Actions polish */
.wp-nav-actions .wp-btn {
  transition: transform .12s ease, box-shadow .18s ease, background .15s, border-color .15s;
}
.wp-nav-actions .wp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45,106,79,0.35);
  filter: none;
}
.wp-nav-actions .wp-btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* 'Add to Chrome' with FREE TRIAL corner badge */
.wp-btn-trial { position: relative; overflow: visible; }
.wp-btn-trial-badge {
  position: absolute;
  top: -9px; right: -10px;
  padding: 2px 8px; border-radius: 999px;
  background: #FDE047; color: #78350F;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(253,224,71,0.35);
  animation: wpTrialBadgeBob 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes wpTrialBadgeBob {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50%      { transform: translateY(-4px) rotate(6deg); }
}

/* Mobile: fall back to 3-row flex, kill the pill background */
@media (max-width: 720px) {
  .wp-nav.wp-nav-grid { grid-template-columns: auto 1fr auto; padding: 10px 14px; }
  .wp-nav-links { background: transparent; border: none; padding: 0; gap: 12px; }
  .wp-nav-links a { padding: 6px 10px; }
  .wp-btn-trial-badge { top: -8px; right: -6px; font-size: 8.5px; padding: 2px 6px; }
}

/* --- Hero price chip --- */
.wp-hero-price-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 6px auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  animation: wpHeroChipFade .5s ease-out .1s both;
}
.wp-hero-price-label { letter-spacing: 0.01em; }
.wp-hero-price-amt {
  font-weight: 800; color: var(--accent);
  font-size: 16px; letter-spacing: -0.02em;
}
.wp-hero-price-divider {
  width: 1px; height: 14px; background: var(--border);
}
.wp-hero-price-note { color: var(--text); font-weight: 500; }
@keyframes wpHeroChipFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .wp-hero-price-chip { font-size: 12px; padding: 6px 12px; gap: 8px; }
  .wp-hero-price-amt  { font-size: 14px; }
}

/* --- Pricing: kill the infinite animations, keep entrance + subtle hover --- */
.wp-pricing .wp-plan { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wp-pricing .wp-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.wp-price-pop, .wp-price-emoji { animation: none !important; text-shadow: none !important; }
.wp-price-emoji { display: none !important; }

/* Featured (Pro) — no float, no glow pulse. Just a raised card with an accent border. */
.wp-plan-featured {
  animation: none !important;
  transform: translateY(-6px);
  border: 1.5px solid var(--accent) !important;
  box-shadow: 0 20px 44px rgba(45,106,79,0.20);
}
.wp-plan-featured:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 24px 52px rgba(45,106,79,0.28);
}
.wp-plan-offer {
  animation: none !important;
  background: rgba(245,158,11,0.14) !important;
  color: #F59E0B !important;
  border: 1px solid rgba(245,158,11,0.35);
  box-shadow: none !important;
  background-image: none !important;
  padding: 4px 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
}

/* Lite plan — 'FREE / limited time' highlight card */
.wp-plan-highlight {
  position: relative;
  border: 1.5px solid var(--accent) !important;
  background: linear-gradient(180deg,
    rgba(86,201,138,0.06) 0%,
    var(--surface) 40%) !important;
  box-shadow: 0 16px 40px rgba(86,201,138,0.18);
}
.wp-plan-highlight:hover {
  box-shadow: 0 22px 50px rgba(86,201,138,0.28) !important;
}
.wp-plan-badge-soft {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--grad);
  color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(86,201,138,0.4);
  white-space: nowrap;
}
.wp-plan-highlight .wp-price-strike {
  color: rgba(148,163,184,0.55) !important;
  text-decoration-color: rgba(148,163,184,0.55) !important;
}
.wp-plan-highlight .wp-price-main {
  color: var(--accent) !important;
  letter-spacing: -0.03em !important;
}

/* --- Feature card reveal: subtler curve, no lingering bounce --- */
@keyframes wpFeatReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wp-feat-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wp-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.wp-icon-glow { animation: none !important; }

/* --- Universal motion respect for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   LEARN / READ SECTION (homepage)
   Card grid showcasing top blog posts + guides.
   Two 'post' cards (larger, first row) + four 'guide' cards.
   ===================================================================== */
.wp-learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 30px auto 0;
}
.wp-learn-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.wp-learn-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 14px; padding: 1px;
  background: linear-gradient(135deg, rgba(86,201,138,0), rgba(86,201,138,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background .25s ease;
  pointer-events: none;
}
.wp-learn-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.wp-learn-card:hover::before {
  background: linear-gradient(135deg, rgba(86,201,138,0.4), rgba(86,201,138,0));
}
.wp-learn-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.wp-learn-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 4px 0 0;
}
.wp-learn-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.wp-learn-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.wp-learn-post {
  grid-column: span 2;
  background: linear-gradient(180deg,
    rgba(86,201,138,0.05) 0%,
    var(--surface) 60%);
  border-color: rgba(86,201,138,0.28);
}
.wp-learn-post h3 { font-size: 20px; line-height: 1.28; }
.wp-learn-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.wp-learn-actions .wp-btn { padding: 10px 20px; }

@media (max-width: 720px) {
  .wp-learn-post { grid-column: span 1; }
  .wp-learn-post h3 { font-size: 17px; }
}
