/* unu website. Palette from ios/Miso/Design/Theme.swift; layout after the waffle reference design. */
/* Circular Std, self-hosted (same files as the app). */
@font-face { font-family: 'Circular'; src: url('/fonts/CircularStd-Book.woff2') format('woff2'), url('/fonts/CircularStd-Book.woff') format('woff'); font-weight: 300 450; font-style: normal; font-display: swap; }
@font-face { font-family: 'Circular'; src: url('/fonts/CircularStd-Medium.woff2') format('woff2'), url('/fonts/CircularStd-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Circular'; src: url('/fonts/CircularStd-Bold.woff2') format('woff2'), url('/fonts/CircularStd-Bold.woff') format('woff'); font-weight: 600 800; font-style: normal; font-display: swap; }
/* TBJ Cinea Sans (Taboja Studio, licensed by Simon), headlines only. */
@font-face { font-family: 'Cinea Sans'; src: url('/fonts/TBJCineaSans-ExtraBold.woff2') format('woff2'), url('/fonts/TBJCineaSans-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --night: #141210;
  --night-2: #1d1a16;
  --night-3: #2a2420;
  --cream: #f6f3ee;
  --paper: #ece7df;
  --ink: #1d1a16;
  --body: #3a3632;
  --muted: #77736e;
  --line-dark: rgba(246, 243, 238, 0.14);
  --line-light: rgba(29, 26, 22, 0.12);
  --gold: oklch(0.70 0.13 70);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --font: 'Circular', system-ui, -apple-system, sans-serif;
  --display: 'Cinea Sans', 'Circular', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(246, 243, 238, 0.35); }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* Nav */
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gutter);
}
.nav .logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav.on-light { color: var(--ink); }
.nav.on-light .btn { background: var(--ink); color: var(--cream); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid currentColor; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

@media (max-width: 760px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 18px; order: 3; width: 100%;
    padding: 20px 0 8px; font-size: 18px; border-top: 1px solid var(--line-dark); margin-top: 8px;
  }
  .nav.on-light.open .nav-links { border-top-color: var(--line-light); }
}

