/* Ploomu site styles. */
:root {
  --bg: #f9f8f8;
  --ink: #1e232c;
  --ink-soft: rgba(30, 35, 44, .68);
  --navy: #152443;
  --line: rgba(21, 36, 67, .08);
  --glass: rgba(255, 255, 255, .78);
  --black: #0b0c10;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #3b6fd8; outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* ---- Sky: the soft blue backdrop behind the top of the page ---- */
.sky {
  position: absolute;
  inset: 0 0 auto;
  height: max(100vh, 720px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #e2e9f5 0%, #e9eef7 42%, #f1f3f7 72%, var(--bg) 100%);
}
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .75;
  animation: drift 26s ease-in-out infinite alternate;
}
.c1 { width: 46vw; height: 34vw; left: -10vw; top: 6vh; background: #b9cdf0; opacity: .6; }
.c2 { width: 40vw; height: 30vw; right: -8vw; top: -6vh; background: #c3d4f2; animation-duration: 31s; }
.c3 { width: 36vw; height: 22vw; left: 30vw; top: 32vh; background: #d7e2f6; animation-duration: 23s; animation-direction: alternate-reverse; }
.c4 { width: 30vw; height: 20vw; right: 6vw; top: 44vh; background: #ccdaf3; opacity: .55; animation-duration: 35s; }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 36, 67, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 67, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
}

/* ---- Navbar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header[data-scrolled] {
  background: rgba(244, 246, 250, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand img { display: block; height: 24px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Resources dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 304px;
  padding: 8px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -20px rgba(21, 36, 67, .35);
  transform: translateX(-50%);
  animation: menu-in .18s ease-out;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, -4px); } }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color .15s;
}
.dropdown-item:hover { background: rgba(21, 36, 67, .05); }
.item-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
}
.item-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.item-text { display: grid; gap: 1px; }
.item-text b { font-size: 14px; font-weight: 600; color: var(--ink); }
.item-text small { font-size: 12.5px; color: var(--ink-soft); }

/* Right side */
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 22px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -8px rgba(11, 12, 16, .55);
  transition: background-color .2s, transform .2s;
}
.cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cta:hover { background: #22252e; }
.cta:hover svg { transform: translate(2px, -2px); }

.nav-burger { display: none; }

/* ---- Phones and small tablets ---- */
@media (max-width: 900px) {
  .nav-inner { height: 64px; padding: 0 16px; grid-template-columns: 1fr auto; gap: 12px; position: relative; }
  .brand img { height: 21px; }
  .nav-actions { gap: 8px; }
  .cta { height: 38px; padding: 0 14px 0 16px; font-size: 13.5px; gap: 8px; }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .5);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .nav-burger span { display: block; width: 17px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

  .main-nav { display: none; }
  .site-header[data-nav-open] .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -20px rgba(21, 36, 67, .4);
    animation: panel-in .18s ease-out;
  }
  @keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } }
  .main-nav .nav-link { width: 100%; padding: 13px 12px; font-size: 16px; border-radius: 12px; color: var(--ink); }
  .main-nav .nav-link:hover { background: rgba(21, 36, 67, .05); }
  .main-nav .nav-link[aria-current="page"]::after { left: 12px; right: auto; width: 22px; bottom: 6px; }
  .dropdown-toggle { justify-content: space-between; }
  .dropdown-menu { position: static; width: auto; padding: 0 0 4px 8px; background: none; border: 0; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  .dropdown-menu::before { content: none; }
}

/* ---- Hero: the article box ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main { position: relative; z-index: 1; }
.hero {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 10vh;
  text-align: center;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Montserrat, "DM Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
}
.hero-sub {
  max-width: 560px;
  margin: 18px 0 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* Liquid glass: a clear, strongly blurred pane with a bright rim and a soft sheen across the top. */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .28) 45%, rgba(236, 243, 255, .34) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    inset 0 18px 28px -22px rgba(255, 255, 255, .9),
    0 1px 2px rgba(21, 36, 67, .06),
    0 30px 60px -32px rgba(21, 36, 67, .38);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 38%, rgba(190, 210, 245, .55) 70%, rgba(255, 255, 255, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.article-box {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  padding: 8px 12px 12px;
  text-align: left;
  transition: box-shadow .25s;
}
.article-box:focus-within {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    inset 0 18px 28px -22px rgba(255, 255, 255, .95),
    0 0 0 4px rgba(65, 118, 230, .12),
    0 30px 60px -30px rgba(21, 36, 67, .42);
}
.article-box textarea {
  width: 100%;
  min-height: 176px;
  max-height: 46vh;
  padding: 14px 12px;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  outline: none;
}
.article-box textarea::placeholder { color: rgba(30, 35, 44, .48); }
.box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 12px; }
.word-count { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px 0 16px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -8px rgba(11, 12, 16, .55);
  transition: background-color .2s, transform .2s;
}
.analyze-btn svg { width: 16px; height: 16px; fill: currentColor; }
.analyze-btn:hover { background: #22252e; }
.analyze-btn:disabled { cursor: progress; background: #3a3e48; }
.analyze-btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.analyze-btn[aria-busy="true"] .spinner { display: block; }
.analyze-btn[aria-busy="true"] svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { max-width: 560px; margin: 14px 0 0; font-size: 14px; color: #b42318; }

.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(9, 45, 78, .18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: rgba(255, 255, 255, .75); border-color: rgba(9, 45, 78, .28); }

/* ---- Analysis results ---- */
.results { max-width: 1200px; margin: 0 auto; padding: 20px 32px 72px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.results-head h2 { margin: 0; font-family: Montserrat, "DM Sans", sans-serif; font-weight: 400; font-size: 28px; color: var(--navy); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(9, 45, 78, .16);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s;
}
.back-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.back-btn:hover { background: rgba(255, 255, 255, .85); }
.sample-banner {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 244, 214, .8);
  border: 1px solid rgba(214, 160, 40, .35);
  font-size: 14px;
  color: #6b4a00;
}
.results-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel-label { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(21, 36, 67, .55); }
.article-pane { padding: 28px 32px 32px; background: rgba(255, 255, 255, .62); }
.article-text { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.article-text mark {
  color: inherit;
  border-radius: 4px;
  padding: 1px 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.article-text mark.strong { background: rgba(65, 118, 230, .24); box-shadow: inset 0 -2px 0 rgba(65, 118, 230, .75); }
.article-text mark.moderate { background: rgba(65, 118, 230, .15); box-shadow: inset 0 -2px 0 rgba(65, 118, 230, .45); }
.article-text mark.weak { background: rgba(65, 118, 230, .08); box-shadow: inset 0 -1.5px 0 rgba(65, 118, 230, .35); }
.article-text mark.is-active { background: rgba(65, 118, 230, .34); box-shadow: inset 0 -2px 0 #4176e6, 0 0 0 3px rgba(65, 118, 230, .14); }
.mark-num {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin: 0 3px 0 2px;
  padding: 0 4px;
  border-radius: 9px;
  background: #4176e6;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  vertical-align: 2px;
  white-space: nowrap;
}

.report { position: sticky; top: 92px; padding: 24px; background: rgba(255, 255, 255, .62); max-height: calc(100vh - 116px); overflow: auto; }
.score { margin-bottom: 18px; }
.score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score-value { font-family: Montserrat, "DM Sans", sans-serif; font-size: 40px; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.score-label { font-size: 13px; color: var(--ink-soft); text-align: right; }
.meter { height: 8px; margin-top: 10px; border-radius: 4px; background: rgba(21, 36, 67, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9cbaf2, #4176e6); transition: width .6s ease-out; }
.uncertain {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(9, 45, 78, .14);
  font-size: 14px;
  line-height: 1.5;
}
.uncertain svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #4176e6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.report h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.summary { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.findings { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.finding {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(9, 45, 78, .08);
  text-align: left;
  transition: background-color .2s, border-color .2s;
}
.finding:hover, .finding.is-active { background: #fff; border-color: rgba(65, 118, 230, .35); }
.finding .mark-num { flex: none; margin: 2px 0 0; vertical-align: 0; }
.finding-body { display: grid; gap: 6px; min-width: 0; }
.finding-quote { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.finding-reason { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.strength-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(65, 118, 230, .1); color: #2f5fc4; }
.empty-note { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.estimate-note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(9, 45, 78, .1); font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 64px); padding: 28px 20px 8vh; }
  .hero-sub { font-size: 16px; margin: 14px 0 28px; }
  .article-box textarea { min-height: 150px; }
  .c1 { width: 120vw; height: 90vw; left: -40vw; top: 4vh; }
  .c2 { width: 100vw; height: 80vw; right: -40vw; top: -10vh; }
  .c3 { width: 90vw; height: 60vw; left: 10vw; top: 38vh; }
  .c4 { width: 70vw; height: 50vw; right: -10vw; top: 55vh; }
  .grid { background-size: 56px 56px; opacity: .8; }
  .results { padding: 12px 16px 56px; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .report { position: static; max-height: none; order: -1; }
  .article-pane { padding: 22px 20px 24px; }
  .results-head h2 { font-size: 22px; }
}
@media (max-width: 560px) {
  .glass { border-radius: 22px; }
  .article-box { padding: 6px 8px 8px; }
  .box-row { padding-left: 8px; }
  .analyze-btn { height: 42px; padding: 0 16px 0 14px; font-size: 14.5px; }
  /* The three buttons stay side by side and shrink with the screen. */
  .hero-links { flex-wrap: nowrap; width: 100%; gap: clamp(4px, 1.6vw, 8px); margin-top: 28px; }
  .pill { flex: 1 1 auto; min-width: 0; padding: 0 clamp(6px, 2.1vw, 12px); gap: clamp(3px, 1.1vw, 6px); font-size: clamp(10.5px, 3.2vw, 13.5px); }
  .pill svg { flex: none; width: clamp(12px, 3.5vw, 15px); height: clamp(12px, 3.5vw, 15px); }
  .pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 340px) {
  .pill svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Unavailable resource destinations. */
.dropdown-item[aria-disabled="true"] { cursor: default; }
.dropdown-item[aria-disabled="true"]:hover { background: transparent; }
