/* "Ideas for you?" visual cards (app-dev, 3 Nov). Drop-in for web-dev's page.
   Uses tokens.css; every value has a fallback so it also works alone. Prefix: idea- (cards), iu- (mini UI).
   How it animates: idea-cards.js adds .run to a card on screen and steps .s1 .s2 ... every 0.9 s, then loops.
   The plain styles are the FINAL state, so no JS / reduced motion / print = a calm finished picture. */

.idea-sec { --ic-blue: var(--blue, #2B5C9E); --ic-ink: var(--ink, #13223F); --ic-ink2: var(--ink-2, #4A5568);
  --ic-line: var(--line, #E3E6EA); --ic-s2: var(--surface-2, #EFF3F6); --ic-yellow: var(--yellow, #F2C94C);
  --ic-done: #1E8E4E; --ic-ease: var(--ease-out, cubic-bezier(.22,.61,.36,1));
  font-family: var(--font, "Plus Jakarta Sans", system-ui, sans-serif); color: var(--ic-ink); }
.idea-sec *, .idea-sec *::before, .idea-sec *::after { box-sizing: border-box; }

.idea-head { max-width: 720px; margin: 0 auto var(--s-7, 48px); text-align: center; }
.idea-eyebrow { margin: 0 0 var(--s-3, 12px); font-size: var(--fs-xs, .8125rem); font-weight: 700;
  letter-spacing: var(--track-eyebrow, .14em); text-transform: uppercase; color: var(--ic-blue); }
.idea-title { margin: 0; font-size: var(--fs-2xl, clamp(2rem,1.3rem + 2.6vw,3.25rem)); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.idea-intro { margin: var(--s-4, 16px) 0 0; font-size: var(--fs-md, 1.0625rem); line-height: 1.6; color: var(--ic-ink2); }
.idea-count { margin: var(--s-4, 16px) 0 0; min-height: 1.6em; font-size: var(--fs-sm, .9375rem); font-weight: 600; color: var(--ic-blue); }

.idea-set + .idea-set { margin-top: var(--s-8, 64px); }
.idea-set__title { margin: 0 0 var(--s-5, 24px); font-size: var(--fs-lg, 1.25rem); font-weight: 700; letter-spacing: -.01em; }
.idea-grid { display: grid; gap: var(--s-5, 24px); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .idea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .idea-grid { grid-template-columns: repeat(3, 1fr); } }

.idea-card { display: flex; flex-direction: column; height: 100%; background: var(--surface, #fff); border: 1px solid var(--ic-line);
  border-radius: var(--r-lg, 28px); padding: var(--s-3, 12px); box-shadow: var(--shadow-sm, 0 2px 10px rgba(19,34,63,.05));
  transition: border-color var(--t, 280ms), box-shadow var(--t, 280ms), transform var(--t, 280ms) var(--ic-ease); }
.idea-card:hover { box-shadow: var(--shadow-md, 0 8px 28px rgba(19,34,63,.07)); transform: translateY(-2px); }
.idea-card.is-picked { border-color: var(--ic-blue); box-shadow: 0 0 0 1px var(--ic-blue), var(--shadow-md, 0 8px 28px rgba(19,34,63,.07)); }

/* the picture */
.idea-vis { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: calc(var(--r-lg, 28px) - 10px);
  background: radial-gradient(120% 90% at 20% 0%, #fff 0%, transparent 60%), linear-gradient(160deg, var(--sky-2, #EEF6FB), var(--ic-s2)); }
.idea-vis::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19,34,63,.04); pointer-events: none; }
.idea-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5, 24px) var(--s-3, 12px) var(--s-3, 12px); }
.idea-name { margin: 0; font-size: var(--fs-md, 1.0625rem); font-weight: 700; line-height: 1.3; }
.idea-line { margin: var(--s-2, 8px) 0 var(--s-5, 24px); font-size: var(--fs-sm, .9375rem); line-height: 1.55; color: var(--ic-ink2); }
.idea-want { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 18px 0 6px; border: 1px solid var(--ic-line); border-radius: 999px; background: var(--surface, #fff);
  font: inherit; font-size: var(--fs-sm, .9375rem); font-weight: 600; color: var(--ic-ink); cursor: pointer;
  transition: background var(--t-fast, 160ms), border-color var(--t-fast, 160ms), color var(--t-fast, 160ms); }
.idea-want:hover { border-color: var(--ic-blue); }
.idea-want:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px #fff, 0 0 0 6px #2B5C9E); }
.idea-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ic-s2);
  font-weight: 700; color: var(--ic-blue); transition: inherit; }
.idea-want[aria-pressed="true"] { background: var(--ic-blue); border-color: var(--ic-blue); color: #fff; }
.idea-want[aria-pressed="true"] .idea-mark { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- mini UI kit (decorative, aria-hidden) ---------- */
.iu { position: relative; width: min(80%, 290px); padding: 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(19,34,63,.05), 0 14px 34px rgba(19,34,63,.10); font-size: 12px; line-height: 1.35; color: var(--ic-ink); }
.iu-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.iu-k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ic-ink2); }
.iu-h { font-size: 13.5px; font-weight: 700; }
.iu-mut { color: var(--ic-ink2); }
.iu-row { display: flex; align-items: center; gap: 8px; }
.iu-row + .iu-row { margin-top: 8px; }
.iu-sp { flex: 1; }
.iu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iu-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-weight: 600; font-size: 11.5px;
  --off: 0; background: color-mix(in srgb, var(--ic-s2) calc(var(--off) * 100%), var(--ic-blue));
  color: color-mix(in srgb, var(--ic-ink2) calc(var(--off) * 100%), #fff);
  transition: background var(--t, 280ms), color var(--t, 280ms); }
.iu-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--ic-s2); font-weight: 600; font-size: 11.5px; }
.iu-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ic-done); color: #fff; flex: none; }
.iu-ok svg { width: 11px; height: 11px; }
.iu-ico { width: 16px; height: 16px; flex: none; color: var(--ic-blue); }
.iu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px; --off: 0;
  background: color-mix(in srgb, #fff calc(var(--off) * 100%), var(--ic-blue));
  color: color-mix(in srgb, var(--ic-ink) calc(var(--off) * 100%), #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic-line) calc(var(--off) * 100%), var(--ic-blue));
  transition: background var(--t, 280ms), color var(--t, 280ms), box-shadow var(--t, 280ms); }
.iu-btn--y { min-height: 34px; padding: 0 16px; font-size: 12px; }
.iu-ava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #8EC9EE, var(--ic-blue)); color: #fff; font-weight: 700; font-size: 13px; }
.iu-swap { position: relative; display: inline-grid; }
.iu-swap > * { grid-area: 1 / 1; transition: opacity var(--t, 280ms), transform var(--t, 280ms) var(--ic-ease); }
.iu-a { opacity: 0; transform: translateY(-4px); }   /* "before" text: hidden in the final state */
.iu-good { color: var(--ic-done); font-weight: 700; }

/* photos (CSS rooms, no image files) */
.iu-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden;
  background: linear-gradient(180deg, #EAF3FA 0 58%, #D9C7AE 58% 100%); }
.iu-ph::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 22%; height: 26%; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #F4F6F8, #DCE3EA); box-shadow: 0 3px 6px rgba(19,34,63,.12); }
.iu-ph::after { content: ""; position: absolute; top: 14%; right: 16%; width: 22%; height: 30%; border-radius: 3px;
  background: linear-gradient(160deg, #fff, #CFE6F6); box-shadow: 0 0 0 2px #fff; }
.iu-ph--k { background: linear-gradient(180deg, #F1F4F6 0 46%, #C9D4DE 46% 52%, #FAFBFC 52% 100%); }
.iu-ph--k::before { left: 8%; right: 8%; bottom: 10%; height: 34%; border-radius: 3px; background: linear-gradient(90deg, #E5EAF0 0 49%, #D3DBE4 49% 51%, #E5EAF0 51%); }
.iu-ph--b { background: linear-gradient(180deg, #F6F1EA 0 55%, #E9DCC9 55%); }
.iu-ph--b::before { left: 10%; right: 30%; height: 30%; background: linear-gradient(180deg, #fff 0 40%, #BFD7EA 40%); }
.iu-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }

/* notification banner */
.iu-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(19,34,63,.14); }
.iu-app { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; background: var(--ic-blue); color: #fff; }
.iu-app svg { width: 15px; height: 15px; }

/* checklist */
.iu-check { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--ic-line); }
.iu-check:first-of-type { border-top: 0; }
.iu-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; flex: none; --off: 0;
  background: color-mix(in srgb, #fff calc(var(--off) * 100%), var(--ic-done));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #C5CDD6 calc(var(--off) * 100%), var(--ic-done));
  color: #fff; transition: background var(--t, 280ms), box-shadow var(--t, 280ms); }
.iu-box svg { width: 11px; height: 11px; transform: scale(calc(1 - var(--off))); transition: transform var(--t, 280ms) var(--ic-ease); }
.iu-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.iu-prog i { height: 5px; border-radius: 3px; --off: 0; background: color-mix(in srgb, var(--ic-s2) calc(var(--off) * 100%), var(--ic-done)); transition: background var(--t, 280ms); }

/* bars (hours) */
.iu-bars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 8px; height: 76px; margin: 6px 0 4px; }
.iu-bars i { display: block; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6FB3E6, var(--ic-blue));
  transform-origin: bottom; --off: 0; transform: scaleY(calc(1 - var(--off) * .9)); transition: transform var(--t-slow, 600ms) var(--ic-ease); }
.iu-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font-size: 10.5px; color: var(--ic-ink2); font-weight: 600; }

/* stars */
.iu-stars { display: flex; gap: 4px; margin: 8px 0; }
.iu-stars svg { width: 20px; height: 20px; --off: 0; fill: color-mix(in srgb, #DCE1E7 calc(var(--off) * 100%), #F2B705);
  transform: scale(calc(1 - var(--off) * .12)); transition: fill var(--t, 280ms), transform var(--t, 280ms) var(--ic-ease); }
.iu-bubble { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--ic-s2); }

/* calendar (rentals) */
.iu-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.iu-cal b { font-size: 10px; font-weight: 600; text-align: center; color: var(--ic-ink2); }
.iu-lane { position: relative; height: 22px; margin-top: 6px; border-radius: 6px; background: var(--ic-s2); }
.iu-stay { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: #B8D6EE; font-size: 9.5px; font-weight: 600; color: var(--ic-ink);
  display: flex; align-items: center; padding-left: 6px; white-space: nowrap; overflow: hidden; }
.iu-clean { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; background: var(--ic-blue); font-size: 9.5px; font-weight: 700; color: #fff !important;
  display: flex; align-items: center; justify-content: center; color: var(--on-accent, #13223F); }

/* code lock */
.iu-code { display: flex; gap: 6px; margin: 8px 0 6px; }
.iu-code span { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 8px; background: var(--ic-s2); font-weight: 700; font-size: 15px; }

/* ---------- the motion: before-states, shown only while .run and the step is not reached ---------- */
.idea-card .t1, .idea-card .t2, .idea-card .t3, .idea-card .t4, .idea-card .t5, .idea-card .t6 {
  transition: opacity var(--t, 280ms) var(--ic-ease), transform var(--t, 280ms) var(--ic-ease); }
.idea-card.run:not(.s1) .t1, .idea-card.run:not(.s2) .t2, .idea-card.run:not(.s3) .t3,
.idea-card.run:not(.s4) .t4, .idea-card.run:not(.s5) .t5, .idea-card.run:not(.s6) .t6 {
  opacity: 0; transform: translateY(8px) scale(.97); }
.idea-card.run:not(.s1) .c1, .idea-card.run:not(.s2) .c2, .idea-card.run:not(.s3) .c3,
.idea-card.run:not(.s4) .c4, .idea-card.run:not(.s5) .c5, .idea-card.run:not(.s6) .c6 { --off: 1; }
/* swaps: .iu-a shows until step N (.w1 = swap at s1 ...), .iu-b after */
.idea-card.run:not(.s1) .w1 .iu-a, .idea-card.run:not(.s2) .w2 .iu-a, .idea-card.run:not(.s3) .w3 .iu-a,
.idea-card.run:not(.s4) .w4 .iu-a { opacity: 1; transform: none; }
.idea-card.run:not(.s1) .w1 .iu-b, .idea-card.run:not(.s2) .w2 .iu-b, .idea-card.run:not(.s3) .w3 .iu-b,
.idea-card.run:not(.s4) .w4 .iu-b { opacity: 0; transform: translateY(4px); }
/* notification drops in from the top */
.idea-card.run:not(.s1) .iu-note.t1 { transform: translateY(-26px); }

/* languages: one label at a time while running */
.iu-langs .iu-chip { --off: 1; }
.iu-langs .lg1 { --off: 0; }
.iu-say { display: inline-grid; }
.iu-say > span { grid-area: 1 / 1; text-align: center; transition: opacity var(--t, 280ms), transform var(--t, 280ms) var(--ic-ease); }
.iu-say > span:not(:first-child) { opacity: 0; transform: translateY(5px); }
.idea-card.run.s1 .iu-say > span:first-child { opacity: 0; transform: translateY(-5px); }
.idea-card.run.s1:not(.s2) .iu-say .l2, .idea-card.run.s2:not(.s3) .iu-say .l3, .idea-card.run.s3 .iu-say .l4 { opacity: 1; transform: none; }
.idea-card.run.s1:not(.s2) .iu-say .l3, .idea-card.run.s1:not(.s2) .iu-say .l4 { opacity: 0; }
.idea-card.run.s1 .iu-langs .lg1 { --off: 1; }
.idea-card.run.s1:not(.s2) .iu-langs .lg2, .idea-card.run.s2:not(.s3) .iu-langs .lg3, .idea-card.run.s3 .iu-langs .lg4 { --off: 0; }

@media (prefers-reduced-motion: reduce) {
  .idea-card, .idea-card * { transition: none !important; }
  .idea-card:hover { transform: none; }
}

/* photo thumbs: framed like real photos */
.iu-thumbs .iu-ph { box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(19,34,63,.16); }
.iu-ph { background: linear-gradient(180deg, #E3EFF8 0 58%, #C9B08F 58% 100%); }
.iu-good { white-space: nowrap; }

/* Round 4d (owner-eyes #5): idea-cards.js puts the 6 strongest ideas big on top (bigger mock-up, one blue accent)
   and the other 6 in a strip below that scrolls sideways (drag, swipe, trackpad or the two arrow buttons). */
.idea-grid--top .idea-vis { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.75) 0%, transparent 60%),
  linear-gradient(160deg, #D7E8F8, #BCD6F0); }
.idea-grid--top .iu { transform: scale(1.15); }
@media (min-width: 980px) and (max-width: 1200px), (max-width: 400px) { .idea-grid--top .iu { transform: scale(1.06); } }
.idea-grid--top .idea-name { font-size: var(--fs-lg, 1.25rem); }
.idea-more { margin-top: var(--s-8, 64px); }
.idea-more__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 var(--s-5, 24px); }
.idea-more__head .idea-set__title { margin: 0; }
.idea-more__nav { display: inline-flex; gap: 8px; }
.idea-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid var(--ic-line);
  border-radius: 50%; background: var(--surface, #fff); font: inherit; font-size: 26px; line-height: 1; color: var(--ic-ink); cursor: pointer;
  transition: border-color var(--t-fast, 160ms), opacity var(--t-fast, 160ms); }
.idea-nav:hover { border-color: var(--ic-blue); }
.idea-nav:disabled { opacity: .35; cursor: default; border-color: var(--ic-line); }
.idea-nav:focus-visible, .idea-strip:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px #fff, 0 0 0 6px #2B5C9E); }
.idea-strip { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 8px; overscroll-behavior-x: contain;
  margin: 0 -8px; padding: 4px 8px 18px; border-radius: 12px; cursor: grab; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.idea-strip.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.idea-row { display: flex; gap: var(--s-5, 24px); margin: 0; padding: 0; list-style: none; width: max-content; }
.idea-row > li { flex: none; width: 300px; scroll-snap-align: start; }
@media (max-width: 520px) { .idea-row > li { width: 82vw; max-width: 300px; } }
.idea-row .idea-card:hover { transform: none; }
