:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #0f214d;
  --muted: #64748b;
  --line: #d9dee8;
  --brand: #ef4444;
  --brand-dark: #d92d2d;
  --brand-soft: #fff1f1;
  --shadow: 0 14px 40px rgba(15, 33, 77, 0.075);
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 45% 12%, #ffffff 0%, var(--bg) 62%);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.45;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

/* Main page */

.ideas-main {
  width: 100%;
}

.ideas-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 0 42px;
  text-align: center;
}

.ideas-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ideas-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}

.ideas-brand-link img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
}

.ideas-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #ffe0e0;
  color: var(--brand-dark);
  font-size: 14px;
  font-style: italic;
  transform: translateY(4px);
}

.ideas-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ideas-hero > p {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Generic section */

.ideas-section {
  max-width: 1180px;
  margin: 34px auto 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-heading h2 span {
  color: var(--brand);
}

.section-heading p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

/* Category grid */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(15, 33, 77, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 20px 50px rgba(15, 33, 77, 0.11);
}

.category-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf3;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.025);
}

.category-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.category-card p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
}

.category-link::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.category-card:hover .category-link::after {
  transform: translateX(4px);
}

/* Information panels */

.info-panel {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 34px 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 33, 77, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-panel h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.info-panel > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.info-card {
  padding: 22px;
  background: #f8fafc;
  border: 1px solid rgba(15, 33, 77, 0.07);
  border-radius: var(--radius-md);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* CTA */

.ideas-cta {
  max-width: 1180px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 34px;
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 24px;
  background: linear-gradient(90deg, #fff1f1 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}

.ideas-cta h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ideas-cta p {
  margin: 7px 0 0;
  color: var(--muted);
}

.btn-primary {
  appearance: none;
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.22);
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

/* Footer */

.footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 33, 77, 0.08);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--text);
}

.footer-copy {
  margin-top: 7px;
}

/* Individual article pages, for later */

.article-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 0 36px;
  text-align: center;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.article-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 20px;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  background: #ffffff;
  border: 1px solid rgba(15, 33, 77, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-content h2 {
  margin: 38px 0 12px;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 26px 0 8px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content a {
  color: var(--brand-dark);
  font-weight: 700;
}

/* Responsive */

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .ideas-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 100%);
    padding: 22px 0 36px;
  }

  .ideas-hero {
    padding: 12px 0 28px;
  }

  .ideas-brand {
    margin-bottom: 22px;
  }

  .ideas-brand-link {
    font-size: 21px;
  }

  .ideas-brand-link img {
    width: 38px;
    height: 38px;
  }

  .ideas-pill {
    font-size: 12px;
  }

  .ideas-hero h1 {
    font-size: 42px;
  }

  .ideas-hero > p {
    margin-top: 18px;
    font-size: 18px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    display: grid;
    grid-template-columns: 41% minmax(0, 1fr);
    border-radius: 19px;
  }

  .category-card-image {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
  }

  .category-card-body {
    padding: 17px 15px;
  }

  .category-card h2,
  .category-card h3 {
    font-size: 20px;
  }

  .category-card p {
    margin: 8px 0 14px;
    font-size: 13px;
    line-height: 1.4;
  }

  .category-link {
    font-size: 13px;
  }

  .info-panel {
    padding: 24px 19px;
    border-radius: 22px;
  }

  .info-panel h2 {
    font-size: 27px;
  }

  .info-panel > p {
    font-size: 15px;
  }

  .ideas-cta {
    padding: 23px 19px;
  }

  .ideas-cta h2 {
    font-size: 23px;
  }

  .btn-primary {
    width: 100%;
  }

  .article-content {
    padding: 23px 19px;
    border-radius: 22px;
  }

  .article-content h2 {
    font-size: 27px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .category-card {
    grid-template-columns: 40% minmax(0, 1fr);
  }

  .category-card-image {
    min-height: 175px;
  }

  .category-card-body {
    padding: 14px 12px;
  }

  .category-card p {
    font-size: 12.5px;
  }
}


/* Breadcrumb */

.ideas-breadcrumb {
  max-width: 1180px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.ideas-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.ideas-breadcrumb a:hover {
  color: var(--brand-dark);
}

/* Industry hero */

.industry-hero {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 33, 77, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.industry-hero-copy {
  max-width: 850px;
  margin: 0 auto;
  padding: 42px 32px 34px;
  text-align: center;
}

.industry-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.industry-hero h1 {
  margin: 18px auto 0;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.industry-hero-copy p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.industry-hero-image {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #e9edf3;
}

.industry-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Article */

.article-layout {
  max-width: 1180px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-intro,
.article-section {
  margin-bottom: 20px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(15, 33, 77, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-lead {
  margin-top: 0;
  color: var(--text) !important;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: -0.02em;
}

.article-intro p,
.article-section p {
  color: #475569;
  font-size: 17px;
  line-height: 1.7;
}

.article-intro p:last-child,
.article-section p:last-child {
  margin-bottom: 0;
}

.article-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
}

.article-section-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #f3d1d1;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 900;
}

.article-section h2 {
  margin: 3px 0 12px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-section h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-checklist {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.article-checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 27px;
  color: #475569;
  font-size: 16px;
  line-height: 1.5;
}

.article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

.example-box {
  margin: 22px 0;
  padding: 21px 22px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid #f6d8cc;
}

.example-label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.example-box strong {
  display: block;
  color: var(--text);
  font-size: 19px;
}

.example-box p {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.idea-mini-card {
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 33, 77, 0.07);
}

.idea-mini-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.idea-mini-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Thriftero workflow */

.article-thriftero {
  display: block;
  background: linear-gradient(135deg, #fff1f1 0%, #fff 68%);
  border-color: rgba(239, 68, 68, 0.16);
}

.article-thriftero h2 {
  margin-top: 14px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.workflow-list > div {
  padding: 16px 13px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 33, 77, 0.08);
}

.workflow-list span {
  width: 30px;
  height: 30px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.workflow-list p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

/* FAQ */

.faq-content {
  display: block;
}

.article-faq {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.article-faq:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-faq h3 {
  margin: 0 0 7px;
}

.article-faq p {
  margin: 0;
}

/* Sidebar */

.article-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 23px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15, 33, 77, 0.08);
  box-shadow: var(--shadow);
}

.sidebar-label {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-card h2 {
  margin: 8px 0 14px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 19px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-card li {
  margin-bottom: 9px;
}

.sidebar-highlight {
  background: var(--brand-soft);
  border-color: #f3d1d1;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 1;
  }

  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .industry-hero-copy {
    padding: 30px 19px 26px;
  }

  .industry-hero-copy p {
    font-size: 17px;
  }

  .industry-hero-image {
    aspect-ratio: 16 / 10;
  }

  .article-intro,
  .article-section {
    padding: 22px 19px;
    border-radius: 20px;
  }

  .article-section {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .article-section-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .article-section h2 {
    font-size: 26px;
  }

  .article-intro p,
  .article-section p {
    font-size: 16px;
  }

  .article-lead {
    font-size: 18px !important;
  }

  .idea-grid,
  .article-sidebar,
  .workflow-list {
    grid-template-columns: 1fr;
  }
}

.article-section.article-wide {
  display: block;
}
