/* =============================================================
   letmesee — shared design system
   iOS 26 Liquid Glass × editorial photography magazine
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* surfaces */
  --onyx: #000000;
  --charcoal: #0E0E10;
  --graphite: #1A1A1D;
  --slate: #232327;

  /* glass */
  --glass-fill: rgba(255, 255, 255, 0.08);
  --glass-fill-strong: rgba(255, 255, 255, 0.14);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --glass-stroke-bright: rgba(255, 255, 255, 0.40);

  /* ink */
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(255, 255, 255, 0.48);
  --ink-faint: rgba(255, 255, 255, 0.26);

  /* brand — sunset on glass */
  --amber: #FFB661;
  --peach: #FF7E5F;
  --rose: #FE4A8B;
  --brand-grad: linear-gradient(135deg, #FFB661 0%, #FF7E5F 45%, #FE4A8B 100%);

  /* AI accent — only at moment of transform */
  --cyan: #5EE7FF;
  --violet: #B57BFF;
  --ai-grad: linear-gradient(135deg, #5EE7FF 0%, #B57BFF 100%);

  /* type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* dimensions — iPhone 17 Pro */
  --device-w: 393px;
  --device-h: 852px;
  --device-radius: 55px;
  --safe-top: 59px;
  --safe-bottom: 34px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--onyx);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ---------- the device frame (only on desktop viewports) ---------- */
.page {
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(255, 130, 95, 0.10), transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(94, 231, 255, 0.06), transparent 60%),
    #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.device {
  position: relative;
  width: var(--device-w);
  height: var(--device-h);
  border-radius: var(--device-radius);
  background: #050505;
  box-shadow:
    0 0 0 2px #1c1c1e,
    0 0 0 12px #0a0a0a,
    0 0 0 13px rgba(255,255,255,0.06),
    0 60px 120px -20px rgba(0,0,0,0.8),
    0 30px 60px -20px rgba(0,0,0,0.6);
  overflow: hidden;
}
.device::after {
  /* glass screen sheen */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.03) 100%);
  z-index: 9999;
}
.screen {
  position: absolute;
  inset: 0;
  border-radius: var(--device-radius);
  overflow: hidden;
  background: var(--onyx);
}

/* On phone-size viewports, ditch the frame and go full-bleed */
@media (max-width: 480px) {
  .page { padding: 0; }
  .device {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .device::after { display: none; }
  .screen { border-radius: 0; }
}

/* ---------- status bar ---------- */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  padding: 17px 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 200;
  pointer-events: none;
  color: var(--ink);
}
.status-bar .time {
  font-variant-numeric: tabular-nums;
}
.status-bar .right {
  display: flex;
  gap: 6px;
  align-items: center;
}
.status-bar svg { display: block; }
.status-bar.dark { color: #000; }

/* ---------- dynamic island ---------- */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 21px;
  background: #000;
  z-index: 250;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ---------- liquid glass ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: 20px;
  isolation: isolate;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.02) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.glass.sm { border-radius: 14px; backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
.glass.md { border-radius: 20px; }
.glass.lg { border-radius: 28px; backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%); }
.glass.dim {
  background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(0,0,0,0.45) 100%);
}

/* light glass variant — for use over dark photos */
.glass.bright {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
}

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.label-tiny {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }

/* ---------- icons — inline SVG helpers ---------- */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }

/* ---------- before/after slider (CSS-only) ---------- */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}
.ba .before, .ba .after { position: absolute; inset: 0; }
.ba .before img, .ba .after img {
  width: 100%; height: 100%; object-fit: cover;
}
.ba .before img { filter: saturate(0.86) contrast(0.93) brightness(0.96); }
.ba .after img  { filter: saturate(1.12) contrast(1.08) brightness(1.03); }
.ba .after {
  /* clipped via the slider */
  clip-path: inset(0 0 0 50%);
}
.ba .divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  transform: translateX(-1px);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  z-index: 5;
}
.ba .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.ba .label-before, .ba .label-after {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 6;
}
.ba .label-before { left: 12px; background: rgba(0,0,0,0.6); color: var(--ink); }
.ba .label-after  { right: 12px; background: rgba(255,255,255,0.95); color: #000; }

/* aggressive variants — completely different "after" image */
.ba.aggressive .after img { filter: none; }
.ba.aggressive .before img { filter: saturate(0.9) contrast(0.95); }

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.chip.active {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(94, 231, 255, 0.6),
    0 0 24px rgba(94, 231, 255, 0.18);
  color: var(--ink);
}
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ai-grad);
  box-shadow: 0 0 8px var(--cyan);
}

