/* Simple PDF Page Editor — site stylesheet */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #0066cc;
  --accent-hover: #004f9e;
  --accent-soft: #e5f0ff;
  --border: #e0e0e0;
  --border-strong: #cfd8e3;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 30, 60, 0.08);
  --radius: 10px;
  --max-width: 880px;
  --max-width-prose: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Yu Gothic UI", "Segoe UI", "Hiragino Sans",
               -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

header, main, footer {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

header, footer {
  max-width: var(--max-width);
}

main {
  max-width: var(--max-width);
  flex: 1;
  padding-bottom: 56px;
}

main.prose {
  max-width: var(--max-width-prose);
}

/* ----- Top-bar header (used on sub pages) ----- */

header {
  padding-top: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

header h1 a {
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header h1 a:hover {
  color: var(--accent);
}

header h1 .logo-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #0066cc 0%, #2a8af6 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

header .lede {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ----- Hero (index page) ----- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(42, 138, 246, 0.18), transparent 60%),
    radial-gradient(800px 360px at -10% 110%, rgba(0, 102, 204, 0.12), transparent 60%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 12px 0;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-text h1 .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0066cc 0%, #2a8af6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-text .tagline {
  margin: 0 0 24px 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #0a76e0 0%, #0061c4 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1485ef 0%, #0a6cd6 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  text-decoration: none;
}

.hero-mock {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
}

.hero-mock-thumbs {
  background: #fafbfd;
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-mock-thumb {
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f8 100%);
  border: 1px solid var(--border);
  position: relative;
}

.hero-mock-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 118, 224, 0.18);
}

.hero-mock-thumb::after {
  content: "";
  position: absolute;
  inset: 8px 10px;
  background: repeating-linear-gradient(
    180deg,
    #d8dee7 0px,
    #d8dee7 1.5px,
    transparent 1.5px,
    transparent 8px
  );
  opacity: 0.6;
}

.hero-mock-page {
  background: #ffffff;
  padding: 16px;
}

.hero-mock-page-inner {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    #e6eaf0 0px,
    #e6eaf0 2px,
    transparent 2px,
    transparent 14px
  );
  background-color: #fcfdfe;
}

/* ----- Feature cards ----- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 0 0;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

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

/* ----- Sections ----- */

main section + section {
  margin-top: 40px;
}

main h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

main ul, main ol {
  padding-left: 22px;
}

main li {
  margin-bottom: 4px;
}

.pricing {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.pricing p {
  margin: 0 0 8px 0;
}

.pricing p:last-child {
  margin-bottom: 0;
}

/* ----- General typography ----- */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 14px;
}

small {
  color: var(--muted);
  font-size: 13px;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #f4b400;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  border-radius: 4px;
}

.prose p, .prose li {
  font-size: 15px;
}

.prose h2 {
  margin-top: 36px;
}

table.kv {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.kv th, table.kv td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table.kv tr:last-child th,
table.kv tr:last-child td {
  border-bottom: none;
}

table.kv th {
  background: var(--bg-soft);
  width: 30%;
  font-weight: 600;
  color: var(--muted);
}

.cta-card {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #cfe3ff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.cta-card h2 {
  border-bottom: none;
  margin: 0 0 12px 0;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

footer nav {
  margin-bottom: 8px;
}

footer .copyright {
  margin: 0;
}

/* ----- Responsive ----- */

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 44px;
  }
  .hero-text h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  header { padding-top: 24px; }
  header h1 { font-size: 20px; }
  main h2 { font-size: 18px; }
  table.kv th, table.kv td { padding: 10px 12px; font-size: 13px; }
  table.kv th { width: 38%; }
  .hero-text h1 { font-size: 26px; }
  .hero-text h1 .logo-mark { width: 36px; height: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
}
