/* Self-hosted Vazirmatn (OFL). Marketing uses the paper preset; a public page overrides the tokens. */
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/vazirmatn-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/vazirmatn-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/vazirmatn-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/vazirmatn-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3eadc;
  --ink: #1c1612;
  --muted: #5c5348;
  --accent: #7a3e00;
  --on: #fff8ee;
  --card: #faf6ee;
  --line: #e4d8c8;
  --hero: #241c16;
  --hero-ink: #f6efe4;
  --band: #7a3e00;
  --band-ink: #fff8ee;
  --danger: #8d1d32;
  --ok: #1a5c32;
  --shadow: 0 18px 40px rgb(36 28 22 / 8%);
  font-family: Vazirmatn, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
img, video, iframe { max-width: 100%; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; }
p { margin: 0.4rem 0 0.8rem; }

.skip {
  position: absolute;
  right: 0.5rem;
  top: -3rem;
  background: var(--accent);
  color: var(--on);
  padding: 0.4rem 0.8rem;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(1040px, calc(100% - 2rem)); margin-inline: auto; }
.mast {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.35rem; }
.mast nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.mast nav a { color: var(--ink); text-decoration: none; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-ghost, .hero .btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border-color: var(--hero-ink);
}
.danger { background: var(--danger); color: #fff7f8; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-foot a { color: var(--ink); }

.hero {
  background: var(--hero);
  color: var(--hero-ink);
  border-radius: 28px;
  padding: 2.4rem 1.4rem 2.6rem;
  margin-bottom: 2rem;
}
.hero h1, .hero .lede, .hero .eyebrow { color: var(--hero-ink); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0.2rem 0 0.8rem; }
.eyebrow { letter-spacing: 0; margin: 0; color: #e2b15a; }
.lede { max-width: 38rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.hero .btn { background: #e2b15a; color: #1c1408; }
.hero .btn-ghost { background: transparent; color: var(--hero-ink); border-color: #f6efe4; }

.story { display: grid; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.device {
  background: #fff8ef;
  color: #2a1c0e;
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.device-kicker { color: #9a4e00; margin: 0; }
.device-name { font-size: 1.3rem; font-weight: 700; margin: 0.2rem 0; }
.device-bio { color: #6d5330; }
.device-btn {
  display: block;
  text-align: center;
  background: #9a4e00;
  color: #fff8ef;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  margin: 0.4rem 0;
}
.device-btn.soft { background: #f0ddb8; color: #2a1c0e; }
.band {
  background: var(--band);
  color: var(--band-ink);
  border-radius: 24px;
  padding: 1.4rem 1.2rem;
  margin: 1.2rem 0;
}
.band h2, .band p { color: var(--band-ink); }
.band .btn { background: var(--band-ink); color: var(--band); }
.price-strip { padding: 0.5rem 0 1rem; }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.plan-grid, .template-grid { display: grid; gap: 1rem; }
.plan, .mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem 1rem 1.2rem;
}
.plan .price { font-size: 1.35rem; font-weight: 700; }
.plan ul { padding-right: 1.1rem; }
.plan-plus { background: #fff8ef; }
.mock-card { background: var(--sw); color: var(--swink); border-radius: 18px; padding: 1rem; }
.mock-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--swa); }
.mock-name { font-weight: 700; margin: 0.5rem 0 0; }
.mock-bio { margin: 0.15rem 0 0.6rem; }
.mock-btn {
  display: block;
  text-align: center;
  background: var(--swa);
  color: var(--swon);
  border-radius: 999px;
  padding: 0.55rem;
}
.mock h2 { font-size: 1.05rem; margin: 0.7rem 0 0; }

.auth-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem 1rem 1.2rem;
  margin: 0.8rem 0;
}
.copy-row { display: grid; gap: 0.45rem; margin: 0.6rem 0 0.2rem; }
.copy-row .field { margin: 0; }
.copy-row .btn { justify-self: start; }
.field { display: grid; gap: 0.25rem; margin: 0.7rem 0; }
.field input, .field textarea, .field select, .table-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.field textarea { min-height: 7rem; }
.file-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.file-btn input[type="file"] {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.file-btn:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-status { color: var(--muted); overflow-wrap: anywhere; }
.check { display: flex; gap: 0.45rem; align-items: center; margin: 0.45rem 0; }
.alert { background: #fdecef; color: #6e1630; border-radius: 12px; padding: 0.7rem 0.8rem; }
.note { background: #e8f3e8; color: #132418; border-radius: 12px; padding: 0.7rem 0.8rem; }
.muted, .empty { color: var(--muted); }
.addr { font-weight: 700; }

.dash { display: grid; gap: 1rem; }
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.jump a { color: var(--ink); }
.dash .panel,
.preview-col { scroll-margin-top: 6.5rem; }
.block-row {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.row-actions button, .copy, .table-wrap button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}
.lock { background: #fff4df; color: #2a1c0e; border-radius: 12px; padding: 0.65rem 0.75rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
.swatch input { position: absolute; opacity: 0; }
.swatch-face {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sw);
  color: var(--swink);
  border-radius: 14px;
  min-height: 52px;
  padding: 0.45rem 0.6rem;
  border: 2px solid transparent;
}
.swatch input:checked + .swatch-face { border-color: var(--accent); }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--swa); }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 0.45rem; align-items: center; }
.track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.fill { display: block; height: 100%; background: var(--accent); }
.preview {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.qr-img { width: 148px; height: auto; margin-top: 0.8rem; background: #fff8ee; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lead-row { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }

html:has(body.bio) { background: transparent; }
body.bio {
  display: flow-root;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.col { width: min(440px, calc(100% - 2rem)); margin: 1.5rem auto 2.5rem; }
.avatar, .monogram {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin: 0 auto 0.6rem;
  background: var(--accent);
  color: var(--on);
  font-size: 2rem;
  font-weight: 700;
}
.bio h1, .bio .bio-text, .bio .text, .bio .block-title { color: var(--text); text-align: center; }
.bio-text, .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; list-style: none; padding: 0; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
}
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.stack { display: grid; gap: 0.65rem; }
.bio .btn { width: 100%; border-radius: var(--radius); text-align: center; }
.bio .btn.solid { background: var(--accent); color: var(--on); }
.bio .btn.outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.bio .btn.soft { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); color: var(--text); border-color: transparent; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0.4rem 0; }
.shot img, .product img { border-radius: var(--radius); display: block; margin-inline: auto; }
.frame { position: relative; padding-top: 56%; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.frame.spotify { padding-top: 152px; }
.faq, .article { background: var(--card); border-radius: var(--radius); padding: 0.2rem 0.8rem; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-align: right;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq[open] > summary::before { transform: rotate(225deg); }
.pay, .product, .lead { background: var(--card); border-radius: var(--radius); padding: 0.8rem; }
.pay-value { font-family: Vazirmatn, sans-serif; letter-spacing: 0.02em; }
.brand-foot, .report-link, .preview-note { text-align: center; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 800px) {
  .story { grid-template-columns: 1.3fr 0.7fr; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.preview-bar { display: none; }
@media (max-width: 979px) {
  .preview-bar {
    position: fixed;
    z-index: 6;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.35rem 0.8rem calc(0.35rem + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    border-top: 1px solid var(--line);
  }
  body:has(.preview-bar) { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 980px) {
  .dash { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .preview-col { position: sticky; top: 1rem; z-index: 5; }
  .jump { z-index: 2; }
  .preview-bar { display: none; }
}
