:root {
  color-scheme: light;
  --ink: #172d34;
  --muted: #64767a;
  --soft-ink: #42575d;
  --canvas: #e9eeee;
  --paper: #fbfcf9;
  --line: #ced8d8;
  --blue: #315fe8;
  --blue-dark: #244bc5;
  --orange: #ee7048;
  --yellow: #f1cb68;
  --green: #27786c;
  --shadow: 0 22px 60px rgba(33, 57, 61, .09);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, label, select, input[type="color"], input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(23, 45, 52, .12); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 740; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); }
.brand-mark svg { width: 100%; height: 100%; }
.header-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.header-nav a { color: var(--soft-ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.header-nav a:hover { color: var(--blue); }
.privacy-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cbd8d3; border-radius: 999px; background: rgba(251, 252, 249, .55); color: #45635d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #328877; box-shadow: 0 0 0 3px rgba(50, 136, 119, .1); }

.hero { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center; gap: clamp(52px, 8vw, 112px); padding-block: 82px 92px; }
.hero-copy { max-width: 490px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.eyebrow-mark { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 22px; font-size: clamp(42px, 5.1vw, 66px); line-height: 1.04; letter-spacing: -.068em; font-weight: 680; }
.hero-intro { max-width: 430px; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.upload-panel { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; column-gap: 12px; max-width: 440px; min-height: 88px; padding: 15px 16px; border: 1.5px dashed #aebfbe; border-radius: 12px; background: rgba(251, 252, 249, .63); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.upload-panel.is-over { border-color: var(--blue); background: #f4f7ff; box-shadow: 0 0 0 4px rgba(49, 95, 232, .1); }
.upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e1e9e7; color: var(--green); }
.upload-icon svg { width: 21px; height: 21px; }
.upload-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.upload-copy strong { font-size: 13px; font-weight: 720; }
.upload-copy span { color: var(--muted); font-size: 11px; }
.upload-button { display: inline-flex; justify-content: center; align-items: center; min-height: 39px; padding: 0 14px; border-radius: 7px; background: var(--blue); color: white; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; white-space: nowrap; }
.upload-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.upload-meta { grid-column: 2 / -1; margin: 7px 0 0; color: #728387; font-size: 10px; }
.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; }
#photo-input:focus-visible + .upload-button { outline: 3px solid rgba(49, 95, 232, .38); outline-offset: 3px; }
.local-note { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: #64777a; font-size: 11px; }
.local-note svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }

.sample-wrap { width: 100%; max-width: 590px; justify-self: end; }
.sample-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; color: #50676b; font-size: 11px; font-weight: 700; }
.sample-index { color: #849294; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.sample-frame { padding: 10px; background: var(--paper); border: 1px solid rgba(23, 45, 52, .1); box-shadow: var(--shadow); transform: rotate(1.25deg); }
.sample-image { position: relative; overflow: hidden; aspect-ratio: 1.45; background: #8c9994; }
.sample-image > svg { display: block; width: 100%; height: 100%; }
.sample-image::after { position: absolute; inset: 0; content: ""; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.sample-timestamp { position: absolute; right: 4.1%; bottom: 5%; padding: .57em .76em; background: rgba(13, 25, 28, .65); color: white; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(10px, 1.18vw, 14px); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.sample-caption { display: flex; align-items: center; justify-content: space-between; padding: 12px 3px 2px; color: #44595e; font-size: 11px; }
.caption-mark { color: var(--orange); font-size: 14px; }
.sample-footnote { margin: 20px 0 0; color: #718184; font-size: 11px; text-align: right; }

.app-notice { margin-top: 16px; padding: 12px 16px; border: 1px solid #e5a28e; border-radius: 8px; background: #fff4ef; color: #8f3c25; font-size: 13px; line-height: 1.5; }
.workspace { padding: 35px 0 98px; border-top: 1px solid rgba(23, 45, 52, .14); scroll-margin-top: 18px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.workspace-heading .section-kicker, .settings-heading .section-kicker { margin-bottom: 6px; font-size: 10px; }
.workspace-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.text-button, .reset-button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button { padding: 9px 0 7px 10px; }
.text-button:hover, .reset-button:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(320px, .62fr); align-items: start; gap: 24px; }
.preview-column { min-width: 0; overflow: hidden; border: 1px solid #d4dddd; border-radius: 11px; background: var(--paper); }
.batch-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 6px 13px; border-bottom: 1px solid #e2e8e7; background: #f2f6f3; color: #617478; font-size: 11px; font-weight: 650; }
.batch-nav-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #d2dcda; border-radius: 50%; background: var(--paper); color: var(--green); cursor: pointer; font-size: 17px; line-height: 1; }
.batch-nav-button:disabled { color: #a6b2b0; cursor: default; }
.preview-meta, .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 15px; color: #718184; font-size: 10px; }
.preview-meta { border-bottom: 1px solid #e2e8e7; }
.file-info { display: flex; align-items: center; gap: 9px; min-width: 0; color: #3d5358; font-size: 11px; font-weight: 650; }
.file-icon { flex: 0 0 auto; display: grid; place-items: center; width: 29px; height: 23px; border-radius: 5px; background: #e6ecec; color: #546c70; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-dimensions { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.preview-frame { display: grid; place-items: center; min-height: 300px; padding: 17px; background-color: #dfe5e4; background-image: radial-gradient(#c4cdcb 0.7px, transparent .7px); background-size: 13px 13px; }
.preview-frame.is-over { background-color: #e3e9fb; }
#preview-canvas { display: block; max-width: 100%; max-height: min(67vh, 760px); width: auto; height: auto; box-shadow: 0 6px 22px rgba(17, 37, 42, .2); }
.preview-footer { min-height: 39px; border-top: 1px solid #e2e8e7; font-size: 10px; }
.settings-panel { padding: 22px 23px 20px; border: 1px solid #d4dddd; border-radius: 11px; background: var(--paper); }
.settings-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.settings-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.reset-button { padding: 5px 0 5px 8px; font-size: 11px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 15px; }
.field label, .range-label label { color: #475e63; font-size: 11px; font-weight: 700; }
.field input[type="date"], .field input[type="time"], .field select { width: 100%; min-height: 41px; padding: 0 11px; border: 1px solid #d4dedd; border-radius: 6px; background: white; color: var(--ink); font-size: 12px; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--blue); outline: 3px solid rgba(49, 95, 232, .14); }
.field-row .field { margin-bottom: 15px; }
.settings-divider { height: 1px; margin: 2px 0 16px; background: #e1e7e6; }
.color-control { display: flex; align-items: center; gap: 9px; height: 41px; padding: 0 9px; border: 1px solid #d4dedd; border-radius: 6px; background: white; color: #65777b; font-size: 11px; }
.color-control input { width: 23px; height: 23px; padding: 0; overflow: hidden; border: 0; border-radius: 5px; background: none; cursor: pointer; }
.range-label { display: flex; justify-content: space-between; align-items: baseline; }
.range-label output { color: #697d80; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.size-field { margin-bottom: 18px; }
input[type="range"] { width: 100%; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 47px; margin-top: 3px; border: 0; border-radius: 7px; background: var(--blue); color: white; cursor: pointer; font-size: 13px; font-weight: 730; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.download-button:hover { background: var(--blue-dark); box-shadow: 0 5px 15px rgba(49, 95, 232, .2); transform: translateY(-1px); }
.download-button:active { transform: translateY(0); }
.download-button:disabled { cursor: wait; opacity: .72; transform: none; }
.download-button svg { width: 18px; height: 18px; }
.metadata-note { margin: 11px 0 0; color: #778689; font-size: 10px; line-height: 1.55; }
.capture-date-note { margin: -7px 0 12px; color: #778689; font-size: 10px; line-height: 1.5; }
.batch-note { margin: 8px 0 0; color: #62777a; font-size: 10px; line-height: 1.55; }
.download-status { min-height: 0; margin: 8px 0 0; color: var(--green); font-size: 11px; font-weight: 650; }
.download-status:empty { display: none; }

.how-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; padding-block: 67px 72px; border-top: 1px solid rgba(23, 45, 52, .14); }
.section-intro .section-kicker, .faq-intro .section-kicker { margin-bottom: 11px; }
.section-intro h2, .faq-intro h2 { max-width: 370px; margin-bottom: 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.14; letter-spacing: -.052em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.step { min-width: 0; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 15px; border-radius: 50%; background: #d7e1dd; color: var(--green); font-size: 11px; font-weight: 750; }
.step h3 { margin-bottom: 8px; font-size: 13px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; padding-block: 67px 86px; border-top: 1px solid rgba(23, 45, 52, .14); }
.faq-list { border-top: 1px solid #cbd6d5; }
.faq-list details { border-bottom: 1px solid #cbd6d5; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 690; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; flex: 0 0 auto; width: 19px; height: 19px; border: 1px solid #aabbb8; border-radius: 50%; }
.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 8px; left: 5px; width: 7px; height: 1px; background: var(--green); content: ""; }
.faq-list summary span::after { transform: rotate(90deg); transition: transform .16s ease; }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { max-width: 610px; margin: -1px 34px 16px 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.site-footer { border-top: 1px solid rgba(23, 45, 52, .14); background: rgba(251, 252, 249, .38); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.footer-brand { font-size: 13px; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-inner p, .copyright { margin: 0; color: #758488; font-size: 10px; }

:focus-visible { outline: 3px solid rgba(49, 95, 232, .42); outline-offset: 3px; }

@media (max-width: 920px) {
  .shell { width: min(100% - 44px, 720px); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 60px 70px; }
  .hero-copy { max-width: 590px; }
  .sample-wrap { justify-self: start; max-width: 650px; }
  .sample-timestamp { font-size: clamp(12px, 2vw, 16px); }
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .settings-heading, .settings-divider, .download-button, .metadata-note, .capture-date-note, .batch-note, .download-status { grid-column: 1 / -1; }
  .date-time-row { grid-column: 1 / -1; }
  .how-section, .faq-section { grid-template-columns: 1fr; gap: 31px; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 72px; gap: 10px; }
  .brand { gap: 7px; font-size: 13px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-nav { gap: 15px; }
  .header-nav a { font-size: 11px; }
  .privacy-chip { width: 29px; height: 29px; justify-content: center; padding: 0; overflow: hidden; font-size: 0; }
  .privacy-dot { width: 8px; height: 8px; }
  .hero { gap: 38px; padding-block: 46px 60px; }
  .eyebrow { margin-bottom: 15px; font-size: 10px; }
  h1 { margin-bottom: 16px; font-size: clamp(40px, 12vw, 54px); }
  .hero-intro { margin-bottom: 22px; font-size: 14px; line-height: 1.65; }
  .upload-panel { grid-template-columns: 36px 1fr auto; gap: 9px; min-height: 82px; padding: 12px 10px; }
  .upload-icon { width: 35px; height: 35px; }
  .upload-copy strong { font-size: 12px; }
  .upload-copy span { font-size: 10px; }
  .upload-button { min-height: 37px; padding-inline: 10px; font-size: 10px; }
  .upload-meta { font-size: 9px; }
  .local-note { align-items: flex-start; font-size: 10px; line-height: 1.45; }
  .sample-wrap { width: calc(100% - 5px); }
  .sample-frame { padding: 7px; }
  .sample-caption { font-size: 10px; }
  .sample-footnote { margin-top: 15px; font-size: 10px; }
  .workspace { padding: 27px 0 65px; }
  .workspace-heading { align-items: center; margin-bottom: 17px; }
  .workspace-heading h2 { font-size: 24px; }
  .text-button { max-width: 128px; text-align: right; line-height: 1.4; }
  .preview-meta { min-height: 43px; padding-inline: 10px; }
  .preview-frame { min-height: 230px; padding: 10px; }
  #preview-canvas { max-height: 55vh; }
  .preview-footer { padding-inline: 10px; font-size: 9px; }
  .settings-panel { display: block; padding: 19px 16px 16px; }
  .settings-heading { margin-bottom: 16px; }
  .field-row { gap: 9px; }
  .field input[type="date"], .field input[type="time"], .field select { min-height: 42px; font-size: 11px; }
  .how-section, .faq-section { gap: 25px; padding-block: 50px 55px; }
  .section-intro h2, .faq-intro h2 { max-width: 320px; font-size: 30px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .step { display: grid; grid-template-columns: 30px 1fr; column-gap: 11px; }
  .step-number { grid-row: 1 / span 2; margin: 0; }
  .step h3 { align-self: center; margin: 0 0 5px; }
  .step p { grid-column: 2; }
  .faq-list summary { min-height: 55px; font-size: 11px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding-block: 17px; }
  .footer-inner p { grid-column: 1; grid-row: 2; }
  .copyright { grid-column: 2; grid-row: 2; text-align: right; }
}

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