/* Client story pages (BUILD-PROMPT-7 T75, ADR-045). Ported from docs/v3/design/campaignai-story/. Every colour comes from
   the site's tokens, except inside the pictures of CampaignAI's screens, which keep CampaignAI's own colours (--ca-*). */
.story {
  --ca-paper: #FBFAF6; --ca-side: #F3F1EA; --ca-line: #E2DFD5; --ca-ink: #1C1B17; --ca-dim: #6E6B62; --ca-muted: #55524A;
  --ca-yellow: #F0C808; --ca-green: #176B3F; --ca-chrome: #ECEAE3; --ca-chrome-line: #DAD7CD; --ca-dot: #CFCBC0;
  --ca-field: #F7F6F1; --ca-white: #FFFFFF; --ca-device: #0A0F16; --ca-glow: #FAEEB5; --ca-light: #FFE680;
}
.story q { quotes: none; }

/* ---- hero ---- */
.st-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.st-crumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--s-1); color: var(--dim); margin-bottom: 1.75rem; }
.st-crumb a { text-decoration: none; min-height: 24px; }
.st-crumb a:hover { color: var(--fg); }
.st-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1080px) { .st-hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem 4rem; align-items: end; } .st-hero-copy .st-lede { margin-top: 0; } }
.st-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; font-weight: 500; max-width: 17ch; }
.st-lede { margin-top: 1.5rem; font-size: var(--s1); line-height: 1.5; color: var(--dim); max-width: 34rem; }
.st-lede strong { color: var(--fg); font-weight: 500; }
.st-made { margin-top: 2.25rem; display: flex; align-items: center; gap: .75rem; color: var(--dim); font-size: var(--s-1); }
.st-made svg { width: 26px; height: 27px; flex: none; }

/* ---- the co-worker scene: a picture of CampaignAI's screens ---- */
.st-scene { position: relative; margin: 0 0 3rem; padding: clamp(1rem, 2.5vw, 2rem); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 85% 0%, color-mix(in oklab, var(--ca-yellow) 20%, transparent), transparent 62%),
              radial-gradient(60% 60% at 0% 100%, color-mix(in oklab, var(--petal) 14%, transparent), transparent 60%),
              linear-gradient(160deg, var(--panel), var(--bg-2)); }
