/* ---------- How it works, after Qoves's "Taking into account your…" (the founder, 20 Nov 2026): "We take your…"
   then "And you get your…", each over two large cards: a picture with the app's own drawing in it, big and clean,
   a short title and one line. The cards sit in cells with hairlines between them, as Qoves's rows do. The pictures
   are size containers, so what is drawn in them is sized in cqw and cqh and scales with the card. ---------- */
.you .you-tag { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.you .title { margin-top: 24px; font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.045em; }
.you .rows + .title { margin-top: clamp(64px, 7vw, 104px); }
.you .rows { display: grid; margin-top: clamp(32px, 3.4vw, 48px); border-block: 1px solid var(--line); }
.you .row { display: grid; grid-template-rows: auto 1fr; padding: clamp(14px, 1.4vw, 20px); }
.you .pic { position: relative; container-type: size; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #F6F7F7, #ECEFF0); }
.you .txt { display: grid; align-content: start; gap: 6px; padding: 22px clamp(20px, 2vw, 28px) 26px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
.you h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.2; }
.you h3 a { text-decoration: none; }
.you h3 a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.you .txt p { font-size: 16px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
/* The scan guide, as large as the picture lets it. BUG-353 (at every width): the frame is 20 units taller than the drawing, so the
   small phone's shadow (it ends 394 units down) is not cut off into a grey box. */
.you iframe { width: min(86cqw, 92cqh * 393 / 400); aspect-ratio: 393 / 400; border: 0; transform: translateY(2cqh); }
@media (min-width: 900px) {
  .you .rows { grid-template-columns: 1fr 1fr; }
  .you .row + .row { border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .you .row + .row { border-top: 1px solid var(--line); }
  .you .row { padding: 12px 0; }
}

/* ---------- The style card, as in the app (StyleCardFront.swift): the room on top, fading into card stock in the
   style's own ink; "Your style", the name in Inter Light, and the four feels. A tap shows the next style.
   The first colours are the first style's in how.js (Japandi), checked by tools/contract-styles.test.mjs. ---------- */
@property --ground { syntax: "<color>"; inherits: true; initial-value: #1A1512; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #D2A06A; }
.holo-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --press: 1;
  position: relative; display: flex; flex-direction: column; container-type: inline-size;
  width: min(60cqw, calc((88cqh - 96px) / 0.94), 330px); padding: 0 0 14px; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left;
  background: radial-gradient(130% 55% at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--ground); color: #FFF;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 26px 44px -22px rgb(0 0 0 / 0.55);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--press));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), --ground 1.2s, --accent 1.2s; }
.holo-card:active { --press: 0.97; transition-duration: 0.15s, 1.2s, 1.2s; }
/* The rim: a light inset line drawn over the picture, so it stays crisp on every ink. */
.holo-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.14); }
.holo-card .art { position: relative; display: block; aspect-ratio: 1; margin-bottom: -6%;
  -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.holo-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0; transition: opacity 0.9s var(--ease); }
.holo-card .art img.on { opacity: 1; }
/* The holo: a faint rainbow and a glare that follow the pointer. */
.holo-card .holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.08; transition: opacity 0.4s;
  background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 0.4), transparent 42%), linear-gradient(115deg, transparent 18%, #FF6AA8 30%, #FFD56B 39%, #7DFFB4 48%, #68D6FF 57%, #B78CFF 66%, transparent 78%);
  background-size: 100% 100%, 260% 260%; background-position: 0 0, var(--mx) var(--my); animation: holo-drift 12s ease-in-out infinite alternate; }
.holo-card:hover .holo { opacity: 0.16; }
@keyframes holo-drift { from { background-position: 0 0, 15% 20%; } to { background-position: 0 0, 85% 80%; } }
.holo-card .words { position: relative; display: grid; gap: 3px; padding: 0 8cqw; }
.holo-card .kicker { font-size: max(10px, 6.4cqw); font-weight: 500; letter-spacing: 0.01em; color: rgb(255 255 255 / 0.6); }
/* The name: the old and the new cross at once (fast replacement), so a name is always on the card. */
.holo-card .name { display: grid; font-size: 12.5cqw; font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.holo-card .name > span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.28em); filter: blur(3px); transition: opacity 0.35s, transform 0.5s var(--ease), filter 0.35s; }
.holo-card .name > .on { opacity: 1; transform: none; filter: none; }
.holo-card .name > .out { transform: translateY(-0.28em); }
/* The four feels: a dot over each name; the style's own feel is lit. */
.holo-card .feels { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 4cqw 0; font-size: max(9px, 5.6cqw); line-height: 1; color: rgb(255 255 255 / 0.45); }
.holo-card .feels span { display: grid; justify-items: center; gap: 6px; padding-block: 6px; margin-block: -6px; transition: color 0.4s; }   /* a little taller, for a finger */
@media (hover: hover) { .holo-card .feels span:not(.on):hover { color: rgb(255 255 255 / 0.75); } .holo-card .feels span:not(.on):hover::before { background: rgb(255 255 255 / 0.6); } }
.holo-card .feels span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / 0.3); transition: background-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.holo-card .feels .on { color: rgb(255 255 255 / 0.95); }
.holo-card .feels .on::before { background: #FFF; transform: scale(1.4); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 80%, transparent); }

/* The 3D room in its picture: it loads in coarse blocks that sharpen (how.js), with its measures. */
.you canvas.build, .you .fr-build { width: 82cqw; }
.you .measure { font-size: 13px; padding: 5px 8px; }
.you .t1 { left: 14%; top: 66%; } .you .t2 { right: 14%; top: 66%; }

/* The Room Analysis as a document (Qoves's report): a cover with pages behind it, no real details. */
.doc { position: relative; width: min(56cqw, 76cqh * 3 / 4.1); aspect-ratio: 3 / 4.1; }
.doc .page { position: absolute; inset: 0; border-radius: 8px; background: #FFFFFE; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 24px 40px -22px rgb(0 0 0 / 0.4); }
.doc .p3 { transform: rotate(7deg) translate(14px, 4px); background: #F1F0EC; }
.doc .p2 { transform: rotate(3.5deg) translate(7px, 2px); background: #F8F7F4; }
/* Hover the tile and the pages fan out a little, as if a thumb lifted the cover. */
.doc .page { transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1); }
.tdoc:hover .p3 { transform: rotate(10deg) translate(20px, 6px); }
.tdoc:hover .p2 { transform: rotate(5deg) translate(10px, 3px); }
.tdoc:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.doc .cover { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 16px; color: #151514; }
.doc .cover .img { min-height: 0; border-radius: 6px; overflow: hidden; background: #F4F4F2; }
.doc .cover .img img { width: 100%; height: 100%; object-fit: contain; }
.doc .cover .ttl { font-size: 26px; font-weight: 300; letter-spacing: -0.045em; line-height: 0.98; }
.doc .cover .ttl span { color: #A6A6A0; }
.seal { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EDEDEA; width: 100%; font-size: 11.5px; color: #4A4A46; }
.seal svg { width: 20px; height: 20px; flex: none; }
.seal .glint { animation: glint 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.8s infinite; }
@keyframes glint { 0% { transform: translateX(-30px) rotate(25deg); } 15%, 100% { transform: translateX(40px) rotate(25deg); } }

/* A phone: the pictures are about 350 px wide, so the drawings keep their laptop look at a smaller scale. */
@media (max-width: 639px) {
  .holo-card { border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 14px 20px -12px rgb(0 0 0 / 0.5); }
  /* The sheen stays, but does not drift: the drift repaints the card on every frame (it moves a background). */
  .holo-card .holo { animation: none; background-position: 0 0, 30% 35%; }
  .you .measure { font-size: 12px; padding: 4px 7px 5px; }
  .doc .page { border-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 14px 22px -14px rgb(0 0 0 / 0.4); }
  /* A finger has no hover, so how.js fans the pages (.fan): once when the paper comes on screen, and on each tap. */
  .tdoc.fan .doc .p3 { transform: rotate(10deg) translate(18px, 5px); }
  .tdoc.fan .doc .p2 { transform: rotate(5deg) translate(9px, 2.5px); }
  .tdoc.fan .doc .cover { transform: translateY(-3px) rotate(-1deg); }
  .doc .cover .ttl { font-size: 8.4cqw; }
  .seal { font-size: max(10px, 3.6cqw); }
}
