/* AI Prompt Kit — 5th IMA Women Leadership Conclave
   Palette and type follow IMA's social posts: warm cream ground, navy headlines with a grey second line,
   and the blue → purple → pink → orange → amber gradient used for rules, borders and the corner sweep. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/montserrat.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/great-vibes.woff2") format("woff2"); }

:root {
  --cream: #F6EEE4;
  --paper: #FFFBF6;
  --navy: #1C2A5E;
  --ink: #2C3047;
  --grey: #8A8580;
  --rule: rgba(28, 42, 94, .14);
  --blue: #2F5FCB;
  --orange: #F0612C;
  --brand: linear-gradient(90deg, #2F5FCB 0%, #7240B8 34%, #D8367D 62%, #F0612C 84%, #F6A623 100%);
  --brand-deep: linear-gradient(90deg, #2F5FCB 0%, #6A35AE 45%, #B8295F 80%, #C2410C 100%);
  --pastel: linear-gradient(135deg, #B9CEF2 0%, #DCC6EE 35%, #F4C4D6 66%, #F8DDB0 100%);
  --accent: var(--navy);
  --font: "Montserrat", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
sup { font-size: .62em; line-height: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[lang="hi"] { line-height: 1.75; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Language switch ---------- */
html[data-lang="en"] body [lang="hi"] { display: none !important; }
html[data-lang="hi"] body [lang="en"] { display: none !important; }
.duo > [lang] { display: block; }
html[data-lang="both"] .duo > [lang="hi"] { margin-top: .25em; }
/* In "Both", Hindi becomes the grey second line, the way IMA's posts set a navy line over a grey one. */
html[data-lang="both"] :is(h1, h2, h3, .flabel, .btitle, .chip, .pt).duo > [lang="hi"],
html[data-lang="both"] h3 .duo > [lang="hi"] { color: var(--grey); font-size: .82em; font-weight: 600; margin-top: .1em; }
html[data-lang="both"] .chip input:checked + .duo > [lang="hi"] { color: rgba(255, 255, 255, .78); }
.pill.duo > [lang], .crumb .duo > [lang], .share .duo > [lang] { display: inline; }
html[data-lang="both"] :is(.pill, .crumb, .share) .duo > [lang="hi"]::before,
html[data-lang="both"] .pill.duo > [lang="hi"]::before { content: " / "; }

/* ---------- Frame ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.topbar {
  max-width: 680px; margin: 0 auto; padding: 14px 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
}
.event {
  position: relative; padding-bottom: 7px;
  color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 500;
}
.event::after { content: ""; position: absolute; left: 0; bottom: 0; width: 58px; height: 2px; border-radius: 2px; background: var(--brand); }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.langs button {
  min-height: 34px; padding: 6px 12px; border: 0; border-radius: 999px; white-space: nowrap;
  background: none; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
html[data-lang="en"] [data-setlang="en"], html[data-lang="hi"] [data-setlang="hi"], html[data-lang="both"] [data-setlang="both"] { background: var(--navy); color: #fff; }

.rule { display: block; width: 120px; height: 2px; margin: 20px 0; border-radius: 2px; background: var(--brand); }
.h2 { margin: 0 0 14px; color: var(--navy); font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; }
.small { margin: -4px 0 6px; color: var(--grey); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 34px 0 6px; }
.hero-swoosh { position: absolute; top: -40px; right: -185px; width: 340px; transform: rotate(180deg) scaleX(-1); opacity: .9; pointer-events: none; z-index: -1; }
.logos { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 18px; }
.logos img { height: 46px; width: auto; }
.logos:empty { display: none; }
.beyond { display: inline-flex; flex-direction: column; align-items: center; margin: 0 0 30px; }
.beyond b {
  font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: .05em;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.beyond em {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--script); font-style: normal; font-size: 23px; line-height: 1.1; color: var(--navy);
}
.beyond em::before, .beyond em::after { content: ""; width: 26px; height: 1.5px; background: var(--brand); }
.headline { margin: 0; color: var(--navy); font-size: clamp(32px, 8.6vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.headline > [lang] { display: block; }
.headline .soft { color: var(--grey); }
.headline [lang="hi"] { line-height: 1.35; }
html[data-lang="both"] .headline > [lang="hi"] { margin-top: .45em; font-size: .6em; }
.hero .rule { animation: draw 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes draw { from { width: 0; } }
.lede { max-width: 36ch; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }

/* ---------- Returning visitor / just-submitted strip ---------- */
.mine { margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--navy); color: #fff; }
.mine p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.mine .mlabel { margin: 0 0 8px; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchips a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.mchips a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 0 1.5px #fff; }
.mchips a[aria-current="page"] { background: #fff; color: var(--navy); }
html[data-lang="both"] .mchips a [lang="hi"]::before { content: " / "; }

/* ---------- How it works ---------- */
.steps { margin: 40px 0 0; }
.steps ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; min-height: 38px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid transparent; background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--brand) border-box;
  color: var(--navy); font-weight: 800;
}

