/* YOURS, MINE & OURS — COMPLETE CLEAN iOS-CORE CSS */

:root {
  --paper: #f8f7f5;
  --ink: #1e1e20;
  --muted: #858588;
  --line: #e6e4e0;
  --blue: #82a7c5;
  --soft: #f0efed;
  --ios-blue: #007aff;
  --ios-sky: #5bb8ff;
  --ios-window: #ffffff;
  --ios-border: #e2e5ea;
  --ios-grey: #f2f2f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #edf0f4;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: #007aff; color: #ffffff; }
::-moz-selection { background: #007aff; color: #ffffff; }

/* MAIN WINDOW */

.site {
  width: 100%;
  max-width: 1120px;
  min-height: 100vh;
  margin: 26px auto;
  padding: 0 42px;
  background: #fcfcfd;
  border: 1px solid var(--ios-border);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(39,51,68,.08),
              0 2px 8px rgba(39,51,68,.04);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* HEADER */

.topbar {
  position: relative;
  height: 91px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.topbar::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}

.brand {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
}

.nav a {
  opacity: .68;
  padding: 6px 8px;
  border-radius: 6px;
  transition: opacity .2s ease;
}

.nav a:hover {
  background: #eaf3ff;
  color: #007aff;
  opacity: 1;
}

.nav a.active {
  background: #dcecff;
  color: #0066e6;
  opacity: 1;
}

.heart-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  padding: 8px;
  color: var(--ink);
  transition: transform .2s, color .2s;
}

.heart-btn[aria-pressed="true"] { color: #a95c62; }

.heart-btn:hover {
  transform: scale(1.12);
  color: #ff375f;
}

/* HERO */

.hero { padding: 91px 0 66px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,1.55fr) minmax(0,1fr);
  align-items: center;
  gap: 25px;
}

.person {
  min-width: 0;
  text-align: center;
}

.person-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(140deg,#d8dcdf,#aeb7c0);
  transition: transform .25s ease, box-shadow .25s ease;
}

.person:last-child .person-photo {
  background: linear-gradient(145deg,#ddd8d5,#b5aaaa);
}

.person-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.09);
}

.person-photo img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 65px;
  font-weight: 300;
  opacity: .75;
}

.person h2 {
  margin: 16px 0 4px;
  font-size: 17px;
  font-weight: 550;
}

.person small {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.hero-center { text-align: center; }

/* MAC FOLDER ICON */

.foldermark {
  position: relative;
  display: block;
  width: 49px;
  height: 39px;
  margin: 0 auto 29px;
  font-size: 0 !important;
  color: transparent;
}

.foldermark::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 13px;
  background: #78c9ff;
  border-radius: 6px 6px 0 0;
}

.foldermark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 49px;
  height: 31px;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(180deg,#92d7ff 0%,#45a7ee 50%,#2687df 100%);
  box-shadow: 0 5px 12px rgba(0,122,255,.18),
              inset 0 1px 0 #ffffff80;
}

.hero-center h1 {
  margin: 0 0 17px;
  font-size: clamp(38px,5.3vw,75px);
  font-weight: 460;
  letter-spacing: -.075em;
  line-height: 1.01;
}

.hero-center p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

/* FINDER QUICK ACCESS */

.ios-finder {
  margin: 0 0 56px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f7f8fa;
  overflow: hidden;
}

.ios-finder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid #e5e7eb;
}

.ios-finder-top strong {
  font-size: 12px;
  font-weight: 600;
}

.ios-finder-top span {
  font-size: 11px;
  color: #92949b;
}

.ios-finder-files {
  display: flex;
  justify-content: center;
  gap: clamp(18px,7vw,85px);
  padding: 27px 15px;
}

.ios-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 90px;
  border: 0;
  border-radius: 11px;
  padding: 9px 12px;
  background: transparent;
  transition: background .2s;
}

.ios-file:hover { background: #e2efff; }

.ios-file:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 3px;
}

.ios-file-label {
  color: #34363b;
  font-size: 12px;
  font-weight: 500;
}

.ios-folder-icon {
  position: relative;
  display: block;
  width: 49px;
  height: 39px;
  filter: drop-shadow(0 5px 5px rgba(0,111,217,.13));
}

.ios-folder-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 13px;
  border-radius: 5px 5px 0 0;
  background: #70c5ff;
}

.ios-folder-icon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 49px;
  height: 31px;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(180deg,#92d7ff,#4aaef4 54%,#2787e1);
  box-shadow: inset 0 1px 0 #ffffff99;
}

