/* HEIC JPEG — Apple-style, light and dark. Accent comes from the app icon. */
:root {
  --bg: #ffffff; --bg-alt: #f5f5f7; --card: #f5f5f7; --card-alt: #ffffff;
  --label: #1d1d1f; --label2: #6e6e73; --sep: rgba(0, 0, 0, 0.1); --fill: rgba(0, 0, 0, 0.05);
  --accent: #6a4cf5; --accent2: #2f8cff; --accent-ink: #5537e0; --ok: #0b7a5f; --err: #c0262d; --no: #c0262d;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 50px -18px rgba(0, 40, 120, 0.25);
  --r-xl: 22px; --r-xxl: 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  color: var(--label); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg-alt: #0f0f12; --card: #1c1c1e; --card-alt: #1c1c1e; --label: #f5f5f7; --label2: #a1a1a6; --sep: rgba(255, 255, 255, 0.14); --fill: rgba(255, 255, 255, 0.08);
    --accent: #8b74ff; --accent2: #5fb0ff; --accent-ink: #b0a2ff; --ok: #4fd1a5; --err: #ff6b6b; --no: #ff6b6b; --shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 60px -20px rgba(0, 0, 0, 0.8); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-inline-size: 100%; }
.wrap { max-inline-size: 1080px; margin-inline: auto; padding-inline: 22px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Navigation */
.nav { position: sticky; inset-block-start: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-block-end: 1px solid var(--sep); }
.nav .wrap { display: flex; align-items: center; gap: 28px; block-size: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--label); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { inline-size: 28px; block-size: 28px; }
.nav ul { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; }
.nav ul a { color: var(--label2); }
.nav ul a:hover { color: var(--label); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--fill); color: var(--label); }

/* Hero */
.hero { text-align: center; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-logo { inline-size: 120px; block-size: 120px; margin: 0 auto 22px; filter: drop-shadow(0 14px 28px rgba(90, 60, 230, 0.28)); }
.kicker { font-size: 17px; font-weight: 600; color: var(--accent-ink); margin: 0 0 10px; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(42px, 7.2vw, 80px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 20px; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--label2); max-inline-size: 34em; margin: 0 auto; }

/* The tool, drawn as a Mac window */
.window { max-inline-size: 780px; margin: clamp(36px, 5vw, 52px) auto 0; text-align: start; background: var(--card-alt); border-radius: var(--r-xl); box-shadow: var(--shadow), 0 0 0 1px var(--sep); overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-block-end: 1px solid var(--sep); }
.titlebar i { inline-size: 12px; block-size: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { flex: 1; text-align: center; margin-inline-end: 52px; font-size: 13px; font-weight: 600; color: var(--label2); }
.drop { display: grid; gap: 8px; place-items: center; text-align: center; margin: 18px; padding: 44px 20px; border: 2px dashed var(--sep); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop svg { inline-size: 44px; block-size: 44px; color: var(--accent); }
.drop strong { font-size: 21px; letter-spacing: -0.01em; }
.drop span { color: var(--label2); font-size: 15px; }
.status { min-block-size: 1.5em; margin: 0 18px 16px; font-size: 15px; color: var(--label2); text-align: center; }
.status:empty { display: none; }
.status[data-kind="ok"] { color: var(--ok); }
.status[data-kind="error"] { color: var(--err); }
.result { border-block-start: 1px solid var(--sep); padding: 16px 18px 18px; }
.result-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block-end: 6px; }
.result h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 15px; cursor: pointer; background: var(--fill); color: var(--label); transition: transform .12s, background .2s; }
button:active { transform: scale(0.97); }
button.primary { background: var(--accent); color: #fff; padding: 9px 18px; }
button:disabled { opacity: .5; cursor: progress; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.list { list-style: none; margin: 0; padding: 0; max-block-size: 360px; overflow-y: auto; }
.list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-block-start: 1px solid var(--sep); }
.path { overflow-wrap: anywhere; font-size: 15px; }
.size { color: var(--label2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--label2); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { inline-size: 17px; block-size: 17px; color: var(--ok); }

/* Sections */
section.band { padding-block: clamp(72px, 9vw, 128px); }
section.band.alt { background: var(--bg-alt); }
.head { max-inline-size: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.head p { font-size: clamp(18px, 2vw, 21px); color: var(--label2); margin: 0; }
.card { background: var(--card); border-radius: var(--r-xxl); padding: clamp(24px, 3vw, 34px); }
.alt .card { background: var(--card-alt); box-shadow: var(--shadow), 0 0 0 1px var(--sep); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
h3 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.25; }
.card p { margin: 0; color: var(--label2); font-size: 16px; }
.num { display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-block-end: 14px; }
.ico { inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-block-end: 14px; }
.ico svg { inline-size: 24px; block-size: 24px; }
.ext { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 14px; }
.ext code { font: 600 13px ui-monospace, 'SF Mono', Menlo, monospace; background: var(--fill); border-radius: 7px; padding: 3px 8px; color: var(--label); }

/* Comparison table */
.compare { max-inline-size: 760px; margin-inline: auto; border-collapse: separate; border-spacing: 0; inline-size: 100%; background: var(--card-alt); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--sep); font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-block-end: 1px solid var(--sep); }
.compare tr:last-child td { border-block-end: 0; }
.compare thead th { font-size: 14px; color: var(--label2); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--no); font-weight: 700; }

/* RAR to ZIP illustration */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.two .copy h2 { text-align: start; }
.two .copy p { font-size: 19px; color: var(--label2); margin: 0 0 14px; }
.convert { display: grid; gap: 16px; justify-items: center; }
.file { display: flex; align-items: center; gap: 14px; inline-size: min(100%, 360px); background: var(--card-alt); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow), 0 0 0 1px var(--sep); }
.file b { display: block; font-size: 17px; }
.file small { color: var(--label2); font-size: 14px; }
.badge { display: grid; place-items: center; inline-size: 48px; block-size: 56px; border-radius: 10px; font: 700 12px ui-monospace, 'SF Mono', Menlo, monospace; color: #fff; background: #8a5cf6; }
.badge.zip { background: var(--accent); }
.arrow { color: var(--label2); }
.arrow svg { inline-size: 28px; block-size: 28px; }

/* Mac app teaser */
.teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; max-inline-size: 860px; margin-inline: auto; }
.teaser img { inline-size: 132px; block-size: 132px; filter: drop-shadow(0 14px 28px rgba(90, 60, 230, 0.28)); }
.teaser h2 { text-align: start; font-size: clamp(30px, 4vw, 44px); }
.teaser p { font-size: 18px; color: var(--label2); margin: 0 0 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; border-radius: 999px; padding: 11px 22px; background: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }

/* FAQ */
.faq { max-inline-size: 820px; margin-inline: auto; }
.faq details { border-block-end: 1px solid var(--sep); padding-block: 20px; }
.faq summary { list-style: none; cursor: pointer; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--label2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--label2); font-size: 17px; margin: 12px 0 0; }
.faq code { font: 14px ui-monospace, 'SF Mono', Menlo, monospace; background: var(--fill); border-radius: 6px; padding: 2px 6px; color: var(--label); }

/* Footer and text pages */
.foot { border-block-start: 1px solid var(--sep); padding-block: 36px 56px; color: var(--label2); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot p { margin: 0; }
.prose { max-inline-size: 760px; margin-inline: auto; padding: 48px 22px 72px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 24px; margin: 34px 0 8px; letter-spacing: -0.015em; }
.prose p { color: var(--label2); font-size: 17px; }

@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .g3, .two { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .nav .pill { margin-inline-start: auto; }
  .teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .teaser h2 { text-align: center; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .list li { grid-template-columns: minmax(0, 1fr) auto; }
  .list li button { grid-column: 1 / -1; justify-self: start; }
  .compare th, .compare td { padding: 12px 10px; font-size: 15px; }
  .drop { padding: 34px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Photo results */
.list li { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.list img { inline-size: 52px; block-size: 52px; object-fit: cover; border-radius: 10px; background: var(--fill); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; inline-size: min(100%, 380px); margin-inline: auto; }
.shot { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: end start; padding: 8px; font: 700 11px ui-monospace, 'SF Mono', Menlo, monospace; color: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--sep); }
.shot:nth-child(1) { background: linear-gradient(160deg, #ffb36b, #e0553a); }
.shot:nth-child(2) { background: linear-gradient(160deg, #6fd0ff, #2f6ee8); }
.shot:nth-child(3) { background: linear-gradient(160deg, #b7f0c9, #1f9d6b); }
.shot:nth-child(4) { background: linear-gradient(160deg, #f7a6d8, #b4378f); }
.shot:nth-child(5) { background: linear-gradient(160deg, #ffe08a, #e0a320); }
.shot:nth-child(6) { background: linear-gradient(160deg, #c4b5ff, #6a4cf5); }
@media (max-width: 560px) {
  .list li { grid-template-columns: 52px minmax(0, 1fr); }
  .list li .size, .list li button { grid-column: 2; }
}

/* Output options */
.options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px 0; }
.seg { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 3px; border: 0; border-radius: 11px; background: var(--fill); }
.seg legend { float: left; font-size: 13px; font-weight: 600; color: var(--label2); padding: 0 8px 0 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 5px 13px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--label2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--card-alt); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px var(--sep); }
.seg input:disabled + span { opacity: .35; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.quality { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--label2); }
.quality input { accent-color: var(--accent); inline-size: 140px; }
.quality output { min-inline-size: 3ch; font-variant-numeric: tabular-nums; color: var(--label); }
.quality[hidden] { display: none; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-inline-size: 960px; margin-inline: auto; }
.tool-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: 18px; background: var(--card-alt); box-shadow: var(--shadow), 0 0 0 1px var(--sep); color: var(--label); font-size: 18px; }
.tool-link:hover { text-decoration: none; transform: translateY(-1px); }
.tool-link svg { inline-size: 20px; block-size: 20px; color: var(--accent); }
@media (max-width: 560px) {
  .options { flex-direction: column; align-items: stretch; }
  .seg legend { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seg label { flex: 1; text-align: center; }
  .quality input { flex: 1; }
}
