/* ConMigo — conmigo.uk shared stylesheet. No build step; plain static site.
   Class contracts used across every page: .site-header/.inner/.brand/.site-nav,
   .hero/.cta-row/.btn, .feature-grid/.feature, .guide-grid/.guide-card,
   .article-meta/.callout, table, .site-footer. Landing-only extras live below. */
:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg-alt: #eef1f7;
  --text: #131722;
  --muted: rgba(19, 23, 34, 0.62);
  --accent: #0a67d6;
  --accent-2: #16c0cf;
  --accent-ink: #0a4fb0;
  --accent-soft: rgba(10, 103, 214, 0.08);
  --accent-border: rgba(10, 103, 214, 0.18);
  --card: #ffffff;
  --border: rgba(19, 23, 34, 0.1);
  --shadow: 0 18px 50px -24px rgba(12, 30, 66, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(12, 30, 66, 0.3);
  --grad: linear-gradient(135deg, #0a3aa8 0%, #0a67d6 52%, #16c0cf 100%);
  --grad-soft: linear-gradient(135deg, rgba(10,58,168,0.08), rgba(22,192,207,0.08));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e14;
    --bg-alt: #12151d;
    --text: #eef0f6;
    --muted: rgba(238, 240, 246, 0.62);
    --accent: #5aa2f0;
    --accent-2: #4fd6e3;
    --accent-ink: #8fc0f7;
    --accent-soft: rgba(90, 162, 240, 0.12);
    --accent-border: rgba(90, 162, 240, 0.24);
    --card: #161a24;
    --border: rgba(238, 240, 246, 0.12);
    --shadow: 0 20px 60px -28px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.7);
    --grad-soft: linear-gradient(135deg, rgba(90,162,240,0.1), rgba(79,214,227,0.1));
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e14; --bg-alt: #12151d; --text: #eef0f6; --muted: rgba(238,240,246,0.62);
  --accent: #5aa2f0; --accent-2: #4fd6e3; --accent-ink: #8fc0f7;
  --accent-soft: rgba(90,162,240,0.12); --accent-border: rgba(90,162,240,0.24);
  --card: #161a24; --border: rgba(238,240,246,0.12);
  --shadow: 0 20px 60px -28px rgba(0,0,0,0.8); --shadow-sm: 0 8px 24px -14px rgba(0,0,0,0.7);
  --grad-soft: linear-gradient(135deg, rgba(90,162,240,0.1), rgba(79,214,227,0.1));
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb; --bg-alt: #eef1f7; --text: #131722; --muted: rgba(19,23,34,0.62);
  --accent: #0a67d6; --accent-2: #16c0cf; --accent-ink: #0a4fb0;
  --accent-soft: rgba(10,103,214,0.08); --accent-border: rgba(10,103,214,0.18);
  --card: #ffffff; --border: rgba(19,23,34,0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
main { max-width: 760px; margin: 0 auto; padding: 32px 24px 96px; }
h1 { font-size: 32px; line-height: 1.18; margin: 24px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin-top: 40px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin-top: 28px; }
p { margin: 12px 0; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.meta { font-size: 14px; color: var(--muted); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
/* No flex `gap` here — it would also space the "Con" text node from the "Migo"
   span, splitting the wordmark. The mark carries its own margin instead. */
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand span:not(.brand-mark) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The real app icon (Cm + plane + stars), corners pre-masked to transparent
   in logo.png; border-radius shapes the drop shadow to match. */
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: inline-block; flex: none; margin-right: 9px; box-shadow: var(--shadow-sm);
  background-image: url(/assets/logo.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; }
.migo-badge { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); border: 2px solid var(--card); }
.eyebrow-migo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 600; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  padding: 8px 16px; border-radius: 999px; background: var(--grad); color: #fff !important;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { text-decoration: none; opacity: 0.94; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { opacity: 0.94; transform: translateY(-1px); }
.btn-secondary { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.cta-row { display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }

/* ---------- Landing page ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tint { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: 30px; margin: 10px 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.hero-lp { position: relative; overflow: hidden; padding: 40px 0 20px; }
.hero-lp::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1100px 520px at 78% -8%, rgba(22,192,207,0.16), transparent 60%),
              radial-gradient(900px 480px at 6% 4%, rgba(10,103,214,0.14), transparent 58%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; padding: 44px 0 8px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 20px; } }
.hero-copy h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 16px; }
.hero-copy h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lede { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); font-size: 13px; font-weight: 700; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #21c07a; box-shadow: 0 0 0 4px rgba(33,192,122,0.18); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust b { color: var(--text); }
.hero-media { display: flex; justify-content: center; }

/* Phone mockup + carousel */
.phone {
  position: relative; width: 300px; max-width: 82vw; aspect-ratio: 300 / 620;
  border-radius: 46px; background: #0b0d13;
  padding: 12px; box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,0.05) inset;
  border: 1px solid rgba(255,255,255,0.08);
}
/* No fake notch/Dynamic Island: the demo capture has its status bar cropped, so
   an overlaid notch would sit on top of the app's own header. Edge-to-edge
   screen inside the bezel reads cleaner. */
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--card); }
.phone-screen .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 0.7s ease; }
.phone-screen .slide.active { opacity: 1; }
.phone-screen .demo-vid { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.25s; }
.dots button.active { background: var(--accent); width: 22px; border-radius: 999px; }
.caption { text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 20px; font-weight: 600; }

