/* —— App page —— built on the shared tokens in styles.css —— */

/* Phone frame around a raw 540×1174 app screenshot */
.ph {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  border-radius: 36px;
  background: #0a0a0a;
  box-shadow: var(--shadow-lg);
}

/* —— Hero: three-phone fan —— */
.hero .hero-phone.app-fan {
  position: relative;
  width: min(460px, 92vw);
  aspect-ratio: 460 / 520;
  margin-inline: auto;
  filter: none;
}

.app-fan .ph {
  position: absolute;
  width: 46%;
  top: 0;
}

.app-fan .ph-back-l {
  left: 0;
  top: 9%;
  transform: rotate(-7deg);
  opacity: 0.96;
}

.app-fan .ph-back-r {
  right: 0;
  top: 9%;
  transform: rotate(7deg);
  opacity: 0.96;
}

.app-fan .ph-front {
  left: 27%;
  z-index: 2;
  box-shadow: 0 40px 80px rgba(10, 10, 10, 0.3);
}

.hero .hero-visual {
  padding-bottom: 1rem;
}

/* —— Formats strip —— */
.formats {
  padding: 4.5rem 0 1rem;
  text-align: center;
}

.formats p {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.fmt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 700;
}

.fmt i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 600;
}

/* —— Bento: real screens, cropped —— */
.bento-sec {
  padding: 5rem 0 2rem;
}

.sec-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.sec-head h2 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.sec-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--tint, var(--wash));
}

.tile-copy {
  padding: 1.75rem 1.75rem 0;
}

.tile-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tone, var(--red));
}

.tile h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tile p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* The phone rises from the tile's bottom edge; only its top part shows */
.tile-shot {
  position: relative;
  height: 300px;
  margin-top: 1.75rem;
  overflow: hidden;
}

.tile-shot .ph {
  position: absolute;
  left: 50%;
  top: 20px; /* headroom so the hover lift stays inside the clipped area */
  width: min(250px, 78%);
  transform: translateX(-50%);
  transition: transform var(--dur-slow) var(--ease);
}

.tile:hover .tile-shot .ph {
  transform: translateX(-50%) translateY(-14px);
}

.tile-dark {
  background: #111113;
  color: #fff;
}

.tile-dark p {
  color: rgba(255, 255, 255, 0.66);
}

.tile-dark .ph {
  background: #2a2a2e;
}

/* Wide tile: copy left, two phones right */
.tile-wide .tile-shot {
  height: 330px;
}

.tile-wide .tile-shot .ph:nth-child(2) {
  display: none;
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .tile {
    grid-column: span 2;
  }
  .tile-wide {
    grid-column: span 4;
    flex-direction: row;
  }
  .tile-half {
    grid-column: span 3;
  }
  .tile-wide .tile-copy {
    flex: 0 0 40%;
    align-self: center;
    padding: 2.25rem;
  }
  .tile-wide .tile-copy h3 {
    font-size: 1.75rem;
  }
  .tile-wide .tile-shot {
    flex: 1;
    height: 400px;
    margin-top: 2.25rem;
  }
  .tile-wide .tile-shot .ph {
    left: 6%;
    width: 240px;
    transform: none;
  }
  .tile-wide .tile-shot .ph:nth-child(2) {
    display: block;
    left: auto;
    right: 4%;
    top: 40px;
  }
  .tile-wide:hover .tile-shot .ph {
    transform: translateY(-14px);
  }
}

/* —— Tour: every section of the app —— */
.tour {
  padding: 6rem 0;
  background: var(--wash);
  margin-top: 4rem;
}

.tour-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
  padding: 0.35rem;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
}

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

.tour-tab {
  flex: none;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.tour-tab:hover {
  color: var(--ink);
}

.tour-tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.tour-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* With JS, one panel at a time; without, all stack and stay readable */
html.js .tour-panel {
  margin-bottom: 0;
}

html.js .tour-panel[hidden] {
  display: none;
}

html.js .tour-panel.is-active {
  animation: tour-in var(--dur-med) var(--ease);
}

@keyframes tour-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tour-copy .num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--red);
}

.tour-copy h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.tour-copy > p {
  margin: 0 0 1.5rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.tour-copy ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-copy li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9875rem;
  line-height: 1.5;
}

.tour-copy li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--red-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23dd202a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tour-phone {
  display: flex;
  justify-content: center;
}

.tour-phone .ph {
  width: min(290px, 72vw);
}

@media (min-width: 860px) {
  .tour-panel {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .tour-copy {
    order: -1;
    max-width: 30rem;
    justify-self: end;
  }
  .tour-phone {
    justify-content: flex-start;
  }
}

/* —— Trust band —— */
.trust {
  padding: 5rem 0 1rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.trust-item {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.trust-item b {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.trust-item b span {
  color: var(--red);
}

.trust-item h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile-shot .ph,
  .tour-tab {
    transition: none;
  }
  .tile:hover .tile-shot .ph,
  .tile-wide:hover .tile-shot .ph {
    transform: translateX(-50%);
  }
  html.js .tour-panel.is-active {
    animation: none;
  }
}

/* Trust number: full ink and weight (shared .count-up is a muted inline style) */
.trust-item .count-up {
  color: var(--ink);
  font-weight: 800;
}
