:root {
  --ink: #172033;
  --muted: #687086;
  --line: #dfe4ee;
  --primary: #6757e8;
  --primary-dark: #5142cc;
  --accent: #36c6a3;
  --wash: #f5f6fb;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.site-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(103, 87, 232, .14), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(54, 198, 163, .12), transparent 25rem),
    #f8f9fc;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  background: rgba(23, 32, 51, .95);
  box-shadow: 0 8px 30px rgba(23, 32, 51, .12);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: Georgia, serif;
}

.navbar .nav-link { color: rgba(255, 255, 255, .72); }
.navbar .nav-link:hover { color: white; }

.logo-tool {
  max-width: 1020px;
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.logo-tool__header {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.logo-tool__eyebrow {
  margin-bottom: 1.25rem;
  background: rgba(103, 87, 232, .12);
  color: var(--primary-dark);
  padding: .55rem .85rem;
  letter-spacing: .12em;
}

.logo-tool h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}

.logo-tool h1 span {
  background: linear-gradient(100deg, var(--primary), #8c4ed8 55%, #149f84);
  background-clip: text;
  color: transparent;
}

.logo-tool__header > p {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.logo-tool__trust {
  margin-top: 1.5rem;
  color: #566078;
  font-size: .9rem;
  font-weight: 600;
}

.logo-form {
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .96);
}

.logo-form__uploads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upload-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 1.35rem;
}

.step-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  background: var(--primary);
  color: white;
  font-size: .85rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(103, 87, 232, .25);
}

.upload-card .step-number {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
}

.logo-field {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
}

.logo-field label {
  padding-right: 2.5rem;
  font-size: 1rem;
  font-weight: 750;
}

.logo-field input[type="file"] {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #ccd3e0;
  border-radius: .7rem;
  background: white;
  padding: .5rem;
  color: var(--ink);
}