/* COMPARISON */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 18px;
  border-top: 1px solid var(--line);
}

.section-head strong {
  font-size: 12px;
  font-weight: 550;
}

.section-head small {
  font-size: 11px;
  color: var(--muted);
}

.compare-list { padding-bottom: 85px; }

.compare-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 180px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-height: 148px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background .2s ease, box-shadow .2s ease;
}

.compare-row:hover { background: #f0f6ff; }

.compare-row:hover .category-center b,
.compare-row:focus-visible .category-center b {
  display: inline-block;
  background: #007aff;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 7px;
}

.compare-row:hover .cover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #91c6ff;
}

.compare-row:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 3px;
}

.pick {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pick.right {
  justify-content: flex-end;
  text-align: right;
}

.pick-text { min-width: 0; }

.pick-text b {
  display: block;
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.3;
}

.pick-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

/* IMAGE COVERS */

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  height: 102px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: var(--cover-bg,#d4d8da);
}

.cover img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover span {
  padding: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 1px 5px #0003;
}

/* CATEGORY */

.category-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.cat-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-center b {
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -.02em;
  transition: background .2s ease, color .2s ease;
}

.category-center small {
  font-size: 10px;
  color: var(--muted);
}

/* OUR STORY */

.story {
  padding: 78px 20px 100px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.story h2 {
  max-width: 600px;
  margin: 18px auto;
  font-size: clamp(29px,4vw,50px);
  font-weight: 430;
  letter-spacing: -.065em;
  line-height: 1.16;
}

.story p {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.note-link {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid #dad8d4;
  border-radius: 100px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.note-link:hover { background: var(--soft); }

.note {
  max-width: 450px;
  margin: 22px auto 0;
  color: #666;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
}

/* IMESSAGE CHAT */

.imessage-card {
  width: 100%;
  max-width: 410px;
  margin: 38px auto 0;
  border: 1px solid #e5e6eb;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(42,56,79,.07);
  text-align: left;
}

.imessage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 23px 18px 16px;
  border-bottom: 1px solid #ececf0;
  background: #fbfbfd;
}

.imessage-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: linear-gradient(145deg,#a9d8ff,#4f9ef2);
  color: white;
  font-size: 19px;
}

.imessage-header strong {
  font-size: 13px;
  font-weight: 600;
}

.imessage-header small {
  color: #92949b;
  font-size: 10px;
}

.imessage-thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 24px 19px 28px;
  min-height: 205px;
}

.imessage-time {
  width: 100%;
  margin-bottom: 10px;
  color: #9b9da3;
  font-size: 10px;
  text-align: center;
}

.bubble {
  position: relative;
  width: fit-content;
  max-width: 83%;
  margin: 0;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bubble-in {
  align-self: flex-start;
  background: #e9e9ee;
  color: #242424;
  border-bottom-left-radius: 5px;
}

.bubble-out {
  align-self: flex-end;
  border: 0;
  border-bottom-right-radius: 5px;
  background: #007aff;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.bubble-out:hover {
  background: #0068db;
  transform: translateY(-2px);
}

.bubble-out:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 3px;
}

.imessage-answer { animation: ios-pop .3s ease both; }
.imessage-answer[hidden] { display: none; }

@keyframes ios-pop {
  from {
    opacity: 0;
    transform: translateY(9px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 75px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

/* DETAIL PAGE */

.detail {
  min-height: calc(100vh - 152px);
  padding: 37px 0 110px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 12px;
}

.back span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 17px;
}

.detail-header {
  padding: 48px 10px 34px;
  text-align: center;
}

.detail-header h1 {
  margin: 10px 0;
  font-size: clamp(38px,5vw,64px);
  font-weight: 440;
  letter-spacing: -.075em;
}

.detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* TABS */

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 33px;
  scrollbar-width: none;
}

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

.tabs a {
  flex: none;
  padding: 10px 15px;
  border: 1px solid #dfddda;
  border-radius: 100px;
  color: #777;
  font-size: 11px;
  white-space: nowrap;
}

.tabs a.active {
  background: #007aff;
  border-color: #007aff;
  color: #fff;
}

.tabs a:hover {
  border-color: #87bfff;
  color: #007aff;
}

/* GALLERY */

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

.gallery-card {
  min-width: 0;
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: #a8d1ff;
  box-shadow: 0 8px 20px rgba(0,122,255,.07);
}

.gallery-card .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  border-radius: 10px;
}

.gallery-card .cover span {
  font-size: clamp(16px,2.5vw,26px);
}

.gallery-card .tag {
  display: block;
  margin: 17px 0 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* SPOTIFY */

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

.spotify-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.song-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.song-title .cover {
  width: 58px;
  height: 58px;
  border-radius: 7px;
}

.song-title b {
  display: block;
  font-size: 16px;
  letter-spacing: -.03em;
}

.song-title small {
  color: var(--muted);
  font-size: 12px;
}

.spotify-card iframe {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 12px;
  background: #222;
}

.detail-foot {
  margin-top: 38px;
  color: #888;
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

/* TABLET */

@media (max-width: 800px) {
  .site { padding: 0 22px; }
  .hero { padding: 65px 0 66px; }

  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(160px,1.4fr) minmax(0,1fr);
    gap: 14px;
  }

  .compare-row {
    grid-template-columns: minmax(0,1fr) 145px minmax(0,1fr);
  }

  .cover { width: 76px; height: 76px; }
  .pick { gap: 10px; }
  .pick-text b { font-size: 13px; }
  .pick-text small { font-size: 11px; }
  .gallery { gap: 10px; }
}

/* MOBILE */

@media (max-width: 560px) {
  body { background: #fcfcfd; }

  .site {
    margin: 0 auto;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    height: 78px;
    padding-top: 20px;
  }

  .topbar::before { top: 10px; }
  .brand { font-size: 12px; }
  .nav { gap: 13px; font-size: 10px; }
  .nav .optional { display: none; }
  .heart-btn { font-size: 21px; }

  .hero { padding: 49px 0 42px; }

  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(108px,1.2fr) minmax(0,1fr);
    gap: 8px;
  }

  .person-photo {
    aspect-ratio: 3 / 4.3;
    border-radius: 10px;
  }

  .photo-placeholder { font-size: 35px; }

  .person h2 {
    margin: 9px 0 3px;
    font-size: 13px;
  }

  .person small { font-size: 10px; }

  .foldermark {
    transform: scale(.75);
    margin-bottom: 15px;
  }

  .hero-center h1 {
    margin-bottom: 9px;
    font-size: clamp(26px,7vw,40px);
  }

  .hero-center p {
    font-size: 10px;
    line-height: 1.45;
  }

  .ios-finder {
    margin-bottom: 38px;
    border-radius: 12px;
  }

  .ios-finder-files {
    gap: 5px;
    justify-content: space-around;
    padding: 18px 5px;
  }

  .ios-file {
    min-width: 0;
    flex: 1;
    padding: 8px 3px;
  }

  .ios-file-label { font-size: 10px; }
  .ios-folder-icon { transform: scale(.78); }

  .section-head { padding: 20px 0 12px; }
  .section-head small { font-size: 10px; }
  .compare-list { padding-bottom: 65px; }

  .compare-row {
    grid-template-columns: minmax(0,1fr) 103px minmax(0,1fr);
    gap: 6px;
    min-height: 98px;
    padding: 12px 0;
  }

  .cover {
    width: 51px;
    height: 59px;
    border-radius: 6px;
  }

  .cover span {
    padding: 3px;
    font-size: 9px;
  }

  .pick {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pick.right { align-items: flex-end; }
  .pick-text b { font-size: 10px; }
  .pick-text small { margin-top: 2px; font-size: 9px; }
  .category-center { gap: 5px; }

  .cat-icon { width: 23px; height: 23px; }
  .category-center b { font-size: 10px; }
  .category-center small { font-size: 8px; }

  .story { padding: 58px 5px 70px; }
  .story h2 { font-size: 29px; }

  .imessage-card {
    margin-top: 28px;
    border-radius: 18px;
  }

  .imessage-thread { padding: 20px 13px 24px; }
  .bubble { font-size: 12px; }
  .footer { font-size: 10px; }
  .detail { padding: 20px 0 70px; }
  .detail-header { padding: 32px 0 22px; }
  .detail-header h1 { font-size: 39px; }
  .tabs { justify-content: flex-start; }

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

  .gallery-card {
    padding: 9px 9px 13px;
    border-radius: 11px;
  }

  .gallery-card h3 { font-size: 14px; }
  .gallery-card .tag { margin-top: 12px; font-size: 9px; }
  .gallery-card p { font-size: 10px; }

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

@media (prefers-reduced-motion: reduce) {
  .imessage-answer { animation: none; }
}