/* The landing page (index.html), in the app's own colors. Support, Privacy
   and Terms use style.css. */

:root {
  --canvas: #111113;
  --surface: #1d1e21;
  --panel: #0e0e10;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.22);
  --text: #f3f2ef;
  --soft: #d4d4d8;
  --muted: #a1a1a8;
  --faint: #75757c;
  --accent: #ffd12e;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5.2vw + 1rem, 5.25rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }

/* A camera readout: small mono capitals, as on the app's look dial. */
.readout {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fine { font-size: 0.875rem; color: var(--faint); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #111113;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: #ffdb5c; }
.button:active { transform: scale(0.98); }
.button.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.quiet:hover { background: rgb(255 255 255 / 0.06); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 0.9rem; }

/* Header */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(17 17 19 / 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brand img { border-radius: 7px; }
.bar-links { display: none; gap: 26px; margin-left: auto; font-size: 0.925rem; }
.bar-links a { color: var(--muted); text-decoration: none; }
.bar-links a:hover { color: var(--text); }
.bar .button { margin-left: auto; }
@media (min-width: 880px) {
  .bar-links { display: flex; }
  .bar .button { margin-left: 0; }
}

/* Hero */

.hero { display: grid; gap: 44px; padding-top: 40px; padding-bottom: 56px; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.lead { max-width: 33em; font-size: 1.175rem; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-media { position: relative; }
.hero-media::before {
  /* Light from the street in the clip, spilling onto the page. */
  content: "";
  position: absolute;
  inset: 6% -4% -2%;
  background:
    radial-gradient(45% 40% at 28% 72%, rgb(255 166 64 / 0.32), transparent 70%),
    radial-gradient(50% 45% at 72% 28%, rgb(56 120 210 / 0.34), transparent 70%);
  filter: blur(48px);
}
.screen {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel) url("assets/hero-poster.jpg") center / cover;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -24px rgb(0 0 0 / 0.75);
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play[data-state="playing"] .icon-play,
.play[data-state="paused"] .icon-pause { display: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.stats div { padding: 18px 20px 20px; background: var(--panel); }
.stats dt { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stats dd { margin: 6px 0 0; font: 500 2.25rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */

.section { padding-top: 96px; }
.section-head { display: grid; gap: 14px; max-width: 42rem; margin-bottom: 36px; }
.section-head > p:not(.readout) { font-size: 1.1rem; color: var(--muted); }
@media (min-width: 900px) {
  .section { padding-top: 136px; }
  .section-head { margin-bottom: 48px; }
}

/* Looks */

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--gutter)) 24px;
  padding: 3px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [aria-selected="true"] { border-color: var(--text); background: var(--text); color: #111113; }
.tabs [aria-selected="true"]:hover { color: #111113; }
/* Phones swipe the row; wider screens show every collection at once. */
@media (min-width: 900px) {
  .tabs { flex-wrap: wrap; margin: 0 0 28px; padding: 3px 0; overflow: visible; }
}
/* Without JavaScript there are no tabs: every collection is shown. */
html:not(.js) .tabs { display: none; }
.js .collection:not(.active) { display: none; }

.collection { display: grid; gap: 28px; }
.collection + .collection { margin-top: 64px; }
.js .collection + .collection { margin-top: 0; }
@media (min-width: 900px) {
  .collection { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
}

.compare {
  --split: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare .after { clip-path: inset(0 0 0 var(--split)); }
.compare::after {
  /* The dividing line. */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px rgb(0 0 0 / 0.45);
  pointer-events: none;
}
.compare::before {
  /* The handle. */
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--split);
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(17 17 19 / 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compare:has(input:focus-visible)::before { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare input {
  /* Kept for the keyboard and VoiceOver; pointers drag the photo itself. */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.tag {
  position: absolute;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.15s;
}
.tag.left { left: 14px; }
.tag.right { right: 14px; }
.near-left .tag.left,
.near-right .tag.right { opacity: 0; }

.about { display: grid; gap: 14px; align-content: start; }
.about h3 { font-size: clamp(2.25rem, 2vw + 1.4rem, 3rem); line-height: 1.05; }
.about > p:not(.readout):not(.key) { max-width: 30em; font-size: 1.125rem; color: var(--soft); }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.names button {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--soft);
  font: 1rem/1.35 var(--serif);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.names button:hover { background: #2a2b2f; color: var(--text); }
.names [aria-pressed="true"],
.names [aria-pressed="true"]:hover { background: var(--text); color: #111113; }
/* While a look's photo loads, its name pulses. */
.loading .names [aria-pressed="true"] { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .loading .names [aria-pressed="true"] { animation: none; opacity: 0.7; }
}
/* Without JavaScript the names are only a list. */
html:not(.js) .names button { cursor: default; pointer-events: none; }
.names .free::after,
.key .dot {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.15em;
}
.key { color: var(--faint); font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.key .dot { margin: 0 8px 0 0; }
@media (max-width: 899.98px) {
  /* On one column the look names go right under the photo, so tapping one
     changes a photo that's still on screen; the collection's name follows. */
  .collection { gap: 0; }
  .about { display: contents; }
  .compare { order: 1; }
  .names { order: 2; margin-top: 14px; }
  .key { order: 3; margin-top: 12px; }
  .about > .readout { order: 4; margin-top: 32px; }
  .about > h3 { order: 5; margin-top: 8px; }
  .about > p:not(.readout):not(.key) { order: 6; margin-top: 12px; }
}

/* Camera */

.features {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  list-style: none;
  counter-reset: feature;
}
.features li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 24px 30px;
  background: var(--canvas);
  counter-increment: feature;
}
.features li::before {
  content: counter(feature, decimal-leading-zero);
  color: var(--faint);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
}
.features p { color: var(--muted); }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .features li { padding: 32px 30px 36px; }
}

/* Editor */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 10px;
  margin: 0 calc(-1 * var(--gutter)) 56px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { display: grid; align-content: start; gap: 2px; scroll-snap-align: start; }
.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.strip span { font-family: var(--serif); font-size: 1.1rem; }
.strip small { color: var(--faint); font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 640px) {
  .strip { grid-auto-columns: 30%; }
}
@media (min-width: 900px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0 0 64px; padding: 0; overflow: visible; }
}

.tools { display: grid; margin: 0; border-top: 1px solid var(--line); }
.tools div { display: grid; gap: 6px; align-content: start; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.tools dt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; }
.tools dd { margin: 0; color: var(--muted); }
.pro {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .tools { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1040px) {
  .tools { grid-template-columns: repeat(3, 1fr); }
}

/* Premium */

.plans { display: grid; gap: 16px; }
.plan {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.plan.featured { border-color: var(--line-strong); background: linear-gradient(180deg, #25262a, #18191c); }
.plan h3 { font-size: 1.85rem; }
.plan ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 28px; color: var(--soft); }
.plan li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  transform: rotate(-45deg);
}
.plan.featured li::before { border-color: var(--accent); }
@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { padding: 36px 34px; }
}

/* Privacy */

.privacy { display: grid; gap: 18px; justify-items: center; text-align: center; }
.privacy h2 { max-width: 13em; font-size: clamp(2.25rem, 3.6vw + 1rem, 4.25rem); }
.privacy > p:not(.readout) { max-width: 34em; font-size: 1.125rem; color: var(--muted); }
.privacy a { color: var(--text); }

/* Questions */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 1.075rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); }
.more { margin-top: 22px; color: var(--muted); }
.more a { color: var(--text); }
@media (min-width: 900px) {
  #faq { display: grid; grid-template-columns: 0.8fr 1.2fr; column-gap: 72px; align-items: start; }
  #faq .section-head { grid-row: span 2; }
  #faq .more { grid-column: 2; }
}

/* Closing */

.cta { display: grid; gap: 20px; justify-items: center; padding-top: 128px; padding-bottom: 128px; text-align: center; }
.cta img { border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -12px rgb(255 209 46 / 0.22); }
.cta h2 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); }

.foot {
  padding: 32px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}
.foot-inner { display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 6px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot a { color: var(--muted); }
.placeholder { padding: 0 4px; border-radius: 4px; background: rgb(255 209 46 / 0.2); color: var(--text); }