.logo-field input[type="file"]::file-selector-button {
  margin-right: .75rem;
  border: 0;
  border-radius: .5rem;
  background: #eceafd;
  padding: .55rem .8rem;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.logo-field small,
.logo-field span {
  color: var(--muted);
  font-size: .84rem;
}

.logo-field span.field-validation-error,
.logo-form__errors,
.pdf-picker__status--error {
  color: #b42318;
}

.pdf-picker {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.pdf-picker__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pdf-picker__heading h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
}

.pdf-picker__heading p,
.pdf-picker__hint {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.pdf-picker__controls {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.pdf-picker__page-button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: white;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pdf-picker__page-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(23, 32, 51, .1);
}

.pdf-picker__page-button:disabled { opacity: .4; cursor: default; }

.pdf-preview-window {
  max-height: 68vh;
  overflow: auto;
  border: 1px solid #d8dce6;
  border-radius: 1rem;
  background: #e9ebf2;
  padding: 1rem;
  box-shadow: inset 0 1px 4px rgba(23, 32, 51, .06);
}

.pdf-preview-page {
  position: relative;
  width: max-content;
  margin: 0 auto;
  background: white;
  box-shadow: 0 6px 25px rgba(23, 32, 51, .16);
}

.pdf-preview-page canvas { display: block; }

#selectionCanvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: crosshair;
}

.pdf-picker__hint { margin-top: .7rem; }
.pdf-picker [hidden], .pdf-result [hidden] { display: none !important; }

.logo-form__submit {
  min-height: 2.9rem;
  border: 0;
  border-radius: .7rem;
  background: var(--primary);
  padding: .7rem 1.1rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.logo-form__submit:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  color: white;
}

.logo-form__status { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.pdf-result { margin-top: .75rem; }

.pdf-result__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.pdf-result__download { display: inline-flex; align-items: center; text-decoration: none; }

.pdf-result__tabs {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.pdf-result__tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: .75rem 1rem .65rem;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.pdf-result__tab[aria-selected="true"] {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

.pdf-result [role="tabpanel"] { margin-top: 1rem; }

.about-card {
  margin-top: 4rem;
  border: 1px solid rgba(103, 87, 232, .16);
  border-radius: 1.35rem;
  background: white;
  box-shadow: 0 18px 50px rgba(23, 32, 51, .08);
}

.about-card__accent {
  align-self: stretch;
  background: linear-gradient(135deg, #241d62, var(--primary));
  color: white;
}

.about-card__label { color: #bbb5ff; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.about-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.about-card a { color: var(--primary-dark); font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: white;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }

@media (max-width: 767.98px) {
  .logo-tool { padding: 3.5rem 0 3rem; }
  .logo-form__uploads { grid-template-columns: 1fr; }
  .pdf-picker__heading { align-items: flex-start; flex-direction: column; }
  .pdf-result__actions { width: 100%; }
  .navbar .btn { margin-top: .5rem; }
}

@media (max-width: 575.98px) {
  .logo-tool h1 { font-size: 2.75rem; }
  .logo-tool__trust { flex-direction: column; gap: .45rem !important; }
  .card-body { padding: 1.25rem !important; }
}


/* BuildWithTimmy footer + floating actions, ported from buildwithtimmy.com */
.bwt-footer { border-top: 1px solid #ddd5c9; background: #fbfaf7; color: var(--ink); }
.bwt-footer a { text-decoration: none; }
.bwt-footer__main { max-width: 1250px; margin: 0 auto; padding: 20px 28px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 30px; }
.bwt-footer__brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.bwt-footer__brand strong { color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.bwt-footer__brand span { color: var(--muted); font-size: .76rem; line-height: 1.4; white-space: nowrap; }
.bwt-footer__contact { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; }
.bwt-footer__contact a { display: block; padding: 8px 10px; border: 1px solid #e1dce7; border-radius: 10px; background: #fff; color: #526276; font-size: .72rem; white-space: nowrap; transition: .15s ease; }
.bwt-footer__contact a:hover { transform: translateY(-1px); border-color: #bfb2ef; color: #6747e7; box-shadow: 0 6px 16px #2b265312; }
.bwt-footer__contact b { color: #6747e7; font-weight: 850; }
.bwt-footer__bottom { display: flex; align-items: center; gap: 8px; color: #8490a0; font-size: .68rem; text-align: right; white-space: nowrap; }
.bwt-footer__bottom span + span::before { content: "·"; margin-right: 8px; }
.bwt-footer__bottom a { color: #657386; font-weight: 750; }
.bwt-footer__bottom a:hover { color: #6747e7; }

.bwt-floating-actions { position: fixed; z-index: 1000; right: 22px; bottom: 22px; display: flex; align-items: flex-end; gap: 10px; }
.bwt-floating-idea, .bwt-floating-chat > summary { min-height: 52px; padding: 0 18px; border-radius: 999px; font-size: .84rem; font-weight: 850; cursor: pointer; transition: .15s ease; }
.bwt-floating-idea { display: flex; align-items: center; gap: 9px; border: 1px solid #cfc5f7; background: #fff; color: #5b43d7; box-shadow: 0 14px 34px #32276429; text-decoration: none; }
.bwt-floating-idea:hover { color: #5b43d7; transform: translateY(-2px); box-shadow: 0 17px 39px #32276438; }
.bwt-floating-idea span, .bwt-floating-chat > summary span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; }
.bwt-floating-idea span { background: #fff4b8; filter: drop-shadow(0 0 6px rgba(255,190,45,.78)); }
.bwt-floating-chat { position: relative; color: var(--ink); }
.bwt-floating-chat > summary { display: flex; align-items: center; gap: 9px; list-style: none; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(135deg,#765eff,#5137dc); color: #fff; box-shadow: 0 14px 34px #4630b552; }
.bwt-floating-chat > summary::-webkit-details-marker { display: none; }
.bwt-floating-chat > summary:hover { transform: translateY(-2px); box-shadow: 0 17px 39px #4630b566; }
.bwt-floating-chat > summary span { background: #ffffff26; }
.bwt-floating-chat__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(370px,calc(100vw - 32px)); padding: 20px; border: 1px solid #d9d0ef; border-radius: 18px; background: #fff; box-shadow: 0 22px 65px #152b4238; }
.bwt-floating-chat__panel::after { content: ""; position: absolute; right: 27px; bottom: -7px; width: 14px; height: 14px; border-right: 1px solid #d9d0ef; border-bottom: 1px solid #d9d0ef; background: #fff; transform: rotate(45deg); }
.bwt-floating-chat__panel > small { display: block; color: #6747e7; font-size: .6rem; font-weight: 900; letter-spacing: .13em; }
.bwt-floating-chat__panel > strong { display: block; margin-top: 7px; font-size: 1.08rem; font-weight: 800; }
.bwt-floating-chat__panel > p { margin: 7px 0 15px; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.bwt-floating-chat__panel > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bwt-floating-chat__panel a { padding: 9px 10px; border-radius: 9px; background: #f0ecff; color: #6747e7; font-size: .72rem; font-weight: 850; text-align: center; text-decoration: none; }
.bwt-floating-chat__panel a:first-child { grid-column: 1/-1; background: #6747e7; color: #fff; }

@media (max-width: 940px) {
  .bwt-footer__main { grid-template-columns: 1fr auto; gap: 10px 20px; }
  .bwt-footer__contact { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .bwt-footer__bottom { grid-column: 2; grid-row: 1; }
}
@media (max-width: 620px) {
  .bwt-footer__main { grid-template-columns: 1fr; padding: 17px 18px; gap: 10px; }
  .bwt-footer__brand { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bwt-footer__brand span { white-space: normal; }
  .bwt-footer__contact, .bwt-footer__bottom { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; text-align: left; }
  .bwt-floating-actions { right: 14px; bottom: 14px; left: 14px; justify-content: flex-end; gap: 7px; }
  .bwt-floating-idea, .bwt-floating-chat > summary { min-height: 48px; padding: 0 13px; font-size: .75rem; }
  .bwt-floating-chat__panel { right: 0; padding: 18px; }
}