/* ---------- Form ---------- */
.kit {
  margin: 40px 0 0; padding: 24px 20px 22px; border: 2px solid transparent; border-radius: 24px;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--brand) border-box;
}
.field { display: block; margin: 0 0 16px; }
.flabel { display: block; margin: 0 0 7px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 700; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 95, 203, .16); }
fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg-opt { position: relative; display: inline-flex; }
.chip input, .seg-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > .duo, .seg-opt span {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 8px 14px 8px 30px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: #fff;
  color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.3; position: relative;
}
.chip > .duo::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--c);
}
.chip input:checked + .duo { border-color: var(--c); background: var(--c); color: #fff; }
.chip input:checked + .duo::before { background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt span { padding-left: 14px; }
.seg-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip input:focus-visible + .duo, .seg-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hint { margin: 10px 0 0; color: var(--grey); font-size: 13px; line-height: 1.5; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #A4161A; font-size: 14px; font-weight: 600; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 8px;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand-deep); background-size: 150% 100%; background-position: 0 0;
  color: #fff; font: inherit; font-size: 17px; font-weight: 700; transition: background-position .5s ease;
}
.btn:hover { background-position: 100% 0; }
.btn[disabled] { cursor: progress; opacity: .8; }
.btn .duo > [lang] { text-align: center; }
html[data-lang="both"] .btn .duo > [lang="hi"] { font-size: .85em; font-weight: 600; opacity: .9; margin-top: 0; }
.spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stay safe: the soft-bordered card, like IMA's "Definitions, revised" post ---------- */
.safe {
  margin: 40px 0 0; padding: 22px 20px 12px; border: 3px solid transparent; border-radius: 26px;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--pastel) border-box;
}
.safe-list, .howto-list { margin: 0; padding-left: 20px; }
.safe-list li, .howto-list li { margin: 0 0 12px; padding-left: 4px; }
.safe-list a, .note a { font-weight: 700; }

/* ---------- Basket list ---------- */
.more { margin: 44px 0 0; }
.blist { margin: 0; padding: 0; list-style: none; }
.blist li + li { border-top: 1px solid var(--rule); }
.blist a { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; color: inherit; text-decoration: none; }
.bnum { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; }
.btitle { display: block; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.3; }
.bdesc { display: block; margin-top: 2px; color: var(--grey); font-size: 14px; line-height: 1.45; }
.bcount { display: flex; flex-direction: column; align-items: flex-end; color: var(--grey); line-height: 1.15; text-align: right; }
.bcount b { color: var(--navy); font-size: 20px; font-weight: 800; }
.bcount small { font-size: 12px; }
.blist a:hover .btitle { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; }

/* ---------- Basket page ---------- */
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.crumb::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.bhead { padding: 22px 0 0; }
.pill { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.bhead h1 { margin: 14px 0 0; color: var(--navy); font-size: clamp(28px, 7.2vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.bhead .rule { background: linear-gradient(90deg, var(--accent), var(--orange)); }
.lead { margin: 0; font-size: 17px; }
.jump {
  display: flex; gap: 8px; margin: 22px -20px 0; padding: 2px 20px 8px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; display: inline-flex; flex-direction: column; justify-content: center; min-height: 36px; padding: 6px 13px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper);
  color: var(--navy); font-size: 13px; font-weight: 600; line-height: 1.25; text-decoration: none;
}
html[data-lang="both"] .jump a [lang="hi"] { margin-top: 0; color: var(--grey); font-size: 12px; }
.nudge { margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.nudge a { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

details.howto { margin: 20px 0 0; padding: 0 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
details.howto summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--accent); }
details.howto[open] summary::after { content: "−"; }
.howto-body { padding: 4px 0 8px; font-size: 15px; }
.howto-body .howto-list { margin-bottom: 14px; }

.group { margin: 40px 0 0; scroll-margin-top: 12px; }
.group > h2 { position: relative; margin: 0 0 16px; padding-bottom: 12px; color: var(--navy); font-size: 22px; font-weight: 800; line-height: 1.25; }
.group > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 2px; border-radius: 2px; background: var(--accent); }

.prompt { margin: 0 0 14px; padding: 18px 16px 14px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); scroll-margin-top: 12px; }
.prompt h3 { display: flex; gap: 10px; margin: 0 0 12px; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.35; }
.pn { flex: none; min-width: 2.3em; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.ptext {
  position: relative; margin: 0 0 10px; padding: 14px 14px 56px; border: 2px solid transparent; border-radius: 14px;
  background: linear-gradient(#fff, #fff) padding-box, var(--pastel) border-box;
  font-size: 15.5px; line-height: 1.6;
}
.ptext[lang="hi"] { font-size: 16px; line-height: 1.8; }
.ptext p { margin: 0; }
mark { padding: 0 .12em; border-radius: 4px; background: rgba(47, 95, 203, .1); color: var(--blue); font-weight: 600; }
.copy {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 14px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--cream); cursor: pointer;
  color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; line-height: 1;
}
.copy svg { width: 16px; height: 16px; }
.copy.done { border-color: var(--navy); background: var(--navy); color: #fff; }
.note { margin: 4px 0 2px; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 8px; background: rgba(240, 97, 44, .08); font-size: 14px; }
.note > a { color: var(--navy); text-decoration: none; font-weight: 600; }
.note > a [lang]::after { content: ""; }

/* ---------- Footer ---------- */
.foot { position: relative; max-width: 680px; margin: 56px auto 0; padding: 0 20px 56px; overflow: hidden; }
.foot-in { position: relative; z-index: 1; padding-top: 26px; border-top: 1px solid var(--rule); }
.foot p { margin: 0 0 14px; color: var(--grey); font-size: 14px; }
.foot-apps { color: var(--ink) !important; }
.foot-event { color: var(--navy) !important; font-weight: 600; }
.foot-org { font-size: 13px !important; }
.share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0 0 20px; padding: 8px 16px;
  border: 1.5px solid var(--navy); border-radius: 999px; background: none; cursor: pointer;
  color: var(--navy); font: inherit; font-size: 14px; font-weight: 700;
}
.share svg { width: 17px; height: 17px; }
.foot-swoosh { position: absolute; right: -90px; bottom: -40px; width: 300px; pointer-events: none; }

@media (min-width: 720px) {
  .hero { padding-top: 52px; }
  .kit, .safe { padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
