:root {
  --purple: #6733e2;
  --purple-dark: #5424c9;
  --purple-soft: #f3efff;
  --yellow: #f8dd28;
  --yellow-soft: #fff6b8;
  --green: #61ce70;
  --green-dark: #46b357;
  --ink: #4b4f58;
  --dark: #333333;
  --muted: #6b6f78;
  --line: #e7e3f1;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(45, 20, 100, 0.1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.site-nav,
.plan h3,
.contact-card h2,
.page-kicker {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  color: var(--purple);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--purple);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--purple);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #f0edf7;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 282px;
  max-width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--purple);
}

.site-nav .nav-search {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: "";
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-yellow {
  background: var(--yellow);
  color: var(--purple);
}

.btn-yellow:hover {
  background: #ffe94f;
  color: var(--purple-dark);
}

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

.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
}

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

.btn-purple:hover {
  background: var(--purple-dark);
  color: #fff;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  background: #fff url("../img/hero-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 56px 0 72px;
}

.hero-copy {
  max-width: 520px;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-kicker {
  max-width: 370px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.hero .btn {
  margin: 6px 0 22px;
}

.hero-note {
  max-width: 360px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: min(100%, 560px);
  filter: drop-shadow(0 18px 30px rgba(35, 10, 90, 0.12));
}

/* Generic sections */
.section {
  padding: 82px 0;
}

.section-tight {
  padding: 64px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
}

.split-copy h2 {
  margin-top: 0;
}

.lead {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.55;
  color: #333;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* Pricing */
.pricing-section {
  padding: 78px 0 88px;
  background: var(--purple);
  color: #fff;
}

.pricing-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 38px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 22px 26px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.plan-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple);
}

.plan-icon svg {
  width: 28px;
  height: 28px;
}

.plan h3 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-price {
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.95;
  color: #4b4f58;
}

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

/* Why */
.why-section {
  padding: 82px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 62px;
  align-items: center;
}

.why-copy p {
  margin: 0 0 1em;
}

.why-media img {
  width: 100%;
  border-radius: var(--radius);
}

/* FAQ */
.faq-section {
  padding: 72px 0 82px;
  background: var(--purple);
  color: #fff;
}

.faq-section h3 {
  margin: 0 0 8px;
  color: #fff;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.faq-section h2 {
  margin: 0 0 32px;
  color: #fff;
  text-align: center;
}

.faq-list {
  width: min(900px, 100%);
  margin-inline: auto;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--purple);
}

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

.faq-answer {
  padding: 0 26px 22px;
  color: #3f3f46;
  font-size: 0.97rem;
}

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

/* Contact band */
.contact-band {
  padding: 66px 0;
  background: var(--yellow);
  color: #2f2f33;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #333;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: #222;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-note {
  max-width: 760px;
  margin: 30px auto 0;
  font-size: 0.9rem;
}

/* About */
.about-section {
  padding: 72px 0;
  text-align: center;
}

.about-inner {
  max-width: 820px;
  margin-inline: auto;
}

.about-logo {
  width: 220px;
  margin: 22px auto 0;
}

/* Page hero */
.page-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--purple), #8a61ff);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-kicker {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: #fff;
}

/* Blog cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 20, 100, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

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

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.post-card .category {
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.post-card h2 a {
  color: var(--purple);
  text-decoration: none;
}

.post-card p {
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.post-card .read-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Post */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.post-body {
  max-width: 780px;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.8;
}

.post-body h2 {
  margin: 2rem 0 0.6rem;
  color: var(--purple);
  font-size: 1.7rem;
}

.post-body h3 {
  margin: 1.7rem 0 0.55rem;
  color: #333;
  font-size: 1.32rem;
}

.post-body p {
  margin: 0 0 1.05em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.post-body a {
  color: var(--purple);
  text-decoration: underline;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 14px 22px;
  border-left: 4px solid var(--yellow);
  background: var(--purple-soft);
  color: #333;
}

.featured-image {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 10px;
}

.sidebar {
  position: sticky;
  top: 24px;
}

.widget {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 9px;
  background: var(--purple-soft);
}

.widget h2 {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.widget li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

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

.widget a {
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  min-width: 0;
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfc8e3;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(103, 51, 226, 0.15);
  border-color: var(--purple);
}

.search-form button {
  flex: 0 0 auto;
  padding-inline: 16px;
}

/* Category page */
.post-list {
  display: grid;
  gap: 24px;
}

.post-list-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.post-list-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.post-list-item h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.post-list-item h2 a {
  color: var(--purple);
  text-decoration: none;
}

/* Prose / refund / about */
.prose {
  max-width: 820px;
  color: #333;
  font-size: 1.03rem;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.prose p {
  margin: 0 0 1.1em;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.info-block {
  margin-bottom: 26px;
}

.info-block h2 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form {
  padding: 28px;
  border-radius: 10px;
  background: var(--purple-soft);
}

.contact-form h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status {
  margin-top: 12px;
  color: var(--purple);
  font-weight: 600;
}

/* Search page */
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 34px;
}

.search-results {
  max-width: 850px;
  margin-inline: auto;
}

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

.result h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.result h2 a {
  color: var(--purple);
  text-decoration: none;
}

.result .result-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #cfc8e3;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 30px 0;
  background: var(--dark);
  color: #ccc;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.85rem;
}

.footer-nav a {
  color: #ddd;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.copyright {
  margin: 10px 0 0;
  color: #999;
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 48px 0 60px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .hero-art img {
    max-width: 520px;
  }

  .split,
  .why-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-media {
    order: -1;
  }

  .why-media {
    order: -1;
  }

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

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

  .post-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 82px;
  }

  .brand img {
    width: 220px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(45, 20, 100, 0.08);
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f3f0f8;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .hero {
    background: linear-gradient(135deg, var(--purple), #8a61ff);
  }

  .hero h1,
  .hero-kicker,
  .hero-note {
    color: #fff;
  }

  .hero-kicker,
  .hero-note {
    color: rgba(255, 255, 255, 0.88);
  }

  .hero .btn {
    background: var(--yellow);
    color: var(--purple);
  }

  .hero-art img {
    max-width: 430px;
  }

  .pricing-grid,
  .post-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .post-list-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 44px 0;
  }
}

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

  .brand img {
    width: 190px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section,
  .why-section {
    padding: 58px 0;
  }

  .pricing-section,
  .faq-section {
    padding: 58px 0;
  }

  .faq-item summary {
    padding: 17px 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .contact-form {
    padding: 22px;
  }
}
