/* Be Vietnam Pro (SIL Open Font License 1.1, assets/fonts/OFL.txt), served from this site. */
@font-face {
  /* vietnamese */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  /* latin-ext */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* vietnamese */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  /* latin-ext */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* vietnamese */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  /* latin-ext */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* vietnamese */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  /* latin-ext */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/be-vietnam-pro-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #efe9df;
  --ink: #1d1b18;
  --ink-2: #5d574e;
  --line: #ddd5c8;
  --accent: #e09b1a;
  --accent-ink: #1d1b18;
  --kodak: #c8102e;
  --fuji: #1a7a43;
  --focus: #2f6fdd;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #151412;
    --surface: #1e1c19;
    --surface-2: #27241f;
    --ink: #f1ece3;
    --ink-2: #b3aa9c;
    --line: #37332c;
    --accent: #f0ad2a;
    --accent-ink: #151412;
    --kodak: #ff5a6e;
    --fuji: #4cc283;
    --focus: #7fb0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #151412;
  --surface: #1e1c19;
  --surface-2: #27241f;
  --ink: #f1ece3;
  --ink-2: #b3aa9c;
  --line: #37332c;
  --accent: #f0ad2a;
  --accent-ink: #151412;
  --kodak: #ff5a6e;
  --fuji: #4cc283;
  --focus: #7fb0ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* elements that set display (flex cards, the compare picker) must still hide */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code {
  font: 500 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

/* ------------------------------------------------------------------ header */

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.top-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: none;
}

.logo {
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex: none;
}

.nav {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.lang {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.lang:hover {
  background: var(--surface-2);
}

.theme {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme:hover {
  background: var(--surface-2);
}

.theme svg {
  width: 18px;
  height: 18px;
}

.theme .i-sun {
  display: none;
}

:root[data-theme='dark'] .theme .i-sun {
  display: inline;
}

:root[data-theme='dark'] .theme .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme .i-sun {
    display: inline;
  }

  :root:not([data-theme='light']) .theme .i-moon {
    display: none;
  }
}

/* ------------------------------------------------------------------ layout */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.step h2,
.howto h2,
.about h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.hint {
  color: var(--ink-2);
  margin: 6px 0 0;
}

.small {
  font-size: 13px;
}

#step-camera {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.camera-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.camera-row .hint {
  margin: 0;
}

select,
input[type='number'] {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

#camera {
  min-width: 260px;
  max-width: 100%;
  font-weight: 500;
}

#camera.empty {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.count {
  color: var(--ink-2);
  font-size: 13px;
}

/* -------------------------------------------------------------- look grid */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.look {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.look:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.look[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

/* the look shown on the left of the slider when two looks are compared */
.look {
  position: relative;
}

.look.is-compare {
  border-style: dashed;
  border-color: var(--ink-2);
}

.vs-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.look canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
}

.look .meta {
  padding: 8px 10px 10px;
  display: grid;
  gap: 2px;
}

.look .name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.look .brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-kodak {
  color: var(--kodak);
}

.brand-fujifilm {
  color: var(--fuji);
}

/* ----------------------------------------------------------------- preview */

#step-preview {
  position: sticky;
  top: 12px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.look-head {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.look-head h3 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.look-text {
  margin: 0;
  color: var(--ink-2);
}

.look-sources {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-2);
}

.look-sources a {
  color: inherit;
}

.compare-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.seg button {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

.vs-pick {
  display: flex;
  flex: 1 1 240px;
  min-width: 0;
  gap: 6px;
}

.vs-pick select {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 14px;
}

.swap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.swap:hover {
  background: var(--surface-2);
}

.swap svg {
  width: 16px;
  height: 16px;
  flex: none;
}

#vs-note {
  margin: 8px 0 0;
}

.compare {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
  user-select: none;
  touch-action: pan-y;
}

.compare canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#after {
  clip-path: inset(0 0 0 var(--split, 50%));
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25);
  pointer-events: none;
}

.divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.35);
}

.divider span::before,
.divider span::after {
  content: '';
  position: absolute;
  top: 10px;
  border: 5px solid transparent;
}

