@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --ink: #1e1e1e;
  --muted: #5c5c5c;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-hero: #eef4ff;
  --line: rgba(30, 30, 30, 0.08);
  --accent: #0055ff;
  --accent-dark: #0044cc;
  --magenta: #0055ff;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1240px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --shadow: 0 8px 28px rgba(30, 30, 30, 0.06);
  --shadow-hover: 0 14px 36px rgba(0, 85, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* ========== Header (Smallpdf-like) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-logo-full {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
}

.footer-brand-row {
  margin-bottom: 18px;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.caret {
  font-size: 10px;
  opacity: 0.6;
}

.nav-divider {
  display: none;
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.nav-desktop {
  display: none !important;
}

.btn-trial {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-trial:hover {
  background: var(--accent-dark);
}

.btn-login {
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink) !important;
  border: 1.5px solid rgba(30, 30, 30, 0.16);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-quick {
  display: none;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-soft);
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 16px 16px;
  background: #fff;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
  display: none;
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(860px, 86vw);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(30, 30, 30, 0.12);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
  z-index: 120;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  display: grid;
}

.mega-col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col li {
  margin: 6px 0;
}

.mega-col a {
  font-size: 14px;
  font-weight: 500;
}

.mega-col a:hover {
  color: var(--accent);
}

.mega-cta {
  background: #eef4ff;
  border-radius: 12px;
  padding: 14px;
}

.mega-cta p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 1100px) {
  .nav-dropdown,
  .nav-link,
  .nav-divider,
  .nav-desktop,
  .btn-trial.nav-desktop,
  .btn-login.nav-desktop {
    display: flex !important;
  }
  .nav-quick {
    display: flex !important;
  }
  .nav-user.nav-desktop {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
  .nav-desktop[hidden],
  .btn-trial.nav-desktop[hidden],
  .btn-login.nav-desktop[hidden],
  .nav-user.nav-desktop[hidden] {
    display: none !important;
  }
  .menu-btn {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .nav-dropdown,
  .nav-link:not(.nav-quick),
  .nav-divider,
  .nav-desktop,
  .btn-trial.nav-desktop,
  .btn-login.nav-desktop {
    display: flex !important;
  }
  .nav-user.nav-desktop {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
  .nav-desktop[hidden],
  .btn-trial.nav-desktop[hidden],
  .btn-login.nav-desktop[hidden],
  .nav-user.nav-desktop[hidden] {
    display: none !important;
  }
  .menu-btn {
    display: none;
  }
}

.nav-user-email {
  font-size: 13px;
  color: var(--muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-count {
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline,
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid rgba(30, 30, 30, 0.16);
}

.btn-outline-blue {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-ghost:hover,
.btn-outline:hover,
.btn-outline-blue:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: #f3f7ff;
}

/* ========== Hero (smallpdf split layout) ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 48px 0 72px;
}

.hero-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 32px;
    min-height: 520px;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 520px;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: #111;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.hero-cta .btn {
  min-width: 168px;
  padding: 15px 26px;
  font-size: 16px;
}

.hero-stage {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

@media (min-width: 960px) {
  .hero-stage {
    min-height: 480px;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 28px;
  background: rgba(180, 200, 230, 0.28);
  transform: rotate(-8deg);
}

.hero-orb-a {
  width: 78%;
  height: 70%;
  top: 8%;
  left: 8%;
}

.hero-orb-b {
  width: 64%;
  height: 58%;
  top: 22%;
  left: 22%;
  background: rgba(160, 185, 220, 0.22);
  transform: rotate(6deg);
}

.hero-editor {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(30, 40, 80, 0.14);
  border: 1px solid rgba(30, 30, 30, 0.06);
  padding: 14px;
  animation: floaty 8s ease-in-out infinite;
}

.hero-editor-bar span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  background: #ffb4b4;
}

.hero-editor-bar span:nth-child(2) {
  background: #ffd59e;
}
.hero-editor-bar span:nth-child(3) {
  background: #b8f0c8;
}

.hero-editor-page {
  position: relative;
  margin-top: 12px;
  height: 250px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f9fc, #eef2f8);
  overflow: hidden;
}

.hero-shape.circle {
  position: absolute;
  width: 86px;
  height: 86px;
  left: 36px;
  top: 48px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
}

.hero-textbox {
  position: absolute;
  left: 140px;
  top: 72px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  font-weight: 700;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hero-sign {
  position: absolute;
  left: 56px;
  bottom: 42px;
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 28px;
  color: #e11d48;
  transform: rotate(-6deg);
}

.hero-cursor {
  position: absolute;
  right: 72px;
  bottom: 58px;
  width: 14px;
  height: 14px;
  background: #111;
  clip-path: polygon(0 0, 100% 70%, 55% 70%, 70% 100%, 45% 100%, 30% 70%, 0 85%);
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  animation: floaty 7s ease-in-out infinite;
}

.f-word {
  width: 54px;
  height: 54px;
  left: 6%;
  top: 18%;
  background: #2563eb;
  font-size: 18px;
}
.f-pdf {
  width: 58px;
  height: 58px;
  right: 8%;
  top: 12%;
  background: #ef4444;
  font-size: 12px;
  animation-delay: -2s;
}
.f-pen {
  width: 48px;
  height: 48px;
  right: 4%;
  bottom: 28%;
  background: #ec4899;
  font-size: 20px;
  animation-delay: -4s;
}
.f-img {
  width: 52px;
  height: 52px;
  left: 10%;
  bottom: 16%;
  background: #f59e0b;
  font-size: 11px;
  animation-delay: -1s;
}
.f-edit {
  width: 42px;
  height: 42px;
  right: 22%;
  bottom: 8%;
  background: #14b8a6;
  font-size: 22px;
  animation-delay: -3s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ========== Sections ========== */
.section {
  padding: 80px 0;
}

.section-grey {
  background: var(--bg-soft);
}

.section-popular {
  padding-top: 24px;
}

.popular-grid .pdf-tool-tile {
  min-height: 180px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 14px auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.see-all {
  margin-top: 36px;
}

.see-all .text-link {
  font-size: 1.05rem;
  font-weight: 700;
}

.page-hero,
.tool-hero {
  padding: 48px 0 20px;
  background: linear-gradient(180deg, #eef4ff, #fff);
}

.page-hero h1,
.tool-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero p,
.tool-hero p {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.tool-crumb {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: #999 !important;
}

.tool-crumb a {
  color: var(--accent);
}

.group-title {
  margin: 36px 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ========== Tool cards ========== */
.pdf-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .pdf-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pdf-tools-grid,
  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pdf-tool-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.pdf-tool-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 85, 255, 0.14);
  border-color: rgba(0, 85, 255, 0.2);
}

.pdf-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.pdf-tool-tile h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.pdf-tool-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tone-red {
  background: #e5252a;
}
.tone-orange {
  background: #ff7a1a;
}
.tone-pink {
  background: #ff4d6d;
}
.tone-blue {
  background: #0055ff;
}
.tone-purple {
  background: #7b5cff;
}
.tone-green {
  background: #12a974;
}

/* ========== Feature rows ========== */
.feature-row {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .feature-row.is-reverse .feature-copy {
    order: 2;
  }
  .feature-row.is-reverse .feature-visual {
    order: 1;
  }
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.feature-visual {
  min-height: 240px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 28px;
}

.viz-edit {
  background: linear-gradient(145deg, #dce8ff, #fff);
}
.viz-sign {
  background: linear-gradient(145deg, #e4ddff, #fff);
}
.viz-convert {
  background: linear-gradient(145deg, #d9e6ff, #fff);
}
.viz-manage {
  background: linear-gradient(145deg, #dff7ec, #fff);
}

.mock-window {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.mock-window > span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  background: #ffb4b4;
}

.mock-window > span:nth-child(2) {
  background: #ffd59e;
}
.mock-window > span:nth-child(3) {
  background: #b8f0c8;
}

.mock-body {
  margin-top: 12px;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5f8ff, #eef2fb);
  position: relative;
  overflow: hidden;
}

.mock-body::after {
  content: "";
  position: absolute;
  inset: 24px 28px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    180deg,
    #c5d4f5 0 8px,
    transparent 8px 18px
  );
  opacity: 0.55;
}

/* ========== Mobile band ========== */
.section-mobile {
  background: linear-gradient(180deg, #1e1e1e, #2a2a2a);
  color: #fff;
}

.mobile-band {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .mobile-band {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.section-mobile .section-title {
  color: #fff;
}

.section-mobile .section-lead {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.72);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-badge {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.store-badge.outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.phone-mock {
  width: 180px;
  height: 320px;
  margin: 0 auto;
  border-radius: 28px;
  border: 8px solid #111;
  background: #333;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #dfeaff, #fff);
}

/* ========== Pricing ========== */
.home-price-row,
.price-compare {
  display: grid;
  gap: 16px;
  margin: 36px auto 0;
  max-width: 760px;
}

@media (min-width: 720px) {
  .home-price-row,
  .price-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.home-price-card,
.price-card {
  text-align: left;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.home-price-card:first-child,
.price-card-featured {
  border-color: rgba(0, 85, 255, 0.35);
  box-shadow: 0 14px 36px rgba(0, 85, 255, 0.1);
}

.plan-label {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-price {
  margin: 14px 0 4px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-card h2 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
}

.once {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.price-card ul {
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

/* ========== Trust ========== */
.trust-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.trust-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-card a {
  color: var(--accent);
  font-weight: 600;
}

.section-cta {
  background: linear-gradient(180deg, #eef4ff, #fff);
}

/* ========== Tool upload ========== */
.tool-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .tool-layout {
    grid-template-columns: 1.45fr 0.8fr;
  }
}

.upload-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.upload-drop {
  border: 2px dashed rgba(0, 85, 255, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f7ff, #fff);
  padding: 56px 20px;
  text-align: center;
}

.upload-drop.is-dragover {
  border-color: var(--accent);
  background: #e8f0ff;
}

.upload-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.upload-hint {
  margin: 8px 0 20px;
  color: var(--muted);
}

.upload-btn {
  cursor: pointer;
}

.upload-note {
  margin: 12px 4px 0;
  font-size: 13px;
  color: var(--muted);
}

.upload-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.upload-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 14px;
}

.tool-aside {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 22px;
}

.tool-aside h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.tool-aside ol {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.tool-aside li {
  margin: 8px 0;
}

/* ========== Auth / cart / checkout ========== */
.auth-card {
  max-width: 440px;
  margin: 24px auto;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.auth-card .sub {
  margin: 8px 0 20px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  border: 1px solid rgba(30, 30, 30, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

.form-msg {
  margin: 0 0 12px;
  font-size: 14px;
}

.form-msg.is-error {
  color: #c62828;
}

.form-msg.is-ok {
  color: #1b7a45;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.empty-state {
  margin-top: 24px;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: #eef4ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.empty-state .btn {
  margin-top: 20px;
}

/* Cart page */
.cart-page {
  max-width: 960px;
  padding-bottom: 24px;
}

.cart-page > .section-title {
  margin-bottom: 8px;
}

.cart-lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.cart-panel {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 860px) {
  .cart-panel {
    grid-template-columns: 1.4fr 0.85fr;
    align-items: start;
  }
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  gap: 14px;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .cart-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item-info strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.cart-sku {
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cart-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.cart-qty input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

.cart-qty input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

.cart-subtotal {
  min-width: 72px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}

.cart-remove:hover {
  color: #c62828;
}

.cart-summary {
  padding: 22px !important;
  position: sticky;
  top: 84px;
}

.cart-summary h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px !important;
  color: var(--ink);
}

.cart-total strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.cart-summary-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.checkout-summary-card,
.checkout-pay-card,
.cart-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-size: 16px;
}

.checkout-policy,
.checkout-secure,
.checkout-pay-sub {
  font-size: 13px;
  color: var(--muted);
}

.checkout-policy a {
  color: var(--accent);
  font-weight: 600;
}

.checkout-success-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.prose h2 {
  margin-top: 28px;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background: #171717;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
}

.footer-tag {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.footer-top-wide {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .footer-top-wide {
    grid-template-columns: 1.7fr 1fr;
  }
}

.footer-tools-grid,
.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 700px) {
  .footer-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 7px 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-company-box {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.6;
}

.footer-company-box a {
  color: #ffb4b7;
}

.footer-bottom {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.mobile-logout {
  color: var(--accent) !important;
}

/* ========== Pricing page (smallpdf-like) ========== */
.pricing-hero {
  padding: 64px 0 28px;
  background: linear-gradient(180deg, #dfeaff 0%, #eef4ff 55%, #ffffff 100%);
  text-align: center;
}

.pricing-hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pricing-hero p {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.billing-toggle {
  display: inline-flex;
  margin: 28px auto 0;
  padding: 4px;
  background: #eef4ff;
  border-radius: 999px;
  gap: 2px;
}

.billing-opt {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.billing-opt.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 85, 255, 0.12);
}

.billing-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #12a974;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.plans-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .plans-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .plans-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plan-card-pro {
  border-color: rgba(0, 85, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 85, 255, 0.12);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.plan-badge-hot {
  top: 0;
  right: 0;
  left: 0;
  border-radius: 0;
  text-align: center;
  padding: 8px 10px;
  background: #12a974;
  color: #fff;
}

.plan-card-pro {
  padding-top: 48px;
}

.plan-card h2 {
  margin: 6px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.plan-users {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-price-line {
  margin: 16px 0 4px;
}

.plan-price-line .price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-bullets {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
  flex: 1;
}

.plan-bullets li {
  margin: 8px 0;
}

.compare-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table thead th {
  background: #fafafa;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  width: 42%;
}

.compare-table td {
  text-align: center;
  color: var(--muted);
}

.compare-group th {
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 12px;
  padding-bottom: 12px;
}

.cell-yes {
  color: #12a974;
  font-weight: 800;
  font-size: 16px;
}

.cell-no {
  color: #c2c2c2;
  font-weight: 700;
}

.security-band {
  max-width: 720px;
}

.security-band .section-lead a {
  color: var(--accent);
}

.faq-list {
  max-width: 760px;
  margin: 28px auto 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.faq-icon {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.faq-item.open .faq-a {
  display: block;
}

.footer-brand-row {
  display: none;
}