/* aggressiveness pip indicator */
.aggr {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.aggr .pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.aggr .pip.on { background: var(--ink); }
.aggr[data-level="1"] .pip:nth-child(-n+1) { background: #6EE7B7; }
.aggr[data-level="2"] .pip:nth-child(-n+2) { background: #93C5FD; }
.aggr[data-level="3"] .pip:nth-child(-n+3) { background: #FFB661; }
.aggr[data-level="4"] .pip:nth-child(-n+4) { background: #FF7E5F; }
.aggr[data-level="5"] .pip:nth-child(-n+5) { background: var(--rose); }

/* ---------- shutter ---------- */
.shutter {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
}
.shutter::before {
  content: '';
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .15s ease;
}
.shutter.brand::before { background: var(--brand-grad); }
.shutter:active::before { transform: scale(0.86); }
.shutter.ai::before { background: var(--ai-grad); animation: pulse-ai 1.5s ease-in-out infinite; }

@keyframes pulse-ai {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 231, 255, 0.6); }
  50% { box-shadow: 0 0 0 18px rgba(94, 231, 255, 0); }
}

/* ---------- shimmer (transform-in-progress) ---------- */
.shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.shimmer::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 200%; height: 300%;
  background: linear-gradient(135deg,
    transparent 35%,
    rgba(94, 231, 255, 0.18) 47%,
    rgba(181, 123, 255, 0.30) 50%,
    rgba(94, 231, 255, 0.18) 53%,
    transparent 65%);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50%, 50%); }
}

/* ---------- list rows (settings) ---------- */
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
}
.row + .row { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.row .icon-tile {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--graphite);
  color: var(--ink);
}
.row .title { font-size: 16px; font-weight: 500; }
.row .meta  { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.row .chev  { margin-left: auto; color: var(--ink-faint); }

/* ---------- motion ---------- */
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }
.stagger > *:nth-child(7) { animation-delay: 0.47s; }
.stagger > *:nth-child(8) { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- scrollbars ---------- */
.scroll { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   Design annotations — NOT part of the app UI.
   Visible only on wide standalone viewports. Hidden inside the
   showcase iframes (whose viewport is 393px) and on mobile.
   ============================================================ */

.design-note {
  display: none;  /* hidden by default; only appears on wide standalone */
}

@media (min-width: 760px) {
  .page.with-note {
    gap: 60px;
    justify-content: center;
  }
  .design-note {
    display: block;
    width: 280px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-ui);
  }
  .design-note .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .design-note .label::before {
    content: '';
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.30);
  }
  .design-note .box {
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
  }
  .design-note .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #111;
  }
  .design-note .thumb img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .design-note .thumb .stamp {
    position: absolute;
    top: 8px; left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
  }
  .design-note h4 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 36, "SOFT" 100;
  }
  .design-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
  }
  .design-note p + p { margin-top: 10px; }
  .design-note .arrow {
    margin: 14px 0 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20) 25%, rgba(255, 255, 255, 0.20) 75%, transparent);
    position: relative;
  }
  .design-note .arrow::before {
    content: '←';
    position: absolute;
    left: -4px;
    top: -10px;
    color: rgba(255, 255, 255, 0.40);
    font-size: 16px;
    font-family: var(--font-ui);
  }
  .design-note.right .arrow::before {
    content: '←';
    left: -4px;
  }
}

/* ---------- photo filter classes — simulate transformations ---------- */

/* Raw camera output — flatter, cooler, less contrast */
.photo-raw {
  filter: saturate(0.78) contrast(0.92) brightness(0.96) hue-rotate(-3deg);
}

/* Studio-retouched — punchier, warmer, more contrast */
.photo-studio {
  filter: saturate(1.20) contrast(1.14) brightness(1.05) sepia(0.06);
}
