/* ============================================================
   SAWM 360 — sawm360.com design system
   Dark, premium, matches App Store art direction
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --bg-raised: #101827;
  --bg-card: #121c2e;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e8edf5;
  --text-muted: #97a3b8;
  --emerald: #10b981;
  --emerald-dark: #0b8f66;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --gold: #d9a94b;
  --gold-soft: rgba(217, 169, 75, 0.55);
  --purple: #8b5cf6;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Iowan Old Style", "Palatino", "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--emerald); color: #04120c !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700 !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--emerald-glow); }
@media (max-width: 780px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons / badges ---------- */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 14px; padding: 12px 22px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-appstore:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 10px 34px var(--emerald-glow); border-color: rgba(255,255,255,.5);
}
.btn-appstore svg { width: 30px; height: 30px; flex: none; }
.btn-appstore .t { line-height: 1.15; text-align: left; }
.btn-appstore .t small { display: block; font-size: 11px; opacity: .8; letter-spacing: .02em; }
.btn-appstore .t strong { font-size: 20px; font-weight: 600; letter-spacing: .01em; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); border: 1px solid var(--line);
  padding: 12px 22px; border-radius: 14px; font-weight: 600;
}
.btn-ghost:hover { text-decoration: none; border-color: var(--emerald); color: var(--emerald); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 130%;
  background:
    radial-gradient(52% 44% at 74% 40%, rgba(217,169,75,.14), transparent 65%),
    radial-gradient(46% 40% at 22% 26%, rgba(16,185,129,.16), transparent 65%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.12; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero-sub { color: var(--text-muted); font-size: 19px; max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--emerald); }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: 6% -4% -8%;
  border: 1.5px solid var(--gold-soft);
  border-radius: 46% 46% 0 0 / 34% 34% 0 0;
  border-bottom: none;
  filter: drop-shadow(0 0 26px rgba(217,169,75,.25));
  pointer-events: none;
}
.phone-frame {
  position: relative;
  width: min(300px, 74vw);
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a3648, #10161f 60%);
  box-shadow: 0 28px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone-frame img { border-radius: 34px; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-phone { order: -1; }
  .hero { padding-top: 48px; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  color: var(--emerald); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 18px; }

/* ---------- Download strip ---------- */
.download-strip { background: var(--bg-raised); border-block: 1px solid var(--line); padding: 40px 0; }
.download-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.download-strip .lockup { display: flex; align-items: center; gap: 18px; }
.download-strip .lockup img { width: 64px; height: 64px; border-radius: 15px; }
.download-strip .lockup strong { display: block; font-size: 20px; }
.download-strip .lockup span { color: var(--text-muted); font-size: 15px; }

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.shot { text-align: center; }
.shot .phone-frame { width: 100%; margin-bottom: 16px; border-radius: 34px; padding: 8px; }
.shot .phone-frame img { border-radius: 27px; }
.shot h3 { font-size: 17px; margin-bottom: 6px; }
.shot p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 980px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--gold); letter-spacing: .1em; display: block; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature chips ---------- */
.features-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.feature-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--bg-raised);
  border-radius: 999px; padding: 10px 18px;
  color: var(--text); font-size: 14.5px; font-weight: 500;
}
.feature-chip svg { width: 16px; height: 16px; color: var(--emerald); flex: none; }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.guide-card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: rgba(16,185,129,.5); box-shadow: 0 14px 44px rgba(0,0,0,.4);
}
.guide-card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.guide-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.guide-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.guide-card .more { color: var(--emerald); font-size: 14px; font-weight: 600; }
@media (max-width: 980px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 22px; color: var(--emerald); flex: none;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 22px 20px; color: var(--text-muted); font-size: 15.5px; }
.faq-list .faq-a a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 90px 0; }
.cta-band .inner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, #0e2b21, #0a0f1a 70%);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 28px; padding: 68px 32px;
}
.cta-band .inner::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(16,185,129,.28), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; position: relative;
}
.cta-band p { color: var(--text-muted); font-size: 18px; max-width: 36em; margin: 0 auto 30px; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--bg-raised); }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px;
}
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text); font-size: 15px; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--emerald); }
.site-footer .about p { color: var(--text-muted); font-size: 14.5px; margin-top: 12px; max-width: 30em; }
.site-footer .legal {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-muted); font-size: 13.5px;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Article / guide pages ---------- */
.article-hero { padding: 64px 0 30px; }
.breadcrumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--emerald); }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; max-width: 20em; margin-bottom: 18px;
}
.article-hero .lede { color: var(--text-muted); font-size: 19px; max-width: 42em; }

.article-body { max-width: 780px; padding-bottom: 40px; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.65rem;
  margin: 44px 0 16px; line-height: 1.25;
}
.article-body h3 { font-size: 1.15rem; margin: 30px 0 10px; }
.article-body p { margin-bottom: 16px; color: #c6cfdc; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: #c6cfdc; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; margin: 22px 0;
  color: var(--text); font-family: var(--font-display); font-size: 1.12em;
}
.article-body blockquote cite { display: block; margin-top: 8px; font-size: .8em; color: var(--text-muted); font-style: normal; font-family: var(--font-body); }

.callout {
  background: var(--bg-card); border: 1px solid rgba(16,185,129,.4);
  border-radius: var(--radius); padding: 24px 26px; margin: 30px 0;
}
.callout h3 { margin-top: 0 !important; color: var(--emerald); }

.related { border-top: 1px solid var(--line); padding: 44px 0 70px; }
.related h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 24px; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 820px; padding: 40px 0 80px; }
.legal-body h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 8px; }
.legal-body .updated { color: var(--text-muted); margin-bottom: 34px; }
.legal-body h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal-body p, .legal-body li { color: #c6cfdc; }
.legal-body ul { margin: 0 0 16px 24px; }
.legal-body p { margin-bottom: 14px; }
.lang-switch { margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.lang-switch a { margin-right: 12px; }
[dir="rtl"] .legal-body ul { margin: 0 24px 16px 0; }
