/* Rewired — shared marketing styles */
:root {
  --pink: #f4517d;
  --coral: #f98a6e;
  --grad: linear-gradient(135deg, #f4517d 0%, #f98a6e 100%);
  --ink: #2b1c22;
  --muted: #6f5b62;
  --bg: #fff8f6;
  --card: #ffffff;
  --line: #f3e2dd;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(244, 81, 125, 0.12);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--pink); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff !important;
  font-weight: 700; padding: 13px 26px; border-radius: 999px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(244,81,125,.22); text-decoration: none; }
.btn.small { padding: 9px 18px; font-size: .9rem; }
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff !important; border-radius: 14px;
  padding: 10px 22px; transition: transform .15s ease;
}
.btn-appstore:hover { transform: translateY(-2px); text-decoration: none; }
.btn-appstore svg { width: 26px; height: 26px; flex: none; }
.btn-appstore .lines { text-align: left; line-height: 1.2; }
.btn-appstore .lines small { display: block; font-size: .68rem; font-weight: 400; opacity: .85; }
.btn-appstore .lines strong { font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 20px 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .hero .sub { margin-inline: auto; } }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-cta { justify-content: center; } }
.hero-proof { margin-top: 18px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.hero-shot { position: relative; }
.hero-shot img {
  width: min(320px, 80%); margin: 0 auto; border-radius: 28px;
  box-shadow: 0 24px 60px rgba(43, 28, 34, .22);
}
.badge-free {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  color: var(--pink); font-weight: 700; font-size: .8rem;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.shots img { border-radius: 22px; box-shadow: 0 14px 34px rgba(43,28,34,.16); }
.shots figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 4px 14px rgba(244,81,125,.05);
}
.step .num {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Guides grid ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.guide-card .tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); }
.guide-card h3 { font-size: 1.02rem; margin: 8px 0 6px; line-height: 1.35; }
.guide-card p { font-size: .88rem; color: var(--muted); }
.guide-card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--pink); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--pink); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; text-align: center; border-radius: 28px; padding: 56px 28px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; }
.cta-band p { margin: 12px auto 26px; max-width: 36em; opacity: .95; font-size: 1.05rem; }
.cta-band .btn-appstore { background: #fff; color: #111 !important; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); font-size: .95rem; }
.site-footer .fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Guide article pages ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; }
.article .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.article .lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.article h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article .callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pink);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.article .callout strong { color: var(--pink); }
.article-cta {
  background: var(--grad); border-radius: var(--radius); color: #fff;
  padding: 32px 28px; margin: 40px 0; text-align: center;
}
.article-cta h2 { margin: 0 0 8px; font-size: 1.4rem; }
.article-cta p { opacity: .95; margin-bottom: 18px; }
.article-cta .btn-appstore { background: #fff; color: #111 !important; }
.related { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; }
.related h2 { font-size: 1.2rem; margin-bottom: 16px; }
.related ul { list-style: none; }
.related li { margin-bottom: 10px; }
