* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #1b2a55;
  background: #0e2a6e;
}

/* ---------- Shared site nav (used on all pages) ---------- */

.sitenav-wrap {
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(64, 116, 226, 0.55), transparent 62%),
    linear-gradient(180deg, #16327f 0%, #0e2a6e 100%);
}

.sitenav {
  display: flex;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px;
}

.sitenav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.sitenav-logo {
  width: 40px;
  height: 29px;
  object-fit: contain;
}

.sitenav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.sitenav-links a {
  color: #dfe8ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.sitenav-links a:hover { color: #fff; }

.sitenav-links a.active {
  color: #fff;
  border-bottom-color: #ffc93c;
}

.sitenav-cta {
  margin-left: 36px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #4e8be8, #3b74d8);
  box-shadow: 0 6px 16px rgba(20, 60, 160, .45);
  transition: transform .15s ease, filter .15s ease;
}

.sitenav-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }

@media (max-width: 720px) {
  .sitenav { flex-wrap: wrap; gap: 14px; padding: 20px 24px; }
  .sitenav-links { order: 3; width: 100%; justify-content: center; gap: 20px; margin-left: 0; flex-wrap: wrap; }
  .sitenav-cta { margin-left: auto; }
}

/* ---------- Top: nav + hero + cards ---------- */

.top {
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(64, 116, 226, 0.55), transparent 62%),
    radial-gradient(900px 560px at 10% 88%, rgba(56, 104, 214, 0.45), transparent 65%),
    linear-gradient(180deg, #16327f 0%, #0e2a6e 55%, #143d96 100%);
}

.nav {
  display: flex;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 29px;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: #dfe8ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
  color: #fff;
  border-bottom-color: #ffc93c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn .icon { width: 19px; height: 19px; flex: none; }

.btn-nav {
  margin-left: 36px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #4e8be8, #3b74d8);
  box-shadow: 0 6px 16px rgba(20, 60, 160, .45);
}

.hero {
  text-align: center;
  padding: 58px 20px 58px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.14;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 24px rgba(10, 30, 90, .5);
}

.subtitle {
  margin: 24px auto 0;
  color: #bccbf2;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
}

/* ---------- Product cards ---------- */

.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 8px 36px 90px;
}

.card {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  border: 3px solid;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(6, 18, 56, .38);
  display: flex;
  flex-direction: column;
}

