/* Maqam — Eastern Tuner · maqam.pro */

:root {
  --saffron: #E2521D;
  --saffron-dark: #B8401A;
  --ink: #0A0A0A;
  --paper: #F8F8F5;
  --cream: #F5EDE0;
  --neon: #22C55E;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--paper);
  background: var(--saffron);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.italic-serif {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
}
.italic-serif-bold {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
  font-variation-settings: "opsz" 144;
}

a { color: inherit; text-decoration: none; }
a.subtle:hover { opacity: 0.7; }

img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px;
  max-width: 1280px; margin: 0 auto;
}
.nav .brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 14px; letter-spacing: 0.2em;
}
.nav .brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav .links { display: flex; gap: 28px; font-size: 13px; font-weight: 900; letter-spacing: 0.18em; }

/* ── Hero ── */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.hero h1 .accent {
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
}
.hero .sub {
  margin-top: 24px;
  font-size: 18px; line-height: 1.5;
  color: rgba(248, 248, 245, 0.85);
  max-width: 720px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.hero .cta {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.app-store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 14px 24px; border-radius: 14px;
  font-weight: 900; letter-spacing: 0.04em;
}
.app-store-badge .small { font-size: 10px; opacity: 0.7; font-weight: 100; letter-spacing: 0.15em; }
.app-store-badge .big { font-size: 18px; }
.app-store-badge img { width: 28px; }

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%; max-width: 540px;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25);
  margin: 0 auto;
}

/* ── Section ── */
section { padding: 96px 32px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-label {
  font-size: 11px; letter-spacing: 0.3em; font-weight: 900;
  opacity: 0.7; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 48px;
}

/* ── Features ── */
.section-dark { background: var(--ink); color: var(--paper); }
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px;
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--saffron); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature h3 {
  font-size: 18px; font-weight: 900; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px; font-weight: 100;
  color: rgba(248,248,245,0.6);
  line-height: 1.5;
}

/* ── Screenshots strip ── */
.screens {
  display: flex; gap: 24px; overflow-x: auto;
  padding: 16px 0 32px;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens img {
  width: 280px; height: auto; flex: 0 0 auto;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ── Pricing ── */
.section-cream { background: var(--cream); color: var(--ink); }
.section-cream .section-label { opacity: 0.55; }
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.plan {
  background: var(--paper);
  border-radius: 20px; padding: 32px 28px;
  border: 1.5px solid rgba(10,10,10,0.1);
}
.plan.featured {
  background: var(--ink); color: var(--paper);
  position: relative;
  border-color: var(--ink);
}
.plan .ribbon {
  position: absolute; top: -12px; right: 24px;
  background: var(--saffron); color: var(--ink);
  font-size: 10px; font-weight: 900; letter-spacing: 0.2em;
  padding: 4px 10px; border-radius: 999px;
}
.plan .name {
  font-size: 14px; font-weight: 900; letter-spacing: 0.15em;
  margin-bottom: 12px; opacity: 0.85;
}
.plan .price {
  font-size: 56px; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.plan .price .per { font-size: 14px; font-weight: 100; opacity: 0.55; }
.plan .desc {
  font-size: 13px; font-weight: 100; opacity: 0.7;
  margin-bottom: 24px;
}
.plan ul { list-style: none; }
.plan li {
  font-size: 13px; margin-bottom: 8px;
  padding-left: 22px; position: relative;
}
.plan li::before {
  content: "✓"; position: absolute; left: 0;
  font-weight: 900;
}
.plan.featured li::before { color: var(--saffron); }

/* ── Coupon callout ── */
.coupon-cta {
  margin-top: 64px; text-align: center;
  font-size: 14px; opacity: 0.65;
}

/* ── Footer ── */
footer {
  background: var(--ink); color: var(--paper);
  padding: 64px 32px 32px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-size: 11px; letter-spacing: 0.25em; font-weight: 900;
  opacity: 0.5; margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; font-weight: 100; }
.footer-grid li a { opacity: 0.8; }
.footer-grid li a:hover { opacity: 1; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(248,248,245,0.1);
  font-size: 12px; opacity: 0.5; font-weight: 100;
  display: flex; justify-content: space-between;
}

/* ── Support / Privacy pages ── */
.doc {
  background: var(--ink); color: var(--paper);
  min-height: 100vh;
}
.doc .container {
  max-width: 720px; padding: 64px 24px;
}
.doc h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.doc .updated { font-size: 13px; opacity: 0.5; margin-bottom: 48px; }
.doc h2 {
  font-size: 22px; font-weight: 900; margin: 40px 0 16px;
  color: var(--saffron);
  letter-spacing: -0.005em;
}
.doc h3 {
  font-size: 16px; font-weight: 900; margin: 24px 0 8px;
}
.doc p, .doc li { font-size: 15px; line-height: 1.65; margin-bottom: 12px; opacity: 0.85; }
.doc ul { padding-left: 22px; margin-bottom: 16px; }
.doc a { color: var(--neon); text-decoration: underline; text-underline-offset: 4px; }
.doc code {
  background: rgba(248,248,245,0.08);
  padding: 2px 6px; border-radius: 4px;
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .nav { flex-direction: column; gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  section { padding: 64px 24px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