.divider span::before {
  left: 2px;
  border-right-color: #333;
}

.divider span::after {
  right: 2px;
  border-left-color: #333;
}

.tag {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  max-width: calc(50% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-before {
  left: 10px;
}

.tag-after {
  right: 10px;
}

#split {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

#split:focus-visible ~ .divider,
.compare:focus-within .divider {
  background: var(--focus);
}

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.samples button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.samples button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}

.upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--ink-2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.photo-info {
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--fuji);
  border-radius: 0 8px 8px 0;
  background: var(--bg);
  font-size: 13px;
  display: grid;
  gap: 4px;
}

.photo-info.warn {
  border-left-color: var(--accent);
}

.photo-info p {
  margin: 0;
}

.samples button.user-photo {
  border-style: dashed;
}

#step-preview.dropping .preview-card {
  outline: 3px dashed var(--accent);
  outline-offset: 4px;
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  cursor: pointer;
}

.toggle input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
}

dt {
  color: var(--ink-2);
}

dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.base-row {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.base-row select {
  width: 100%;
  padding: 7px 10px;
  font-size: 14px;
}

#base-note {
  margin: 0 0 8px;
}

.curve {
  margin: 10px 0 0;
}

.curve svg {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.curve figcaption {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.slot {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

#slot {
  width: 92px;
}

.primary {
  flex: 1;
  min-width: 220px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.primary:hover {
  filter: brightness(1.05);
}

.primary:disabled {
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: not-allowed;
}

.status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-weight: 500;
}

/* --------------------------------------------------------- how-to & about */

.howto,
.about {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.howto ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.tip {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.about ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.credits {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  #step-preview {
    position: static;
  }

}

@media (max-width: 560px) {
  main {
    padding-top: 14px;
  }

  #camera {
    min-width: 0;
    width: 100%;
  }

  .look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details {
    grid-template-columns: 1fr;
  }

  .look-head h3 {
    font-size: 21px;
  }

  .primary {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .look {
    transition: none;
  }
}

/* =================================================================== website */

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.secondary,
.ghost {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.ghost {
  background: transparent;
}

.secondary:hover,
.ghost:hover {
  background: var(--surface-2);
}

.secondary:disabled,
.ghost:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------ page sections */

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.page-head {
  max-width: 820px;
  margin: 8px 0 28px;
}

.page-head h1,
.tool-head h1,
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 760px;
}

.eyebrow-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tool-head {
  margin: 4px 0 18px;
}

.tool-head h1 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 4px;
}

.tool-head .lead {
  font-size: 15px;
}

.section {
  margin-top: 56px;
}

.section > h2,
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
}

.notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--fuji);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}

.notice.warn {
  border-left-color: var(--accent);
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 6px;
}

.more {
  margin: 12px 0 0;
  font-weight: 600;
}

.camera-note {
  color: var(--ink);
  font-weight: 600;
}

.notfound .btn-row {
  margin-top: 18px;
}

.notfound + .notfound {
  margin-top: 40px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: center;
  padding: 18px 0 8px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.hero .lead {
  font-size: 18px;
}

.hero .btn-row {
  margin-top: 24px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--fuji);
}

.hero-visual {
  display: grid;
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips button,
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.chips button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip:hover,
.chips button:hover {
  background: var(--surface-2);
}

.chips button[aria-pressed='true']:hover {
  background: var(--ink);
}

/* ------------------------------------------------------- before / after */

.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
  user-select: none;
  touch-action: pan-y;
  box-shadow: var(--shadow);
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba .ba-after {
  clip-path: inset(0 0 0 var(--split, 50%));
}

.ba .divider {
  left: var(--split, 50%);
}

.ba input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba input[type='range']:focus-visible ~ .divider {
  background: var(--focus);
}

.ba-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- step cards */

.steps-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.card .num {
  margin-bottom: 10px;
}

.icon-dot {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
}

.icon-dot svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------- look cards */

.look-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.look-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.look-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.look-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-2);
}

.look-card .body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.look-card .brand-tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.look-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.look-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.look-cards.compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.look-cards.compact .body {
  padding: 8px 10px 10px;
}

