/* Home 1 — the page is the card.
   Hero: a wallet of category folders on an olive field; the front folder is open and becomes the page. */

/* ---------- hero ---------- */
.wallet { position: relative; min-height: max(100svh, 760px); background: var(--field-1); color: var(--field-1-ink); --text: currentColor; --heading: currentColor; overflow: hidden; display: flex; flex-direction: column; }
.wallet .bar { background: transparent; color: var(--field-1-ink); }
.wallet .bar__row { display: grid; grid-template-columns: 1fr auto 1fr; }
.wallet .wordmark { grid-column: 2; }
.wallet .bar__links { margin: 0; grid-column: 1; grid-row: 1; }
.wallet .bar__actions { grid-column: 3; grid-row: 1; justify-self: end; }
.wallet .menu-btn { grid-column: 1; grid-row: 1; justify-self: start; }
.wallet .icon-btn:hover { background: rgba(236, 235, 231, 0.12); }
.wallet .count { background: var(--field-1-ink); color: var(--field-1); }

.wallet__intro { text-align: center; padding-top: clamp(2rem, 7vh, 5.5rem); padding-inline: var(--margin); }
.wallet__intro h1 { font-size: var(--step-display); line-height: 1.2; font-weight: 800; }
.wallet__intro p { margin: clamp(1.25rem, 3vh, 2rem) auto 0; max-width: 46ch; font-size: var(--step-lead); line-height: 1.75; }

.folders { position: relative; margin-top: auto; padding-top: clamp(3rem, 7vh, 5rem); width: 86%; margin-inline: auto; display: grid; }
.folder { --h: 56px; position: relative; display: block; height: var(--h); text-decoration: none; background: var(--f); color: var(--fi); }
.folder__tab {
  position: absolute; bottom: 100%; inset-inline-start: var(--x);
  display: flex; align-items: center; height: 40px; padding-inline: 1.6rem;
  background: var(--f); color: var(--fi); font-weight: 600; font-size: var(--step-body); white-space: nowrap;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.folder:hover .folder__tab, .folder:focus-visible .folder__tab { text-decoration: underline; text-underline-offset: 0.3em; }
.folder:focus-visible { outline-offset: -4px; }
.folder--front { --h: auto; padding: 2rem; display: grid; gap: 1.5rem; align-content: start; align-items: start; min-height: 230px; }
.folder--front .folder__tab { font-weight: 700; }
.folder__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; max-width: none; font-size: var(--step-small); }
.folder__facts strong { font-weight: 700; }
.folder__facts span { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.folder__facts .ph { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font-size: 1rem; background: var(--surface); color: var(--ink); }
.folder__logos { display: inline-flex; align-items: center; gap: 0.45rem; margin-inline-start: 0.75rem; }
.folder__logo { display: block; width: 18px; height: 18px; filter: var(--logo, none); opacity: 0.85; }
@media (min-width: 64em) {
  .folder--front { grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 2rem; }
  .folder__facts { justify-content: flex-end; flex-wrap: nowrap; }
}
@media (max-width: 48em) {
  .wallet__intro h1 { font-size: 13vw; }
  .wallet__intro p { font-size: var(--step-body); }
  .folders { width: 100%; padding-top: 3.5rem; }
  .folder { --h: 46px; }
  .folder__tab { height: 34px; font-size: var(--step-small); padding-inline: 1rem; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
  .folder--front { padding: 1.5rem var(--margin); min-height: 210px; }
  .folder--front .btn { width: 100%; }
  .folder__logos { display: none; }
}

/* ---------- showcase: square plate, spare text ---------- */
.plate { display: grid; gap: 2rem var(--gutter); }
.plate__photo { position: relative; aspect-ratio: 1; overflow: hidden; clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%, 0 28px); }
.plate__photo .shutter { height: 100%; }
.plate__photo img { width: 100%; height: 100%; object-fit: cover; }
.plate__text { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.plate__body h2 { font-size: var(--step-head); line-height: 1.3; }
.plate__price { margin-top: 1.25rem; font-size: var(--step-lead); font-weight: 600; }
.plate__price s { font-weight: 400; color: var(--muted); margin-inline-start: 0.6rem; font-size: var(--step-body); }
.plate__body p { margin-top: 1.5rem; max-width: 34ch; }
.plate__clock { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--surface); max-width: 34ch; }
.plate__clock time { font-weight: 700; font-size: 1.25em; }
.plate__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.plate__actions .btn { min-height: 72px; width: 100%; white-space: normal; text-align: center; }
@media (min-width: 64em) {
  .plate { grid-template-columns: 1fr 1fr; min-height: 88svh; align-items: center; }
  .plate__text { align-self: stretch; padding-block: 2rem; }
}
@media (max-width: 48em) {
  .plate__actions { grid-template-columns: 1fr; }
  .plate__actions .btn { min-height: 60px; }
}

/* ---------- how it works: drag row of moments ---------- */
.moments__top { display: flex; align-items: end; justify-content: space-between; gap: var(--gutter); }
.moments__nav { display: flex; gap: 0.5rem; }
.moments__nav button { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--bg); --text: currentColor; --heading: currentColor; transition: transform var(--t-press) var(--ease-out); }
.moments__nav button:active { transform: scale(0.94); }
.progress { --p: 0.12; position: relative; height: 6px; margin-top: 1.5rem; background: var(--surface-2); }
.progress::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 100%); background: var(--ink); transition: width 200ms linear; }
.moments__track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-top: 2.5rem; padding: 0; list-style: none;
}
.moments__track::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 700; line-height: 1.65; }
.moment p { margin-top: 0.5rem; font-size: var(--step-body); line-height: 1.8; }
.moment__gap { flex: none; }
.moment figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .moment:hover img { transform: scale(1.04); } }
@media (max-width: 48em) {
  .moments__top { align-items: center; }
  .moments__nav button { width: 44px; height: 44px; }
  .moments__track { gap: 16px; }
  .moment { flex-basis: 72vw; }
  .moment__gap { max-height: 64px; }
}

