/* JamShare landing page system — guides, converter and tool pages.
   Standalone: these pages do not load nicepage.css or index.css. */

:root {
  --pink: #ff3c6c;
  --orange: #fc9f3b;
  --ink: #17191d;
  --ink-2: #2b1b2e;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --bg-soft: #f8f7fb;
  --grad: linear-gradient(90deg, var(--orange), var(--pink));
  --radius: 22px;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  --container: 1100px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

/* ── Header ───────────────────────────────────────────── */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 20px 20px; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .site-header.nav-open .nav { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--grad); border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-solid { background: var(--pink); box-shadow: 0 14px 30px rgba(255,60,108,.24); }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  color: #fff;
  padding: 56px 0 64px;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,132,0,0.35), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255,60,108,0.35), transparent 50%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero .lede { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 56ch; margin-bottom: 26px; }
.hero code { background: rgba(255,255,255,0.14); color: #fff; }
.hero .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
/* The phone-in-hand render is a cut-out: frame it in a card and let the arm
   run off the card's bottom-right corner so the crop is never visible. */
.hero-art { position: relative; justify-self: stretch; align-self: stretch; display: flex; justify-content: flex-end; align-items: flex-end; min-height: 440px; padding: 36px 0 0 36px; overflow: hidden; border-radius: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.hero-art picture { display: block; width: 88%; max-width: 380px; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-meta { margin: 18px 0 0; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.72); }
.hero-meta span[aria-hidden] { margin: 0 6px; color: rgba(255,255,255,0.35); }
.hero-meta strong { color: var(--orange); }
.hero-app { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero-app p { margin: 0; font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.hero-app .stores { gap: 10px; }
.hero-app .stores img { height: 38px; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { min-height: 0; max-width: 420px; width: 100%; justify-self: center; }
}

/* ── Platform strip ───────────────────────────────────── */
.platforms { padding: 28px 0; border-bottom: 1px solid var(--line); }
.platforms .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.platforms img { width: 36px; height: 36px; border-radius: 9px; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.bar { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 16px; }

/* ── Steps ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.95rem; }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--text-2); font-size: 1rem; }
.step-media { margin-top: auto; border-radius: 18px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; height: 240px; }
.step-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-media.contain { padding: 12px; }
.step-media.contain img { object-fit: contain; object-position: center; }
.step-media.icons { height: 160px; gap: 14px; grid-auto-flow: column; justify-content: center; padding: 24px; }
.step-media.icons img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; box-shadow: 0 10px 24px rgba(17,24,39,.12); }
.step-media.icons .arrow { color: var(--pink); font-size: 1.6rem; font-weight: 800; }
.device { width: min(62%, 230px); margin: 18px auto 0; align-self: end; border: 10px solid #0d0e11; border-bottom: 0; border-radius: 36px 36px 0 0; overflow: hidden; background: #0d0e11; box-shadow: 0 20px 40px rgba(17,24,39,.25); }
.device img { width: 100%; display: block; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .step-media { height: 220px; }
  .step-media.icons { height: 150px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .step-media { height: 200px; } .step-media.icons { height: 150px; } }

/* ── Article body ─────────────────────────────────────── */
.article { max-width: 760px; }
.article h2 { margin-top: 44px; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--text-2); font-size: 1.08rem; line-height: 1.75; }
.article ul { padding-left: 22px; }
.article .updated { font-size: 0.9rem; color: var(--muted); margin: -6px 0 28px; }
.pullquote { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 36px 0; padding: 20px 24px; border-left: 4px solid var(--pink); background: var(--bg-soft); border-radius: 0 18px 18px 0; color: var(--text); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); margin: 28px 0 8px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp th { background: linear-gradient(90deg, var(--ink), var(--ink-2)); color: #fff; text-align: left; padding: 14px 18px; font-size: 0.92rem; }
table.cmp td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--text-2); vertical-align: top; }
table.cmp tr:nth-child(even) td { background: var(--bg-soft); }
.yes { color: #15803d; font-weight: 700; }
.no { color: #b91c1c; font-weight: 700; }

/* ── Cards (related tools) ────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { text-decoration: none; transform: translateY(-2px); }
.card img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding: 18px 36px 18px 0; 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.5rem; color: var(--pink); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; line-height: 1.7; }

/* ── Download band ────────────────────────────────────── */
.band { color: #fff; border-radius: 28px; padding: 44px; background-image: radial-gradient(circle at 10% 0%, rgba(255,132,0,0.4), transparent 55%), radial-gradient(circle at 100% 100%, rgba(255,60,108,0.4), transparent 50%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: rgba(255,255,255,0.8); margin: 0 0 20px; max-width: 52ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores img { height: 48px; width: auto; }
.stores .web { color: #fff; font-weight: 600; font-size: 0.95rem; margin-left: 6px; text-decoration: underline; }
@media (max-width: 900px) { .band { padding: 32px 24px; } }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 40px 0 32px; margin-top: 64px; font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer .social { display: flex; gap: 14px; }
.site-footer .social a { opacity: 0.85; }
.site-footer .legal { width: 100%; color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-top: 8px; }
.site-footer .legal a { color: var(--pink); }

/* ── RTL ──────────────────────────────────────────────── */
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero-meta span[aria-hidden] { margin: 0 6px; }
[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pullquote { border-left: 0; border-right: 4px solid var(--pink); border-radius: 18px 0 0 18px; }
[dir="rtl"] .faq summary { padding: 18px 0 18px 36px; }
[dir="rtl"] .faq summary::after { right: auto; left: 0; }
[dir="rtl"] table.cmp th { text-align: right; }
[dir="rtl"] .step-media.icons .arrow { transform: scaleX(-1); }

/* Real share-flow images: show them whole, at a natural size. */
.step-media.contain img { max-width: 210px; max-height: 210px; }