.st-win { margin-right: 12rem; border-radius: 18px; overflow: hidden; background: var(--ca-paper); color: var(--ca-ink); border: 1px solid var(--line-2); box-shadow: 0 50px 90px -45px var(--shadow); font-size: .8rem; }
.st-win-bar { display: flex; align-items: center; gap: .45rem; padding: .65rem .9rem; background: var(--ca-chrome); border-bottom: 1px solid var(--ca-chrome-line); }
.st-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ca-dot); }
.st-win-bar span { margin-left: .6rem; flex: 1; font-size: .72rem; color: var(--ca-dim); background: var(--ca-field); border-radius: 6px; padding: .3rem .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-app { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 15.5rem; min-height: 380px; }
.st-side { background: var(--ca-side); border-right: 1px solid var(--ca-line); padding: .9rem .65rem; display: grid; align-content: start; gap: .15rem; }
.st-logo { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin-bottom: .7rem; }
.st-logo i { width: 18px; height: 18px; border-radius: 5px; background: var(--ca-yellow); }
.st-side span { padding: .42rem .55rem; border-radius: 8px; color: var(--ca-muted); }
.st-side span.on { background: var(--ca-ink); color: var(--ca-paper); }
.st-main { padding: 1rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.st-main-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.st-main-top b { font-size: .95rem; }
.st-main-top small { color: var(--ca-dim); }
.st-drafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.st-draft { border: 1px solid var(--ca-line); border-radius: 12px; overflow: hidden; background: var(--ca-white); }
.st-draft img, .st-phone img { display: block; aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.st-draft p { margin: 0; padding: .45rem .5rem .55rem; font-size: .68rem; line-height: 1.35; color: var(--ca-muted); }
.st-draft p b { display: block; color: var(--ca-ink); font-size: .7rem; }
.st-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .64rem; font-weight: 700; color: var(--ca-dim); }
.st-tag.live { color: var(--ca-green); }
.st-tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ca-green); }
.st-campi { border-left: 1px solid var(--ca-line); background: var(--ca-white); display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.st-campi-head { display: flex; align-items: center; gap: .5rem; padding: .8rem .85rem; border-bottom: 1px solid var(--ca-line); font-weight: 700; }
.st-campi-head small { margin-left: auto; font-weight: 500; color: var(--ca-dim); }
.st-thread { padding: .8rem .85rem; display: grid; gap: .55rem; align-content: start; }
.st-msg { padding: .55rem .65rem; border-radius: 12px; line-height: 1.4; font-size: .74rem; max-width: 92%; }
.st-msg.me { justify-self: end; background: var(--ca-ink); color: var(--ca-paper); border-bottom-right-radius: 4px; }
.st-msg.ca { background: var(--ca-side); border-bottom-left-radius: 4px; }
.st-plan { border: 1px solid var(--ca-line); border-radius: 12px; padding: .6rem .65rem; display: grid; gap: .35rem; font-size: .72rem; background: var(--ca-paper); }
.st-plan div { display: flex; justify-content: space-between; gap: .5rem; }
.st-plan .price { border-top: 1px dashed var(--ca-line); padding-top: .35rem; font-weight: 700; }
.st-ask { display: flex; gap: .4rem; padding: .75rem .85rem; border-top: 1px solid var(--ca-line); }
.st-ask .yes { flex: 1; text-align: center; background: var(--ca-yellow); color: var(--ca-ink); font-weight: 700; border-radius: 999px; padding: .5rem .6rem; }
.st-ask .no { text-align: center; border: 1px solid var(--ca-line); border-radius: 999px; padding: .5rem .75rem; color: var(--ca-muted); }

/* the phone, overlapping the window: the same draft, approved on the go */
.st-phone { position: absolute; right: clamp(1rem, 2vw, 2rem); bottom: -3rem; width: 11rem; border-radius: 26px; padding: 6px; background: var(--ca-device); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -25px var(--shadow); }
.st-phone-in { border-radius: 21px; overflow: hidden; background: var(--ca-paper); color: var(--ca-ink); font-size: .62rem; }
.st-phone p { margin: 0; padding: .4rem .5rem 0; line-height: 1.35; }
.st-phone .yes { margin: .45rem .5rem .55rem; text-align: center; background: var(--ca-yellow); font-weight: 700; border-radius: 999px; padding: .38rem; }
@media (max-width: 1080px) { .st-phone { display: none; } .st-win { margin-right: 0; } .st-scene { margin-bottom: 0; } }
@media (max-width: 860px) {
  .st-app { grid-template-columns: minmax(0, 1fr); }
  .st-side { display: none; }
  .st-campi { border-left: 0; border-top: 1px solid var(--ca-line); }
}
@media (max-width: 520px) { .st-drafts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-drafts .st-draft:nth-child(3) { display: none; } }

/* the single load moment: Campi's replies arrive, then Approve settles in; nothing moves under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .st-arrive { opacity: 0; transform: translateY(6px); animation: st-arrive .45s ease-out forwards; }
  .st-arrive.a1 { animation-delay: .5s; } .st-arrive.a2 { animation-delay: 1.3s; } .st-arrive.a3 { animation-delay: 2.1s; } .st-arrive.a4 { animation-delay: 2.7s; }
  @keyframes st-arrive { to { opacity: 1; transform: none; } }
}

/* ---- Campi, as drawn in CampaignAI: a slow blink, the only loop on the page; none under reduced motion ---- */
.campi-mark { display: block; overflow: visible; flex: none; }
.campi-eyes { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .campi-mark .campi-eyes { animation: campi-blink 5.5s infinite; }
  .campi-big .campi-light { animation: campi-glow 2.8s ease-in-out infinite; }
}
@keyframes campi-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
@keyframes campi-glow { 50% { fill: var(--ca-glow); } }
.st-meet { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .st-meet { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.st-stage { position: relative; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, color-mix(in oklab, var(--ca-yellow) 16%, transparent), transparent 70%), var(--bg-2); padding: clamp(2rem, 5vw, 3.5rem); display: grid; place-items: center; gap: 1.25rem; }
.campi-big { width: clamp(150px, 20vw, 210px); height: clamp(150px, 20vw, 210px); }
.st-floor { width: 55%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, var(--shadow), transparent); margin-top: -1.75rem; margin-bottom: .5rem; }
.st-says { display: grid; gap: .5rem; width: min(100%, 22rem); }
.st-says span { max-width: 88%; background: var(--ca-paper); color: var(--ca-ink); border-radius: 14px 14px 14px 4px; padding: .6rem .8rem; font-size: .85rem; line-height: 1.4; box-shadow: 0 0 0 1px var(--line); }
.st-says span.me { justify-self: end; text-align: left; background: var(--ca-ink); color: var(--ca-paper); border-radius: 14px 14px 4px 14px; }

/* ---- sections ---- */
.st-sec { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.st-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .st-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.st-sec h2, .st-band h2 { font-size: var(--s3); line-height: 1.05; }
.st-head p { color: var(--dim); max-width: 36rem; }
.st-intro { margin-top: 1rem; max-width: 36rem; }
.st-big { font-size: var(--s1); line-height: 1.5; }

/* a week with Campi: a real sequence, so it is numbered */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .st-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-steps li { background: var(--bg); padding: 1.5rem 1.35rem 1.75rem; display: grid; gap: .6rem; align-content: start; }
.st-steps .n { font-family: var(--body); font-weight: 600; font-size: var(--s2); color: var(--petal-text); line-height: 1; font-variant-numeric: tabular-nums; }
.st-steps h3 { font-size: var(--s1); }
.st-steps p { margin: 0; color: var(--dim); font-size: var(--s-1); line-height: 1.55; }
.st-steps q { display: block; margin-top: .4rem; padding: .55rem .7rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font-size: var(--s-1); }

/* Campi, the co-worker */
.st-cowork { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .st-cowork { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.st-three { margin-top: 2rem; display: grid; border-top: 1px solid var(--line); }
.st-three > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.st-three h3 { font-size: var(--s1); }
.st-three p { margin: 0; color: var(--dim); }
.st-promise { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: 20px; background: color-mix(in oklab, var(--petal) 9%, var(--panel)); border: 1px solid color-mix(in oklab, var(--petal) 35%, var(--line)); }
.st-promise h3 { font-size: var(--s1); margin-bottom: .4rem; }
.st-promise p { margin: 0; color: var(--dim); }
.st-bilingual { max-width: 34rem; justify-self: end; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.st-card-ca { display: flex; flex-direction: column; background: var(--ca-paper); color: var(--ca-ink); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 70px -40px var(--shadow); font-size: .78rem; }
.st-card-ca img { display: block; aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.st-card-ca .body { flex: 1; padding: .75rem .8rem .9rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem; }
.st-card-ca .lang { justify-self: start; font-size: .66rem; font-weight: 700; border: 1px solid var(--ca-line); border-radius: 999px; padding: .15rem .55rem; color: var(--ca-dim); }
.st-card-ca .row { display: flex; gap: .4rem; }
.st-card-ca .row span { flex: 1; text-align: center; border-radius: 999px; padding: .42rem; font-weight: 700; }
.st-card-ca .row .y { background: var(--ca-yellow); }
.st-card-ca .row .c { border: 1px solid var(--ca-line); font-weight: 500; color: var(--ca-muted); }

/* Canadian rules */
.st-rules { display: grid; gap: 1rem; }
@media (min-width: 760px) { .st-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-rule { padding: 1.5rem 1.35rem; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.st-rule h3 { font-size: var(--s1); margin-bottom: .5rem; }
.st-rule p { margin: 0; color: var(--dim); font-size: var(--s-1); line-height: 1.55; }

/* what Lotus IT built: label / value rows, like the Products page facts */
.st-built { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .st-built { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.st-facts { margin: 0; border-top: 1px solid var(--line); }
.st-facts div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.st-facts dt { color: var(--dim); font-size: var(--s-1); padding-top: .15rem; }
.st-facts dd { margin: 0; }
@media (max-width: 560px) { .st-facts div, .st-three > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }

/* release proof: three counts from the test suites (QA runs, Nov 24, 2026; rounded down; ADR-045) */
.st-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.st-proof p { margin: 0; background: var(--bg-2); padding: 1rem; display: grid; gap: .25rem; }
.st-proof b { font-family: var(--body); font-weight: 600; font-size: var(--s2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.st-proof span { color: var(--dim); font-size: var(--s-1); line-height: 1.35; }
.st-proof-note { margin-top: .75rem; font-size: var(--s-1); }
@media (max-width: 560px) { .st-proof { grid-template-columns: minmax(0, 1fr); } }

/* closing band */
.st-band { padding-block: clamp(4rem, 9vw, 7rem); }
.st-band-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: end; justify-content: space-between; }
.st-band h2 { max-width: 16ch; }
.st-band p { color: var(--dim); margin-top: 1rem; max-width: 30rem; }
.st-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