/* ---------- pricing: prices like a menu, index with preview ---------- */
.menu { display: grid; gap: 2.5rem var(--gutter); }
.menu__side { display: grid; gap: 2rem; align-content: start; }
.menu__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.menu__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-ui) ease; }
.menu__frame.is-swapping img { opacity: 0.35; }
.menu__frame figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 0.8rem 1rem; background: var(--ink); color: var(--bg); --text: currentColor; --heading: currentColor; font-size: var(--step-small); font-weight: 600; }
.menu__groups { display: grid; gap: 3rem; }
.menu__group { break-inside: avoid; }
.menu__group h3 { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-text); font-size: var(--step-lead); font-weight: 500; margin-bottom: 1.4rem; }
.menu__group h3 span { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.menu .rows { gap: 1.375rem; }
.menu .row { transition: opacity var(--t-hover) ease; }
.menu.is-pointing .row:not(:hover):not(:focus-visible) { opacity: 0.55; }
@media (min-width: 64em) {
  .menu { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .menu__side { grid-column: 1 / span 3; position: sticky; top: 2rem; }
  .menu__groups { grid-column: 5 / span 8; display: block; columns: 2; column-gap: 64px; }
  .menu__group { padding-bottom: 3rem; }
}
@media (max-width: 63.99em) {
  .menu__frame { width: 60%; }
  .menu__frame figcaption { display: none; }
}

/* ---------- faq: questions beside a tall photograph ---------- */
.ask { background: var(--surface); }
.ask .acc details { background: var(--bg); }
.ask__grid { display: grid; gap: 3rem var(--gutter); }
.ask__facts { display: grid; gap: 0.4rem; margin-top: 1.5rem; }
.ask__facts strong { font-weight: 700; }
.ask .acc { margin-top: 2.5rem; }
.ask__actions { display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.ask__pics { position: relative; }
.ask__tall { aspect-ratio: 3 / 4; overflow: hidden; }
.ask__tall img, .ask__square img { width: 100%; height: 100%; object-fit: cover; }
.ask__square { position: absolute; width: 36%; aspect-ratio: 1; inset-inline-end: -40px; bottom: -40px; overflow: hidden; border: 10px solid var(--surface); }
@media (min-width: 64em) {
  .ask { padding-top: 0; }
  .ask__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .ask__text { grid-column: 1 / span 5; padding-top: calc(var(--section) / 2); }
  .ask__pics { grid-column: 7 / span 6; margin-bottom: 80px; }
  .ask__square { inset-inline-end: auto; inset-inline-start: -40px; }
}
@media (max-width: 63.99em) {
  .ask__pics { order: -1; margin-bottom: 2rem; }
  .ask__tall { aspect-ratio: 4 / 5; }
  .ask__square { inset-inline-end: 0; bottom: -2rem; width: 38%; }
  .ask__actions { flex-direction: column; align-items: stretch; }
  .ask__actions .textlink { align-self: flex-start; }
}
