/* ===== AISoftware Design — modern dark theme ===== */

:root {
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --surface: #161a26;
  --surface-2: #1d2231;
  --border: #262c3f;
  --text: #e8eaf2;
  --text-muted: #9aa1b5;
  --accent: #f0529c;
  --accent-2: #ffa94d;
  --accent-grad: linear-gradient(120deg, #f0529c, #ffa94d);
  --success: #34d399;
  --error: #f87171;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* film-grain texture over the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Icons ===== */

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.22em;
  flex-shrink: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.accent { color: var(--accent); }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(240, 82, 156, 0.4);
}
.logo-mark .icon { width: 15px; height: 15px; vertical-align: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.cart-link { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.cart-link .icon { width: 18px; height: 18px; vertical-align: 0; }

.cart-badge {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; vertical-align: 0; }

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(240, 82, 156, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(240, 82, 156, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(240, 82, 156, 0.18), transparent),
    radial-gradient(500px 300px at 85% 20%, rgba(255, 169, 77, 0.12), transparent);
}

/* subtle grid texture, fading out toward the bottom */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 82, 156, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 82, 156, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead { margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.3rem; }
.hero-stats span { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Sections ===== */

.section { padding: 64px 0; }

/* dotted texture on alternate sections */
.section-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(154, 161, 181, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: 8px; }

/* ===== Cards ===== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-inset {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.feature { text-align: center; }
.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent-2);
  background: linear-gradient(160deg, rgba(240, 82, 156, 0.18), rgba(255, 169, 77, 0.08));
  border: 1px solid rgba(240, 82, 156, 0.35);
}
.feature-icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Plans ===== */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.plan {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--accent); }

.plan-highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(240, 82, 156, 0.09), var(--surface));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-days { font-size: 2rem; }
.plan-days small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.plan-price {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-perday { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }

.plan-features {
  list-style: none;
  text-align: left;
  margin: 8px 0 16px;
  flex: 1;
}
.plan-features li {
  padding: 5px 0 5px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.plan form { margin-top: auto; }

.plans-cta { margin-top: 40px; }

/* ===== Product page ===== */

.product-layout { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.product-info h2 { margin-bottom: 12px; }
.product-info p { margin-bottom: 14px; }

.check-list { list-style: none; margin: 14px 0; }
.check-list li {
  padding: 6px 0 6px 26px;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

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

/* ===== Cart ===== */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); }

.qty-input {
  width: 64px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  text-align: center;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
}
.btn-remove .icon { width: 16px; height: 16px; vertical-align: 0; }
.btn-remove:hover { color: var(--error); background: rgba(248, 113, 113, 0.1); }

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10px 6px;
  font-size: 1.05rem;
}
.cart-total { font-size: 1.5rem; }

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.empty-state { text-align: center; padding: 56px 28px; }
.empty-state p { font-size: 1.1rem; margin-bottom: 20px; }
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.empty-icon .icon { width: 28px; height: 28px; vertical-align: 0; }

/* ===== Checkout ===== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.checkout-form h2, .order-summary h2 { margin-bottom: 18px; font-size: 1.25rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 82, 156, 0.2);
}

.payment-note h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--error);
}

.summary-list { list-style: none; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

/* ===== Success ===== */

.success-card { text-align: center; padding: 48px 36px; }
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid var(--success);
  color: var(--success);
}
.success-icon .icon { width: 30px; height: 30px; vertical-align: 0; stroke-width: 2.5; }
.success-card h1 { margin-bottom: 8px; }
.order-details { text-align: left; }
.order-details p { margin-bottom: 6px; }
.status-pill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.success-card > .btn { margin-top: 20px; }

/* ===== Legal pages ===== */

.legal h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }

/* ===== CTA ===== */

.cta-box {
  text-align: center;
  padding: 56px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--surface);
  background-image:
    radial-gradient(400px 200px at 50% 0%, rgba(240, 82, 156, 0.2), transparent),
    radial-gradient(rgba(154, 161, 181, 0.07) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.cta-box h2 { margin-bottom: 10px; }
.cta-box .lead { margin-bottom: 24px; }

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid h4 { margin-bottom: 12px; font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid .logo { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .plans-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .plans-grid, .grid-3, .shop-grid { grid-template-columns: 1fr; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  .section { padding: 44px 0; }
  .hero { padding: 56px 0 40px; }
}


/* ============================================================
   AISoftware Design — additions
   ============================================================ */

.nav-links a.active { color: var(--text); }
.section-title.left { text-align: left; margin-bottom: 26px; }
.btn-link {
  background: none; border: none; cursor: pointer; font: inherit; font-size: .88rem;
  color: var(--text-muted); padding: 8px 0 0; width: 100%;
}
.btn-link:hover { color: var(--accent-2); text-decoration: underline; }

/* ---- Tier cards ---- */
.plans-grid.tiers-4 { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.plan { text-align: left; padding: 26px 22px; }
.plan-name { font-size: 1.05rem; min-height: 2.5em; display: flex; align-items: flex-end; }
.plan .plan-price { font-size: 2.1rem; line-height: 1.1; }
.plan-perday { margin-bottom: 4px; }
.plan-summary { color: var(--text); font-size: .92rem; min-height: 2.8em; }
.plan-actions { display: flex; flex-direction: column; }

/* ---- Product cards ---- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px;
}
.product-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.product-card {
  display: flex; flex-direction: column; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  text-decoration: none; transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 12px 34px rgba(240, 82, 156, .16);
}
.product-card .feature-icon { margin: 0 0 16px; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--text-muted); font-size: .94rem; flex: 1; }
.product-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .9rem;
}
.product-card-foot .from { color: var(--text-muted); }
.product-card-foot .from strong { color: var(--text); font-size: 1.05rem; }
.product-card-foot .go { color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.product-card-foot .go .icon { width: 16px; height: 16px; transition: transform .18s; }
.product-card:hover .go .icon { transform: translateX(3px); }

/* ---- Product page ---- */
.product-head { display: flex; gap: 22px; align-items: center; }
.feature-icon-lg { width: 76px; height: 76px; margin: 0; border-radius: 20px; flex-shrink: 0; }
.feature-icon-lg .icon { width: 34px; height: 34px; }
.crumbs { color: var(--text-muted); font-size: .88rem; margin-bottom: 6px; }
.product-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 36px; }
.product-info h2, .product-info > p, .product-info .check-list { grid-column: 1; }
.product-info .trust { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin: 0; }
.trust p { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--text-muted); font-size: .93rem; }
.trust .icon { color: var(--accent-2); }

/* ---- Shop ---- */
.shop-section .container { display: grid; gap: 22px; }
.shop-product-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.shop-product-head .feature-icon { margin: 0; flex-shrink: 0; }
.shop-product-head h2 { font-size: 1.35rem; margin-bottom: 2px; }
.shop-product-head h2 a { color: var(--text); }
.shop-details { margin-left: auto; white-space: nowrap; }
.tier-table { display: grid; gap: 10px; }
.tier-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: border-color .15s;
}
.tier-row:hover { border-color: rgba(240, 82, 156, .55); }
.tier-row.is-popular { border-color: rgba(240, 82, 156, .5); background: linear-gradient(90deg, rgba(240, 82, 156, .08), var(--surface-2)); }
.tier-row-name { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tier-row-name .small { flex-basis: 100%; }
.tier-row-price { font-size: 1.35rem; font-weight: 800; }
.tier-row-actions { display: flex; gap: 8px; }
.tier-row-actions .btn { padding: 9px 16px; }
.tier-row-actions .btn-ghost .icon { width: 17px; height: 17px; vertical-align: -3px; }
.mini-badge {
  font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-grad); color: #fff;
}

/* ---- Tabs ---- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .15s;
}
.tab .icon { width: 17px; height: 17px; }
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: 0 4px 18px rgba(240, 82, 156, .3); }
.tab-panel[hidden] { display: none; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--text-muted); }

/* ---- Cart / checkout / order ---- */
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--accent-2); background: rgba(240, 82, 156, .12); border: 1px solid rgba(240, 82, 156, .3);
}
.cart-prod-icon .icon { width: 18px; height: 18px; vertical-align: 0; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.pay-method {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.pay-method:hover, .pay-method:has(input:checked) { border-color: var(--accent); }
.pay-method input { margin-top: 4px; accent-color: var(--accent); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.agree input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.success-icon.fail { color: var(--error); border-color: var(--error); background: rgba(248, 113, 113, .12); }
.status-pill.is-paid { background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .5); color: var(--success); }
.licenses { text-align: left; }
.licenses h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin-bottom: 10px; color: var(--accent-2); }
.license-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.license-key {
  font-family: Consolas, Menlo, monospace; font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px dashed rgba(240, 82, 156, .5);
  user-select: all;
}
.licenses .small { margin-top: 10px; }
.spinner {
  width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Home — animated design studio
   ============================================================ */

.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.has-js .reveal.in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

.studio {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .5s ease;
}
.hero-visual:hover .studio { transform: perspective(1400px) rotateY(0) rotateX(0); }
.studio-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.studio-bar > span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.studio-bar > span:first-child { background: #f87171; }
.studio-bar > span:nth-child(2) { background: #fbbf24; }
.studio-bar > span:nth-child(3) { background: #34d399; }
.studio-bar em {
  font-style: normal; color: var(--text-muted); font-size: .78rem; font-weight: 500;
  margin-left: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.studio-bar em .icon { width: 15px; height: 15px; }
.live-dot { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.studio-body { padding: 18px; }

.prompt-box {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; margin-bottom: 16px;
  border-radius: 12px; background: var(--bg-alt); border: 1px solid rgba(240, 82, 156, .45);
  box-shadow: 0 0 0 3px rgba(240, 82, 156, .1); font-size: .88rem;
}
.prompt-box > .icon { color: var(--accent); width: 18px; height: 18px; }
.prompt-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; min-width: 0; }
.prompt-text.swap { opacity: 0; }
.caret { width: 2px; height: 1.1em; background: var(--accent-2); animation: blink 1s steps(1) infinite; flex-shrink: 0; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-go {
  margin-left: auto; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent-grad); color: #fff;
}
.prompt-go .icon { width: 16px; height: 16px; vertical-align: 0; }

.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gen {
  margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); opacity: 0; transform: translateY(14px) scale(.97);
  animation: genIn .6s ease forwards; animation-delay: var(--d);
  transition: border-color .3s, box-shadow .3s;
}
.gen.focus { border-color: rgba(240, 82, 156, .7); box-shadow: 0 0 0 3px rgba(240, 82, 156, .15), 0 10px 26px rgba(0,0,0,.35); }
@keyframes genIn { to { opacity: 1; transform: none; } }
.gen-art { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; color: var(--text); }
.gen-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%);
  transform: translateX(-100%); animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
.gen-art svg { width: 82%; height: auto; }
.gen figcaption {
  padding: 7px 10px; font-size: .7rem; font-weight: 600; color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* mini website */
.mini-site { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 10px; background: #f7f3ee; }
.mini-site i, .mini-site b { display: block; border-radius: 3px; }
.ms-nav { display: flex; gap: 5px; align-items: center; }
.ms-nav i { width: 16px; height: 8px; background: #f0529c; margin-right: auto; }
.ms-nav b { width: 14px; height: 4px; background: #c9bfb4; }
.ms-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 8px; border-radius: 6px; background: linear-gradient(120deg, #ffe3ef, #ffeccf); }
.ms-hero i { height: 6px; background: #3a2a2f; }
.ms-hero i.w70 { width: 70%; }
.ms-hero i.w50 { width: 50%; background: #9c8a8f; height: 4px; }
.ms-btn { width: 34px; height: 9px; border-radius: 4px; background: #f0529c; }
.ms-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ms-cols i { height: 14px; background: #fff; border: 1px solid #eadfd5; }

/* mini social post */
.mini-post {
  background: linear-gradient(150deg, #5b2a86, #f0529c 60%, #ffa94d); color: #fff; padding: 12px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left;
}
.mini-post strong { font-size: 1.05rem; line-height: 1.05; font-weight: 800; position: relative; z-index: 1; }
.mp-tag { font-size: .55rem; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.25); position: relative; z-index: 1; }
.mp-sub { font-size: .6rem; opacity: .85; position: relative; z-index: 1; }
.mp-blob { position: absolute; right: -14px; bottom: -14px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.18); }

/* mini UI */
.mini-ui { background: #12151f; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; padding: 12px; }
.mini-ui i { display: block; height: 5px; border-radius: 3px; background: #3a4157; }
.mini-ui i.w60 { width: 60%; }
.mini-ui i.w40 { width: 40%; }
.mu-row { display: flex; align-items: center; gap: 7px; }
.mu-avatar { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-grad); flex-shrink: 0; }
.mu-toggle { width: 20px; height: 11px; border-radius: 6px; background: #f0529c; position: relative; flex-shrink: 0; }
.mu-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mu-input { height: 13px; border-radius: 4px; border: 1px solid #3a4157; }
.mu-btn { font-size: .55rem; font-weight: 700; text-align: center; padding: 3px; border-radius: 4px; background: var(--accent-grad); color: #fff; }

.platform-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin-top: 46px; color: var(--text-muted); font-size: .95rem;
}
.platform-bar span { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.platform-bar b { color: var(--text); font-weight: 700; }
.platform-bar i { color: var(--border); font-style: normal; }

.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.result strong {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 6px;
}
.result span { color: var(--text-muted); font-size: .9rem; }
.results-note { margin-top: 18px; }

/* ---- Responsive additions ---- */
@media (max-width: 1000px) {
  .plans-grid.tiers-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .product-info { grid-template-columns: 1fr; }
  .product-info .trust { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .product-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .studio { transform: none; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .tier-row { grid-template-columns: 1fr auto; }
  .tier-row-actions { grid-column: 1 / -1; }
  .tier-row-actions .btn-primary { flex: 1; text-align: center; }
  .shop-details { display: none; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .plans-grid.tiers-4, .product-grid, .product-grid.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .product-head { flex-direction: column; align-items: flex-start; }
  .cart-table td { padding: 12px 6px; }
  .card { padding: 22px 18px; }
  .plan-name, .plan-summary { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gen, .gen-art::after, .live-dot::before, .caret { animation: none !important; }
  .gen { opacity: 1; transform: none; }
  .studio { transform: none; }
}

/* grid children must be allowed to shrink (nowrap prompt text in the studio) */
.hero-inner > * { min-width: 0; }
@media (max-width: 620px) { .hero-actions .btn-lg { padding: 13px 20px; } .studio-bar em { display: none; } }
