:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #65716f;
  --line: #d9e2df;
  --paper: #fbfdfc;
  --soft: #eef7f4;
  --brand: #0f766e;
  --brand-dark: #0d504d;
  --accent: #d97706;
  --rose: #be123c;
  --blue: #2563eb;
  --shadow: 0 18px 42px rgba(23, 33, 31, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 252, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--brand-dark);
}

.install-button,
.primary-action,
.secondary-action,
.phone-screen button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
}

.install-button,
.primary-action,
.phone-screen button {
  background: var(--brand);
  color: white;
  font-weight: 750;
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 64px) 34px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, .12), rgba(217, 119, 6, .08) 48%, rgba(37, 99, 235, .08));
}

.workspace-main {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}

.intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.tool-runner {
  margin-top: 30px;
  max-width: 820px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.runner-head,
.section-head,
.runner-actions,
.footer {
  display: flex;
  align-items: center;
}

.runner-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.runner-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.runner-head h2,
.section-head h2,
.mobile-band h2,
.earnings-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.runner-badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 2px dashed #9cc8c1;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: white;
  color: var(--brand);
  font-size: 34px;
  font-weight: 700;
}

.drop-zone small,
.file-item small,
.ad-slot small,
.trust-box p,
.mobile-band p,
.ad-card p {
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.options-grid label,
.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.options-grid input,
.options-grid select,
.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.runner-actions {
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed #b9c7c4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.ad-slot span {
  font-weight: 850;
}

.ad-slot-large {
  min-height: 280px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip div,
.trust-box,
.ad-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip span {
  color: var(--muted);
  font-size: 12px;
}

.trust-box h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.tools-band,
.earnings-band {
  padding: 48px clamp(18px, 5vw, 64px);
}

.section-head {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.search-box {
  width: min(330px, 100%);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tool-card:hover,
.tool-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .38);
  box-shadow: 0 14px 28px rgba(23, 33, 31, .11);
}

.tool-card .tool-icon {
  margin-bottom: 12px;
}

.tool-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.mobile-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: center;
  padding: 48px clamp(18px, 5vw, 64px);
  background: #f8fafc;
}

.phone-shell {
  width: 230px;
  min-height: 420px;
  justify-self: center;
  border: 10px solid #17211f;
  border-radius: 28px;
  background: #17211f;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 72px;
  height: 6px;
  margin: 10px auto;
  border-radius: 999px;
  background: #3f4a47;
}

.phone-screen {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 362px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #e9f8f5);
  text-align: center;
  padding: 20px;
}

.phone-screen span {
  color: var(--muted);
  font-size: 13px;
}

.earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ad-card span {
  font-weight: 850;
}

.footer {
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  .workspace,
  .mobile-band {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .earnings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot-large {
    min-height: 120px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  h1 {
    font-size: 42px;
  }

  .runner-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .options-grid,
  .tool-grid,
  .earnings-grid {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    width: 210px;
  }
}

/* PDFly glossy launch theme */
:root {
  --ink: #edf8ff;
  --muted: #9fb5c1;
  --line: rgba(176, 226, 255, .2);
  --paper: #071014;
  --soft: rgba(12, 35, 48, .78);
  --brand: #00a9ff;
  --brand-dark: #67d7ff;
  --accent: #ff243f;
  --rose: #ff2d52;
  --blue: #00a3ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

body {
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 37, 64, .11), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(0, 169, 255, .13), transparent 30%),
    linear-gradient(135deg, #091114 0%, #14252c 42%, #071014 100%);
}

.topbar {
  min-height: 86px;
  border-bottom-color: rgba(150, 220, 255, .14);
  background: rgba(6, 13, 17, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.brand img {
  width: 168px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 10px rgba(0, 169, 255, .18));
}

.nav {
  color: #c6d8df;
}

.nav a:hover {
  color: white;
  text-shadow: 0 0 16px rgba(0, 169, 255, .65);
}

.install-button,
.primary-action,
.phone-screen button {
  background: linear-gradient(135deg, #f22f45, #0787e8 88%);
  box-shadow: 0 10px 24px rgba(0, 124, 248, .18);
}

.secondary-action {
  border-color: rgba(168, 220, 255, .25);
  background: rgba(255, 255, 255, .07);
  color: #eaf8ff;
}

.workspace {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 37, 64, .16), transparent 25%),
    radial-gradient(circle at 78% 8%, rgba(0, 169, 255, .18), transparent 28%),
    linear-gradient(135deg, #071014 0%, #0d1b22 54%, #081116 100%);
}

.workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 44%),
    linear-gradient(90deg, rgba(7, 16, 20, .36), transparent 70%);
}

.workspace-main,
.side-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #8fe5ff;
}

h1 {
  color: #ffffff;
  max-width: 720px;
  text-shadow: 0 0 18px rgba(0, 169, 255, .14);
}

.intro {
  color: #c5d9df;
}

.tool-runner,
.metric-strip div,
.trust-box,
.ad-card {
  border-color: rgba(181, 230, 255, .18);
  background: linear-gradient(145deg, rgba(13, 28, 36, .9), rgba(8, 18, 24, .84));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(16px);
}

.runner-head h2,
.section-head h2,
.mobile-band h2,
.earnings-band h2,
.trust-box h2,
.tool-card strong,
.metric-strip strong,
.ad-card span,
.phone-screen strong {
  color: #ffffff;
}

.tool-icon {
  background: linear-gradient(135deg, rgba(255, 37, 64, .22), rgba(0, 169, 255, .2));
  color: #ffffff;
  box-shadow: inset 0 0 18px rgba(0, 169, 255, .16);
}

.runner-badge {
  background: rgba(0, 169, 255, .14);
  color: #8fe5ff;
  border: 1px solid rgba(0, 169, 255, .25);
}

.drop-zone {
  border-color: rgba(0, 169, 255, .44);
  background:
    linear-gradient(145deg, rgba(255, 37, 64, .1), rgba(0, 169, 255, .11)),
    rgba(7, 18, 24, .8);
}

.upload-mark {
  background: linear-gradient(135deg, #ff253f, #00a9ff);
  color: #ffffff;
}

.options-grid input,
.options-grid select,
.search-box input {
  border-color: rgba(181, 230, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.options-grid input::placeholder,
.search-box input::placeholder {
  color: #8ba7b3;
}

.file-item,
.tab,
.tool-card {
  border-color: rgba(181, 230, 255, .16);
  background: rgba(8, 20, 27, .82);
  color: #edf8ff;
}

.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 37, 64, .11), rgba(0, 169, 255, .08));
  opacity: 0;
  transition: opacity .16s ease;
}

.tool-card:hover::before,
.tool-card.is-selected::before {
  opacity: 1;
}

.tool-card:hover,
.tool-card.is-selected {
  border-color: rgba(0, 169, 255, .55);
  box-shadow: 0 14px 30px rgba(0, 132, 255, .14), 0 0 0 1px rgba(255, 38, 64, .1);
}

.tool-card p,
.drop-zone small,
.file-item small,
.ad-slot small,
.trust-box p,
.mobile-band p,
.ad-card p,
.phone-screen span,
.metric-strip span {
  color: #9fb5c1;
}

.ad-slot {
  border-color: rgba(0, 169, 255, .28);
  background:
    linear-gradient(135deg, rgba(255, 37, 64, .1), rgba(0, 169, 255, .12)),
    rgba(8, 20, 27, .72);
  color: #eaf8ff;
}

.tools-band,
.earnings-band {
  background:
    linear-gradient(180deg, rgba(7, 16, 20, .98), rgba(10, 23, 30, .98));
}

.mobile-band {
  background:
    radial-gradient(circle at 76% 34%, rgba(0, 169, 255, .18), transparent 28%),
    linear-gradient(135deg, #081116, #101e25);
}

.phone-shell {
  border-color: #05090c;
  background: #05090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 34px rgba(0, 169, 255, .2);
}

.phone-top {
  background: #24333a;
}

.phone-screen {
  background:
    linear-gradient(180deg, rgba(5, 13, 18, .5), rgba(5, 13, 18, .78)),
    url("assets/pdfly-brand-scene.png") center / cover no-repeat;
}

.phone-screen img {
  width: 170px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 169, 255, .4));
}

.footer {
  border-top-color: rgba(181, 230, 255, .14);
  background: #060d11;
}

.footer span:first-child {
  color: #ffffff;
}

@media (max-width: 680px) {
  .brand img {
    width: 142px;
    height: 46px;
  }

  .workspace {
    background:
      radial-gradient(circle at 20% 8%, rgba(255, 37, 64, .14), transparent 30%),
      radial-gradient(circle at 86% 8%, rgba(0, 169, 255, .16), transparent 30%),
      linear-gradient(135deg, #071014, #0d1b22);
  }
}
