/* JPG To PDF Converter PRO - jpgtopdfconverterapp.com
   Palette and typeface taken from the app itself. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --accent: #e8450a;
  --accent-2: #ff8c42;
  --accent-soft: #fdeee7;
  --accent-ink: #b83506;

  --ink: #0a0a0c;
  --ink-2: #3c3c43;
  --ink-3: #6b6b76;
  --line: rgba(10, 10, 12, 0.09);
  --line-2: rgba(10, 10, 12, 0.055);

  --bg: #f4f4f7;
  --card: #ffffff;
  --card-2: #fafafc;

  --shadow-sm: 0 1px 2px rgba(10, 10, 12, 0.05), 0 1px 3px rgba(10, 10, 12, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 12, 0.06), 0 1px 3px rgba(10, 10, 12, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(10, 10, 12, 0.18), 0 2px 8px rgba(10, 10, 12, 0.05);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --wrap: 1120px;
  --gutter: 20px;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-soft: rgba(232, 69, 10, 0.14);
    --accent-ink: #ff9a5a;
    --ink: #f5f5f7;
    --ink-2: #c4c4cc;
    --ink-3: #8e8e99;
    --line: rgba(255, 255, 255, 0.11);
    --line-2: rgba(255, 255, 255, 0.07);
    --bg: #0a0a0c;
    --card: #141418;
    --card-2: #111114;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { white-space: nowrap; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--sans); font-weight: 500; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.header-cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(232, 69, 10, 0.55);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(232, 69, 10, 0.6); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn .apple { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn-lg .apple { width: 21px; height: 21px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 50%; width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 140, 66, 0.16) 0%, rgba(255, 140, 66, 0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(36px, 6vw, 56px); }
@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
.hero-icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: var(--shadow-md); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.05rem, 6.2vw, 3.45rem); margin-bottom: 18px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--ink-2); max-width: 30em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 11px; box-shadow: var(--shadow-sm);
}
.chips svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Phone frame */
.phone { justify-self: center; position: relative; width: min(280px, 74vw); }
.phone::after {
  content: ""; position: absolute; inset: auto 8% -22px 8%; height: 40px;
  background: radial-gradient(ellipse, rgba(10, 10, 12, 0.22) 0%, rgba(10, 10, 12, 0) 72%);
  filter: blur(6px);
}
.phone img {
  width: 100%; border-radius: 34px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--card);
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 92px) 0; }
.section--tint { background: var(--card-2); border-block: 1px solid var(--line-2); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 14px; }
.section h1 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.steps li {
  counter-increment: step; margin: 0; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 7px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- Screenshot gallery ---------- */
.shots {
  display: flex; gap: 18px; list-style: none; margin: 0; padding: 4px var(--gutter) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots > li { flex: 0 0 auto; width: 214px; margin: 0; scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; border-radius: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--card);
}
.shots figcaption {
  font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--ink-3);
  text-align: center; margin-top: 13px; padding-inline: 4px;
}
@media (min-width: 1100px) {
  .shots {
    overflow: visible; justify-content: center; flex-wrap: wrap;
    padding-inline: 0; gap: 22px;
  }
  .shots > li { width: 200px; }
  .shots > li:nth-child(odd) { transform: translateY(-16px); }
}

