/* Shared stylesheet for jahanarasultanaapps.com */

:root {
  --pink-1: #f65b8c;
  --pink-2: #fb86a9;
  --pink-3: #ffc6d6;
  --accent: #e8457a;
  --bg: #fff8fa;
  --surface: #ffffff;
  --surface-2: #fff0f4;
  --text: #2a1a24;
  --muted: #6e5a66;
  --border: #f3d9e2;
  --shadow: 0 18px 40px -18px rgba(214, 60, 110, .35);
  --radius: 22px;
  --max: 1100px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #fd78a3;
    --bg: #140d1c;
    --surface: #1e1429;
    --surface-2: #261a33;
    --text: #f7eef3;
    --muted: #bba9b7;
    --border: #35263f;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #fd78a3;
  --bg: #140d1c;
  --surface: #1e1429;
  --surface-2: #261a33;
  --text: #f7eef3;
  --muted: #bba9b7;
  --border: #35263f;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
[id] { scroll-margin-top: 80px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--pink-1) 0%, var(--pink-2) 55%, var(--pink-3) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 0;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 72px; }
}
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px -10px rgba(120, 0, 40, .45); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); opacity: .95; max-width: 34ch; margin: 0 0 28px; }
.hero-points { list-style: none; padding: 0; margin: -8px 0 28px; }
.hero-points li { padding-left: 1.6em; position: relative; margin: 6px 0; font-weight: 500; }
.hero-points li::before { content: "♥"; position: absolute; left: 0; opacity: .9; }
.hero-shot { align-self: end; justify-self: center; width: min(360px, 82vw); }
.hero-shot img { border-radius: 28px 28px 0 0; }
@media (min-width: 860px) { .hero-text { padding-bottom: 72px; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .8; line-height: 1.1; }
.btn span { line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.hero-meta { margin-top: 14px; font-size: 14px; opacity: .9; }

/* Features */
.section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-title p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

.feature {
  display: grid; gap: 28px; align-items: center;
  margin: 0 auto 72px; max-width: 960px;
}
.feature:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-shot { order: 2; }
}
.feature-shot {
  justify-self: center; width: min(320px, 78vw);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--pink-2);
}
.feature h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.feature li { margin: 4px 0; }

/* Extras grid */
.alt { background: var(--surface-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }

/* CTA */
.cta {
  text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
  border-radius: 28px; padding: 48px 20px;
}
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta p { opacity: .95; margin: 0 auto 24px; max-width: 46ch; }

/* Legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.3rem; margin-top: 2.2em; padding-top: .4em; }
.doc h3 { font-size: 1.05rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .summary {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px 22px; margin: 24px 0 8px;
}
.doc .summary ul { margin: 8px 0 0; }
.doc .toc { columns: 2 220px; padding-left: 1.3em; margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; background: var(--surface-2); }

/* Developer home */
.dev-hero { text-align: center; padding: 80px 0 40px; }
.dev-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.dev-hero p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.app-card { display: flex; gap: 18px; align-items: flex-start; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.app-card .ph {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, #6c63ff, #3ec6ff); color: #fff;
}
.links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.links a { font-weight: 600; text-decoration: none; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
