/* WhatSofts — Friendly Professional Theme */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #dbeafe;
  --teal:        #0d9488;
  --teal-light:  #ccfbf1;
  --orange:      #f59e0b;
  --orange-light:#fef3c7;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --purple:      #7c3aed;
  --purple-light:#ede9fe;
  --rose:        #e11d48;
  --rose-light:  #ffe4e6;
  --grey-50:     #f9fafb;
  --grey-100:    #f3f4f6;
  --grey-200:    #e5e7eb;
  --grey-300:    #d1d5db;
  --grey-500:    #6b7280;
  --grey-700:    #374151;
  --grey-900:    #111827;
  --white:       #ffffff;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--grey-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  color: var(--grey-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--grey-900);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--grey-900);
  margin-bottom: 1rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--grey-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Scenario Cards (Homepage) ── */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.scenario-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.scenario-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.scenario-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.scenario-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.scenario-card p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.6;
  flex: 1;
}

.scenario-card .card-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
}

.scenario-card .card-footer svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.scenario-card:hover .card-footer svg {
  transform: translateX(3px);
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--grey-500);
  font-size: 1rem;
}

/* ── Scenario Page: Hero ── */
.scenario-hero {
  padding: 3rem 0 2rem;
}

.scenario-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 1rem;
}

.scenario-hero .breadcrumb a {
  color: var(--grey-500);
}

.scenario-hero .breadcrumb a:hover {
  color: var(--blue);
}

.scenario-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.scenario-hero .subtitle {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 700px;
  line-height: 1.7;
}

/* ── Software Stack ── */
.stack-section {
  margin-bottom: 2.5rem;
}

.stack-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stack-section h2 .cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.tool-card:hover {
  box-shadow: var(--shadow);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tool-card-header .tool-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.tool-card-header .tool-info .tool-category {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-500);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--grey-700);
  line-height: 1.6;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--grey-100);
}

.price-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.price-free {
  background: var(--green-light);
  color: var(--green);
}

.price-freemium {
  background: var(--blue-light);
  color: var(--blue);
}

.price-paid {
  background: var(--orange-light);
  color: #b45309;
}

.tool-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-link svg {
  width: 14px;
  height: 14px;
}

/* ── "Why we recommend" ── */
.why-section {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.why-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.why-section p {
  color: var(--grey-700);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

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

/* ── Alternatives ── */
.alt-section {
  margin-bottom: 3rem;
}

.alt-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.alt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alt-chip {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--grey-700);
  font-weight: 500;
  transition: background 0.15s;
}

.alt-chip:hover {
  background: var(--grey-200);
  text-decoration: none;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.cta-banner .btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-banner .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--grey-200);
  padding: 2rem 0;
  text-align: center;
  color: var(--grey-500);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--grey-500);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* ── Ad slots ── */
.ad-top-banner {
  max-width: 728px;
  margin: 0 auto 2rem;
  text-align: center;
  min-height: 90px;
}

.ad-in-feed {
  margin: 1rem 0;
  grid-column: 1 / -1;
}

.ad-sticky-mobile {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  .scenario-hero h1 { font-size: 1.75rem; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr; }
  .header-nav { gap: 1rem; }

  .ad-sticky-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    padding: 0.5rem;
    text-align: center;
    z-index: 90;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .scenario-card { padding: 1.25rem; }
  .why-section { padding: 1.25rem; }
  .cta-banner { padding: 1.5rem; }
}
