/* ==========================================================================
   ShareMeForPC.com.in — base styles
   Lightweight, no framework, mobile-first.
   ========================================================================== */

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --text: #0b1524;
  --text-2: #33445a;
  --muted: #5c6d82;
  --line: #e1e9f2;
  --brand: #00a7f1;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-soft: #e6f6fe;
  --ok: #0f9d58;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 35, 62, .06), 0 4px 14px rgba(13, 35, 62, .05);
  --shadow: 0 10px 30px rgba(13, 35, 62, .08);
  --maxw: 1120px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.dark {
  --bg: #080e16;
  --surface: #0f1824;
  --surface-2: #152030;
  --text: #e9f0f8;
  --text-2: #c3d0df;
  --muted: #93a5ba;
  --line: #1f2d3d;
  --brand-soft: #062a3d;
  --warn-soft: #2a1a09;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container, .card, .prose, .layout-post > *, .hero-grid > * { min-width: 0; }

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
html.dark a { color: #7cc7f7; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 650; }
small { font-size: .85rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 8px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo span em { font-style: normal; color: var(--brand-600); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { color: var(--text-2); font-size: .92rem; font-weight: 550; padding: 8px 11px; border-radius: 9px; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-soft); }
html.dark .nav-links a[aria-current="page"] { color: #8fd4fb; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--text-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; box-shadow: 0 6px 18px rgba(2, 132, 199, .28); }
a.btn-primary, a.btn-primary:hover, html.dark a.btn-primary, html.dark a.btn-primary:hover { color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(2, 132, 199, .34); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 52px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(0, 167, 241, .16), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(2, 132, 199, .10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700);
  background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
}
html.dark .eyebrow { color: #8fd4fb; }
.hero p.lead { font-size: 1.1rem; color: var(--text-2); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .87rem; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.hero-card h3 { margin-bottom: 14px; font-size: 1rem; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--bg); }
.app-row:last-of-type { margin-bottom: 0; }
.app-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; flex: none; color: var(--brand-600); font-weight: 800; }
.app-row b { display: block; font-size: .9rem; }
.app-row span { font-size: .78rem; color: var(--muted); }
.badge { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.live { background: #e7f8ee; color: #0b7a43; }
html.dark .badge.live { background: #062d1c; color: #6ee7a8; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.section-head { max-width: 68ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 21px; height: 21px; }
.card ul { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.card ul li { margin-bottom: 5px; }

/* ---------- Prose ---------- */
.prose { font-size: 1.02rem; color: var(--text-2); }
.prose > h2 { margin-top: 2.1em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--text); }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: .45em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.prose td { color: var(--text-2); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--text-2); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.page-head { padding: 40px 0 8px; }
.page-head h1 { margin-bottom: .35em; }
.page-head .sub { font-size: 1.05rem; color: var(--muted); max-width: 70ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .82rem; margin-top: 14px; align-items: center; }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.breadcrumb { padding-top: 18px; font-size: .82rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.layout-post { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding: 24px 0 64px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.sidebar .card { padding: 18px; }
.sidebar h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.sidebar li { margin-bottom: 7px; }
.sidebar a { color: var(--text-2); }
.sidebar a:hover { color: var(--brand-700); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 20px 22px 20px 66px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-700); font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
html.dark .step::before { color: #8fd4fb; }
.step h3 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 620; font-size: .98rem; list-style: none; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--brand-600); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > div { margin: 0 0 16px; color: var(--text-2); font-size: .95rem; }

/* ---------- Callout / note ---------- */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); margin: 1.6em 0; }
.callout .ci { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; }
.callout.warn { background: var(--warn-soft); border-color: #fcd9a8; }
html.dark .callout.warn { border-color: #5a3a12; }
.callout.warn .ci { background: #fde8c8; color: var(--warn); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--text); }

/* ---------- Table of contents ---------- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.toc li { margin-bottom: 4px; }

/* ---------- Ad slot ---------- */
.ad-slot { display: grid; place-items: center; min-height: 96px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 28px 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0b2a3d, #064f75 60%, #0284c7); color: #fff; border-radius: 22px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 48px 0; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfeafb; margin: 0; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; color: #06415f; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--brand-700); }
.footer .about { font-size: .88rem; color: var(--muted); max-width: 40ch; margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- 404 ---------- */
.error-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.error-code { font-size: clamp(72px, 14vw, 120px); font-weight: 800; letter-spacing: -.05em; color: var(--brand-600); line-height: 1; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .layout-post { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    gap: 2px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-links .btn { margin-top: 8px; }
  .header .theme-desktop { display: none; }
  body { padding-bottom: 64px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .hero { padding: 44px 0 40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 40px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

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

/* ---------- Print ---------- */
@media print {
  .header, .footer, .mobile-cta, .sidebar, .ad-slot, .cta-band { display: none !important; }
  body { background: #fff; }
}
