/* /jifu-ai - JIFU AI product page (ASANA:1219340147703436), preview behind the
   default-off flag shop2.jifu_ai_page. Ported from the ticket's mockup; every
   class is namespaced jai-* so nothing here can restyle another page (the
   mockup's bare .btn/.wrap/.hero/.film-hero names collide with site CSS).

   Colours are the jifu.css Brand v1.2 tokens (the mockup's :root carried the
   same values). The literals below are the mockup's own illustration art -
   the phone's beach scene, photo-pick thumbnails, palm and code panel - which
   no token describes, plus one AA lift:
   --jai-signal-text is the education Signal blue darkened to rgb(38,102,178)
   for SMALL text on white/parchment (Signal itself measures ~3.3:1 there;
   this measures 5.8:1 on white, 5.1:1 on parchment). Large type, rules and
   decoration keep the real Signal. */

.jai {
  --jai-signal-text: rgb(38, 102, 178);
  --jai-disp: var(--jifu-font-display);
  --jai-body: var(--jifu-font-body);
  font-size: 16px;
  line-height: 1.55;
}
.jai-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.jai-rr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- type */
.jai-h1, .jai-h2, .jai-h3 { font-family: var(--jai-disp); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.jai-h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: .97; }
.jai-h2 { font-size: clamp(28px, 3.8vw, 43px); line-height: 1.06; }
.jai-h3 { font-size: 19px; letter-spacing: -.01em; }
.jai-label { font-family: var(--jai-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jai-muted { color: var(--jifu-ink-muted); }
.jai-lede { font-size: 16px; max-width: 46ch; }
.jai p + p, .jai-muted { margin-top: 12px; }

/* ---- buttons */
.jai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px;
  border-radius: 999px; border: 1px solid transparent; font-family: var(--jai-body); font-weight: 700;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; min-height: 46px;
  transition: background .15s, border-color .15s, color .15s;
}
.jai-btn--primary { background: var(--jifu-midnight); color: var(--jifu-parchment); }
.jai-btn--primary:hover { background: var(--jifu-signal-deep); }
.jai-btn--ghost { border-color: rgba(25, 25, 25, .32); color: var(--jifu-ink); }
.jai-btn--ghost:hover { border-color: var(--jai-signal-text); color: var(--jai-signal-text); }
.jai-btn--inv { background: var(--jifu-parchment); color: var(--jifu-midnight-deep); }
.jai-btn--inv:hover { background: var(--jifu-signal-sky); color: var(--jifu-midnight-deep); }
.jai-btn--ghost-inv { border-color: var(--jifu-inverse-ink-faint); color: var(--jifu-parchment); }
.jai-btn--ghost-inv:hover { border-color: var(--jifu-signal-sky); color: var(--jifu-signal-sky); }
.jai-btn--off { opacity: .45; cursor: default; border-style: dashed; }
.jai-btn--off:hover { border-color: rgba(25, 25, 25, .32); color: var(--jifu-ink); }

/* ---- 1 hero (dark band) */
.jai-hero {
  position: relative; overflow: hidden; color: var(--jifu-parchment);
  background:
    radial-gradient(120% 120% at 82% -12%, rgba(74, 144, 226, .28) 0%, rgba(74, 144, 226, 0) 50%),
    radial-gradient(90% 90% at 8% 110%, rgba(0, 229, 199, .18) 0%, rgba(0, 229, 199, 0) 55%),
    linear-gradient(180deg, var(--jifu-midnight-deep) 0%, var(--jifu-midnight-well) 100%);
}
.jai-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .014) 0 2px, transparent 2px 4px);
}
.jai-hero__watermark { position: absolute; right: -40px; top: 20px; width: 460px; height: auto; opacity: .06; pointer-events: none; transform: scaleX(-1); color: var(--jifu-white); }
.jai-hero__inner { position: relative; padding-top: 72px; padding-bottom: 82px; }
.jai-hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.jai-hero__kicker { color: var(--jifu-signal-sky); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 9px; }
.jai-hero__kicker-rr { width: 22px; height: 16px; opacity: .95; color: var(--jifu-white); }
.jai-hero .jai-h1 { color: var(--jifu-parchment); }
.jai-hero .jai-h1 em, .jai-final .jai-h2 em { font-style: normal; color: var(--jifu-meridian); }
.jai-hero__sub { font-size: 18px; color: var(--jifu-inverse-ink-muted); max-width: 46ch; margin: 22px 0 28px; line-height: 1.5; }
.jai-hero__sub b { color: var(--jifu-parchment); font-weight: 600; }
.jai-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.jai-hero__micro { font-size: 12px; color: var(--jifu-inverse-ink-faint); margin-top: 18px; letter-spacing: .02em; }