.card-indie  { border-color: #f0c04a; }
.card-beta   { border-color: #18bcc8; }
.card-editor { border-color: #a99df2; }

.card-art {
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

.card-art img {
  display: block;
  width: 100%;
  height: auto;
}

.card-body {
  padding: 24px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  color: #14204e;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.tagline {
  margin: 6px 0 18px;
  color: #7c8cac;
  font-size: 15px;
  font-weight: 500;
}

.features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.features li {
  position: relative;
  padding: 7px 0 7px 34px;
  color: #2b3a63;
  font-size: 15.5px;
  font-weight: 500;
}

.features li::before {
  content: "\2713";
  position: absolute;
  left: 6px;
  top: 7px;
  font-weight: 800;
  font-size: 16px;
}

.card-indie  .features li::before { color: #f0b429; }
.card-beta   .features li::before { color: #0fae9c; }
.card-editor .features li::before { color: #7b68d8; }

.card .btn {
  width: 100%;
  margin-top: auto;
}

.btn-gold {
  color: #15224e;
  background: linear-gradient(180deg, #ffd34d, #f6b81d);
  box-shadow: 0 8px 20px rgba(220, 160, 20, .4);
}

.btn-teal {
  color: #fff;
  background: linear-gradient(180deg, #17b8a4, #079a8f);
  box-shadow: 0 8px 20px rgba(8, 140, 130, .4);
}

.btn-purple {
  color: #fff;
  background: linear-gradient(180deg, #7d6ce3, #5a49c2);
  box-shadow: 0 8px 20px rgba(95, 75, 200, .4);
}

.btn-arrow { font-weight: 700; }

.wave {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: -1px;
}

/* ---------- Workflow ---------- */

.workflow {
  background: linear-gradient(180deg, #eef4fd 0%, #f6fafe 55%, #eaf2fd 100%);
  text-align: center;
  padding: 66px 24px 84px;
}

.workflow h2,
.cta h2 {
  margin: 0 0 42px;
  color: #14204e;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.flow {
  display: block;
  width: 100%;
  max-width: 905px;
  height: auto;
  margin: 0 auto;
}

.final-step {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  padding: 17px 38px;
  background: #cbe3fc;
  color: #14204e;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(60, 110, 200, .18);
}

.final-step strong { font-weight: 800; }
.final-step .rocket { font-size: 21px; }

/* ---------- CTA ---------- */

.cta {
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(66, 118, 228, .5), transparent 62%),
    radial-gradient(800px 500px at 10% 110%, rgba(48, 96, 206, .4), transparent 65%),
    linear-gradient(180deg, #1a4ba2 0%, #12317e 70%, #0f2a6e 100%);
  text-align: center;
  padding: 66px 24px 92px;
}

.cta h2 { color: #fff; }

.cta-note {
  margin: -20px 0 34px;
  color: #bccbf2;
  font-size: 16px;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.cta .btn { padding: 17px 32px; }

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

.footer {
  background: #0a2054;
  padding: 44px 24px 38px;
  color: #bccbf2;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}

.footer-links a {
  color: #dfe8ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.footer-links a:hover { color: #ffc93c; }

.footer-note {
  margin: 0;
  font-size: 13px;
  color: #7f93c8;
}

/* ---------- Legal pages (Privacy / Terms) ---------- */

.legal-top {
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(64, 116, 226, 0.55), transparent 62%),
    radial-gradient(900px 560px at 10% 88%, rgba(56, 104, 214, 0.45), transparent 65%),
    linear-gradient(180deg, #16327f 0%, #0e2a6e 55%, #143d96 100%);
  padding-bottom: 70px;
}

.legal-hero {
  text-align: center;
  padding: 54px 20px 0;
}

.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 50px);
  letter-spacing: -0.5px;
}

.legal-hero p {
  margin: 14px 0 0;
  color: #bccbf2;
  font-size: 16px;
  font-weight: 500;
}

.legal-body {
  background: linear-gradient(180deg, #eef4fd 0%, #f6fafe 55%, #eaf2fd 100%);
  padding: 60px 24px 80px;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dde6f6;
  box-shadow: 0 18px 44px rgba(6, 18, 56, .12);
  padding: 46px 52px;
}

.legal-content h2 {
  color: #14204e;
  font-size: 21px;
  font-weight: 700;
  margin: 34px 0 10px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: #2b3a63;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-content ul {
  color: #2b3a63;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 12px;
  padding-left: 24px;
}

.legal-content a { color: #3b74d8; }

/* ---------- .brl Guide page ---------- */

.guide-toc {
  max-width: 780px;
  margin: 0 auto 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dde6f6;
  box-shadow: 0 18px 44px rgba(6, 18, 56, .12);
  padding: 30px 40px;
}

.guide-toc h2 {
  margin: 0 0 14px;
  color: #14204e;
  font-size: 19px;
  font-weight: 700;
}

.guide-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
}

.guide-toc li {
  color: #2b3a63;
  font-size: 14.5px;
  font-weight: 500;
  padding: 3px 0;
  break-inside: avoid;
}

.guide-toc a { color: #3b74d8; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-content {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dde6f6;
  box-shadow: 0 18px 44px rgba(6, 18, 56, .12);
  padding: 46px 52px;
}

.guide-content h2 {
  color: #14204e;
  font-size: 24px;
  font-weight: 800;
  margin: 44px 0 12px;
  padding-top: 10px;
}

.guide-content h2:first-child { margin-top: 0; }

.guide-content h3 {
  color: #1b2a55;
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.guide-content p, .guide-content li {
  color: #2b3a63;
  font-size: 15.5px;
  line-height: 1.7;
}

.guide-content p { margin: 0 0 12px; }
.guide-content ul, .guide-content ol { margin: 0 0 12px; padding-left: 24px; }
.guide-content li { margin-bottom: 4px; }

.guide-content code {
  background: #eef4fd;
  border: 1px solid #dde6f6;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13.5px;
  color: #2a5cb8;
}

.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14.5px;
}

.guide-content th {
  text-align: left;
  color: #14204e;
  font-weight: 700;
  padding: 10px 14px;
  background: #eef4fd;
  border-bottom: 2px solid #dde6f6;
}

.guide-content td {
  padding: 9px 14px;
  color: #2b3a63;
  border-bottom: 1px solid #eef2fa;
  vertical-align: top;
}

.guide-note {
  background: #eef4fd;
  border-left: 4px solid #3b74d8;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14.5px;
  color: #2b3a63;
}

.guide-note.warn {
  background: #fff6e0;
  border-left-color: #f0b429;
}

.guide-note strong { color: #14204e; }

.tag-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  background: #eef4fd;
  color: #2a5cb8;
  border: 1px solid #d5e2f8;
}

@media (max-width: 720px) {
  .guide-toc { padding: 24px; }
  .guide-toc ol { columns: 1; }
  .guide-content { padding: 30px 22px; }
  .guide-content table { font-size: 13px; }
}

/* ---------- Indie Writer showcase (index) ---------- */

.showcase {
  background: linear-gradient(180deg, #eef4fd 0%, #f6fafe 55%, #eaf2fd 100%);
  padding: 66px 24px 30px;
  text-align: center;
}

.showcase > .showcase-inner {
  max-width: 1020px;
  margin: 0 auto;
  text-align: left;
}

.showcase h2 {
  margin: 0 0 18px;
  color: #14204e;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  text-align: center;
}

.showcase .lead {
  max-width: 760px;
  margin: 0 auto 40px;
  color: #5a6b96;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

/* three modes */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 70px;
}

.mode {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dde6f6;
  box-shadow: 0 12px 30px rgba(6, 18, 56, .10);
  padding: 26px 26px 28px;
}

.mode .mode-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mode-write .mode-label    { background: #fff3d1; color: #a97400; }
.mode-edit .mode-label     { background: #ddf5f1; color: #0a8a80; }
.mode-publish .mode-label  { background: #e9e4ff; color: #5a49c2; }

.mode h3 {
  margin: 0 0 10px;
  color: #14204e;
  font-size: 20px;
  font-weight: 800;
}

.mode p {
  margin: 0;
  color: #2b3a63;
  font-size: 14.5px;
  line-height: 1.65;
}

/* alternating feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 auto 64px;
}

.feature-row.flip .shot { order: 2; }

.shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(6, 18, 56, .20);
  border: 1px solid #d5e2f8;
  background: #fff;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b96;
  background: #f4f8ff;
  border-top: 1px solid #e4ecfa;
}

.feature-copy h3 {
  margin: 0 0 12px;
  color: #14204e;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.feature-copy p {
  margin: 0 0 12px;
  color: #2b3a63;
  font-size: 15.5px;
  line-height: 1.7;
}

/* screenshot gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0 20px;
}

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

@media (max-width: 920px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card { max-width: 430px; width: 100%; }
  .feature-row { grid-template-columns: 1fr; gap: 22px; }
  .feature-row.flip .shot { order: 0; }
  .modes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 14px; padding: 20px 24px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 24px; margin-left: 0; }
  .btn-nav { margin-left: auto; }
  .subtitle br { display: none; }
  .final-step { font-size: 14.5px; padding: 15px 24px; }
  .nav-links { gap: 18px; }
  .legal-content { padding: 32px 24px; }
  .gallery { grid-template-columns: 1fr; }
}
