/* Socratic Solve: shared styles */
:root {
  --brand: #6c4bd8;
  --brand-dark: #5638b8;
  --brand-tint: #f1edfd;
  --accent: #ffd466;
  --ink: #16181d;
  --ink-soft: #4b5058;
  --line: #e8e8ec;
  --bg: #ffffff;
  --bg-soft: #f8f7fc;
  --green: #0e9f4f;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(22, 24, 29, .10);
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 9px 18px; font-size: .9rem; }
.btn.ghost { background: #fff; color: var(--brand) !important; border: 2px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); }
.store-badge img { height: 54px; width: auto; }
.store-badges { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.store-badges img { height: 54px; width: auto; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #f4f0ff 0%, #eef4ff 55%, var(--bg-soft) 100%); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero .lede { margin: 20px 0 28px; font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; }
.hero-shot { max-width: 340px; justify-self: center; }
.hero-shot img { border-radius: 28px; box-shadow: var(--shadow); }
.trust-strip { border-top: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; padding: 18px 20px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.trust-strip span::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .rating { justify-content: center; }
  .hero-shot { max-width: 280px; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
.kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
h2.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; margin: 8px 0 12px; }
.section-sub { color: var(--ink-soft); max-width: 46em; font-size: 1.06rem; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ---------- Screenshot gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; box-shadow: 0 4px 18px rgba(22,24,29,.12); }
.shots figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: 10px; font-weight: 600; }
@media (max-width: 980px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots figure { flex: 0 0 220px; scroll-snap-align: start; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { font-size: 1.6rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.guide-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  color: var(--ink); transition: box-shadow .15s ease, transform .15s ease;
}
.guide-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card .tag { color: var(--brand); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.guide-card h3 { font-size: 1.02rem; line-height: 1.35; }
.guide-card p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.guide-card .more { color: var(--brand); font-weight: 700; font-size: .9rem; }
@media (max-width: 980px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 4px 22px; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; padding: 16px 0; list-style: none; position: relative; padding-right: 34px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .a { padding: 0 0 18px; color: var(--ink-soft); }
.faq-list .a a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, #4a6cf7 100%); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.015em; margin-bottom: 12px; }
.cta-band p { opacity: .92; max-width: 40em; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--brand) !important; font-size: 1.05rem; }
.cta-band .btn:hover { background: var(--brand-tint); }
.cta-band .store-badge { display: inline-block; margin-top: 18px; }
.cta-band .fineprint { font-size: .85rem; opacity: .8; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccd3; padding: 56px 0 40px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid #2b2e36; font-size: .8rem; color: #8f939c; line-height: 1.55; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guide article pages ---------- */
.article-hero { background: var(--bg-soft); padding: 48px 0 40px; }
.breadcrumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.article-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; max-width: 24em; }
.article-hero .lede { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); max-width: 42em; }
.article { max-width: 780px; margin: 0 auto; padding: 48px 20px 20px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 14px; letter-spacing: -.01em; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article p, .article li { color: #2e323a; font-size: 1.03rem; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .97rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article th { background: var(--bg-soft); }
.article .shot-inline { max-width: 300px; margin: 28px auto; }
.article .shot-inline img { border-radius: 20px; box-shadow: var(--shadow); }
.article .shot-inline figcaption { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.tip {
  background: var(--brand-tint); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 24px 0;
}
.tip strong { color: var(--brand-dark); }
.inline-cta {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 30px; margin: 36px 0; text-align: center;
}
.inline-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.inline-cta p { color: #c9ccd3 !important; margin-bottom: 18px; }
.related { background: var(--bg-soft); padding: 56px 0; margin-top: 56px; }
.related h2 { font-size: 1.4rem; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
.article-meta { margin-top: 14px; color: var(--ink-soft); font-size: .88rem; }