.look-cards.compact h3 {
  font-size: 15px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-bar .tabs {
  margin: 0;
}

/* ------------------------------------------------------------ look detail */

.look-cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .look-cards.four {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.curve svg path {
  fill: none;
}

.curve .c-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.curve .c-diag {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.curve .c-line {
  stroke: var(--accent);
  stroke-width: 2.5;
}

.look-detail .look-text {
  margin-bottom: 16px;
}

.download-card .copy-link {
  width: 100%;
  margin-top: 8px;
}

.breadcrumb {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
}

.breadcrumb a {
  color: inherit;
}

.look-detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

.look-detail h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.look-detail .look-text {
  font-size: 16px;
}

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sample-tabs button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sample-tabs button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.side-stack {
  display: grid;
  gap: 14px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.download-card .download {
  margin-top: 0;
}

.download-card .btn-secondary {
  width: 100%;
  margin-top: 10px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.stat {
  flex: 1 1 120px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.stat span {
  font-size: 12px;
  color: var(--ink-2);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.pager a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  max-width: 48%;
}

.pager a:hover {
  background: var(--surface-2);
}

.pager span {
  font-size: 12px;
  color: var(--ink-2);
}

.pager .next {
  margin-left: auto;
  text-align: right;
}

/* ------------------------------------------------------------------ prose */

.prose {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.7;
}

.prose h2 {
  margin: 40px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

.prose h3 {
  margin: 26px 0 6px;
  font-size: 18px;
  line-height: 1.3;
  scroll-margin-top: 16px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 10px 0;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  text-underline-offset: 2px;
}

.prose .notice {
  font-size: 15px;
}

.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

th,
td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 650;
  background: var(--surface-2);
}

tr:last-child td {
  border-bottom: 0;
}

td.num-cell,
th.num-cell {
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  padding: 14px 44px 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-2);
}

.faq details[open] summary::after {
  content: '−';
}

.faq .answer {
  padding: 0 16px 14px;
  color: var(--ink-2);
}

.faq .answer p {
  margin: 0;
}

.faq .answer p + p {
  margin-top: 8px;
}

/* ---------------------------------------------------------------- cta band */

.cta-band {
  margin-top: 56px;
  padding: 28px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cta-band h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.cta-band p {
  margin: 0;
  opacity: 0.8;
}

.camera-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camera-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

/* ------------------------------------------------------------------ footer */

.foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 28px;
}

.foot-brand p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.foot-nav h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.foot-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.foot-nav a {
  text-decoration: none;
}

.foot-nav a:hover {
  text-decoration: underline;
}

.foot-legal {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.foot-legal p {
  margin: 0;
}

/* ------------------------------------------------------------ tool extras */

.bundle {
  margin-top: 14px;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.bundle .hint {
  margin: 0;
}

.look-more {
  margin: 6px 0 0;
  font-size: 13px;
}

.mode-bar {
  margin-bottom: 4px;
}

.mode-note {
  margin: 0 0 10px;
}

.name-row input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.name-row {
  margin: 10px 0 0;
}

#pc-name-hint {
  margin: 4px 0 0;
}

.export {
  margin-top: 14px;
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
}

.select-label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.select-label select {
  padding: 8px 10px;
  font-size: 14px;
}

#share {
  flex: none;
  padding: 13px 16px;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero,
  .look-detail,
  .with-toc {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    order: -1;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .top-inner {
    flex-wrap: wrap;
    padding-bottom: 6px;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -8px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .feature-grid,
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    margin-top: 40px;
  }

  .cta-band {
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .look-cards,
  .look-cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .look-card .body {
    padding: 9px 10px 11px;
  }

  .look-card p {
    display: none;
  }

  .hero .btn-row .btn {
    flex: 1 1 100%;
  }

  .pager a {
    max-width: none;
    flex: 1;
  }

  /* tool: file number and Share on one row, the download button below at full width */
  .preview-card .download {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }

  .preview-card .download .primary {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .look-card {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .top,
  .foot,
  .toc,
  .cta-band {
    display: none;
  }
}