/* Feature showcase rows (alternating text + screenshot) */
.showcase { display: grid; gap: 60px; }
.showcase-row { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .showcase-row { grid-template-columns: 1fr 1fr; gap: 48px; }
  .showcase-row.reverse .sc-media { order: 2; }
}
.sc-copy .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.sc-copy h3 { font-size: 26px; margin: 8px 0 12px; letter-spacing: -0.02em; }
.sc-copy p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.sc-list { list-style: none; padding: 0; margin: 0; }
.sc-list li { position: relative; padding-left: 28px; margin: 9px 0; color: var(--text); }
.sc-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; font-size: 11px; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.sc-media { display: flex; justify-content: center; }
.sc-media .frame {
  width: 232px; max-width: 72vw; border-radius: 36px; background: #0b0d13; padding: 9px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.08);
}
/* Real iPhone proportions (status bar removed only), shown at natural ratio —
   no CSS cropping, no distortion. */
.sc-media .frame img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* Feature grid (icon cards) */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--grad-soft); border: 1px solid var(--accent-border); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 20px; }
.stat .n { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.review .stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; }
.review p { font-size: 15px; margin: 10px 0 14px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.review .who b { font-size: 14px; }
.review .who span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin: 10px 0; padding: 4px 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { border-radius: 24px; background: var(--grad); color: #fff; padding: 48px 32px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 22px; max-width: 480px; opacity: 0.92; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-band .btn-secondary { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); color: #fff; }

/* Cards & article bits (shared) */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; color: var(--text); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s; box-shadow: var(--shadow-sm); }
.guide-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 800; }
.guide-card h3 { margin: 8px 0 6px; font-size: 17px; }
.guide-card p { margin: 0; font-size: 14px; color: var(--muted); }

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 40px; margin-bottom: 14px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 560px; }

.article-meta { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.callout { background: var(--grad-soft); border: 1px solid var(--accent-border); border-radius: 14px; padding: 16px 20px; font-size: 15px; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 0; background: var(--bg-alt); }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px 56px; font-size: 13px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-top .brand { font-size: 18px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer nav a { color: var(--muted); font-weight: 600; }
.site-footer nav a:hover { color: var(--text); }
.social-row { display: flex; gap: 12px; margin: 8px 0 4px; }
.social-row a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 17px; }
.social-row a:hover { border-color: var(--accent); text-decoration: none; }

/* Early-access form */
.ea-card { max-width: 500px; margin: 0 auto; }
.ea-form { text-align: left; }
.ea-field { margin-bottom: 15px; }
.ea-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ea-field .opt { color: var(--muted); font-weight: 500; }
.ea-field input[type="text"], .ea-field input[type="email"], .ea-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit;
}
.ea-field input:focus, .ea-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ea-field textarea { min-height: 84px; resize: vertical; }
.ea-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.ea-platforms label {
  flex: 1; min-width: 110px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  cursor: pointer; font-weight: 600; font-size: 14px; margin: 0;
}
.ea-platforms input { accent-color: var(--accent); }
.ea-platforms label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ea-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.ea-form .btn-primary[disabled] { opacity: 0.6; cursor: default; }
.ea-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; min-height: 18px; }
.ea-msg.ok { color: #17a866; }
.ea-msg.err { color: #e5484d; }

/* Utilities */
.center { text-align: center; }
.wrap-narrow { max-width: 760px; }
.mt-lg { margin-top: 26px; }
.mb-sm { margin-bottom: 16px; }
.lead-muted { color: var(--muted); font-size: 17px; }
.pad-tight { padding: 44px 0; }
.cta-center { justify-content: center; }
.hero-center { padding: 48px 0 8px; text-align: center; max-width: 720px; }
.h1-lg { font-size: 40px; letter-spacing: -0.03em; margin: 16px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .phone-screen .slide { transition: none; }
  .btn-primary:hover { transform: none; }
}
