/* Project pages — App Store–like layout on top of style.css */

.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.04em;
}
.back .arrow { color: var(--muted); transition: transform .4s var(--ease); font-size: 18px; }
.back:hover .arrow { transform: translateX(-4px); color: var(--red); }

.app { max-width: 1080px; width: 100%; min-width: 0; margin: 0 auto; padding-bottom: 40px; }

/* Header */
.app-head {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(32px, 6vh, 64px) 0 clamp(32px, 6vh, 56px);
}
.app-icon {
  width: clamp(96px, 14vw, 168px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22.5%;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 60px -24px var(--glow, rgba(0,0,0,.35));
  animation: pop .9s var(--ease) both;
}
@keyframes pop { from { transform: scale(.85) rotate(-6deg); opacity: 0; } }
.app-head h1 {
  font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 500;
  animation: fade .9s .1s both;
}
.app-head .sub {
  margin-top: 10px; color: var(--muted); font-size: clamp(17px, 1.8vw, 22px);
  animation: fade .9s .2s both;
}
.actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; animation: fade .9s .3s both; }
.get {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 99px;
  background: var(--accent, var(--red)); color: #fff;
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.get:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent, var(--red)); }
.get.soon { background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: default; }
.get.soon:hover { transform: none; box-shadow: none; }
.hint { color: var(--muted); font-size: 13px; }

/* Info strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip div {
  padding: 18px 12px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.strip div + div { border-left: 1px solid var(--line); }
.strip small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.strip b { font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.strip span { font-size: 12px; color: var(--muted); }

/* Screens carousel */
.shots {
  display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 40px var(--g) 20px; margin: 0 calc(-1 * var(--g));
  cursor: grab;
}
.shots::-webkit-scrollbar { display: none; }
.shots > * { scroll-snap-align: center; flex: 0 0 auto; }
.shot {
  width: clamp(200px, 24vw, 270px); aspect-ratio: 1206 / 2622;
  border-radius: 30px; overflow: hidden;
  background: var(--card, #e9e6df);
  box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(0,0,0,.35);
  transition: transform .5s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover { transform: translateY(-6px) rotate(-1deg); }
.shot:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.shots-note { color: var(--muted); font-size: 13px; text-align: right; }

/* Story + features */
.story {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 12vh, 120px) 0 clamp(40px, 8vh, 80px);
}
.story h2 {
  font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em;
  font-weight: 500; text-transform: none;
}
.story p { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 52ch; }
.story p + p { margin-top: 14px; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.feature { background: var(--bg); padding: 28px 26px 30px; transition: background .3s; }
.feature:hover { background: color-mix(in srgb, var(--bg) 94%, var(--accent, var(--red))); }
.feature i {
  display: block; font-style: normal; font-family: var(--serif);
  font-size: 34px; line-height: 1; color: var(--accent, var(--red)); margin-bottom: 18px;
}
.feature h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Information table */
.info { padding: clamp(64px, 12vh, 120px) 0 0; }
.info h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.info dl { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.info dl div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { text-align: right; }
.info a { border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.info a:hover { color: var(--accent, var(--red)); border-color: currentColor; }

/* Next project */
.next {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(80px, 14vh, 140px); padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.next small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.next strong { display: block; font-weight: 500; font-size: clamp(32px, 5vw, 64px); letter-spacing: -.045em; line-height: 1.05; transition: transform .5s var(--ease); }
.next:hover strong { transform: translateX(10px); font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.next img { width: 56px; height: 56px; border-radius: 13px; transition: transform .5s var(--ease); }
.next:hover img { transform: rotate(-8deg) scale(1.08); }

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .info dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app-head { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
}

/* ——— Support & privacy pages ——— */
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: clamp(40px, 8vh, 80px) 0 0;
}
.tabs a {
  padding: 7px 14px; border-radius: 99px; font-size: 14px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.tabs a:hover { color: var(--ink); border-color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.doc-head {
  display: flex; align-items: center; gap: 20px;
  padding: 32px 0 clamp(32px, 6vh, 56px); border-bottom: 1px solid var(--line);
}
.doc-head img { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: 15px; }
.doc-head h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.doc-head p { color: var(--muted); margin-top: 6px; }

.doc { max-width: 700px; padding: clamp(32px, 6vh, 56px) 0 0; font-size: 16px; line-height: 1.65; }
.doc h2 {
  font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-transform: none;
  margin: 44px 0 10px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; font-weight: 500; margin: 22px 0 4px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--ink); border-bottom: 1px solid var(--accent, var(--red)); }
.doc a:hover { color: var(--accent, var(--red)); }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.doc .card {
  border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 18px 0;
}
.doc .card strong { font-weight: 500; }
.doc .buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.doc .buttons a { border: 0; }
.doc .buttons .get { color: #fff; }
.doc .buttons .get.alt { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1;
  color: var(--accent, var(--red)); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; margin: 0; }

/* Section labels + Mac carousel */
.shots-label {
  margin-top: 48px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.shots-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shots-label + .shots { padding-top: 20px; }
.shots.mac .shot {
  width: clamp(300px, 56vw, 680px); aspect-ratio: 1830 / 1150; border-radius: 14px;
}
.shots.mac .shot:hover { transform: translateY(-6px); }

.get.alt { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.get.alt:hover { border-color: var(--ink); box-shadow: none; }
.dl-hint { margin-top: 10px; animation: fade .9s .35s both; }
.beta-hint { margin-top: 4px; animation: fade .9s .45s both; }
.beta-hint a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.beta-hint a:hover { text-decoration-color: currentColor; }
