/* Copyright (c) 2026 XDMedia / PuffPix. All rights reserved. */
/* Shared by /exif-viewer and /remove-ai-metadata. Bump ?v= in both pages when this changes. */
@font-face { font-family:'Fraunces'; font-style:italic; font-weight:700; font-display:swap; src:url('/assets/fonts/fraunces-italic-700-latin.woff2') format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/fraunces-700-latin.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:400 500; font-display:swap; src:url('/assets/fonts/dmsans-latin.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:  #F0FAFA;
  --yellow: #2DC4A8;
  --orange: #1A9E87;
  --dark:   #0F2B28;
  --dark2:  #163D38;
  --mid:    #4A7A74;
  --muted:  #7AADA8;
  --border: #C5E8E4;
  --radius: 12px;
  --warn:   #92400e;
  --warn-bg:#fffbeb;
  --warn-border:#fcd34d;
  --bad:    #991b1b;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--dark); font-size: 15px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }

.site-nav { background: var(--dark); padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.site-nav-brand { font-family: 'Fraunces', serif; font-style: italic; font-weight: 700; font-size: 1.2rem; color: var(--cream); text-decoration: none; }
.site-nav-brand span { color: var(--yellow); }
.site-nav-right { display: flex; align-items: center; gap: 16px; }
.site-nav-link { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color .15s; }
.site-nav-link:hover { color: var(--cream); }
.site-nav-cta { font-size: 0.82rem; color: var(--dark); background: var(--yellow); text-decoration: none; padding: 7px 16px; border-radius: 6px; font-weight: 500; transition: background .15s; }
.site-nav-cta:hover { background: var(--orange); color: #fff; }

.hero { max-width: 760px; margin: 0 auto; padding: 3.5rem 24px 2rem; text-align: center; }
.hero-badge { display: inline-block; background: #E8F7F4; color: var(--orange); font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--dark); line-height: 1.15; margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero p { font-size: 1.02rem; color: var(--mid); max-width: 600px; margin: 0 auto; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.hero-pill { font-size: .78rem; padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--border); color: var(--mid); }

.tool { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; flex: 1; width: 100%; }

.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); background: #fff; padding: 56px 24px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.dropzone:hover, .dropzone.drag-over { border-color: var(--yellow); background: #F5FDFC; }
.dropzone-icon { font-size: 2.4rem; margin-bottom: 12px; }
.dropzone h2 { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.dropzone span { font-size: .85rem; color: var(--muted); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.tool-terms { font-size: .74rem; color: var(--muted); text-align: center; max-width: 640px; margin: 10px auto 0; line-height: 1.55; }
.tool-terms a { color: var(--mid); }

.error-msg { display: none; background: #fef2f2; border: 1.5px solid #fca5a5; color: var(--bad); border-radius: var(--radius); padding: 14px 18px; font-size: .88rem; margin-top: 16px; }
.error-msg.active { display: block; }
.error-msg a { color: inherit; }

/* RESULT */
.result { display: none; }
.result.active { display: block; }

.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.result-meta { font-size: .82rem; color: var(--muted); word-break: break-word; }
.btn-reset { background: none; border: none; color: var(--muted); font-size: .84rem; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; font-family: inherit; }
.btn-reset:hover { color: var(--dark); }

/* AI & PROVENANCE */
.ai-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.ai-card.found { border-color: var(--yellow); box-shadow: 0 0 0 3px #E8F7F4; }
.ai-card h3 { font-size: .95rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.ai-none { font-size: .84rem; color: var(--mid); line-height: 1.6; }
.ai-rows { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.ai-rows td { padding: 8px 0; font-size: .83rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.ai-rows tr:last-child td { border-bottom: none; }
.ai-rows td:first-child { color: var(--muted); width: 34%; padding-right: 12px; }
.ai-rows td:last-child { color: var(--dark); font-weight: 500; word-break: break-word; }
.ai-sub { display: block; font-weight: 400; color: var(--mid); font-size: .78rem; margin-top: 2px; }
.ai-prompt { margin-top: 6px; background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; font-weight: 400; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
.ai-notes { list-style: none; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; }
.ai-notes li { font-size: .78rem; color: var(--mid); line-height: 1.55; padding-left: 14px; position: relative; }
.ai-notes li::before { content: '•'; position: absolute; left: 0; color: var(--muted); }
.ai-notes a { color: var(--orange); }

/* GPS WARNING */
.gps-warning { background: var(--warn-bg); border: 1.5px solid var(--warn-border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; display: none; }
.gps-warning.active { display: flex; gap: 12px; align-items: flex-start; }
.gps-warning-icon { font-size: 1.2rem; flex-shrink: 0; }
.gps-warning-text { font-size: .85rem; color: var(--warn); line-height: 1.55; }
.gps-warning-text strong { font-weight: 700; }

/* LAYOUT */
.result-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .result-layout { grid-template-columns: 1fr; } }

/* TABLES */
.exif-section { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.exif-section h3 { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 14px; }
.exif-empty { font-size: .85rem; color: var(--muted); }
.exif-table { width: 100%; border-collapse: collapse; }
.exif-table tr { border-bottom: 1px solid var(--border); }
.exif-table tr:last-child { border-bottom: none; }
.exif-table td { padding: 7px 0; font-size: .82rem; vertical-align: top; }
.exif-table td:first-child { color: var(--muted); width: 44%; padding-right: 12px; word-break: break-word; }
.exif-table td:last-child { color: var(--dark); font-weight: 500; word-break: break-word; }
.exif-tag-gps { color: var(--warn) !important; font-weight: 600 !important; }
.blocks-section { margin-bottom: 20px; }
.blocks-table td:first-child { width: auto; color: var(--dark); font-weight: 500; }
.blocks-table td.size { color: var(--muted); font-weight: 400; white-space: nowrap; text-align: right; padding: 7px 12px; width: 1%; }
.blocks-table td.status { white-space: nowrap; text-align: right; width: 1%; }
.status-removed { color: var(--bad) !important; }
.status-kept { color: var(--orange) !important; }

/* ACTIONS */
.actions-section { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.actions-section h3 { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.file-sizes { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.keep-icc { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--dark); cursor: pointer; line-height: 1.5; }
.keep-icc input { margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.keep-icc small { display: block; color: var(--muted); font-size: .76rem; }
.btn-strip { display: flex; align-items: center; gap: 8px; background: var(--dark); color: var(--cream); border: none; border-radius: var(--radius); padding: 12px 20px; font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; width: 100%; justify-content: center; }
.btn-strip:hover { background: var(--dark2); }
.btn-compress { display: flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--dark); border: none; border-radius: var(--radius); padding: 12px 20px; font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; width: 100%; justify-content: center; }
.btn-compress:hover { background: var(--orange); color: #fff; }
.btn-strip:disabled, .btn-compress:disabled { opacity: .5; cursor: wait; }
.strip-note { font-size: .78rem; color: var(--muted); text-align: center; }
.strip-note.fallback { color: var(--warn); }

/* FEATURES */
.features { background: #fff; border-top: 1.5px solid var(--border); padding: 48px 24px; }
.features-inner { max-width: 760px; margin: 0 auto; }
.features h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--dark); margin-bottom: 24px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature-card { background: var(--cream); border-radius: var(--radius); padding: 20px; border: 1.5px solid var(--border); }
.feature-icon { font-size: 1.3rem; margin-bottom: 8px; }
.feature-card h3 { font-size: .9rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.feature-card p { font-size: .82rem; color: var(--mid); line-height: 1.6; }
.feature-card a { color: var(--orange); }

.faq { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.faq h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--dark); margin-bottom: 24px; }
.faq-item { border-bottom: 1.5px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: .92rem; color: var(--dark); margin-bottom: 6px; }
.faq-a { font-size: .85rem; color: var(--mid); line-height: 1.65; }
.faq-a a { color: var(--orange); }

.also { background: var(--dark); padding: 32px 24px; }
.also-inner { max-width: 760px; margin: 0 auto; }
.also h2 { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--cream); margin-bottom: 14px; }
.also-links { display: flex; flex-wrap: wrap; gap: 10px; }
.also-links a { background: rgba(255,255,255,.08); color: var(--muted); text-decoration: none; padding: 7px 16px; border-radius: 20px; font-size: .82rem; border: 1px solid rgba(255,255,255,.12); transition: background .15s; }
.also-links a:hover { background: rgba(255,255,255,.15); color: var(--cream); }

.site-footer { background: #0a1f1d; padding: 20px 24px; text-align: center; }
.site-footer p { font-size: .76rem; color: #4A7A74; }
.site-footer a { color: #4A7A74; margin: 0 8px; text-decoration: none; }
.site-footer a:hover { color: var(--muted); }

@media (max-width: 480px) {
  .site-nav { padding: 0 16px; }
  .site-nav-link { display: none; }
  .site-nav-cta { white-space: nowrap; }
}

@media (max-width: 600px) {
  .hero { padding: 2.5rem 16px 1.5rem; }
  .tool { padding: 0 16px 40px; }
  .ai-rows td:first-child { width: 40%; }
}