/* ---------- Use cases ---------- */
.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 680px) { .uses { grid-template-columns: repeat(2, 1fr); } }
.uses li {
  margin: 0; display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.uses svg { width: 19px; height: 19px; margin-top: 3px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.uses strong { font-family: var(--sans); font-size: 15.5px; display: block; margin-bottom: 3px; }
.uses span { color: var(--ink-2); font-size: 15px; }

/* ---------- Guide cards ---------- */
.guides { display: grid; gap: 14px; }
@media (min-width: 680px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.guide-card:hover { color: inherit; transform: translateY(-2px); border-color: rgba(232, 69, 10, 0.35); box-shadow: var(--shadow-md); }
.guide-card .kicker { font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.085em; text-transform: uppercase; color: var(--accent-ink); }
.guide-card h2,
.guide-card h3 { font-size: 1.06rem; line-height: 1.3; }
.guide-card p { color: var(--ink-2); font-size: 14.8px; margin: 0; flex: 1; }
.guide-card .more { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--accent-ink); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 48rem; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq summary {
  font-family: var(--sans); font-weight: 700; font-size: 16.5px; line-height: 1.4;
  padding: 16px 30px 16px 0; cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px;
  border-right: 2.2px solid var(--ink-3); border-bottom: 2.2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding-bottom: 18px; color: var(--ink-2); font-size: 15.8px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { font-family: var(--sans); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.faq .answer a:hover { text-decoration: underline; }

/* ---------- Final CTA ---------- */
.cta-band { padding: clamp(48px, 8vw, 88px) 0; }
.cta-box {
  background: linear-gradient(140deg, #16161a 0%, #0a0a0c 62%, #2a1109 100%);
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 56px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; bottom: -280px;
  background: radial-gradient(circle, rgba(232, 69, 10, 0.4) 0%, rgba(232, 69, 10, 0) 68%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box img { width: 66px; height: 66px; border-radius: 17px; margin: 0 auto 20px; }
.cta-box h2 { color: #fff; font-size: clamp(1.55rem, 4.2vw, 2.25rem); margin-bottom: 14px; }
.cta-box p { color: #b6b6c0; max-width: 32em; margin: 0 auto 26px; font-size: 1.03rem; }
.cta-box .btn-primary { box-shadow: 0 10px 30px -8px rgba(232, 69, 10, 0.7); }
.cta-box .fine { font-size: 13.5px; color: #77777f; margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 60px) 0 34px; background: var(--card-2); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: 14.8px; max-width: 30em; margin-bottom: 16px; }
.site-footer h2 { font-size: 13px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.085em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-footer li a:hover { color: var(--accent); }
.footer-base {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: var(--ink-3); font-size: 13.5px;
}
.footer-base a { color: var(--ink-3); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.28s ease; visibility: hidden;
}
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Article pages ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--ink-3); padding-top: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 8px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.article { padding: 22px 0 clamp(48px, 7vw, 76px); }
.article > .wrap { max-width: 760px; }
.article h1 { font-size: clamp(1.85rem, 5.2vw, 2.8rem); margin-bottom: 18px; }
.article .meta { font-size: 13.5px; color: var(--ink-3); margin-bottom: 30px; }
.article .lede {
  font-size: 1.12rem; color: var(--ink-2); line-height: 1.6;
  border-left: 3px solid var(--accent); padding: 2px 0 2px 20px; margin-bottom: 34px;
}
.article h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); margin: 44px 0 14px; scroll-margin-top: 88px; }
.article h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); }
.article ol li, .article ul li { margin-bottom: 0.62em; }

.callout {
  background: var(--accent-soft); border: 1px solid rgba(232, 69, 10, 0.22);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.note {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 26px 0; box-shadow: var(--shadow-sm);
}
.note p:last-child { margin-bottom: 0; }

.inline-shot { margin: 32px 0; text-align: center; }
.inline-shot img {
  width: min(258px, 70%); margin-inline: auto; border-radius: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.inline-shot figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

.mistakes { list-style: none; padding: 0; }
.mistakes li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
}
.mistakes li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 3px; background: var(--accent); opacity: 0.85;
}

.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 38px 0; box-shadow: var(--shadow-sm);
}
.article-cta img { width: 58px; height: 58px; border-radius: 15px; flex: none; }
.article-cta div { flex: 1 1 240px; }
.article-cta h2 { font-size: 1.15rem; margin: 0 0 6px; }
.article-cta p { font-size: 14.8px; margin: 0; }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 620px) { .related { grid-template-columns: repeat(2, 1fr); } }
.related li { margin: 0; }
.related a {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; color: inherit;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.4;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.related a:hover { color: inherit; border-color: rgba(232, 69, 10, 0.4); transform: translateY(-1px); }

/* Legal / plain text pages */
.prose > .wrap { max-width: 720px; }
.prose h2 { font-size: 1.32rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}
