
.jdh-page {
  --jd-ink:#181B29; --jd-ink-2:#22293B; --jd-body:#404040; --jd-muted:#6B6B6B; /* ≥ 4.5:1 on the darkest backdrop #F8EBD3 (test-a11y-static) */
  --jd-teal:#2E7483; --jd-teal-deep:#024F5F; --jd-teal-ink:#013A46; --jd-mint:#14A39A;
  --jd-line:#E6E8EE; --jd-lav:#E8F2F4; --jd-ai-red:#E5484D; --jd-ai-red-bg:#FDE3E4;
  --jd-plag:#F59E4B; --jd-plag-bg:#FDEBD8;
  --jd-serif: var(--font-jd-serif), Georgia, 'Times New Roman', serif;
  --jd-sans: var(--font-sans), 'Inter', system-ui, -apple-system, sans-serif;
  --jd-ease: cubic-bezier(.2,.7,.2,1);
  position:relative; isolation:isolate; min-height:100vh; width:100%;
  font-family:var(--jd-sans); color:var(--jd-ink); font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased; overflow-x:clip;
}
/* resets live in :where() — zero specificity, so any single class rule wins */
:where(.jdh-page) *, :where(.jdh-page) *::before, :where(.jdh-page) *::after { box-sizing:border-box; }
:where(.jdh-page) a { color:inherit; text-decoration:none; }
/* inline link inside copy (components/site/rich-links) */
.jdh-rich-link { text-decoration:underline; text-underline-offset:2px; }
.jdh-rich-link:hover { color:var(--jd-ink); text-decoration-thickness:2px; }
:where(.jdh-page) :is(p, h1, h2, h3, ul) { margin:0; padding:0; }
:where(.jdh-page) ul { list-style:none; }
/* keyboard focus fallback for every control without its own :focus-visible style (zero specificity → any class rule wins) */
:where(.jdh-page :focus-visible) { outline:2px solid var(--jd-teal); outline-offset:2px; }

