/*
Theme Name: Salah Tracker
Theme URI: https://apps.apple.com/app/id6787568521
Author: Salah Tracker
Author URI: https://apps.apple.com/app/id6787568521
Description: Marketing landing page + app-store compliance pages (Privacy Policy, Terms, Support, Account Deletion) for the Salah Tracker app. Activating the theme automatically creates every page, attaches its template, sets the front page, and registers the privacy policy — ready for Apple App Store and Google Play review.
Version: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salah-tracker
*/

:root {
  /* Brand */
  --emerald: #0E7C66;
  --emerald-dark: #0A5D4D;
  --emerald-600: #0C6E5A;
  --amber: #E4A94F;
  --coral: #C6543F;

  /* Neutral ramp (single, cool-warm balanced) */
  --ink: #12211C;      /* headings */
  --body: #3A463F;     /* body text — AA on light */
  --muted: #55635E;    /* secondary — AA on white for body sizes */
  --line: #E7E2D6;
  --sand: #F6F3EC;     /* page tint */
  --sanddeep: #EFEBE1;
  --sage: #E8F1EB;     /* accent-tint surface */
  --card: #FFFFFF;
  --white: #FFFFFF;

  /* Radius language */
  --r-card: 20px;
  --r-btn: 12px;
  --r-pill: 999px;

  /* Layered, tinted shadows */
  --sh-sm: 0 1px 2px rgba(18, 33, 28, 0.05);
  --sh-md: 0 4px 14px rgba(18, 33, 28, 0.07);
  --sh-lg: 0 18px 44px rgba(14, 124, 102, 0.14), 0 4px 12px rgba(18, 33, 28, 0.06);

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--emerald-dark); text-decoration: none; }
a:hover { color: var(--emerald); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h1 { line-height: 1.04; }
h2 { line-height: 1.1; }

:focus-visible { outline: 3px solid rgba(14, 124, 102, 0.45); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--emerald); color: #fff; font-weight: 650;
  padding: 13px 22px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform .18s var(--ease), background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--emerald-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--emerald-dark); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--sage); border-color: transparent; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 14px; min-width: 172px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .18s var(--ease), opacity .2s ease;
}
.store-badge:hover { color: #fff; opacity: .94; transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .lbl small { font-size: 10px; opacity: .75; letter-spacing: .06em; text-transform: uppercase; }
.store-badge .lbl strong { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(150deg, #159A7E, var(--emerald-dark));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px rgba(14,124,102,0.34), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav .menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav .menu a { color: var(--body); font-weight: 550; font-size: 15px; }
.nav .menu a:hover { color: var(--emerald-dark); }
.nav .btn { padding: 10px 18px; }
@media (max-width: 760px) { .nav .menu { display: none; } }

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
.section-tint { background: var(--sand); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block; color: var(--emerald-dark); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
@media (max-width: 640px) { section { padding: 64px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 40px; background: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(720px 420px at 82% 8%, rgba(14, 124, 102, 0.10), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: var(--emerald-dark);
  font-weight: 650; font-size: 13.5px; padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 22px; border: 1px solid rgba(14,124,102,0.10);
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 20px; letter-spacing: -0.03em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 30ch; }
.hero .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-line { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; color: var(--body); font-weight: 550; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { color: var(--emerald); flex: none; }
.animate-in { opacity: 0; transform: translateY(16px); animation: riseIn .7s var(--ease) forwards; }
.animate-in.d1 { animation-delay: .06s; }
.animate-in.d2 { animation-delay: .12s; }
.animate-in.d3 { animation-delay: .18s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone-wrap { order: -1; }
  .hero p.lead { max-width: 46ch; }
}

/* ---------- Phone mockup (asset-free) ---------- */
.phone-wrap { display: grid; place-items: center; }
.phone {
  width: 288px; background: #0a1512; border-radius: 46px; padding: 11px;
  box-shadow: var(--sh-lg); position: relative;
}
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 118px; height: 26px; background: #0a1512; border-radius: 999px; z-index: 3; }
.phone .screen { background: var(--sand); border-radius: 36px; overflow: hidden; position: relative; }
.app-top { background: linear-gradient(158deg, #12967B, var(--emerald-dark)); color: #fff; padding: 44px 20px 26px; }
.app-top .row1 { display: flex; justify-content: space-between; font-size: 12px; opacity: .82; margin-bottom: 14px; }
.app-top small { opacity: .8; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.app-top .next { font-size: 30px; font-weight: 800; margin-top: 5px; letter-spacing: -0.02em; }
.app-top .count { font-variant-numeric: tabular-nums; opacity: .9; margin-top: 2px; font-size: 14px; }
.app-rows { padding: 16px; display: grid; gap: 10px; }
.app-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.app-row .p { font-weight: 700; font-size: 14px; color: var(--ink); }
.app-row .t { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-left: auto; margin-right: 12px; }
.dot { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--line); flex: none; }
.dot.done { background: var(--emerald); border-color: var(--emerald); position: relative; }
.dot.done::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Weekly-tracker screen (second mockup) */
.app-week { padding: 18px 16px; display: grid; gap: 11px; }
.app-week .streak { background: var(--sage); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.app-week .streak .n { font-size: 24px; font-weight: 800; color: var(--emerald-dark); letter-spacing: -0.02em; }
.app-week .streak small { color: var(--emerald-dark); font-size: 12px; opacity: .85; }
.wk { display: flex; align-items: center; justify-content: space-between; }
.wk .lbl { font-size: 12px; color: var(--muted); width: 34px; font-weight: 600; }
.wk .dots { display: flex; gap: 6px; }
.wk .d { width: 17px; height: 17px; border-radius: 6px; background: var(--line); }
.wk .d.on { background: var(--emerald); }
.wk .d.half { background: var(--amber); }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sand); }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 9px; color: var(--body); font-weight: 600; font-size: 15px; }
.trust-strip svg { color: var(--emerald); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--emerald-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 28px; box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--sage); display: grid; place-items: center; color: var(--emerald-dark); margin-bottom: 20px; }
.card h3 { font-size: 18.5px; margin-bottom: 9px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Showcase (alternating row) ---------- */
.showcase-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.showcase-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.showcase-list li { display: flex; gap: 14px; align-items: flex-start; }
.showcase-list .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--sage); color: var(--emerald-dark); display: grid; place-items: center; flex: none; margin-top: 2px; }
.showcase-list strong { color: var(--ink); display: block; font-size: 16.5px; }
.showcase-list span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; gap: 40px; } .showcase-grid .phone-wrap { order: -1; } }

/* ---------- Privacy band ---------- */
.band { background: linear-gradient(160deg, #0F836C, var(--emerald-dark)); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,0.08), transparent 70%); }
.band .container { position: relative; z-index: 1; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(255,255,255,0.82); }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); padding: 11px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2px 22px; box-shadow: var(--sh-sm); transition: box-shadow .2s ease; }
details.qa[open] { box-shadow: var(--sh-md); }
details.qa summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; width: 11px; height: 11px; border: solid var(--emerald); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-bottom: 3px; }
details.qa[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
details.qa p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final .store-badges { justify-content: center; margin-top: 8px; }

/* ---------- Legal / article pages ---------- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 72px 0 44px; }
.page-hero .eyebrow { display: block; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 10px; }
.page-hero .updated { color: var(--muted); font-size: 14.5px; }
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.article > *:first-child { margin-top: 0; }
.article h2 { font-size: 24px; margin: 40px 0 14px; }
.article h3 { font-size: 18.5px; margin: 26px 0 8px; color: var(--ink); }
.article p, .article li { color: var(--body); font-size: 16.5px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 7px 0; }
.article a { color: var(--emerald-dark); text-decoration: underline; text-underline-offset: 2px; }
.article strong { color: var(--ink); }
.article .callout { background: var(--sage); border: 1px solid #cfe3d8; border-left: 4px solid var(--emerald); border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.article .callout p { margin: 0; color: var(--emerald-dark); }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15.5px; }
.article th, .article td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.article th { background: var(--sanddeep); color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6c0; padding: 72px 0 34px; }
.site-footer a { color: #b9c6c0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .about { max-width: 360px; font-size: 15px; color: #8fa19b; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-menu a { font-weight: 550; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); margin-top: 48px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8fa19b; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; box-shadow: var(--sh-md); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .animate-in { opacity: 1; transform: none; }
}
