:root { --navy:#001c3c; --navy-2:#00305c; --blue:#0070c8; --sky:#10ace8; --link:#0063b1; --text-2:#40546f; --muted:#53657c;
  --line:#dbe7f3; --line-2:#e3ebf4; --field:#7d93ad; --tint:#f2f8fd; --badge:#e3f4fd; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fff; color:var(--navy); font:400 16px/1.6 Manrope, system-ui, sans-serif; }
a { color:var(--link); }
a:hover { color:var(--navy); }
:focus-visible { outline:3px solid var(--sky); outline-offset:2px; }
h1, h2, h3 { line-height:1.25; font-weight:800; }
.skip { position:absolute; left:-999px; }
.skip:focus { left:8px; top:8px; background:#fff; padding:8px 12px; z-index:10; }
.wrap { max-width:1120px; margin:0 auto; padding:0 24px; }
.center { text-align:center; }
.small { font-size:13px; color:var(--text-2); }

/* Header and menu */
.site-header { border-bottom:1px solid var(--line-2); }
.bar, #menu { max-width:1120px; margin:0 auto; padding:0 24px; }
.bar { display:flex; align-items:center; gap:12px; padding-top:14px; }
.logo { margin-right:auto; display:block; min-width:0; }
.logo img { display:block; width:280px; max-width:100%; height:auto; }
.share-pill { display:inline-flex; align-items:center; min-height:44px; padding:0 20px; border:1px solid var(--blue); border-radius:999px; text-decoration:none; font-weight:800; font-size:14px; }
#menu { margin-top:8px; }
#menu ul { display:flex; flex-wrap:wrap; column-gap:22px; margin:0; padding:0; list-style:none; font-weight:700; font-size:14px; }
#menu a, .soon { display:block; padding:12px 0 10px; border-bottom:3px solid transparent; }
#menu a { color:var(--navy); text-decoration:none; }
#menu a:hover { color:var(--link); }
#menu a[aria-current] { color:var(--link); border-bottom-color:var(--sky); }
.soon { color:var(--muted); cursor:default; }
.soon small { display:inline-block; margin-left:4px; padding:0 8px; border-radius:999px; background:var(--badge); color:var(--navy-2); font-size:11px; }
#menu-button { display:none; }

/* Buttons */
button, .button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border:1px solid var(--navy-2); border-radius:999px; background:#fff; color:var(--navy-2); font:700 15px/1.2 Manrope, system-ui, sans-serif; text-decoration:none; cursor:pointer; }
button:hover, .button:hover { background:var(--tint); color:var(--navy); }
button.primary { border-color:var(--blue); background:var(--blue); color:#fff; font-weight:800; }
button.primary:hover { border-color:#005aa1; background:#005aa1; color:#fff; }
.button.navy { border-color:var(--navy); background:var(--navy); color:#fff; font-weight:800; }
.button.navy:hover { background:var(--navy-2); color:#fff; }
button.quiet { border-color:var(--line); color:var(--text-2); }
button:disabled { opacity:.6; cursor:wait; }

/* Home: upload area */
.hero { background:var(--tint); }
.hero-inner { max-width:1120px; margin:0 auto; padding:48px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:56px; }
.hero-main, .hero-art { flex:1 1 420px; min-width:0; }
.hero-art svg { display:block; width:100%; height:auto; }
.hero h1 { margin:0 0 18px; font-size:46px; line-height:1.15; }
.hero h1 span { color:var(--blue); }
.lead { margin:0 0 22px; font-size:18px; color:var(--text-2); }
#drop { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; padding:32px 24px; text-align:center; background:#fff; border:2px dashed var(--blue); border-radius:18px; box-shadow:0 10px 30px rgb(0 48 92 / .08); cursor:pointer; }
#drop strong { display:flex; align-items:center; justify-content:center; width:100%; max-width:320px; min-height:54px; border-radius:999px; background:var(--blue); color:#fff; font-size:18px; font-weight:800; }
#drop span { font-size:14px; color:var(--text-2); }
#drop.over, #drop:focus-within { background:var(--badge); outline:3px solid var(--sky); }
#file { position:absolute; width:1px; height:1px; opacity:0; }

/* Home: crop and preview */
.tool { max-width:1120px; margin:0 auto; padding:0 24px; scroll-margin-top:12px; }
#status { margin:0; text-align:center; font-weight:700; }
#status:not(:empty) { margin:20px 0 0; }
#status.error { color:#a32d12; }
#results { margin-top:24px; }
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.toolbar h2 { margin:0 auto 0 0; font-size:22px; }
.toolbar .primary { padding:0 34px; }
.note, figcaption { color:var(--text-2); font-size:14px; }
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; }
.card-head { display:flex; justify-content:space-between; gap:10px; overflow-wrap:anywhere; font-weight:700; }
.badge { white-space:nowrap; align-self:start; font-size:12px; padding:2px 10px; border-radius:99px; background:var(--badge); color:var(--navy-2); }
.badge.warn { background:#ffefc7; color:#684900; }
.cols { display:grid; grid-template-columns:1.25fr 1fr; gap:22px; margin-top:12px; }
figure { margin:0; min-width:0; }
.stage { position:relative; overflow:hidden; border:1px solid var(--line); margin-top:6px; user-select:none; }
.page { display:block; width:100%; height:auto; }
.crop-box { position:absolute; border:2px solid var(--blue); box-shadow:0 0 0 2000px rgb(0 28 60 / .35); cursor:move; touch-action:none; }
.crop-box i { position:absolute; width:18px; height:18px; background:var(--blue); border:2px solid #fff; border-radius:50%; transform:translate(-50%,-50%); }
[data-h=nw]{left:0;top:0;cursor:nwse-resize} [data-h=n]{left:50%;top:0;cursor:ns-resize} [data-h=ne]{left:100%;top:0;cursor:nesw-resize}
[data-h=e]{left:100%;top:50%;cursor:ew-resize} [data-h=se]{left:100%;top:100%;cursor:nwse-resize} [data-h=s]{left:50%;top:100%;cursor:ns-resize}
[data-h=sw]{left:0;top:100%;cursor:nesw-resize} [data-h=w]{left:0;top:50%;cursor:ew-resize}
.preview { display:block; width:100%; max-width:340px; aspect-ratio:2/3; margin-top:6px; border:1px solid var(--line); box-shadow:0 3px 14px rgb(0 28 60 / .12); }
.card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }

/* Home: information sections */
.section { margin-top:72px; }
.section h2.center { margin:0 0 30px; font-size:28px; }
.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:20px; margin:0; padding:0; list-style:none; }
.steps li { padding:22px; border:1px solid var(--line); border-radius:16px; }
.steps h3 { margin:0 0 6px; font-size:18px; }
.steps h3 span, .benefit-grid svg { color:var(--blue); }
.steps p, .benefit-grid p, .callout p, .share > p { margin:0; color:var(--text-2); }
.benefits { background:var(--tint); padding:56px 0 60px; }
.benefit-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:36px 40px; }
.benefit-grid h3 { margin:8px 0 4px; font-size:18px; }
.callout { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:28px 32px; border:1px solid var(--line); border-radius:18px; }
.callout div { flex:1 1 420px; }
.callout h2 { margin:0 0 4px; font-size:22px; }
.share { max-width:760px; margin-left:auto; margin-right:auto; padding:0 24px; text-align:center; scroll-margin-top:24px; }
.share h2 { margin:0 0 8px; font-size:28px; }
.share-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:22px; }
.share > p.small { margin-top:14px; }

/* Ad spaces. Hidden until set up; the wide margin keeps them away from tool buttons. */
.ad { max-width:970px; min-height:280px; margin:96px auto 0; padding:0 24px; text-align:center; }
.ad span { font-size:12px; color:var(--muted); }

/* Text pages */
.article { max-width:760px; margin:0 auto; padding:40px 24px 0; overflow-wrap:break-word; }
.article.narrow { max-width:640px; }
.article h1 { margin:0 0 14px; font-size:40px; line-height:1.2; }
.article h2 { margin:32px 0 8px; font-size:23px; }
.article h3 { margin:22px 0 4px; font-size:18px; }
.article .ad { padding:0; }
.intro { margin-top:0; color:var(--text-2); }
.faq details { border-bottom:1px solid var(--line); padding:16px 0; }
.faq summary { cursor:pointer; font-weight:800; font-size:18px; }
.faq p { margin:10px 0 0; color:var(--text-2); }

/* Feedback form */
.form { display:flex; flex-direction:column; gap:8px; margin-top:24px; padding:28px; background:var(--tint); border-radius:18px; }
.form label { margin-top:12px; font-weight:800; }
.form label span { font-weight:400; }
.form select, .form textarea, .form input[type=email] { width:100%; min-height:48px; padding:11px 12px; border:1px solid var(--field); border-radius:10px; background:#fff; color:var(--navy); font:400 16px/1.5 Manrope, system-ui, sans-serif; }
.form textarea { resize:vertical; }
.form p { margin:0; }
.form button { margin-top:16px; min-height:52px; font-size:17px; }
#feedback-status { text-align:center; font-weight:700; }
#feedback-status.error { color:#a32d12; }
.trap { display:none !important; }

.site-footer { margin-top:80px; background:var(--navy); color:#d5e3f2; font-size:14px; }
.site-footer .wrap { padding-top:34px; padding-bottom:30px; }
.footer-name { margin:0; color:#fff; font-weight:800; font-size:18px; }
.site-footer nav { display:flex; flex-wrap:wrap; column-gap:24px; row-gap:8px; margin:14px 0 18px; }
.site-footer a { color:#fff; }
.site-footer a:hover { color:var(--sky); }

@media (max-width:760px) {
  .share-pill { display:none; }
  .bar { padding:12px 16px; }
  .logo img { width:240px; }
  #menu { margin:0; padding:0 16px; }
  #menu ul { flex-direction:column; padding:4px 0 12px; font-size:16px; }
  #menu a, .soon { padding:11px 12px; border:0; border-radius:10px; }
  #menu a[aria-current] { background:var(--badge); color:var(--navy); }
  /* Without JavaScript the menu simply stays open. */
  .js #menu-button { display:inline-flex; flex:none; width:48px; padding:0; border-color:var(--line); border-radius:12px; }
  .js #menu:not(.open) { display:none; }
  .hero-inner { padding:28px 16px 32px; }
  .hero-main { flex-basis:100%; }
  .hero-art { display:none; }
  .hero h1 { font-size:30px; }
  .article { padding:28px 16px 0; }
  .article h1 { font-size:30px; }
  .wrap, .tool, .share { padding-left:16px; padding-right:16px; }
  .section { margin-top:56px; }
  .cols { grid-template-columns:1fr; }
  .toolbar h2 { flex-basis:100%; }
  .toolbar .primary { width:100%; }
  .callout { padding:22px; }
  .callout div { flex-basis:100%; }
  .form { padding:18px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