/* Hero */
.hero { position: relative; min-height: clamp(640px, 96vh, 1000px); display: flex; flex-direction: column; background: var(--night); }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(20,18,16,0.5) 0%, rgba(20,18,16,0.1) 30%, rgba(20,18,16,0.25) 62%, var(--night) 100%);
}
.hero-copy {
  position: relative; z-index: 2; margin-top: auto;
  padding: 0 var(--gutter) clamp(64px, 10vh, 110px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.hero h1 { font-size: clamp(48px, 8vw, 112px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.94; }
.hero p { font-size: clamp(16px, 1.5vw, 20px); opacity: 0.85; max-width: 560px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Looks strip */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 72px var(--gutter) 96px; }
.strip a { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; transition: transform 0.25s; }
.strip a:nth-child(even) { margin-top: 48px; }
.strip a:hover { transform: translateY(-4px); opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 40px var(--gutter) 64px; }
  .strip a:nth-child(even) { margin-top: 24px; }
}

/* Section scaffolding */
.section { padding: clamp(80px, 12vw, 150px) var(--gutter); position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(44px, 7vw, 104px); }
.display.md { font-size: clamp(40px, 5.6vw, 80px); }
.lede { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; opacity: 0.78; max-width: 600px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.light { background: var(--cream); color: var(--ink); }
.light .lede { opacity: 0.8; color: var(--body); }
.note { font-size: 13px; opacity: 0.55; }

/* Create collage */
.create { background: radial-gradient(80% 60% at 50% 60%, var(--night-3) 0%, var(--night) 70%); }
.collage { position: relative; width: 100%; max-width: 1100px; height: clamp(460px, 52vw, 640px); margin: 56px auto 0; }
.collage .look {
  position: absolute; left: 50%; top: 0; bottom: 0; width: clamp(240px, 34vw, 440px);
  transform: translateX(-50%); border-radius: 28px; overflow: hidden;
  box-shadow: rgba(0,0,0,0.6) 0 40px 100px;
}
.collage .look img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(20,18,16,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; color: var(--cream);
}
.collage .look .pill { position: absolute; left: 16px; bottom: 16px; }
.piece { position: absolute; width: clamp(110px, 15vw, 190px); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.piece img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 16px; box-shadow: rgba(0,0,0,0.5) 0 20px 50px; }
.piece span { font-size: 12.5px; font-weight: 500; }
.piece span em { font-style: normal; opacity: 0.6; font-weight: 400; }
.piece.a { left: 4%; top: 6%; transform: rotate(-6deg); }
.piece.b { left: 78%; top: 2%; transform: rotate(5deg); }
.piece.c { left: 6%; top: 52%; transform: rotate(4deg); }
.piece.d { left: 76%; top: 50%; transform: rotate(-4deg); }
@media (max-width: 760px) {
  .collage { height: 520px; }
  .piece { width: 104px; }
  .piece.a { left: 0; top: 2%; } .piece.b { left: auto; right: 0; top: 0; }
  .piece.c { left: 0; top: 60%; } .piece.d { left: auto; right: 0; top: 58%; }
  .collage .look { width: 62%; }
}

/* Try-on compare */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .copy { display: flex; flex-direction: column; gap: 22px; }
.compare {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  box-shadow: rgba(29,26,22,0.25) 0 30px 80px; user-select: none; touch-action: pan-y; cursor: ew-resize;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); }
.compare .handle {
  position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 999px; background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500;
  box-shadow: rgba(0,0,0,0.25) 0 6px 20px;
}
.compare .tag { position: absolute; top: 16px; }
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .media { order: -1; } }

/* Hotspots */
.shoppable { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; }
.shoppable img { width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; display: flex; align-items: center; gap: 10px; }
.spot i { width: 14px; height: 14px; border-radius: 999px; background: var(--cream); box-shadow: 0 0 0 6px rgba(246,243,238,0.28); flex: none; }
.spot i::after { content: ''; display: block; }
.spot .label { background: rgba(20,18,16,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 10px; padding: 7px 12px; font-size: 12.5px; line-height: 1.35; }
.spot .label b { display: block; font-weight: 500; }
.spot .label span { opacity: 0.65; }

/* Creators */
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.row-head p { max-width: 340px; opacity: 0.7; }
.creators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.creator img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: var(--radius); }
.creator .meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.creator .meta img { width: 30px; height: 30px; border-radius: 999px; aspect-ratio: 1; }
.creator .meta div { flex: 1; font-size: 14px; line-height: 1.25; min-width: 0; }
.creator .meta b { font-weight: 500; display: block; }
.creator .meta span { opacity: 0.6; font-size: 12.5px; }
.creator .meta .btn { height: 32px; padding: 0 14px; font-size: 13px; }
@media (max-width: 860px) { .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones */
.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 36px); margin-top: 56px; flex-wrap: wrap; }
.phone { width: clamp(200px, 22vw, 280px); border-radius: 40px; padding: 8px; background: #000; box-shadow: rgba(0,0,0,0.45) 0 30px 80px; }
.phone img { border-radius: 33px; width: 100%; }
.phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 760px) { .phone { width: 46%; border-radius: 28px; padding: 5px; } .phone img { border-radius: 23px; } .phone:nth-child(3) { display: none; } .phone:nth-child(2) { transform: none; } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { border-radius: 20px; padding: 28px; background: var(--night-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 10px; }
.light .card { background: #fff; border-color: var(--line-light); }
.card .num { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--gold); line-height: 1; }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.card p { opacity: 0.72; font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Edits grid */
.edits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.edit-card { display: block; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.edit-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.edit-card:hover { opacity: 1; } .edit-card:hover img { transform: scale(1.03); }
.edit-card .over { position: absolute; inset: auto 0 0 0; padding: 80px 24px 24px; background: linear-gradient(transparent, rgba(20,18,16,0.85)); }
.edit-card .over small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.edit-card .over h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1; margin: 6px 0 8px; }
.edit-card .over p { opacity: 0.8; font-size: 15px; max-width: 420px; }
@media (max-width: 760px) { .edits { grid-template-columns: 1fr; } }

/* Edit article */
.article-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.article-hero img { border-radius: 26px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.article-hero .kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.article-hero .copy { display: flex; flex-direction: column; gap: 20px; padding-bottom: 12px; }
@media (max-width: 860px) { .article-hero { grid-template-columns: 1fr; } }
.disclosure-box { border: 1px solid var(--line-light); background: #fff; border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--body); }
.disclosure-box a { text-decoration: underline; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 48px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--body); font-size: 17px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-light); vertical-align: top; color: var(--body); }
.prose th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.piece-card { background: #fff; border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.piece-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--paper); }
.piece-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.piece-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.piece-card p { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.piece-card .btn { margin-top: 10px; height: 40px; font-size: 14px; }

/* Page header (light pages) */
.page-head { padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 56px); }
.page-head .kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.page-head .lede { margin-top: 18px; }
.legal-meta { font-size: 14px; color: var(--muted); margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--night); color: var(--cream); padding: 80px var(--gutter) 40px; border-top: 1px solid var(--line-dark); }
.footer .big { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: 72px; }
.footer .big img { height: 44px; width: auto; }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer .row img { height: 20px; width: auto; }
.footer .links { display: flex; gap: 24px; flex-wrap: wrap; opacity: 0.85; }
.footer .fine { margin-top: 22px; font-size: 12.5px; opacity: 0.55; max-width: 760px; }
.footer .fine a { text-decoration: underline; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip a, .btn, .edit-card img { transition: none; }
}

@media (max-width: 760px) {
  .piece span { display: none; }
  .spot .label { font-size: 11.5px; padding: 6px 10px; }
  .shoppable .spot:nth-of-type(2) { display: none; }
}
@media (max-width: 860px) {
  .creator .meta .btn { display: none; }
}

/* How it works: four steps and a row of phones cut off by a fade (website design v2). */
.how { padding-bottom: 0; overflow: hidden; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; }
.cards.four .card { border-radius: 24px; padding: 32px; border-color: rgba(29,26,22,0.08); }
.cards.four .card .num { font-size: 40px; color: rgb(200, 134, 47); }
.cards.four .card h3 { font-size: 24px; margin-top: 8px; }
.cards.four .card p { font-size: 16.5px; line-height: 1.6; color: #5f5b55; opacity: 1; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
.phones-row {
  position: relative; max-width: 1240px; margin: 56px auto 0; height: clamp(300px, 36vw, 470px); overflow: hidden;
  display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 32px); padding-top: 24px;
}
.phones-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(rgba(246,243,238,0), var(--cream)); pointer-events: none; }
.phones-row .phone { width: clamp(150px, 21%, 260px); flex: none; align-self: flex-start; background: #0e0d0c; box-shadow: rgba(29,26,22,0.18) 0 24px 60px; }
.phones-row .phone:nth-child(2) { transform: translateY(-16px); }
@media (max-width: 760px) {
  .phones-row { height: 300px; }
  .phones-row .phone { width: 44%; border-radius: 28px; padding: 5px; }
  .phones-row .phone img { border-radius: 23px; }
  .phones-row .phone:nth-child(n+3) { display: none; }
}
.tag-avatar { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; margin: 0 6px 0 -6px; }
.compare .tag.r img.tag-avatar { position: static; inset: auto; width: 20px; height: 20px; }
