/* PhotoEscape site. Plain CSS, no build step.
   Shape rule: buttons are full pills; cards, panels and screenshots use 16px; small chips 10px. */

:root {
  --bg: #f7f6fb;
  --surface: #eeedf5;
  --surface-strong: #e3e1ee;
  --text: #17162b;
  --muted: #55546c;
  --line: #d9d7e6;
  --accent: #c2432a;          /* coral from the icon, darkened for contrast on light */
  --accent-ink: #ffffff;
  --accent-soft: #f9e3dc;
  --dusk-1: #2b2d6e;
  --dusk-2: #6a3fa0;
  --dusk-3: #ff7a59;
  --shadow: 0 24px 60px -24px rgb(43 45 110 / 0.35);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111f;
    --surface: #1c1b2e;
    --surface-strong: #26253c;
    --text: #f1f0f8;
    --muted: #a8a7c0;
    --line: #2f2e48;
    --accent: #ff8a66;
    --accent-ink: #1d0f0b;
    --accent-soft: #3a2230;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; margin-top: 14px; }
.muted { color: var(--muted); }
.prose { max-width: 62ch; }
section { padding-block: clamp(32px, 4.5vw, 56px); }
section[id] { scroll-margin-top: 64px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) { .nav ul li.optional { display: none; } .nav ul { gap: 16px; } }
@media (max-width: 480px) { .nav .long { display: none; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn i { font-size: 1.2em; }
.availability { font-size: 0.92rem; color: var(--muted); margin: 10px 0 0; }

/* Hero: text left, product right */
.hero { padding-top: clamp(24px, 3.5vw, 48px); padding-bottom: clamp(24px, 3.5vw, 48px); }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.15rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .shot { filter: drop-shadow(0 30px 50px rgb(43 45 110 / 0.28)); transform: translateX(4%); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shot { transform: none; }
}

/* Before / after example */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); margin-top: 22px; }
.compare > div { padding: 20px 24px; }
.compare .after { background: var(--accent-soft); }
.compare h3 { margin-bottom: 8px; }
.compare dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 16px; }
.compare dt { color: var(--muted); }
.compare dd { margin: 0; font-weight: 550; }
.compare .file { font: 0.9rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* How it works: three verbs in a row, separated by space not boxes */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 22px; }
.flow > div { border-top: 2px solid var(--text); padding-top: 12px; }
.flow h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }

/* Promise panel in brand dusk */
.promise { border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 3.5vw, 44px);
  background: linear-gradient(135deg, var(--dusk-1) 0%, var(--dusk-2) 58%, var(--dusk-3) 120%);
  color: #fbfaff; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 44px); }
.promise h2 { color: #fff; }
.promise p { color: rgb(255 255 255 / 0.82); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.promise li i { font-size: 1.4rem; color: #ffd2c4; margin-top: 2px; }
.promise strong { display: block; color: #fff; }
.promise li span { color: rgb(255 255 255 / 0.8); }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* Export chooser: two large linked tiles */
.choose { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; margin-top: 22px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); transition: background-color 0.2s ease, transform 0.2s ease; overflow: hidden; }
.tile:hover { background: var(--surface-strong); }
.tile:active { transform: scale(0.995); }
.tile p { color: var(--muted); margin: 0; }
.tile .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.tile img { margin-top: 18px; border-radius: 10px; }
@media (max-width: 760px) { .choose { grid-template-columns: 1fr; } }

/* Pricing */
.price { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.price .amount { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.price .amount small { font-size: 0.3em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.price ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; align-items: baseline; }
.price li i { color: var(--accent); }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; } }

/* Feature list on intent pages: two columns, icon + text, no boxes */
.fixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; margin-top: 22px; }
.fixes > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.fixes i { font-size: 1.6rem; color: var(--accent); }
.fixes h3 { margin-bottom: 4px; }
.fixes p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .fixes { grid-template-columns: 1fr; } }

/* Split: text + screenshot */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.split .shot { filter: drop-shadow(0 24px 40px rgb(43 45 110 / 0.25)); }
.split.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.reverse > .shot { order: -1; }
.fixes.stack { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > .shot { order: 0; } }

.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--muted); max-width: 62ch; }
code { font: 0.88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* FAQ */
.faq { max-width: 760px; margin-top: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 13px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }

/* Closing call to action */
.closing { text-align: left; }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px); }
.closing h2 { max-width: 20ch; }

footer { padding-block: 24px 40px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* Gentle entrance for the hero only; off when the visitor prefers less motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero .copy, .hero .shot { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero .shot { animation-delay: 0.08s; }
  @keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.split .dialog-shot { width: min(400px, 100%); justify-self: center; border-radius: 24px; }