/* fixed pastel backdrop: base gradient + two soft glows */
.jdh-backdrop { position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(#fff 0%, #F2F5FD 15.36%, #F8EBD3 105.84%); }
.jdh-backdrop::before { content:''; position:absolute; left:50%; bottom:-22vh; width:70vw; height:52vh;
  transform:translateX(-50%); border-radius:50%; background:radial-gradient(closest-side, rgba(246,206,214,.75), rgba(246,206,214,0));
  filter:blur(10px); }
.jdh-backdrop::after { content:''; position:absolute; right:-12vw; top:18vh; width:46vw; height:46vh;
  border-radius:50%; background:radial-gradient(closest-side, rgba(226,232,255,.8), rgba(226,232,255,0)); }

/* containers */
.jdh-wrap { width:100%; max-width:1176px; margin:0 auto; padding:0 24px; }
.jdh-wrap-wide { width:100%; max-width:1259px; margin:0 auto; padding:0 24px; }

/* type */
.jdh-serif { font-family:var(--jd-serif); font-weight:300; font-optical-sizing:auto; }
.jdh-h1 { font-family:var(--jd-serif); font-weight:300; font-size:57px; line-height:64px; letter-spacing:-1px; color:var(--jd-ink); }
/* headings: even line lengths (no one-word / one-character last line, esp. CJK); Japanese breaks between phrases */
.jdh-h1, .jdh-h2 { text-wrap:balance; }
:lang(ja) :is(.jdh-h1, .jdh-h2) { word-break:auto-phrase; }
.jdh-h2 { font-family:var(--jd-serif); font-weight:300; font-size:52px; line-height:62px; letter-spacing:-1px; color:var(--jd-ink); }
.jdh-lead { font-size:18px; line-height:32px; color:var(--jd-ink); }

/* primary pill: circle-arrow + label */
.jdh-btn { display:inline-flex; align-items:center; gap:10px; height:56px; padding:14px 18px 14px 14px;
  border-radius:100px; background:var(--jd-teal); color:#fff !important; font-size:16px; font-weight:500;
  letter-spacing:-.16px; line-height:18px; white-space:nowrap; cursor:pointer; border:0;
  transition:background .2s ease, box-shadow .2s ease, transform .2s ease; }
.jdh-btn:hover { background:var(--jd-teal-deep); box-shadow:0 12px 26px -14px rgba(2,79,95,.7); }
.jdh-btn:active { transform:scale(.98); }
.jdh-btn--deep { background:var(--jd-teal-deep); }
.jdh-btn--deep:hover { background:var(--jd-teal-ink); }
.jdh-btn-ico { flex:none; width:28px; height:28px; border-radius:50%; border:1.5px solid rgba(255,255,255,.95);
  display:inline-flex; align-items:center; justify-content:center; transition:transform .25s var(--jd-ease); }
.jdh-btn:hover .jdh-btn-ico { transform:translateX(3px); }
.jdh-btn:focus-visible, .jdh-ghost:focus-visible { outline:2px solid var(--jd-teal); outline-offset:3px; }

/* ghost pill: text link that gains a surface + arrow on hover */
.jdh-ghost { display:inline-flex; align-items:center; gap:8px; padding:16px 24px; border-radius:100px;
  font-size:16px; font-weight:500; line-height:24px; color:var(--jd-ink); background:transparent;
  transition:background .2s ease, color .2s ease; }
.jdh-ghost svg { opacity:0; transform:translateX(-4px); transition:opacity .2s ease, transform .2s var(--jd-ease); }
.jdh-ghost:hover { background:rgba(255,255,255,.9); color:var(--jd-teal-deep); }
.jdh-ghost:hover svg { opacity:1; transform:none; }

/* frosted article card used by the feature rows */
.jdh-card { background:rgba(255,255,255,.5); border:2px solid #fff; border-radius:40px; }

/* scroll reveal — only armed once JdRevealRoot has run (no-JS stays visible) */
.jdh-page[data-reveal="on"] .jdh-reveal:not(.is-in) { opacity:0; transform:translateY(28px); }
.jdh-reveal { transition:opacity .8s var(--jd-ease), transform .8s var(--jd-ease); }
.jdh-reveal[data-delay="1"] { transition-delay:.08s; }
.jdh-reveal[data-delay="2"] { transition-delay:.16s; }
.jdh-reveal[data-delay="3"] { transition-delay:.24s; }

@media (max-width:900px) {
  .jdh-h1 { font-size:40px; line-height:46px; letter-spacing:-.6px; }
  .jdh-h2 { font-size:32px; line-height:38px; letter-spacing:-.5px; }
  .jdh-lead { font-size:16px; line-height:26px; }
  .jdh-wrap, .jdh-wrap-wide { padding:0 16px; }
}
@media (prefers-reduced-motion:reduce) {
  .jdh-page *, .jdh-page *::before, .jdh-page *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .jdh-page[data-reveal="on"] .jdh-reveal:not(.is-in) { opacity:1; transform:none; }
}


/* skip link (layout): off-screen until focused, then a pill above the fixed header */
.jdh-skip { position:fixed; left:16px; top:-200px; z-index:70; padding:10px 18px; border-radius:100px; background:var(--jd-teal-deep);
  color:#fff !important; font-size:15px; font-weight:600; line-height:20px; }
.jdh-skip:focus { top:12px; outline:2px solid #fff; outline-offset:-4px; }
.jdh-skip-target { scroll-margin-top:96px; }
.jdh-skip-target:focus { outline:none; }
@media (max-width:900px) { .jdh-skip-target { scroll-margin-top:64px; } }
.jdh-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:60; pointer-events:none; }
.jdh-progress-fill { height:100%; transform-origin:0 50%; transform:scaleX(0);
  background:linear-gradient(90deg, var(--jd-teal-deep), var(--jd-teal)); }

.jdh-header { position:fixed; top:0; left:0; right:0; z-index:50; height:96px; background:transparent;
  transition:background-color .25s ease, box-shadow .25s ease; }
.jdh-header.is-solid { background:#fff; box-shadow:0 1px 0 rgba(24,27,41,.06); }
.jdh-header-row { height:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.jdh-header-left { display:flex; align-items:center; gap:48px; min-width:0; }
.jdh-header-logo { display:inline-flex; align-items:center; flex:none; min-height:40px; }
.jdh-nav { display:flex; align-items:center; gap:32px; }
.jdh-nav-link { display:inline-flex; align-items:center; gap:4px; font-size:15.5px; font-weight:500; line-height:18px;
  color:var(--jd-ink); background:none; border:0; padding:8px 0; cursor:pointer; font-family:inherit; white-space:nowrap;
  transition:color .15s ease; }
.jdh-nav-link:hover { color:var(--jd-teal); }

.jdh-tools { position:relative; }
.jdh-tools-chev { transition:transform .2s ease; }
.jdh-tools-btn[aria-expanded="true"] .jdh-tools-chev { transform:rotate(180deg); }
.jdh-nav-link[aria-current="page"] { color:var(--jd-teal-deep); font-weight:600; }
/* two-column card of icon tiles centred under "AI Tools", "All AI tools" row at the bottom */
.jdh-tools-panel { position:absolute; top:100%; left:50%; margin-top:14px; width:520px; padding:12px;
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--jd-line); border-radius:16px;
  box-shadow:0 2px 6px rgba(24,27,41,.04), 0 24px 48px -24px rgba(24,27,41,.28);
  opacity:0; visibility:hidden; transform:translate(-50%,-6px); transition:opacity .18s ease, transform .18s ease, visibility .18s; }
.jdh-tools-panel::before { content:''; position:absolute; left:0; right:0; top:-18px; height:18px; } /* hover bridge */
.jdh-tools-panel.is-open { opacity:1; visibility:visible; transform:translate(-50%,0); }
.jdh-tools-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.jdh-tools-item { display:flex; align-items:center; gap:12px; padding:10px; border-radius:10px; font-size:15px;
  line-height:20px; font-weight:500; color:var(--jd-ink); transition:background .15s ease, color .15s ease; }
.jdh-tools-ico { flex:none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px;
  border-radius:10px; background:#E8F2F4; color:var(--jd-teal-deep); transition:background .15s ease, color .15s ease; }
.jdh-tools-label { min-width:0; }
.jdh-tools-item:hover, .jdh-tools-item:focus-visible { background:#F4F7FA; color:var(--jd-teal-deep); outline:none; }
.jdh-tools-item:hover .jdh-tools-ico, .jdh-tools-item:focus-visible .jdh-tools-ico { background:var(--jd-teal-deep); color:#fff; }
.jdh-tools-all { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:8px; padding:12px;
  border-top:1px solid var(--jd-line); font-size:14.5px; font-weight:600; color:var(--jd-teal-deep);
  border-radius:0 0 10px 10px; transition:background .15s ease; }
.jdh-tools-all:hover, .jdh-tools-all:focus-visible { background:#F4F7FA; outline:none; }
.jdh-tools-all svg { transition:transform .15s ease; }
.jdh-tools-all:hover svg { transform:translateX(2px); }

.jdh-header-right { display:flex; align-items:center; gap:8px; flex:none; }
.jdh-login { font-size:15px; font-weight:600; letter-spacing:-.15px; line-height:18px; color:var(--jd-teal) !important;
  padding:16px 24px; border-radius:100px; transition:background .2s ease; }
.jdh-login:hover { background:rgba(46,116,131,.08); }
/* signed-in plan chip (JdAccountChip): plan name + media credits → dashboard usage, "*Fair use" footnote under it */
.jdh-acct { display:flex; flex-direction:column; align-items:flex-end; gap:0; padding:0 8px; max-width:260px; }
.jdh-acct-main { display:flex; flex-direction:column; align-items:flex-end; padding:4px 12px; border-radius:14px; text-align:right;
  transition:background .2s ease; }
.jdh-acct-main:hover { background:rgba(46,116,131,.08); }
.jdh-acct-main b { font-size:14.5px; font-weight:600; line-height:18px; color:var(--jd-teal); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:236px; }
.jdh-acct-main span { font-size:12px; line-height:16px; color:var(--jd-muted); white-space:nowrap; }
.jdh-acct-fn { padding:0 12px; font-size:11px; line-height:14px; color:var(--jd-muted); text-decoration:underline; }
.jdh-burger { display:none; width:44px; height:44px; border:0; background:none; color:var(--jd-ink);
  align-items:center; justify-content:center; cursor:pointer; border-radius:12px; }

.jdh-sheet { display:none; }

/* the fixed header needs an in-flow spacer; the disclosure line sits right under it */
.jdh-header-spacer { height:96px; }
.jdh-disclosure { text-align:center; font-size:15px; line-height:22px; color:var(--jd-muted); padding:8px 24px; }
.jdh-disclosure b { font-weight:600; color:var(--jd-ink); }
.jdh-disclosure a { font-weight:600; color:var(--jd-ink); }
.jdh-disclosure a:hover { text-decoration:underline; }

@media (max-width:1100px) { .jdh-nav-link { font-size:14.5px; } .jdh-login { padding:12px 14px; } }
/* 901–1180px: the nav keeps its width, so the chip drops its detail line (QA 2026-10-11: it ran into "Pricing") */
@media (max-width:1180px) {
  .jdh-header-right.is-signed-in .jdh-acct-main span { display:none; }
  .jdh-header-right.is-signed-in .jdh-acct { padding:0; }
  .jdh-acct-main b { max-width:180px; }
}
/* Fit ladder (JdHeader sets data-fit on .jdh-header when the nav would run into the right-hand group — long
   es / pt / it / ms / tr labels, narrow windows): 1 = medium spacing, 2 = compact spacing + 14px links,
   3 = also drop the "Home" text link (the logo already links home), 4 = the burger + sheet the phone layout uses.
   Measured per locale, width and session state, never guessed. Default spacing is roomy (48px logo → nav,
   32px between items — owner 2026-10-16). */
.jdh-header[data-fit] .jdh-header-left { gap:32px; }
.jdh-header[data-fit] .jdh-nav { gap:22px; }
.jdh-header:is([data-fit="2"],[data-fit="3"]) .jdh-header-left { gap:24px; }
.jdh-header:is([data-fit="2"],[data-fit="3"]) .jdh-nav { gap:14px; }
.jdh-header:is([data-fit="2"],[data-fit="3"]) .jdh-nav-link { font-size:14px; }
.jdh-header:is([data-fit="2"],[data-fit="3"]) .jdh-login { padding:12px; }
.jdh-header[data-fit="3"] .jdh-nav-home { display:none; }
.jdh-header[data-fit="4"] .jdh-nav, .jdh-header[data-fit="4"] .jdh-login, .jdh-header[data-fit="4"] .jdh-acct { display:none; }
.jdh-header[data-fit="4"] .jdh-burger { display:inline-flex; }
.jdh-header[data-fit="4"] .jdh-sheet { display:block; position:absolute; top:100%; left:0; right:0; background:#fff;
  max-height:0; overflow:hidden; transition:max-height .3s var(--jd-ease); box-shadow:0 20px 30px -20px rgba(24,27,41,.25); }
.jdh-header[data-fit="4"] .jdh-sheet.is-open { max-height:80vh; overflow-y:auto; }
/* sheet rows: only visible while the sheet is displayed (phones, or data-fit="4") */
.jdh-sheet-inner { padding:8px 16px 20px; display:flex; flex-direction:column; }
.jdh-sheet-inner hr { border:0; border-top:1px solid var(--jd-line); margin:8px 0; }
.jdh-sheet-link { display:flex; align-items:center; gap:12px; padding:13px 4px; font-size:16px; font-weight:500; color:var(--jd-ink); }
.jdh-sheet-login { color:var(--jd-teal) !important; font-weight:600; }
.jdh-sheet-ico { flex:none; color:var(--jd-teal); }
.jdh-sheet-link[aria-current="page"] { color:var(--jd-teal-deep); font-weight:600; }
@media (min-width:901px) and (max-width:1000px) { .jdh-header-right.is-signed-in .jdh-header-cta { display:none; } }
@media (max-width:900px) {
  .jdh-header { height:64px; }
  .jdh-header-spacer { height:64px; }
  .jdh-nav, .jdh-login, .jdh-acct { display:none; }
  .jdh-burger { display:inline-flex; }
  .jdh-header-cta { height:44px; padding:8px 14px 8px 8px; font-size:15px; }
  .jdh-header-cta .jdh-btn-ico { width:26px; height:26px; }
  .jdh-sheet { display:block; position:absolute; top:100%; left:0; right:0; background:#fff;
    max-height:0; overflow:hidden; transition:max-height .3s var(--jd-ease); box-shadow:0 20px 30px -20px rgba(24,27,41,.25); }
  .jdh-sheet.is-open { max-height:80vh; overflow-y:auto; }
  .jdh-disclosure { font-size:13px; line-height:20px; padding:8px 16px; }
}
@media (max-width:380px) { .jdh-header-cta { padding-right:12px; font-size:14px; } }


.jdh-foot { background:#fff; border-top:1px solid var(--jd-line); }
.jdh-foot .jdh-foot-top { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:24px;
  align-items:start; padding-top:32px; padding-bottom:40px; }
.jdh-foot-cols { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); max-width:1020px; column-gap:16px; }
.jdh-foot .jdh-foot-h { margin-bottom:36px; font-family:var(--jd-sans); font-size:17px; line-height:25px;
  font-weight:600; color:var(--jd-ink); }
.jdh-foot-list { display:flex; flex-direction:column; gap:16px; }
.jdh-foot .jdh-foot-link { font-size:17px; line-height:25px; color:var(--jd-muted); transition:color .15s ease; }
.jdh-foot .jdh-foot-link:hover { color:var(--jd-ink); }
.jdh-foot .jdh-foot-link:focus-visible, .jdh-foot .jdh-foot-logo:focus-visible {
  outline:2px solid var(--jd-teal); outline-offset:3px; border-radius:4px; }

/* language selector (JdLangSelect) */
.jdh-foot-lang { position:relative; }
.jdh-foot-lang-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; background:#fff;
  border:1px solid var(--jd-line); border-radius:8px; cursor:pointer; font-family:var(--jd-sans);
  font-size:16px; line-height:20px; font-weight:500; color:var(--jd-ink); white-space:nowrap;
  transition:border-color .2s ease, box-shadow .2s ease; }
.jdh-foot-lang-btn:hover { border-color:#CDD3DE; }
.jdh-foot-lang-btn[aria-expanded="true"] { border-color:var(--jd-teal); box-shadow:0 0 0 3px rgba(46,116,131,.12); }
.jdh-foot-lang-btn:focus-visible { outline:2px solid var(--jd-teal); outline-offset:2px; }
.jdh-foot-lang-btn > svg:first-child { color:var(--jd-teal); }
.jdh-foot-lang-chev { transition:transform .2s var(--jd-ease); }
.jdh-foot-lang-btn[aria-expanded="true"] .jdh-foot-lang-chev { transform:rotate(180deg); }
.jdh-foot .jdh-foot-lang-menu { position:absolute; right:0; bottom:calc(100% + 8px); z-index:20; min-width:168px;
  padding:6px; background:#fff; border:1px solid var(--jd-line); border-radius:12px;
  box-shadow:0 18px 40px -20px rgba(24,27,41,.35); animation:jdh-foot-lang-in .16s var(--jd-ease); }
@keyframes jdh-foot-lang-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.jdh-foot-lang-opt { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%;
  padding:9px 12px; border:0; border-radius:8px; background:none; cursor:pointer; text-align:left;
  font-family:var(--jd-sans); font-size:15px; line-height:20px; color:var(--jd-body); }
.jdh-foot-lang-opt:hover, .jdh-foot-lang-opt:focus-visible { background:#F3F5F9; color:var(--jd-ink); outline:none; }
.jdh-foot-lang-opt[aria-current="true"] { color:var(--jd-teal-deep); font-weight:600; }

/* bottom bar */
.jdh-foot-bar { border-top:1px solid var(--jd-line); }
.jdh-foot .jdh-foot-bottom { display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:34px;
  align-items:center; padding-top:24px; padding-bottom:24px; }
.jdh-foot-logo { display:inline-flex; align-items:center; min-height:40px; }
.jdh-foot-legal { font-size:13px; line-height:20px; color:var(--jd-muted); }
.jdh-foot .jdh-foot-legal a { text-decoration:underline; text-underline-offset:2px; }
.jdh-foot .jdh-foot-legal a:hover { color:var(--jd-ink); }
.jdh-foot .jdh-foot-pill { display:inline-flex; align-items:center; gap:12px; padding:8px 20px 8px 8px;
  border-radius:100px; background:#B9DDE3; font-size:16px; line-height:24px; font-weight:600;
  color:var(--jd-ink); white-space:nowrap; transition:background .2s ease, transform .2s ease; }
.jdh-foot .jdh-foot-pill:hover { background:#9CCDD5; }
.jdh-foot .jdh-foot-pill:active { transform:scale(.98); }
.jdh-foot .jdh-foot-pill:focus-visible { outline:2px solid var(--jd-teal); outline-offset:3px; }
.jdh-foot-pill-ico { flex:none; width:30px; height:30px; border-radius:50%; background:#fff; color:var(--jd-teal);
  display:inline-flex; align-items:center; justify-content:center; }

@media (max-width:900px) {
  .jdh-foot .jdh-foot-top { grid-template-columns:minmax(0,1fr); row-gap:32px; padding-top:28px; padding-bottom:32px; }
  .jdh-foot-cols { grid-template-columns:minmax(0,1fr); row-gap:24px; }
  .jdh-foot .jdh-foot-h { margin-bottom:16px; }
  /* each link is a 40px-tall tap target; the zero gap keeps the visual rhythm (16px between lines) */
  .jdh-foot-list { gap:0; }
  .jdh-foot .jdh-foot-link { display:inline-flex; align-items:center; min-height:40px; font-size:16px; line-height:24px; }
  .jdh-foot-lang { justify-self:start; }
  .jdh-foot .jdh-foot-lang-menu { left:0; right:auto; }
  .jdh-foot .jdh-foot-bottom { grid-template-columns:minmax(0,1fr); row-gap:16px; justify-items:start; }
}


/* ---------- shared section shell ---------- */
.jdh-sec { padding:88px 0; }
.jdh-content-hero { padding:48px 0 42px; text-align:center; }
.jdh-content-hero .jdh-h1 { max-width:900px; margin:0 auto; }
.jdh-content-hero p { max-width:720px; margin:18px auto 0; color:var(--jd-body); font-size:18px; line-height:29px; }
.jdh-contact-shell { padding:0 0 72px; }
.jdh-contact-form { max-width:820px; margin:0 auto; padding:32px; border:1px solid var(--jd-line); border-radius:24px; background:rgba(255,255,255,.78); }
.jdh-contact-form .jdh-h2 { font-size:34px; line-height:42px; }
.jdh-contact-form form { margin-top:24px; }
.jdh-contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.jdh-contact-grid label { display:flex; flex-direction:column; gap:7px; color:var(--jd-ink); font-size:14px; font-weight:600; }
.jdh-contact-grid label span { line-height:20px; }
.jdh-contact-grid input, .jdh-contact-grid textarea { width:100%; border:1px solid var(--jd-line); border-radius:12px; padding:12px 14px; color:var(--jd-ink); background:#fff; font:inherit; font-size:15px; line-height:22px; outline:none; }
.jdh-contact-grid textarea { resize:vertical; }
.jdh-contact-grid input:focus, .jdh-contact-grid textarea:focus { border-color:var(--jd-teal); box-shadow:0 0 0 3px rgba(46,116,131,.12); }
.jdh-contact-full { grid-column:1 / -1; }
.jdh-contact-submit { margin-top:20px; }
.jdh-contact-status { min-height:24px; margin-top:14px; font-size:14px; line-height:22px; }
.jdh-contact-status--success { color:var(--jd-teal-deep); }
.jdh-contact-status--error { color:#A33A3A; }
.jdh-sec--tint { background:linear-gradient(180deg, rgba(230,241,244,.7), rgba(242,245,253,.3)); }
.jdh-sec--white { background:#fff; }
/* in-page anchors (Section.id, e.g. #fair-use): clear the fixed header */
:where(.jdh-sec, .jdh-faq, .jdh-fcta)[id] { scroll-margin-top:96px; }
.jdh-sec-head { max-width:820px; margin:0 auto 48px; text-align:center; }
.jdh-sec-head .jdh-sec-sub { margin-top:16px; font-size:18px; line-height:28px; color:var(--jd-ink); opacity:.78; }

/* ---------- tool hero ---------- */
.jdh-th { padding:44px 0 64px; scroll-margin-top:96px; }
.jdh-th-wrap { width:100%; max-width:1280px; margin:0 auto; padding:0 24px; text-align:center; }
.jdh-th-trust { display:inline-flex; align-items:center; gap:10px; font-size:14px; line-height:20px; color:var(--jd-ink); opacity:.78; }
.jdh-th-avatars { display:inline-flex; }
.jdh-th-avatars span { width:26px; height:26px; margin-left:-8px; border-radius:50%; border:2px solid #fff; display:inline-flex;
  align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#fff; }
.jdh-th-avatars span:first-child { margin-left:0; background:linear-gradient(135deg,#5FB3C1,var(--jd-teal-deep)); }
.jdh-th-avatars span:nth-child(2) { background:linear-gradient(135deg,#F2B38B,#D9776A); }
.jdh-th-avatars span:nth-child(3) { background:linear-gradient(135deg,#8CC4CD,#2E7483); }
.jdh-th .jdh-th-h1 { margin-top:18px; font-size:56px; line-height:64px; }
.jdh-th-h1 em { font-style:italic; color:var(--jd-teal); }
.jdh-th .jdh-th-sub { max-width:760px; margin:18px auto 0; font-size:18px; line-height:28px; color:var(--jd-ink); opacity:.78; }
.jdh-th-tool { margin-top:36px; text-align:left; }

/* ---------- prose ---------- */
.jdh-prose { max-width:820px; margin:0 auto; }
.jdh-prose p { font-size:18px; line-height:30px; color:var(--jd-body); }
.jdh-prose p + p { margin-top:18px; }

/* ---------- cards (steps / icon cards / audience tags) ---------- */
.jdh-cards { display:grid; gap:20px; grid-template-columns:repeat(var(--cols,3), minmax(0,1fr)); }
.jdh-cardx { position:relative; padding:28px; border-radius:24px; background:rgba(255,255,255,.72); border:2px solid #fff;
  box-shadow:0 20px 50px -40px rgba(24,27,41,.35); transition:transform .25s var(--jd-ease), box-shadow .25s ease; }
.jdh-cardx:hover { transform:translateY(-3px); box-shadow:0 26px 56px -36px rgba(24,27,41,.35); }
.jdh-cardx .jdh-cardx-t { font-size:20px; line-height:28px; font-weight:600; color:var(--jd-ink); }
.jdh-cardx .jdh-cardx-b { margin-top:10px; font-size:16px; line-height:25px; color:var(--jd-body); }
.jdh-cardx-ico { width:44px; height:44px; margin-bottom:18px; border-radius:12px; background:#E8F1F3; color:var(--jd-teal-deep);
  display:inline-flex; align-items:center; justify-content:center; }
.jdh-cardx-num { width:38px; height:38px; margin-bottom:18px; border-radius:50%; border:1.5px solid var(--jd-teal);
  display:inline-flex; align-items:center; justify-content:center; font-family:var(--jd-serif); font-size:20px; color:var(--jd-teal); }
.jdh-cardx-tag { display:inline-flex; align-items:center; gap:8px; margin-bottom:14px; padding:6px 12px; border-radius:100px;
  background:#E8F1F3; color:var(--jd-teal-deep); font-size:14px; font-weight:600; line-height:20px; }
.jdh-cardx--tag .jdh-cardx-b { margin-top:0; }

/* ---------- feature rows + mocks ---------- */
.jdh-rows { display:flex; flex-direction:column; gap:40px; }
.jdh-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,440px); gap:64px; align-items:center; padding:56px clamp(28px,6vw,80px); }
.jdh-row.is-flip { grid-template-columns:minmax(0,440px) minmax(0,1fr); }
.jdh-row.is-flip .jdh-row-mock { order:-1; }
.jdh-row .jdh-row-t { font-family:var(--jd-serif); font-weight:300; font-size:38px; line-height:46px; letter-spacing:-.6px; color:var(--jd-ink); }
.jdh-row .jdh-row-b { margin-top:18px; font-size:17px; line-height:28px; color:var(--jd-ink); opacity:.85; }
.jdh-row .jdh-row-list { margin-top:22px; display:flex; flex-direction:column; gap:10px; }
.jdh-row-list li { display:flex; align-items:flex-start; gap:10px; font-size:16px; line-height:24px; font-weight:500; color:var(--jd-ink); }
.jdh-row-list svg { flex:none; margin-top:3px; color:var(--jd-teal-deep); }
.jdh-ghost.jdh-row-cta { display:flex; width:fit-content; margin:28px 0 0 -24px; }

.jdh-mock { background:#fff; border:1px solid var(--jd-line); border-radius:20px; box-shadow:0 24px 60px -30px rgba(24,27,41,.25);
  overflow:hidden; font-family:var(--jd-sans); color:var(--jd-ink); }
.jdh-mock-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px; border-bottom:1px solid var(--jd-line);
  font-size:16px; font-weight:600; line-height:22px; }
.jdh-mock-badge { padding:3px 10px; border-radius:100px; font-size:12px; font-weight:600; background:#E3F6F3; color:var(--jd-teal-deep); white-space:nowrap; }
.jdh-mock-body { padding:18px 20px; font-size:14px; line-height:22px; }
.jdh-mock-foot { display:flex; justify-content:space-between; padding:12px 20px; border-top:1px solid var(--jd-line); font-size:13px; color:var(--jd-muted); }
.jdh-mark--ai { background:var(--jd-ai-red-bg); box-shadow:inset 0 -2px 0 var(--jd-ai-red); }
.jdh-mark--plag { background:var(--jd-plag-bg); box-shadow:inset 0 -2px 0 var(--jd-plag); }
.jdh-mark--good { background:#E3F6F3; color:var(--jd-teal-deep); }
.jdh-mock-score { display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 20px 24px; text-align:center; }
.jdh-mock-score svg { display:block; }
.jdh-mock-score-v { font-size:30px; font-weight:700; letter-spacing:-.5px; }
.jdh-mock-score-l { font-size:15px; font-weight:600; }
.jdh-mock-score-c { font-size:13px; color:var(--jd-muted); }
.jdh-mock-list { display:flex; flex-direction:column; gap:10px; padding:18px 20px; }
.jdh-mock-list li { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:#F6F8FA; font-size:14px; line-height:20px; }
.jdh-mock-list svg { flex:none; color:var(--jd-teal); }
.jdh-mock-ba { display:flex; flex-direction:column; gap:12px; padding:18px 20px; }
.jdh-mock-ba-box { padding:12px 14px; border-radius:12px; font-size:14px; line-height:21px; }
.jdh-mock-ba-box b { display:block; margin-bottom:4px; font-size:12px; letter-spacing:.04em; text-transform:uppercase; }
.jdh-mock-ba-before { background:#FFF4F4; color:#5B2B2B; }
.jdh-mock-ba-after { background:#EEF8F6; color:var(--jd-teal-deep); }

/* ---------- compare table ---------- */
.jdh-cmp-scroll { max-width:1000px; margin:0 auto; overflow-x:auto; border-radius:20px; background:#fff; border:1px solid var(--jd-line);
  box-shadow:0 24px 60px -40px rgba(24,27,41,.3); }
.jdh-cmp { width:100%; border-collapse:collapse; min-width:560px; font-size:15px; line-height:22px; }
.jdh-cmp th, .jdh-cmp td { padding:14px 20px; text-align:left; vertical-align:top; border-bottom:1px solid var(--jd-line); }
.jdh-cmp thead th { background:#F4F8F9; color:var(--jd-teal-deep); font-weight:600; }
.jdh-cmp tbody th { font-weight:600; color:var(--jd-ink); }
.jdh-cmp tbody tr:last-child th, .jdh-cmp tbody tr:last-child td { border-bottom:0; }
.jdh-cmp td { color:var(--jd-body); }

/* ---------- tool links ---------- */
.jdh-tl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1040px; margin:0 auto; }
.jdh-tl-card { display:flex; align-items:center; gap:14px; height:100%; padding:18px 20px; background:#fff; border:1px solid var(--jd-line);
  border-radius:16px; transition:transform .25s var(--jd-ease), border-color .2s ease, box-shadow .25s ease; }
.jdh-tl-ico { flex:none; width:40px; height:40px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center;
  background:#E8F1F3; color:var(--jd-teal-deep); }
.jdh-tl-text { flex:1; min-width:0; display:flex; flex-direction:column; }
.jdh-tl-name { font-size:16px; line-height:23px; font-weight:500; color:var(--jd-ink); }
.jdh-tl-desc { margin-top:1px; font-size:13px; line-height:18px; color:var(--jd-muted); }
.jdh-tl-chev { flex:none; color:var(--jd-muted); transition:transform .25s var(--jd-ease), color .2s ease; }
@media (hover:hover) {
  .jdh-tl-card:hover { transform:translateY(-2px); border-color:rgba(46,116,131,.35); box-shadow:0 16px 32px -22px rgba(2,79,95,.45); }
  .jdh-tl-card:hover .jdh-tl-chev { transform:translateX(3px); color:var(--jd-teal); }
}

/* ---------- reading ---------- */
.jdh-rd { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1040px; margin:0 auto; }
.jdh-rd-card { display:flex; flex-direction:column; justify-content:space-between; gap:18px; height:100%; padding:22px; border-radius:18px;
  background:rgba(255,255,255,.8); border:1px solid var(--jd-line); font-size:16px; line-height:24px; font-weight:500; color:var(--jd-ink);
  transition:border-color .2s ease, transform .25s var(--jd-ease); }
.jdh-rd-card span { font-size:14px; color:var(--jd-teal); }
.jdh-rd-card:hover { border-color:rgba(46,116,131,.35); transform:translateY(-2px); }

/* ---------- faq (JustDone layout: title left, accordion right) ---------- */
.jdh-faq { background:#fff; padding:64px 0 42px; }
.jdh-faq-grid { display:grid; grid-template-columns:340px minmax(0,1fr); column-gap:24px; align-items:start; }
.jdh-faq .jdh-faq-title { font-family:var(--jd-serif); font-weight:300; font-optical-sizing:auto; font-size:38px; line-height:46px;
  letter-spacing:-.64px; color:var(--jd-ink); }
.jdh-faq-list { display:flex; flex-direction:column; gap:40px; }
.jdh-faq-q { min-height:48px; }
.jdh-faq-q button { display:flex; align-items:flex-start; gap:16px; width:100%; min-height:48px; padding:0; border:0; background:none; cursor:pointer; text-align:left;
  color:var(--jd-ink-2); font-family:var(--jd-serif); font-weight:300; font-optical-sizing:auto; font-size:26px; line-height:32px; letter-spacing:-.4px; }
.jdh-faq-q button > span { transition:color .2s ease; }
.jdh-faq-chev { flex:none; width:24px; height:24px; margin-top:4px; color:var(--jd-ink-2); transition:transform .3s var(--jd-ease), color .2s ease; }
.jdh-faq-item.is-open .jdh-faq-chev { transform:rotate(90deg); color:var(--jd-teal); }
.jdh-faq-q button:focus-visible { outline:2px solid var(--jd-teal); outline-offset:4px; border-radius:4px; }
@media (hover:hover) { .jdh-faq-q button:hover > span, .jdh-faq-q button:hover .jdh-faq-chev { color:var(--jd-teal-deep); } }
.jdh-faq-panel { display:grid; grid-template-rows:0fr; transition:grid-template-rows .3s var(--jd-ease); }
.jdh-faq-item.is-open .jdh-faq-panel { grid-template-rows:1fr; }
.jdh-faq-inner { min-height:0; overflow:hidden; visibility:hidden; transition:visibility 0s linear .3s; }
.jdh-faq-item.is-open .jdh-faq-inner { visibility:visible; transition-delay:0s; }
.jdh-faq .jdh-faq-a { padding:20px 0 0 40px; font-family:var(--jd-sans); font-size:16px; line-height:24px; font-weight:500; color:#0A0A0A; }

/* ---------- final cta ---------- */
.jdh-fcta { position:relative; isolation:isolate; padding:96px 0; text-align:center; }
.jdh-fcta::before { content:''; position:absolute; left:50%; top:50%; z-index:-1; width:min(920px,96vw); height:440px; transform:translate(-50%,-50%);
  pointer-events:none; filter:blur(36px);
  background:radial-gradient(closest-side at 36% 50%, rgba(46,116,131,.12), rgba(46,116,131,0)),
             radial-gradient(closest-side at 64% 52%, rgba(248,200,160,.25), rgba(248,200,160,0)); }
.jdh-fcta-inner { display:flex; flex-direction:column; align-items:center; }
.jdh-fcta .jdh-fcta-sub { max-width:560px; margin-top:16px; font-size:18px; line-height:28px; color:var(--jd-body); }
.jdh-btn.jdh-fcta-btn { margin-top:32px; }
.jdh-fcta .jdh-fcta-points { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin-top:24px; }
.jdh-fcta-points li { display:inline-flex; align-items:center; gap:6px; font-size:15px; line-height:22px; font-weight:500; color:var(--jd-ink); }
.jdh-fcta-points svg { flex:none; color:var(--jd-teal); }

@media (max-width:1024px) {
  .jdh-cards { grid-template-columns:repeat(min(var(--cols,3),2), minmax(0,1fr)); }
  .jdh-tl, .jdh-rd { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .jdh-sec { padding:56px 0; }
  .jdh-content-hero { padding:32px 0 28px; }
  .jdh-content-hero p { font-size:16px; line-height:26px; }
  .jdh-contact-form { padding:24px 18px; }
  .jdh-contact-grid { grid-template-columns:minmax(0,1fr); }
  .jdh-contact-full { grid-column:auto; }
  .jdh-sec-head { margin-bottom:32px; }
  .jdh-sec-head .jdh-sec-sub { font-size:16px; line-height:26px; }
  .jdh-th { padding:28px 0 44px; scroll-margin-top:64px; }
  .jdh-th-wrap { padding:0 16px; }
  .jdh-th .jdh-th-h1 { font-size:38px; line-height:44px; }
  .jdh-th .jdh-th-sub { font-size:16px; line-height:25px; }
  .jdh-prose p { font-size:16px; line-height:27px; }
  .jdh-cards, .jdh-tl, .jdh-rd { grid-template-columns:minmax(0,1fr); gap:12px; }
  .jdh-cardx { padding:22px; }
  .jdh-row, .jdh-row.is-flip { grid-template-columns:minmax(0,1fr); gap:28px; padding:0; background:transparent; border:0; border-radius:0; }
  .jdh-row .jdh-row-mock { order:-1; }
  .jdh-row .jdh-row-t { font-size:30px; line-height:36px; }
  .jdh-faq { padding:40px 0 32px; }
  .jdh-faq-grid { grid-template-columns:minmax(0,1fr); row-gap:24px; }
  .jdh-faq .jdh-faq-title { font-family:var(--jd-sans); font-weight:700; font-size:20px; line-height:28px; letter-spacing:0; }
  .jdh-faq-list { gap:24px; }
  .jdh-faq-q { min-height:0; }
  .jdh-faq-q button { font-family:var(--jd-sans); font-weight:600; font-size:16px; line-height:24px; letter-spacing:0; gap:12px; }
  .jdh-faq-chev { width:20px; height:20px; margin-top:2px; }
  .jdh-faq .jdh-faq-a { padding:12px 0 0 32px; font-size:15px; line-height:23px; }
  .jdh-fcta { padding:64px 0; }
  .jdh-fcta .jdh-fcta-sub { font-size:16px; line-height:26px; }
  .jdh-fcta .jdh-fcta-points { flex-direction:column; align-items:center; gap:8px; margin-top:20px; }
}


.jdh-uni { padding:30px 0; background:linear-gradient(180deg,#F5F0E9 0%,#F6EDDC 52%,#F5EFE5 100%); }
.jdh-uni-viewport { overflow:hidden; }
.jdh-uni-track { display:flex; width:max-content; animation:jdh-uni-scroll 24s linear infinite; animation-play-state:running; will-change:transform; }
@keyframes jdh-uni-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

.jdh-uni-slot { flex:none; width:192px; height:111.3px; display:flex; align-items:center; justify-content:center; }
.jdh-uni-logo { display:block; flex:none; width:192px; height:109px; object-fit:contain; }

@media (max-width:900px) {
  .jdh-uni { padding:20px 0; }
  .jdh-uni-slot { width:150px; height:88px; }
  .jdh-uni-logo { width:150px; height:88px; }
}


.jdh-tt { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:480px; background:#fff; border-radius:24px;
  border:1px solid rgba(24,27,41,.06); box-shadow:0 40px 90px -50px rgba(24,27,41,.45), 0 2px 8px rgba(24,27,41,.04); text-align:left; }
.jdh-tt-pane { display:flex; flex-direction:column; min-width:0; padding:22px 24px 16px; }
.jdh-tt-in { border-right:1px solid var(--jd-line); }
.jdh-tt-fields { flex:1; display:flex; flex-wrap:wrap; gap:14px; align-content:flex-start; }
.jdh-tt-field { display:flex; flex-direction:column; gap:6px; width:100%; }
.jdh-tt-field.is-half { width:calc(50% - 7px); }
.jdh-tt-label { font-size:14px; font-weight:600; color:var(--jd-ink); }
.jdh-tt-label em { font-style:normal; font-weight:400; color:var(--jd-muted); }
.jdh-tt-field textarea, .jdh-tt-field input, .jdh-tt-field select { width:100%; border:1px solid var(--jd-line); border-radius:12px; background:#FBFCFE;
  padding:10px 12px; font:inherit; font-size:15px; line-height:22px; color:var(--jd-ink); outline:0; transition:border-color .15s ease, box-shadow .15s ease; }
.jdh-tt-field textarea { resize:vertical; min-height:150px; }
.jdh-tt-field select { appearance:auto; height:44px; }
.jdh-tt-field :is(textarea,input,select):focus { border-color:rgba(46,116,131,.6); box-shadow:0 0 0 3px rgba(46,116,131,.12); background:#fff; }
.jdh-tt-foot { display:flex; align-items:center; gap:12px; min-height:58px; margin-top:14px; padding-top:14px; border-top:1px solid var(--jd-line); }
.jdh-tt-hint { font-size:14px; color:var(--jd-muted); }
.jdh-tt-hint em { font-style:normal; color:#B45309; }
.jdh-tt-go { margin-left:auto; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 22px; border:0; border-radius:100px;
  background:var(--jd-teal); color:#fff; font:inherit; font-size:15px; font-weight:600; cursor:pointer; transition:background .2s ease, opacity .2s ease; }
.jdh-tt-go:hover:not(:disabled) { background:var(--jd-teal-deep); }
.jdh-tt-go:disabled { opacity:.45; cursor:not-allowed; }
.jdh-tt-title { font-size:17px; line-height:24px; font-weight:600; color:var(--jd-ink); }
.jdh-tt-empty { margin-top:12px; font-size:16px; line-height:26px; color:var(--jd-muted); }
.jdh-tt-result { position:relative; flex:1; min-height:0; max-height:560px; margin-top:12px; overflow:auto; }
.jdh-tt-result.is-gated { max-height:260px; overflow:hidden; -webkit-mask-image:linear-gradient(#000 45%, transparent); mask-image:linear-gradient(#000 45%, transparent); }
.jdh-tt-caret { display:inline-block; width:2px; height:16px; margin-left:2px; vertical-align:-3px; background:var(--jd-teal); animation:jdh-caret 1s steps(1) infinite; }
@keyframes jdh-caret { 50% { opacity:0; } }
.jdh-spin { animation:jdh-spin .8s linear infinite; }
@keyframes jdh-spin { to { transform:rotate(360deg); } }
.jdh-tt-actions { margin-left:auto; display:flex; gap:8px; }
.jdh-tt-ghostbtn { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border-radius:100px; border:1px solid var(--jd-line);
  background:#fff; font:inherit; font-size:14px; font-weight:500; color:var(--jd-ink); cursor:pointer; }
.jdh-tt-ghostbtn:hover { border-color:rgba(46,116,131,.45); }
.jdh-tt-lock { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:8px; padding:22px; border-radius:18px; text-align:center;
  background:linear-gradient(180deg,#F4FAF9,#fff); border:1px solid #DDEFEC; }
.jdh-tt-lock-ico { width:44px; height:44px; border-radius:50%; background:#E3EFF2; color:var(--jd-teal-deep); display:inline-flex; align-items:center; justify-content:center; }
.jdh-tt-lock .jdh-tt-lock-t { font-size:17px; font-weight:600; }
.jdh-tt-lock .jdh-tt-lock-b { max-width:360px; font-size:14px; line-height:21px; color:var(--jd-muted); }
.jdh-tt-unlock { display:inline-flex; align-items:center; height:46px; padding:0 24px; margin-top:4px; border-radius:100px; color:#fff !important;
  background:linear-gradient(90deg,var(--jd-teal-deep),var(--jd-teal)); font-size:15px; font-weight:600; border:0; font-family:inherit; cursor:pointer; }
.jdh-tt-lock .jdh-tt-lock-sub { font-size:13px; color:var(--jd-muted); }
.jdh-tt-lock-sub a { color:var(--jd-teal) !important; text-decoration:underline !important; }
.jdh-tt-error { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:12px; padding:14px; border-radius:12px; background:#FFF5F5;
  color:#8A1F1F; font-size:14px; }
.jdh-tt-go:focus-visible, .jdh-tt-ghostbtn:focus-visible, .jdh-tt-unlock:focus-visible { outline:2px solid var(--jd-teal); outline-offset:2px; }

/* file field */
.jdh-tt-drop { display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px 16px; border:1.5px dashed #CBD5DF; border-radius:16px;
  background:#FBFCFE; color:var(--jd-teal); text-align:center; }
.jdh-tt-drop-hint { font-size:13px; color:var(--jd-muted); word-break:break-word; }

/* transform layout: option row + big text pane (Solvely-style editor) */
.jdh-tt--transform .jdh-tt-in { min-height:440px; }
.jdh-tt-opts { display:flex; flex-wrap:wrap; gap:8px 14px; padding-bottom:12px; border-bottom:1px solid var(--jd-line); }
.jdh-tt-opt { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-width:0; font-size:13px; font-weight:600; color:var(--jd-muted); }
.jdh-tt-opt select { height:34px; min-width:0; max-width:100%; text-overflow:ellipsis; padding:0 10px; border:1px solid var(--jd-line); border-radius:100px; background:#fff; font:inherit;
  font-size:14px; font-weight:500; color:var(--jd-ink); cursor:pointer; }
.jdh-tt-opt select:focus-visible { outline:2px solid var(--jd-teal); outline-offset:2px; }
.jdh-tt-main { flex:1; min-height:260px; margin-top:12px; width:100%; resize:none; border:0; outline:0; background:transparent; padding:0;
  font:inherit; font-size:16px; line-height:26px; color:var(--jd-ink); }
.jdh-tt-main::placeholder { color:#9CA3AF; }

/* markdown output */
.jdh-md { font-size:16px; line-height:26px; color:var(--jd-ink); }
.jdh-md > * + * { margin-top:12px; }
.jdh-md h3 { font-size:20px; line-height:28px; font-weight:600; }
.jdh-md h4 { font-size:17px; line-height:24px; font-weight:600; }
.jdh-md ul, .jdh-md ol { padding-left:22px; }
.jdh-md ul { list-style:disc; }
.jdh-md ol { list-style:decimal; }
.jdh-md li + li { margin-top:4px; }
.jdh-md blockquote { padding-left:14px; border-left:3px solid var(--jd-line); color:var(--jd-body); }
.jdh-md code { padding:1px 5px; border-radius:6px; background:#F1F3F6; font-size:14px; }
.jdh-md pre { padding:12px; border-radius:12px; background:#F6F8FA; font-size:13px; line-height:20px; white-space:pre-wrap; overflow-x:auto; }
.jdh-md hr { border:0; border-top:1px solid var(--jd-line); }
.jdh-md-link { text-decoration:underline; text-underline-offset:2px; }
/* math (KaTeX base CSS is imported by Markdown.tsx; these only fit it into the card) */
.jdh-math .katex { font-size:1.08em; }
.jdh-math.is-display { display:block; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:2px 0; }
.jdh-math.is-display .katex-display { margin:6px 0; }
.jdh-md .katex-error { color:var(--jd-body) !important; font-family:ui-monospace,monospace; font-size:14px; }

/* image field (f.image): pick / paste / drop, thumbnail preview */
.jdh-tt-img { display:flex; align-items:center; gap:14px; padding:12px 14px; border:1.5px dashed #CBD5DF; border-radius:16px; background:#FBFCFE; }
.jdh-tt-img.is-over { border-color:var(--jd-teal); background:#F4FAF9; }
.jdh-tt-img-thumb { position:relative; flex:none; width:72px; height:72px; border-radius:12px; overflow:hidden; background:#EEF1F5; color:var(--jd-teal);
  display:inline-flex; align-items:center; justify-content:center; }
.jdh-tt-img-thumb img { width:100%; height:100%; object-fit:cover; }
.jdh-tt-img-body { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; }
.jdh-tt-img-row { display:flex; flex-wrap:wrap; gap:8px; }
.jdh-tt-img-hint { font-size:13px; line-height:18px; color:var(--jd-muted); word-break:break-word; }
.jdh-tt-img-hint.is-error { color:#B42318; }

@media (max-width:900px) {
  .jdh-tt { grid-template-columns:minmax(0,1fr); min-height:0; border-radius:20px; }
  .jdh-tt-in { border-right:0; border-bottom:1px solid var(--jd-line); }
  .jdh-tt-pane { padding:18px 16px 14px; }
  .jdh-tt-field.is-half { width:100%; }
  .jdh-tt-out { min-height:220px; }
  .jdh-tt-foot { flex-wrap:wrap; }
  /* long option labels ("Standard — fresh wording at a similar length") stack under their label at full width */
  .jdh-tt-opt { flex:1 1 100%; flex-direction:column; align-items:stretch; gap:6px; }
  .jdh-tt-opt select { width:100%; height:42px; }
  .jdh-tt-ghostbtn { height:40px; }
}


.jdh-pw-backdrop { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(24,27,41,.52); backdrop-filter:blur(4px); animation:jdh-pw-fade .18s ease-out; }
.jdh-pw { position:relative; width:100%; max-width:520px; max-height:calc(100dvh - 32px); overflow:auto; padding:32px 28px 24px; border-radius:24px; background:#fff; box-shadow:0 40px 90px -40px rgba(2,79,95,.6); animation:jdh-pw-rise .22s var(--jd-ease); }
@keyframes jdh-pw-fade { from { opacity:0; } }
@keyframes jdh-pw-rise { from { opacity:0; transform:translateY(12px) scale(.98); } }
.jdh-pw-close { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:999px; background:var(--jd-lav); color:var(--jd-ink); cursor:pointer; }
.jdh-pw-title { padding-right:44px; font-family:var(--jd-serif); font-size:30px; line-height:36px; color:var(--jd-ink); }
.jdh-pw-sub { margin-top:8px; font-size:15px; line-height:23px; color:var(--jd-body); }
.jdh-pw-feats { display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; margin-top:18px; }
.jdh-pw-feats li { display:flex; gap:8px; font-size:13.5px; line-height:20px; color:var(--jd-body); }
.jdh-pw-feats svg { flex:none; margin-top:2px; color:var(--jd-mint); }
.jdh-pw-loading { display:flex; align-items:center; gap:8px; margin-top:22px; color:var(--jd-muted); font-size:14px; }
.jdh-pw-plans { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.jdh-pw-plan { position:relative; display:flex; align-items:center; gap:12px; width:100%; padding:14px 16px; border:1.5px solid var(--jd-line); border-radius:16px; background:#fff; font:inherit; text-align:left; cursor:pointer; transition:border-color .15s, background .15s; }
.jdh-pw-plan:hover:not(:disabled) { border-color:var(--jd-teal); }
.jdh-pw-plan--on { border-color:var(--jd-teal); background:rgba(46,116,131,.06); }
.jdh-pw-badge { position:absolute; top:-10px; right:14px; padding:2px 10px; border-radius:999px; background:var(--jd-teal); color:#fff; font-size:11.5px; font-weight:600; line-height:18px; }
.jdh-pw-radio { flex:none; width:18px; height:18px; border:2px solid var(--jd-line); border-radius:999px; }
.jdh-pw-plan--on .jdh-pw-radio { border:5px solid var(--jd-teal); }
.jdh-pw-plan-t { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.jdh-pw-plan-t b { font-size:15.5px; color:var(--jd-ink); }
.jdh-pw-plan-t span { font-size:12.5px; line-height:18px; color:var(--jd-body); }
.jdh-pw-plan-t del { color:var(--jd-muted); }
.jdh-pw-plan-t .jdh-pw-ref { font-size:11.5px; line-height:16px; color:var(--jd-muted); }
.jdh-pw-save { display:inline-block; margin-left:8px; padding:1px 8px; border-radius:999px; background:rgba(46,160,120,.14); color:#1F7A55; font-size:11px; font-style:normal; font-weight:700; line-height:17px; vertical-align:1px; }
.jdh-pw-day { flex:none; display:flex; flex-direction:column; align-items:flex-end; }
.jdh-pw-day b { font-size:20px; line-height:24px; color:var(--jd-ink); }
.jdh-pw-day span { font-size:12px; color:var(--jd-muted); }
.jdh-pw-go { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:52px; margin-top:20px; border:0; border-radius:999px; background:var(--jd-teal); color:#fff; font:inherit; font-size:16px; font-weight:600; cursor:pointer; }
.jdh-pw-go:hover:not(:disabled) { background:var(--jd-teal-deep); }
.jdh-pw-go:disabled { opacity:.55; cursor:not-allowed; }
.jdh-pw-err { margin-top:8px; font-size:13px; color:#A33A3A; }
.jdh-pw-next { margin-top:8px; font-size:13px; line-height:19px; color:var(--jd-ink); text-align:center; }
.jdh-pw-terms { margin-top:10px; font-size:12px; line-height:18px; color:var(--jd-muted); }
.jdh-pw-links { margin-top:8px; font-size:12.5px; color:var(--jd-muted); }
.jdh-pw-links a { display:inline-block; padding:10px 0; margin:-10px 0; color:var(--jd-teal-deep); text-decoration:underline; }
.jdh-pw-foot { margin-top:6px; font-size:12px; color:var(--jd-muted); }
.jdh-pw-foot a { display:inline-block; padding:10px 0; margin:-10px 0; color:var(--jd-muted); text-decoration:underline; }
/* the root layout's feedback button lives outside .jdh-page's stacking context and would float over the dialog */
@media (max-width: 520px) {
  .jdh-pw { padding:28px 18px 20px; }
  .jdh-pw-title { font-size:25px; line-height:31px; }
  .jdh-pw-feats { grid-template-columns:1fr; }
}