/* ---- the animated phone: AI builds a travel Reel (illustration literals) */
.jai-device { justify-self: center; width: 300px; max-width: 100%; }
.jai-phone {
  background: rgb(10, 10, 10); border: 7px solid rgb(28, 28, 28); border-radius: 34px; padding: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}
.jai-screen { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 18; background: rgb(4, 18, 26); }
.jai-scn { position: absolute; inset: 0; display: flex; flex-direction: column; }

.jai-beach { position: absolute; inset: 0; background: linear-gradient(180deg, #8fd3ef 0%, #bfe6e0 38%, #f6e2b0 52%, #e9c98c 60%, #d8a35e 100%); }
.jai-beach__sun { position: absolute; top: 16%; right: 20%; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #ffdf8a 65%, rgba(255, 223, 138, 0) 72%); }
.jai-beach__sea { position: absolute; top: 50%; left: 0; right: 0; height: 12%; background: linear-gradient(180deg, #2aa7c4, #1b7fa0); opacity: .85; }
.jai-beach__sand { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, #f0d49a, #d8a35e); }
.jai-palm { position: absolute; bottom: 34%; left: 12%; width: 92px; height: auto; opacity: .95; color: #1f3d2b; }
.jai-beach--post { border-radius: 12px; }
.jai-beach--post-palm { bottom: 36%; left: 14%; width: 84px; }

.jai-capbar {
  position: absolute; left: 12px; right: 12px; bottom: 58px; background: rgba(0, 0, 0, .42);
  border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 13px; color: var(--jifu-white); text-align: center;
  backdrop-filter: blur(2px); overflow: hidden; white-space: nowrap;
}
.jai-playbtn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center;
}
.jai-playbtn::after { content: ""; border-left: 16px solid #0b3a54; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.jai-playbtn--sm { width: 42px; height: 42px; }
.jai-dur { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .5); color: var(--jifu-white); font-size: 10px; font-weight: 700; border-radius: 5px; padding: 3px 7px; }
.jai-socialrow { position: absolute; bottom: 14px; left: 12px; right: 12px; display: flex; gap: 6px; justify-content: center; }
.jai-socialrow span {
  font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); color: var(--jifu-white); border-radius: 99px; padding: 4px 10px;
}

.jai-scn--pick { background: linear-gradient(180deg, #0b1a24, #061018); padding: 18px 14px; gap: 9px; }
.jai-picks__hd { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jifu-meridian); }
.jai-thumb { flex: 1; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 8px; }
.jai-thumb b { font-size: 11px; color: var(--jifu-white); font-weight: 700; position: relative; z-index: 1; }
.jai-thumb--1 { background: linear-gradient(160deg, #17a3b8, #0a4e57); }
.jai-thumb--2 { background: linear-gradient(160deg, #f0b24a, #9a5e1e); }
.jai-thumb--3 { background: linear-gradient(160deg, var(--jifu-signal), #1c3f6b); }

.jai-scn--build {
  background: linear-gradient(180deg, #08141c, #040b10);
  align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
}
.jai-ring { width: 66px; height: 66px; border-radius: 50%; border: 4px solid rgba(74, 144, 226, .25); border-top-color: var(--jifu-signal); animation: jai-spin 1s linear infinite; }
.jai-build__st { font-size: 13px; font-weight: 700; color: var(--jifu-parchment); }
.jai-build__su { font-size: 11px; color: var(--jifu-inverse-ink-faint); }
.jai-wave { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.jai-wave i { width: 3px; background: var(--jifu-meridian); border-radius: 2px; animation: jai-eq .9s ease-in-out infinite; }
.jai-wave i:nth-child(2) { animation-delay: .1s; } .jai-wave i:nth-child(3) { animation-delay: .2s; }
.jai-wave i:nth-child(4) { animation-delay: .3s; } .jai-wave i:nth-child(5) { animation-delay: .15s; }
.jai-wave i:nth-child(6) { animation-delay: .25s; } .jai-wave i:nth-child(7) { animation-delay: .05s; }
.jai-prog { position: absolute; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--jifu-signal), var(--jifu-meridian)); }
.jai-badgeai {
  position: absolute; top: 12px; left: 12px; background: rgba(74, 144, 226, .9); color: var(--jifu-white); font-size: 9px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 4px 10px; display: flex; align-items: center; gap: 5px;
}
.jai-badgeai__rr { width: 11px; height: 8px; }

/* scene timeline - a 10s loop */
@keyframes jai-spin { to { transform: rotate(360deg); } }
@keyframes jai-eq { 0%, 100% { height: 7px; } 50% { height: 24px; } }
.jai-scn--pick { animation: jai-fade-pick 10s ease-in-out infinite; }
.jai-scn--build { animation: jai-fade-build 10s ease-in-out infinite; }
.jai-scn--result { animation: jai-fade-result 10s ease-in-out infinite; }
.jai-prog { animation: jai-prog-fill 10s ease-in-out infinite; }
.jai-capbar--animated { animation: jai-cap-reveal 10s ease-in-out infinite; }
@keyframes jai-fade-pick { 0% { opacity: 0; } 3% { opacity: 1; } 26% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
@keyframes jai-fade-build { 0%, 28% { opacity: 0; } 33% { opacity: 1; } 56% { opacity: 1; } 61% { opacity: 0; } 100% { opacity: 0; } }
@keyframes jai-fade-result { 0%, 58% { opacity: 0; } 64% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes jai-prog-fill { 0%, 30% { width: 0; opacity: 0; } 33% { opacity: 1; } 58% { width: 100%; opacity: 1; } 60% { opacity: 0; } 100% { opacity: 0; } }
@keyframes jai-cap-reveal { 0%, 66% { max-width: 0; } 80%, 97% { max-width: 100%; } 100% { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .jai-scn--pick, .jai-scn--build, .jai-prog { display: none; }
  .jai-scn--result { animation: none; opacity: 1; }
  .jai-capbar--animated { animation: none; max-width: 100%; }
  .jai-ring, .jai-wave i { animation: none; }
}

/* ---- light content bands */
.jai-band { padding: 74px 0; background: var(--jifu-ground); color: var(--jifu-ink); }
.jai-band--raised { background: var(--jifu-ground-raised); border-top: 1px solid var(--jifu-rule-soft); border-bottom: 1px solid var(--jifu-rule-soft); }
.jai-sec-head { max-width: 58ch; margin-bottom: 34px; }
.jai-sec-head .jai-muted { font-size: 17px; }
.jai-kicker { color: var(--jai-signal-text); margin-bottom: 14px; }

/* 2 the Reel Maker */
.jai-reel { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.jai-reel__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--jai-signal-text); border: 1px solid var(--jifu-rule); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; }
.jai-reel__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.jai-reel__list li { padding-left: 22px; position: relative; }
.jai-reel__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--jifu-meridian); }
.jai-postcard { background: var(--jifu-white); border: 1px solid var(--jifu-rule); border-radius: 18px; padding: 16px; box-shadow: 0 16px 40px rgba(25, 25, 25, .08); }
.jai-postcard__ph { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.jai-postcard__av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--jifu-signal), var(--jifu-meridian)); }
.jai-postcard__ph b { font-size: 12.5px; }
.jai-postcard__ph span { font-size: 10.5px; color: var(--jifu-ink-faint); }
.jai-postcard__vid { border-radius: 12px; aspect-ratio: 9 / 12; position: relative; overflow: hidden; }
.jai-postcard__acts { display: flex; gap: 16px; margin-top: 11px; color: var(--jifu-ink-muted); font-size: 12px; font-weight: 600; }
.jai-postcard__made { margin-left: auto; color: var(--jai-signal-text); }

/* 3 the staff */
.jai-roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jai-emp { border: 1px solid var(--jifu-rule); border-radius: 16px; padding: 22px; background: var(--jifu-white); border-top: 3px solid var(--jai-ec, var(--jifu-signal)); }
.jai-emp--travel { --jai-ec: var(--jifu-accent-travel); }
.jai-emp--learn { --jai-ec: var(--jifu-accent-education); }
.jai-emp--value { --jai-ec: var(--jifu-accent-health); }
.jai-emp--pro { background: var(--jifu-ground-well); border-top-color: var(--jifu-ink-faint); }
.jai-emp__role { color: var(--jifu-ink-faint); margin-bottom: 9px; }
.jai-emp p:not(.jai-emp__role) { font-size: 13.5px; color: var(--jifu-ink-muted); margin: 0; }
.jai-emp__grounds { display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--jifu-rule-soft); font-size: 11.5px; color: var(--jifu-ink-faint); }
.jai-rosterlabel { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.jai-rosterlabel b { font-family: var(--jai-disp); font-size: 16px; font-weight: 700; }
.jai-rosterlabel__ln { flex: 1; height: 1px; background: var(--jifu-rule); }
.jai-rosterlabel__t { color: var(--jai-signal-text); border: 1px solid var(--jifu-rule); border-radius: 999px; padding: 4px 12px; }

/* 4 pillars */
.jai-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jai-pil { border: 1px solid var(--jifu-rule); border-radius: 16px; padding: 24px; background: var(--jifu-white); border-top: 4px solid var(--jai-acc); }
.jai-pil--travel { --jai-acc: var(--jifu-accent-travel); }
.jai-pil--learn { --jai-acc: var(--jifu-accent-education); }
.jai-pil--create { --jai-acc: var(--jifu-accent-community); }
.jai-pil__n { color: var(--jifu-ink-faint); margin-bottom: 6px; }
.jai-pil__h { font-size: 24px; margin-bottom: 8px; }
.jai-pil__dot { color: var(--jai-acc); }
.jai-pil p:not(.jai-pil__n) { font-size: 13.5px; color: var(--jifu-ink-muted); margin: 0; }

/* 5 comparison */
.jai-vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--jifu-rule); border-radius: 16px; overflow: hidden; background: var(--jifu-white); }
.jai-vs__colh { padding: 16px 22px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--jifu-midnight); }
.jai-vs__them { background: var(--jifu-ground-raised); border-right: 1px solid var(--jifu-rule); }
.jai-vs__them .jai-vs__colh { color: var(--jifu-ink-faint); }
.jai-vs__us .jai-vs__colh { color: var(--jai-signal-text); }
.jai-vrow { padding: 15px 22px; border-bottom: 1px solid var(--jifu-rule-soft); font-size: 13.5px; }
.jai-vrow:last-child { border-bottom: 0; }
.jai-vrow__cat { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--jifu-ink-faint); margin-bottom: 5px; }
.jai-vs__them .jai-vrow { color: var(--jifu-ink-muted); }
.jai-vs__us .jai-vrow b { font-weight: 700; }

/* 6 trust */
.jai-trust { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.jai-code {
  margin: 0; white-space: pre; overflow-x: auto;
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; background: var(--jifu-midnight-deep);
  color: rgb(236, 234, 223); border-radius: 14px; padding: 18px 20px; line-height: 1.6;
}
/* the mockup's comment grey (#6f7a6f) measured 4.2:1 on midnight-deep; lifted to pass AA */
.jai-code__c { color: rgb(138, 150, 138); }
.jai-code__k { color: var(--jifu-meridian); }

/* 7 plans */
.jai-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jai-plan { display: flex; flex-direction: column; border: 1px solid var(--jifu-rule); border-radius: 18px; padding: 24px; background: var(--jifu-white); }
.jai-plan--feat { border: 2px solid var(--jifu-midnight); }
.jai-plan--rival { background: var(--jifu-ground-raised); }
.jai-plan__pn { font-family: var(--jai-disp); font-size: 20px; font-weight: 700; }
.jai-plan__pp { font-size: 12px; color: var(--jifu-ink-muted); margin: 3px 0 16px; }
.jai-plan__pp b { color: var(--jifu-ink); }
.jai-plan__list { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; flex: 1; }
.jai-plan__list li { padding-left: 22px; position: relative; }
.jai-plan__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--jai-signal-text); font-weight: 800; }
.jai-plan--rival .jai-plan__list li::before { content: "-"; color: var(--jifu-ink-faint); }
.jai-plan .jai-btn { width: 100%; }

/* 8 closing CTA (dark band) */
.jai-final {
  padding: 74px 0; text-align: center; color: var(--jifu-parchment); position: relative; overflow: hidden;
  background: radial-gradient(120% 150% at 20% -10%, rgba(74, 144, 226, .22) 0%, rgba(74, 144, 226, 0) 50%),
    linear-gradient(180deg, var(--jifu-midnight-deep), var(--jifu-midnight-well));
}
.jai-final .jai-h2 { color: var(--jifu-parchment); }
.jai-final__body { color: var(--jifu-inverse-ink-muted); max-width: 50ch; margin: 12px auto 26px; }
.jai-chan { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.jai-chan > span { font-size: 12px; font-weight: 600; border: 1px solid var(--jifu-inverse-ink-ghost); border-radius: 999px; padding: 8px 18px; }

@media (max-width: 820px) {
  .jai-hero__grid, .jai-reel, .jai-trust { grid-template-columns: 1fr; gap: 34px; }
  .jai-roster, .jai-plans, .jai-pillars { grid-template-columns: 1fr; }
  .jai-vs { grid-template-columns: 1fr; }
  .jai-vs__them { border-right: 0; border-bottom: 1px solid var(--jifu-midnight); }
  .jai-reel__list { grid-template-columns: 1fr; }
  .jai-hero__watermark { display: none; }
}
