/* PotatoPoor — merchant site + ZarinPal bridge */
:root {
  --ink: #0a1614;
  --fog: #d8efe9;
  --mist: #eef7f4;
  --deep: #0d2e2a;
  --teal: #147a6c;
  --teal-bright: #1fa08d;
  --leaf: #3d9b7a;
  --muted: #4a635e;
  --ok: #1b7a4e;
  --err: #a63d3d;
  --radius: 14px;
  --max: 760px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  min-height: 100vh;
  line-height: 1.75;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— header —— */
.site-header {
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--teal-bright); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

/* —— full-bleed hero —— */
.hero-plane {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(10, 22, 20, 0.55) 0%, rgba(13, 46, 42, 0.35) 45%, rgba(238, 247, 244, 0.92) 78%),
    radial-gradient(ellipse 80% 60% at 70% 20%, #1fa08d 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, #0d2e2a 0%, transparent 50%),
    linear-gradient(180deg, #0a1614 0%, #147a6c 42%, #d8efe9 100%);
  color: #f4fffc;
}
.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  animation: drift 28s linear infinite;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-60px, -60px, 0); }
}

.hero-plane .site-header {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.hero-plane .brand { color: #f4fffc; }
.hero-plane .brand span { color: #9be8da; }
.hero-plane .nav a { color: rgba(244, 255, 252, 0.78); }
.hero-plane .nav a:hover { color: #fff; }

.hero {
  flex: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
  color: #fff;
  animation: rise 0.85s ease both;
}
.hero-brand span { color: #9be8da; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: rgba(244, 255, 252, 0.95);
  animation: rise 0.85s ease 0.12s both;
}

.hero .lead {
  font-size: 1.05rem;
  color: rgba(244, 255, 252, 0.78);
  max-width: 28em;
  margin: 0 auto 1.75rem;
  animation: rise 0.85s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: rise 0.85s ease 0.32s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #fff;
  color: var(--deep);
}
.btn-primary:hover { background: var(--fog); color: var(--deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* body sections after hero */
.section {
  padding: 2.75rem 0;
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.section > p { color: var(--muted); margin-top: 0; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.15rem;
  counter-reset: step;
}
.feature-list li {
  padding: 0 0 1.15rem;
  border-bottom: 1px solid rgba(10, 22, 20, 0.08);
  counter-increment: step;
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }
.feature-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}
.feature-list strong::before {
  content: counter(step) ". ";
  color: var(--teal);
  font-family: var(--font-display);
}

.price-block {
  margin-top: 1.25rem;
}
.price-block .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-block .note {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.cta-row.left { justify-content: flex-start; }
.cta-row.ink .btn-primary {
  background: var(--teal);
  color: #fff;
}
.cta-row.ink .btn-primary:hover { background: var(--teal-bright); color: #fff; }

/* legal */
.prose {
  padding: 1.5rem 0 3rem;
  max-width: 40rem;
}
.prose h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.prose h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--muted); }

/* pay / status */
.status-card {
  margin: 3rem auto;
  max-width: 420px;
  text-align: center;
  padding: 2rem 1.25rem;
}
.status-card h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.75rem;
}
.status-card.ok h1 { color: var(--ok); }
.status-card.err h1 { color: var(--err); }
.status-card p { color: var(--muted); }
.status-card .btn-primary {
  background: var(--teal);
  color: #fff;
}
.status-card .btn-primary:hover { background: var(--teal-bright); color: #fff; }

.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(10, 22, 20, 0.08);
  margin-top: 1rem;
}
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero-plane { min-height: 88vh; }
}
