/* ==========================================================================
   Writer Cosmos — stylesheet
   ========================================================================== */

:root {
  --orange: #ef9c43;
  --orange-dark: #d98532;
  --navy: #25232d;
  --navy-light: #51436f;
  --ink: #24232b;
  --muted: #666570;
  --line: #e8e6ef;
  --bg: #ffffff;
  --bg-soft: #f6f5fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
  --container: 1180px;
}

/* WriterCosmos live-site visual language */
:root { --purple: #28244f; --lavender: #f2f3fc; --orange: #f47a44; --orange-dark:#df6535; --shadow: 0 16px 42px rgba(43, 36, 75, .09); }
body { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }
h1,h2,h3,h4 { color: #24232b; letter-spacing: -.025em; }
.topbar { background: #302b3e; }
.site-header { box-shadow: none; border-bottom: 1px solid rgba(40,35,55,.06); }
.site-header .container { min-height: 82px; }
.logo { font-size: 1.45rem; }
.logo:first-letter { color: #ef9c43; }
.nav-links { gap: 22px; }
.nav-links a { font-weight: 600; }
.hero { padding: 72px 0 78px; background: #f7f6fb; }
.hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); max-width: 1180px; gap:42px; align-items:center; }
.hero h1 { max-width: 820px; font-size: clamp(2.65rem, 5.2vw, 4.5rem); line-height: 1.06; }
.hero h1 span { color: var(--purple); }
.hero-lead { max-width: 820px; font-size: 1.12rem; line-height: 1.8; }
.section-tag { color: #4c3d87; background: var(--lavender); letter-spacing: .035em; }
.hero .section-tag { font-size: .8rem; }
.hero-promise { max-width: 800px; padding: 18px 20px; margin: 22px 0 0; border: 1px solid #e7e2f2; border-radius: 14px; background: #fff; color: #393640; }
.btn { border-radius: 9px; }
.btn-primary { background:linear-gradient(100deg,#f47a48,#f7ad42); border:0; }
.btn-primary:hover { background:linear-gradient(100deg,#df6637,#e99a32); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); }
.link-arrow { color: var(--purple); }
.distribution { background: #282432; }
.distribution h2,.distribution p { color: #fff; }
.platform { border-radius: 999px; }
.platform.active { background: var(--purple); border-color: var(--purple); }
.service,.card,.package,.process-card,.member,.testimonial,.resource-card { border-radius: 16px; }
.service { box-shadow: 0 5px 22px rgba(43,36,75,.04); border-color: transparent; }
.card-icon { background: var(--lavender); color: var(--purple); }
.stats { background: #2b2735; }
.stats h2,.stats .stat { color: #fff; }
.stats .section-tag { color: #f4b56b; background: rgba(255,255,255,.1); }
.package.featured { border-color: var(--purple); }
.badge { background: var(--purple); }
.cover-band { background: #f0edf8; }
.team { background: #f7f6fb; }
.testimonials { background: #f8f7fb; }
.final-cta { background: #2b2735; text-align: center; }
.final-cta h2,.final-cta p { color: white; }
.contact-details { display:flex; flex-wrap:wrap; gap: 12px 24px; justify-content:center; margin: 18px 0 28px; color:#fff; }
.contact-form { max-width: 720px; margin: 0 auto; text-align:left; color:var(--ink); }
.contact-form h3 { color:var(--ink); }
.resources { background: #fff; }
.resource-grid { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.resource-card { padding:30px; background:#f7f6fb; }
.resource-card a { color:var(--purple); font-weight:600; }
.resource-card ul { padding-left:20px; }
.timeline-extra { margin-top: 0; }
.site-footer { background:#221f29; }
.site-footer .logo span { color:#d7ccff; }
.site-footer h4 { color:#fff; }
@media (max-width: 860px) {
  .topbar { display:none; }
  .site-header .container { min-height:76px; }
  .hero { padding: 42px 0 50px; }
  .hero-grid { gap: 26px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3rem); }
  .resource-grid { grid-template-columns:1fr; }
}

.hero { background:#f4f5fd; padding:58px 0 64px; }
.hero h1 { font-size:clamp(2.5rem,4.2vw,3.8rem); line-height:1.08; }
.hero-lead { max-width:680px; font-size:1.05rem; line-height:1.65; }
.hero-promise { position:relative; padding:18px 20px 18px 50px; border-color:#e8e8f1; text-align:left; font-weight:600; }
.hero-reviews { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:24px 0 18px; color:#38384a; font-size:1.2rem; font-weight:800; }
.hero-reviews span:first-child { color:#4285f4; }
.hero-reviews span:nth-child(2) { color:#1f6041; }
.hero-reviews small { display:inline; font-size:.68rem; color:#6b6b76; }
.hero-actions { gap:10px; margin:18px 0 0; }
.hero-actions .btn { border-radius:999px; min-height:52px; }
.btn-dark { background:#26234c; color:#fff; }
.btn-dark:hover { background:#171532; }
.quote-form.hero-quote { border:0; border-radius:24px; padding:26px; box-shadow:0 18px 55px rgba(38,35,76,.15); background:linear-gradient(145deg,#f6b646,#f27848 75%); }
.quote-heading { position:relative; padding-right:48px; margin-bottom:16px; }
.quote-heading .section-tag { background:transparent; color:#fff; padding:0; margin-bottom:4px; }
.quote-heading h2 { color:#fff; font-size:1.45rem; margin:0; }
.quote-mark { position:absolute; top:8px; right:2px; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#ed7847; background:#fff; }
.hero-quote form { display:grid; gap:7px; }
.hero-quote label { margin-top:5px; color:#342d3b; font-size:.76rem; font-weight:750; text-transform:uppercase; letter-spacing:.045em; }
.hero-quote .field { width:100%; min-height:42px; padding:10px 12px; margin:0; border:1px solid #e5e1e5; border-radius:8px; background:white; font:500 .84rem Inter,Arial,sans-serif; }
.hero-quote button { width:100%; justify-content:center; margin-top:8px; background:#29234f; color:white; font-size:.88rem; }
.hero-quote button:hover { background:#171532; }
.hero-quote .form-note { margin:8px 0 0; color:#403840; font-size:.73rem; line-height:1.45; }
@media(max-width:860px) { .hero-grid { grid-template-columns:1fr; } .hero-quote { order:2; } .hero-copy { order:1; } }
@media (max-width:640px) {
  .hero-actions { gap:10px; }
  .hero-promise { padding:14px; font-size:.92rem; }
  .section-head { text-align:left; margin-bottom:30px; }
  .contact-details { flex-direction:column; }
}

/* Secondary routes, author tools, and full sitemap */
.page-hero { padding: 55px 0 65px; background:#f7f6fb; }
.page-hero h1 { max-width:900px; font-size:clamp(2.4rem,5vw,4rem); line-height:1.08; }
.breadcrumbs { display:flex; gap:10px; align-items:center; margin:0 0 36px; color:var(--muted); font-size:.9rem; }
.breadcrumbs a { color:var(--purple); font-weight:600; }
.page-tagline { max-width:760px; font-size:1.35rem; font-weight:650; color:#393641; }
.page-intro { max-width:780px; font-size:1.06rem; line-height:1.8; }
.page-columns { display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; }
.page-checks { list-style:none; padding:0; margin:24px 0 0; }
.page-checks li { position:relative; padding:12px 12px 12px 38px; border-bottom:1px solid var(--line); color:#474550; }
.page-checks li:before { content:"✓"; position:absolute; left:5px; color:var(--purple); font-weight:800; }
.page-aside { padding:34px; border-radius:18px; background:#f7f6fb; }
.page-aside p { margin-bottom:22px; }
.page-faq { background:#f8f7fb; }
.tool-panel { background:#f8f7fb; }
.tool-card { width:min(100%,760px); margin:auto; padding:34px; border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.tool-controls { display:grid; gap:10px; }
.tool-controls label { margin-top:8px; font-weight:650; color:var(--ink); }
.tool-output { min-height:50px; white-space:pre-line; padding:18px; margin-top:20px; background:#f7f6fb; border-radius:12px; color:#34313c; }
.site-footer .footer-grid { grid-template-columns:1.3fr repeat(3,1fr); }
.site-footer .footer-grid > div:has(h4) { min-width:0; }
.site-footer .footer-grid > div:nth-child(n+5) { padding-top:20px; }
.site-footer .footer-grid ul { list-style:none; padding:0; }
.site-footer .footer-grid li { margin:5px 0; }
.site-footer .footer-grid a { overflow-wrap:anywhere; }
.home-sitemap { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; padding:26px 0; border-top:1px solid rgba(255,255,255,.14); }
.home-sitemap h4 { color:white; font-size:.96rem; margin-bottom:10px; }
.home-sitemap a { display:block; color:#c5c2cb; font-size:.88rem; margin:6px 0; }
.home-sitemap a:hover { color:white; }
.trustpilot-panel { margin-top:36px; padding:28px; border:1px solid #e7e4ef; border-radius:18px; background:#fff; }
.trustpilot-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:22px; }
.trustpilot-heading h3 { margin:0 0 5px; }
.trustpilot-heading p { margin:0; color:#55515e; }
.trustpilot-heading p strong { color:#24232b; }
.trustpilot-quotes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.trustpilot-quotes article { padding:18px; border-radius:13px; background:#f6f5fa; }
.trustpilot-stars { color:#00a878; letter-spacing:2px; font-size:1.1rem; }
.trustpilot-quotes blockquote { margin:10px 0; font-weight:650; color:#302e37; }
.trustpilot-quotes p { margin:0; font-size:.86rem; }
@media(max-width:700px) { .trustpilot-heading { align-items:flex-start; flex-direction:column; } .trustpilot-quotes { grid-template-columns:1fr; } }
.primary-nav { display:flex; align-items:center; gap:clamp(8px,1.15vw,20px); }
.nav-mega { position:relative; }
.nav-trigger { display:inline-flex; align-items:center; gap:5px; padding:12px 2px; border:0; background:none; color:#292735; font:600 .82rem/1.2 Inter,Arial,sans-serif; text-decoration:none; white-space:nowrap; cursor:pointer; }
.nav-trigger:hover,.nav-trigger:focus-visible { color:var(--purple); }
.mega-panel { position:absolute; z-index:80; top:100%; left:0; display:none; width:max-content; max-width:min(100vw - 32px,940px); padding:24px 28px; gap:30px; grid-template-columns:repeat(3,minmax(160px,1fr)); background:white; border:1px solid #eeeaf5; border-radius:0 0 16px 16px; box-shadow:0 18px 44px rgba(35,29,57,.14); }
.nav-mega:hover .mega-panel,.nav-mega:focus-within .mega-panel,.nav-mega.open .mega-panel { display:grid; }
.mega-column { display:flex; flex-direction:column; gap:8px; min-width:160px; }
.mega-column h3 { margin:0 0 6px; font-size:.9rem; color:#6552b5; }
.mega-column a { color:#494650; font-size:.84rem; line-height:1.35; text-decoration:none; }
.mega-column a:hover { color:#6552b5; }
.nav-single { padding-inline:0; }
.primary-nav .nav-mega:nth-last-child(2) .mega-panel { grid-template-columns:1fr; }
.primary-nav .nav-mega:nth-last-child(3) .mega-panel { grid-template-columns:1fr; }
@media(max-width:1120px) { .primary-nav { gap:7px; } .nav-trigger { font-size:.72rem; } .logo { font-size:1.2rem; } .site-header .container { gap:12px; } }
@media(max-width:860px) {
  .site-header .container { flex-wrap:wrap; }
  .menu-toggle { display:block; }
  .primary-nav { display:none; order:3; width:100%; align-items:stretch; flex-direction:column; padding:4px 0 18px; gap:0; }
  .site-header.open .primary-nav { display:flex; }
  .nav-trigger { width:100%; justify-content:space-between; padding:13px 4px; border-bottom:1px solid #eeeaf5; font-size:.92rem; }
  .mega-panel { position:static; width:100%; max-width:none; grid-template-columns:1fr 1fr!important; padding:14px 16px; border-radius:12px; box-shadow:none; }
  .nav-mega:hover .mega-panel { display:none; }
  .nav-mega.open .mega-panel,.nav-mega:focus-within .mega-panel { display:grid; }
}
@media(max-width:860px) { .page-columns { grid-template-columns:1fr; } .site-footer .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .tool-card,.page-aside { padding:22px; } .site-footer .footer-grid { grid-template-columns:1fr; } .home-sitemap { grid-template-columns:repeat(2,minmax(0,1fr)); } }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

section {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(242, 107, 29, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head p {
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.link-arrow {
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
}

.link-arrow::after {
  content: "→";
}

/* ---------- Top bar & header ---------- */

.topbar {
  background: var(--navy);
  color: #d7deee;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 6px;
}

.topbar a:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 31, 61, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(242, 107, 29, 0.08), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 span {
  color: var(--orange);
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}

.ratings {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.rating {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.rating strong {
  font-size: 1.15rem;
  color: var(--navy);
}

.stars {
  color: #f5a524;
  letter-spacing: 2px;
}

.quote-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border-top: 5px solid var(--orange);
}

.quote-form h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.quote-form > p {
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #d5dae5;
  border-radius: 8px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: #fff;
}

.field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.15);
}

textarea.field {
  resize: vertical;
  min-height: 80px;
}

.quote-form .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.75rem;
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- Trust bar ---------- */

.trust {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.trust-item small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.dot-g {
  background: #4285f4;
}

.dot-c {
  background: #1d3f8f;
}

/* ---------- Distribution strip ---------- */

.distribution {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.distribution h2 {
  color: #fff;
}

.distribution p {
  color: #c9d3ea;
  max-width: 760px;
  margin: 0 auto 30px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.platform {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.platform.active {
  background: var(--orange);
  border-color: var(--orange);
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 36px;
  counter-reset: svc;
}

.service {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-num {
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.service h3 {
  margin-bottom: 6px;
}

.service p {
  margin: 0;
  font-size: 0.93rem;
}

/* ---------- Specialists ---------- */

.specialists {
  background: var(--bg-soft);
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(242, 107, 29, 0.12);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card p {
  font-size: 0.93rem;
  flex-grow: 1;
}

.card .link-arrow {
  margin-top: 8px;
}

/* ---------- Why choose (happy authors / stats) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.check-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.check-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.visual-panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow);
}

.visual-panel h3 {
  color: #fff;
  font-size: 1.5rem;
}

.visual-panel p {
  color: #c9d3ea;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
}

.mini-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1.1;
}

.mini-stat span {
  font-size: 0.85rem;
  color: #c9d3ea;
}

/* ---------- Award banner ---------- */

.award {
  background: linear-gradient(90deg, #f7812e, var(--orange-dark));
  color: #fff;
  padding: 26px 0;
}

.award .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.award h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin: 0;
}

.award .btn-light {
  color: var(--orange-dark);
}

/* ---------- Process ("From first draft") ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--orange);
}

.process-card .step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.process-card li {
  margin-bottom: 4px;
}

.center-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Portfolio ---------- */

.portfolio {
  background: var(--bg-soft);
}

.covers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.cover {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 31, 61, 0.18);
  transition: transform 0.25s ease;
  font-family: Georgia, "Times New Roman", serif;
}

.cover:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.cover-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.cover-author {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.cover:nth-child(1) { background: linear-gradient(160deg, #3b2f5b, #151026); }
.cover:nth-child(2) { background: linear-gradient(160deg, #f0c24b, #b5761b); color: var(--navy); }
.cover:nth-child(3) { background: linear-gradient(160deg, #2c6e62, #0e3530); }
.cover:nth-child(4) { background: linear-gradient(160deg, #b4253b, #5b0f1b); }
.cover:nth-child(5) { background: linear-gradient(160deg, #e9e4d6, #a9a08a); color: var(--navy); }
.cover:nth-child(6) { background: linear-gradient(160deg, #1f4e89, #0b2140); }

/* ---------- Stats ("Your story, masterfully told") ---------- */

.stats {
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  padding: 30px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
}

.stat span {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Pricing / packages ---------- */

.packages {
  background: var(--bg-soft);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.package {
  background: #fff;
  border-radius: 16px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
}

.package.featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.package h3 {
  font-size: 1.4rem;
}

.package .price {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.package .price strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
}

.package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex-grow: 1;
}

.package li {
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
  position: relative;
}

.package li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.package .btn {
  justify-content: center;
}

/* ---------- Self-publishing ---------- */

.self-pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature-item .card-icon {
  margin: 0;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.feature-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Cover band (navy) ---------- */

.cover-band {
  background: var(--navy);
  color: #fff;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cover-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 107, 29, 0.25), transparent 70%);
  top: -200px;
  right: -120px;
}

.cover-band h2 {
  color: #fff;
  position: relative;
}

.cover-band p {
  color: #c9d3ea;
  max-width: 680px;
  margin: 0 auto 30px;
  position: relative;
}

.cover-band .hero-actions {
  justify-content: center;
  position: relative;
}

/* ---------- Path (idea to published author) ---------- */

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 28px;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.timeline h3 {
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  font-size: 0.95rem;
}

.path-visual {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
}

.path-visual .big {
  font-size: 5rem;
  line-height: 1;
}

.path-visual h3 {
  font-size: 1.5rem;
}

/* ---------- Team ---------- */

.team {
  background: var(--bg-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.avatar {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}

.member:nth-child(2) .avatar { background: linear-gradient(135deg, #f7a35c, var(--orange-dark)); }
.member:nth-child(3) .avatar { background: linear-gradient(135deg, #5a7fbf, #1d3564); }
.member:nth-child(4) .avatar { background: linear-gradient(135deg, #d98aa6, #8a3c5d); }

.member-body {
  padding: 20px 20px 24px;
}

.member-body h3 {
  margin-bottom: 2px;
}

.member-body small {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
}

.member-body p {
  font-size: 0.9rem;
  margin: 10px 0 0;
}

/* ---------- Why choose (4 pillars) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.pillar .card-icon {
  margin: 0 auto 16px;
}

.pillar p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--bg-soft);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.testimonial .stars {
  margin-bottom: 12px;
  font-size: 1rem;
}

.testimonial blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-style: italic;
  font-size: 0.97rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.author small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- FAQ ---------- */

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.95rem;
}

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

.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: #c9d3ea;
  max-width: 640px;
  margin: 0 auto 30px;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

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

.site-footer {
  background: #0a1730;
  color: #aeb8cf;
  padding: 60px 0 24px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer .logo {
  color: #fff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

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

@media (max-width: 1024px) {
  .cards-4,
  .team-grid,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .covers {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  section {
    padding: 60px 0;
  }

  .hero-grid,
  .why-grid,
  .self-pub-grid,
  .path-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .packages-grid,
  .process-grid,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px 22px;
    gap: 14px;
    box-shadow: 0 14px 20px rgba(15, 31, 61, 0.08);
  }

  .site-header.open .nav-cta .btn-outline {
    display: inline-flex;
  }

  .award .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .cards-4,
  .team-grid,
  .pillars,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .covers {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    justify-content: center;
    text-align: center;
  }

  .trust-item {
    flex-direction: column;
  }

  .services-grid {
    gap: 14px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }
}

/* Source homepage hero and NDA intake form */
.hero { background:#f3f4fc; padding:58px 0 64px; }
.hero-grid { grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr); max-width:1180px; gap:42px; align-items:center; }
.hero h1 { font-size:clamp(2.5rem,4.2vw,3.8rem); line-height:1.08; }
.hero-lead { max-width:680px; font-size:1.05rem; line-height:1.65; }
.hero-promise { position:relative; padding:18px 20px 18px 50px; border-color:#e8e8f1; text-align:left; font-weight:600; }
.hero-reviews { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:24px 0 18px; color:#38384a; font-size:1.2rem; font-weight:800; }
.hero-reviews span:first-child { color:#4285f4; }
.hero-reviews span:nth-child(2) { color:#1f6041; }
.hero-reviews small { display:inline; font-size:.68rem; color:#6b6b76; }
.hero-actions { gap:10px; margin:18px 0 0; }
.hero-actions .btn { border-radius:999px; min-height:52px; }
.btn-primary { background:linear-gradient(100deg,#f47a48,#f7ad42); }
.btn-primary:hover { background:linear-gradient(100deg,#df6637,#e99a32); }
.btn-dark { background:#26234c; color:#fff; }
.btn-dark:hover { background:#171532; }
.quote-form.hero-quote { border:0; border-radius:24px; padding:26px; box-shadow:0 18px 55px rgba(38,35,76,.15); background:linear-gradient(145deg,#f6b646,#f27848); }
.quote-heading { position:relative; padding-right:48px; margin-bottom:16px; }
.quote-heading .section-tag { background:transparent; color:#fff; padding:0; margin-bottom:4px; }
.quote-heading h2 { color:#fff; font-size:1.45rem; margin:0; }
.quote-mark { position:absolute; top:8px; right:2px; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#ed7847; background:#fff; }
.hero-quote form { display:grid; gap:7px; }
.hero-quote label { margin-top:5px; color:#342d3b; font-size:.76rem; font-weight:750; text-transform:uppercase; letter-spacing:.045em; }
.hero-quote .field { width:100%; min-height:42px; padding:10px 12px; margin:0; border:1px solid #e5e1e5; border-radius:8px; background:white; font:500 .84rem Inter,Arial,sans-serif; }
.hero-quote button { width:100%; justify-content:center; margin-top:8px; background:#29234f; color:white; font-size:.88rem; }
.hero-quote button:hover { background:#171532; }
.hero-quote .form-note { margin:8px 0 0; color:#403840; font-size:.73rem; line-height:1.45; }
@media(max-width:860px) { .hero { padding:42px 0 50px; } .hero-grid { grid-template-columns:1fr; gap:26px; } .hero-quote { order:2; } .hero-copy { order:1; } }

/* QA fixes: header wrapping + oversized team tiles on small screens */
.nav-cta .btn { white-space:nowrap; }
@media(max-width:1100px) {
  .site-header .container { flex-wrap:wrap; }
  .nav-cta { margin-left:auto; }
  .menu-toggle { display:block; }
  .primary-nav { display:none; order:3; width:100%; align-items:stretch; flex-direction:column; padding:4px 0 18px; gap:0; }
  .site-header.open .primary-nav { display:flex; }
  .nav-trigger { width:100%; justify-content:space-between; padding:13px 4px; border-bottom:1px solid #eeeaf5; font-size:.92rem; }
  .mega-panel { position:static; width:100%; max-width:none; grid-template-columns:1fr 1fr!important; padding:14px 16px; border-radius:12px; box-shadow:none; }
  .nav-mega:hover .mega-panel { display:none; }
  .nav-mega.open .mega-panel,.nav-mega:focus-within .mega-panel { display:grid; }
}
@media(max-width:480px) {
  .logo { font-size:1.15rem; }
  .nav-cta { gap:4px; }
  .nav-cta .btn-small { padding:9px 12px; font-size:.78rem; }
  .avatar { aspect-ratio:auto; height:120px; font-size:2.2rem; }
}

/* Header: never wrap logo or CTA; nav absorbs the squeeze */
.site-header .container { flex-wrap:nowrap; }
.logo { white-space:nowrap; flex-shrink:0; }
.nav-cta { flex-shrink:0; }
.nav-cta .btn { white-space:nowrap; padding-inline:18px; }
.primary-nav { flex:1 1 auto; min-width:0; justify-content:center; }
.nav-trigger { white-space:nowrap; }
@media(max-width:1100px) { .site-header .container { flex-wrap:wrap; } }

/* Generated pages: 4 process cards sit in one row; testimonials Trustpilot panel stays inside the container */
.process-grid.four { grid-template-columns:repeat(4,1fr); }
@media(max-width:1100px) { .process-grid.four { grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px) { .process-grid.four { grid-template-columns:1fr; } }
section.container.trustpilot-panel { margin-top:36px; margin-bottom:36px; }
