/* PDF Converter — pdf24converter.web.app */

:root {
  --base: #0d0a0c;
  --surface: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.1);
  --text: #f7f5f6;
  --text-2: #a8a0a6;
  --red-1: #ff2d55;
  --red-2: #ff7a3d;
  --grad: linear-gradient(120deg, var(--red-1), var(--red-2));
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(255, 45, 85, 0.09), transparent 70%),
    radial-gradient(700px 500px at 85% 80%, rgba(255, 122, 61, 0.06), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.02) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.02) 39px 40px);
}

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 10, 12, 0.75);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  margin-right: auto;
}

/* Mini document glyph */
.logo-page {
  position: relative;
  width: 17px;
  height: 22px;
  border-radius: 3px 7px 3px 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 45, 85, 0.55);
}

.logo-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 7px 7px 0;
  border-color: transparent var(--base) transparent transparent;
}

.logo-page::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 9px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.55), 0 8px 0 rgba(255, 255, 255, 0.35);
}

nav a.link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

nav a.link:hover, nav a.link.active { color: var(--text); }

/* ---------- Layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero (home) ---------- */

.hero {
  text-align: center;
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  margin: 22px auto 0;
  max-width: 580px;
  color: var(--text-2);
  font-size: 1.12rem;
}

/* Conversion visual: format chips → PDF page */
.convert-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin: 52px auto 0;
  flex-wrap: wrap;
}

.format-chips {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
}

.chip {
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  animation: chip-glow 4s ease-in-out infinite;
}

.chip:nth-child(1) { animation-delay: 0s; }
.chip:nth-child(2) { animation-delay: 1s; }
.chip:nth-child(3) { animation-delay: 2s; }
.chip:nth-child(4) { animation-delay: 3s; }

@keyframes chip-glow {
  0%, 30%, 100% { border-color: var(--hairline); color: var(--text-2); box-shadow: none; }
  10% { border-color: rgba(255, 45, 85, 0.65); color: var(--text); box-shadow: 0 0 18px rgba(255, 45, 85, 0.3); }
}

.convert-arrow {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.45; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.pdf-page {
  position: relative;
  width: 92px;
  height: 118px;
  border-radius: 10px 22px 10px 10px;
  background: linear-gradient(160deg, #ffffff, #f0eef1);
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.35), 0 4px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  animation: page-float 5s ease-in-out infinite;
}

@keyframes page-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.pdf-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--base) transparent transparent;
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.18));
}

.pdf-page::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 22px;
  height: 4px;
  border-radius: 2px;
  background: #d9d4d8;
  box-shadow: 0 11px 0 #d9d4d8, 0 22px 0 #d9d4d8, 0 33px 0 #e8e4e7;
}

.pdf-page .pdf-label {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .chip, .convert-arrow, .pdf-page { animation: none; }
}

.badge-row { margin-top: 56px; }

.store-badge {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(255, 45, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(255, 45, 85, 0.5);
}

.badge-note { display: block; margin-top: 12px; color: var(--text-2); font-size: 0.85rem; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding: 24px 0 88px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.8);
  flex: none;
}

.card p { color: var(--text-2); font-size: 0.93rem; }

.privacy-wide {
  border-color: rgba(255, 122, 61, 0.35);
  grid-column: 1 / -1;
}

/* ---------- More apps ---------- */

.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
  margin-top: 8px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 34px 0 96px;
}

@media (max-width: 760px) {
  .apps-grid { grid-template-columns: 1fr; }
}

.app-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 85, 0.45);
  box-shadow: 0 10px 34px rgba(255, 45, 85, 0.13);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* CSS-drawn icon for apps without a live listing image */
.app-icon-eq {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  background: #0a0b0f;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding-bottom: 16px;
}

.app-icon-eq span {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #b4ff39, #00e5a8);
}

.app-icon-eq span:nth-child(1) { height: 16px; }
.app-icon-eq span:nth-child(2) { height: 30px; }
.app-icon-eq span:nth-child(3) { height: 40px; }
.app-icon-eq span:nth-child(4) { height: 24px; }
.app-icon-eq span:nth-child(5) { height: 12px; }

.app-card .info { flex: 1; min-width: 0; }

.app-card .name {
  display: block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
}

.app-card .desc {
  display: block;
  color: var(--text-2);
  font-size: 0.92rem;
  margin-top: 4px;
}

.app-card .go {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 45, 85, 0.12);
  color: var(--red-1);
  font-size: 1.15rem;
  font-weight: 800;
  transition: background 0.2s, transform 0.2s;
}

.app-card:hover .go {
  background: rgba(255, 45, 85, 0.24);
  transform: translateX(2px);
}

/* ---------- Legal / content pages ---------- */

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.page header { margin-bottom: 40px; }

.page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page .updated {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.page h2 {
  font-size: 1.22rem;
  margin: 42px 0 12px;
  padding-top: 8px;
}

.page h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 12px;
}

.page p, .page li { color: var(--text-2); font-size: 0.97rem; }

.page p strong, .page li strong { color: var(--text); }

.page ul { padding-left: 22px; margin: 10px 0; }

.page li { margin: 7px 0; }

.callout {
  background: var(--surface);
  border: 1px solid rgba(255, 122, 61, 0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}

.callout p { color: var(--text); }

.page a { color: var(--red-1); text-decoration: none; }
.page a:hover { text-decoration: underline; }

/* ---------- Support ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.contact-card .mail-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(255, 45, 85, 0.3);
}

details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  color: var(--red-1);
  font-weight: 800;
  font-size: 1.2rem;
}

details[open] summary::after { content: "–"; }

details p { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--text-2);
  font-size: 0.85rem;
}

.footer-inner .spacer { margin-right: auto; }

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-inner { gap: 16px; }
  nav a.link { font-size: 0.82rem; }
  .hero { padding: 64px 0 48px; }
}
