/* Widget Vault — site styles (usemacapps.com design system) */
:root {
  --bg: #EDE8FF;
  --bg2: #E2DAFF;
  --purple: #5B4FE8;
  --purple-dark: #4338CA;
  --purple-muted: rgba(91, 79, 232, 0.12);
  --accent: #5B4FE8;
  --text: #14112A;
  --text-2: #5A5675;
  --white: #FFFFFF;
  --border: rgba(91, 79, 232, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(91, 79, 232, 0.08);
  --shadow-md: 0 6px 28px rgba(91, 79, 232, 0.12);
  --shadow-lg: 0 16px 56px rgba(91, 79, 232, 0.18);
  --maxw: 1100px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple-muted); }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237, 232, 255, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 79, 232, 0.1);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13.5px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--purple); background: var(--white);
  border: 1px solid rgba(91, 79, 232, 0.2);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; }
h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.033em; font-weight: 900;
  max-width: 20ch; margin: 0 auto 22px;
}
.accent { color: var(--purple); }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--text-2);
  max-width: 58ch; margin: 0 auto 30px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--white); border-radius: 999px; padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--purple); font-weight: 800; }

/* ---------- Download / store badge ---------- */
.store-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-badge img { height: 54px; width: auto; transition: transform 0.15s ease; }
.store-badge:hover img { transform: scale(1.04); }
.store-note { font-size: 13.5px; color: var(--text-2); }
.store-note a { color: var(--purple); font-weight: 600; }

.hero-shot { margin: 56px auto 0; max-width: 980px; }
.frame {
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--white);
}
.hero-shot .frame { border-radius: var(--radius-xl); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band-white { background: var(--white); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.028em; line-height: 1.1; font-weight: 900; margin-bottom: 14px; }
.sec-head p { color: var(--text-2); font-size: 1.06rem; line-height: 1.7; }

/* ---------- Widget grid ---------- */
.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.wcard {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.band-white .wcard { background: var(--bg); box-shadow: none; }
.band-white .wcard:hover { box-shadow: var(--shadow-sm); }
.wicon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 21px; margin-bottom: 14px; background: var(--purple-muted);
}
.wcard h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.wcard h3 a { color: var(--text); }
.wcard h3 a:hover { color: var(--purple); }
.wcard p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.wtag {
  display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2);
}
.wtag.free { color: var(--purple); }

/* ---------- Screenshot gallery ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 24px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: calc(var(--maxw) + 48px); margin: 0 auto;
  scrollbar-width: thin; scrollbar-color: rgba(91, 79, 232, 0.25) transparent;
}
.shot { flex: 0 0 min(82%, 760px); scroll-snap-align: center; }
.shot figcaption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 14px; font-weight: 500; }
.scroll-hint { text-align: center; color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.scroll-hint a { font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.band-white .step { background: var(--bg); box-shadow: none; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; background: var(--purple); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--text-2); }
.step kbd, article.guide kbd {
  font-family: inherit; font-size: 0.88em; background: var(--white);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px;
  color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm);
}

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.gcard {
  display: block; background: var(--white);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.gcard h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.35; letter-spacing: -0.01em; }
.gcard:hover h3 { color: var(--purple); }
.gcard p { font-size: 14px; color: var(--text-2); }
.gcard .more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--purple); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.pcard {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.band-white .pcard { background: var(--bg); box-shadow: none; }
.pcard.hot { border: 2px solid var(--purple); box-shadow: var(--shadow-md); }
.band-white .pcard.hot { background: var(--white); }
.pcard .plan { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.pcard .price { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; margin: 10px 0 2px; }
.pcard .per { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.pcard ul { list-style: none; text-align: left; margin: 0 auto; max-width: 240px; }
.pcard li { font-size: 14.5px; color: var(--text); padding: 5px 0 5px 24px; position: relative; }
.pcard li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 800; }
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--purple); color: #fff;
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white); border-radius: var(--radius);
  padding: 4px 24px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16px; padding: 17px 28px 17px 0;
  list-style: none; position: relative; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 500; color: var(--purple); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.faq .a a { color: var(--purple); font-weight: 700; }
.faq .a strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--purple); border-radius: var(--radius-xl);
  padding: 72px 32px; text-align: center; color: #fff;
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 14px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .store-note { color: rgba(255, 255, 255, 0.75); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(91, 79, 232, 0.12); padding: 56px 0 40px; background: var(--bg2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-grid h4 { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.foot-grid a:hover { color: var(--purple); }
.foot-brand p { color: var(--text-2); font-size: 14px; max-width: 34ch; margin-top: 12px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-2); font-size: 13px;
  border-top: 1px solid rgba(91, 79, 232, 0.12); padding-top: 24px;
}
.foot-bottom a { color: var(--text-2); font-weight: 600; }
.foot-bottom a:hover { color: var(--purple); }

/* ---------- Guide article pages ---------- */
.crumbs { font-size: 13.5px; color: var(--text-2); margin: 28px 0 4px; font-weight: 500; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--purple); }
article.guide { max-width: 760px; margin: 0 auto; padding: 12px 0 40px; }
article.guide h1 {
  font-size: clamp(2rem, 4.8vw, 2.9rem); text-align: left;
  margin: 12px 0 10px; max-width: none; letter-spacing: -0.03em;
}
.byline { color: var(--text-2); font-size: 14px; margin-bottom: 28px; font-weight: 500; }
article.guide .lede { font-size: 1.18rem; color: var(--text); line-height: 1.65; margin-bottom: 26px; }
article.guide h2 { font-size: 1.5rem; margin: 42px 0 14px; letter-spacing: -0.02em; }
article.guide h3 { font-size: 1.12rem; margin: 28px 0 10px; font-weight: 800; letter-spacing: -0.01em; }
article.guide p, article.guide li { color: var(--text-2); }
article.guide strong { color: var(--text); font-weight: 700; }
article.guide ol, article.guide ul { padding-left: 24px; margin: 12px 0 18px; }
article.guide li { margin-bottom: 8px; }
article.guide figure { margin: 30px 0; }
article.guide figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
article.guide figcaption { font-size: 13.5px; color: var(--text-2); margin-top: 12px; text-align: center; }
.note {
  background: var(--purple-muted); border: 1px solid rgba(91, 79, 232, 0.25);
  border-radius: var(--radius); padding: 16px 20px; font-size: 15px; color: var(--text); margin: 22px 0;
}
.note a { color: var(--purple); font-weight: 700; }

.guide-cta {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px 30px; text-align: center; margin: 44px 0 8px;
  box-shadow: var(--shadow-md);
}
.guide-cta h2 { margin: 0 0 10px; font-size: 1.45rem; }
.guide-cta p { margin-bottom: 20px; }

.related { max-width: 760px; margin: 24px auto 60px; }
.related h2 { font-size: 1.25rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.related ul { list-style: none; }
.related li { margin-bottom: 8px; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--white); border-radius: var(--radius);
  padding: 15px 20px; box-shadow: var(--shadow-sm);
  color: var(--text); font-weight: 600; font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.related a::after { content: "→"; font-weight: 700; opacity: 0.7; flex-shrink: 0; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--purple); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .shot { flex-basis: 92%; }
  .cta-band { padding: 52px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
