/* ==========================================================================
   Richard Krolikowski — Portfolio Site
   Light theme, monday.com-inspired: white/light bg, dark text,
   bold rounded buttons, playful multi-color accents.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --card: #ffffff;
  --border: #e6e9f0;
  --text: #323338;
  --text-dim: #676879;
  --text-faint: #9699a6;

  --accent: #ff3d57;        /* coral red — primary CTA / links */
  --accent-dark: #e12e47;   /* hover state for coral */
  --accent-purple: #6161ff; /* secondary accent */
  --accent-green: #00ca72;  /* tertiary accent */
  --accent-orange: #fdab3d; /* quaternary accent */

  --serif: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif; /* heading font */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(50, 51, 56, 0.06);
  --shadow-hover: 0 10px 30px rgba(50, 51, 56, 0.1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap.narrow { max-width: 760px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: #17181c;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; color: var(--text); font-weight: 600; }

p { color: var(--text-dim); margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-intro { font-size: 1.05rem; max-width: 620px; }
.section-close { font-style: italic; color: var(--text); margin-top: 28px; }
.section-close.no-italic { font-style: normal; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 61, 87, 0.28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #17181c;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text-dim); font-size: 0.92rem; font-weight: 600; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 61, 87, 0.28);
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* ---- Hero ---- */
.hero { padding: 110px 0 90px; background: linear-gradient(180deg, #fff5f6 0%, #ffffff 60%); }
.hero-inner { max-width: 800px; }
.hero-sub { font-size: 1.15rem; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---- Marquee ---- */
.marquee-section { padding: 30px 0 70px; }
.marquee-label {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
  font-weight: 600;
}
.marquee-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 34s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 140px;
  padding: 0 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0.9;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.logo-chip:hover { opacity: 1; box-shadow: var(--shadow); }
.logo-chip img { height: 26px; width: auto; max-width: 120px; object-fit: contain; }
.logo-chip.logo-dark { background: #14161c; border-color: #14161c; }
.logo-chip.logo-square { min-width: 56px; padding: 8px; border-radius: 14px; overflow: hidden; }
.logo-chip.logo-square img { height: 40px; width: 40px; max-width: none; border-radius: 8px; }
.logo-text-chip {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dim);
  white-space: nowrap;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 22px;
  height: 56px;
  display: flex;
  align-items: center;
}

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sub-h { margin-top: 56px; font-size: 1.15rem; color: var(--text); }

/* ---- Problem list ---- */
.check-list { list-style: none; padding: 0; margin: 32px 0; }
.check-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Advantage table ---- */
.table-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.advantage-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.advantage-table th, .advantage-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.advantage-table th { font-family: var(--serif); font-weight: 700; color: #17181c; background: var(--bg-alt); }
.advantage-table td:first-child { color: var(--text-faint); font-weight: 700; white-space: nowrap; }
.advantage-table td:nth-child(2) { color: var(--text-dim); }
.advantage-table td:nth-child(3) { color: var(--text); font-weight: 600; background: #fff5f6; }
.advantage-table th:nth-child(3) { background: #ffe4e8; color: var(--accent-dark); }
.advantage-table tr:last-child td { border-bottom: none; }

/* ---- Pillars ---- */
.pillar-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.pillar-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.pillar-card:nth-child(1) .pillar-num { background: var(--accent); }
.pillar-card:nth-child(2) .pillar-num { background: var(--accent-purple); }
.pillar-card:nth-child(3) .pillar-num { background: var(--accent-green); }
.pillar-card:nth-child(4) .pillar-num { background: var(--accent-orange); }
.pillar-card:nth-child(5) .pillar-num { background: #0073ea; }
.pillar-card h3 { margin-top: 14px; font-size: 1.15rem; }
.pillar-card p { font-size: 0.92rem; margin: 0; }

/* ---- Stat grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 56px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}
.stat-num { font-family: var(--serif); font-weight: 800; font-size: 2.1rem; color: var(--accent-purple); }
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ---- Company proof ---- */
.company-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.company-proof-card { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; }
.company-proof-card h4 { margin-bottom: 6px; }
.company-proof-card p { font-size: 0.95rem; margin: 0; }
.company-proof-card strong { color: #17181c; }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.testimonial {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.testimonial p { font-size: 0.98rem; color: var(--text); margin-bottom: 14px; }
.testimonial cite { font-style: normal; font-size: 0.85rem; color: var(--text-faint); }

/* ---- Press (5 items, wraps 3 + 2 centered) ---- */
.press-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.press-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex: 0 1 calc(33.333% - 11px);
  min-width: 240px;
  cursor: pointer;
}
.press-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #fff8f9;
}
.press-source { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.press-title { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.press-cta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.press-card:hover .press-cta { color: var(--accent-dark); }

/* ---- Industries (own block, 5 items, wraps 3 + 2 centered) ---- */
.industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; margin-bottom: 56px; }
.industry-card {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: #17181c;
}
.industry-card:nth-child(1) { border-top: 3px solid var(--accent); }
.industry-card:nth-child(2) { border-top: 3px solid var(--accent-purple); }
.industry-card:nth-child(3) { border-top: 3px solid var(--accent-green); }
.industry-card:nth-child(4) { border-top: 3px solid var(--accent-orange); }
.industry-card:nth-child(5) { border-top: 3px solid var(--accent); }

/* ---- Detail grid (platforms/channels) ---- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.detail-col h4 { color: var(--accent-purple); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; font-family: var(--sans); font-weight: 700; }
.detail-col p { font-size: 0.9rem; }

/* ---- How I Work ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.step-num { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--accent); }
.step h3 { margin-top: 10px; }
.step p { font-size: 0.95rem; }

/* ---- Pricing / services ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* eyebrow, title, desc, 10 feature rows, terms, CTA — shared across cards so rows align */
  grid-template-rows: auto auto auto repeat(10, auto) auto auto;
  column-gap: 24px;
  row-gap: 0;
  margin-top: 44px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: grid;
  grid-row: span 15;
  grid-template-rows: subgrid;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 10px 30px rgba(255, 61, 87, 0.15); position: relative; }
.price-eyebrow { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.price-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.price-desc { font-size: 0.92rem; margin-bottom: 16px; }
.price-list { display: contents; list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex;
  align-items: center;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
}
.price-list li:first-child { border-top: 1px solid var(--border); }
.price-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-green); font-weight: 800; }
.price-list li.off { color: var(--text-faint); opacity: 0.55; }
.price-list li.off::before { content: "\2013"; color: var(--text-faint); font-weight: 700; }
.price-terms { font-style: italic; font-size: 0.82rem; color: var(--text-faint); margin-top: 16px; align-self: start; }
.price-cta { font-weight: 700; margin-top: 10px; align-self: end; }
.price-note { text-align: center; color: var(--text-faint); font-size: 0.82rem; margin-top: 8px; }

/* ---- About ---- */
.wrap.about-grid { max-width: 1000px; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.about-grid p { font-size: 1.02rem; }
@media (max-width: 800px) {
  .wrap.about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
}

/* ---- Contact ---- */
.contact-form { margin: 32px auto 0; max-width: 560px; text-align: center; }
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.form-row label { font-size: 0.88rem; color: var(--text-dim); font-weight: 600; text-align: left; }
.form-row input, .form-row textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: left;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 61, 87, 0.12); }
.contact-form .btn { display: inline-block; }
.form-status { margin-top: 16px; color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; min-height: 1.2em; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner p { margin: 0; font-size: 0.85rem; color: var(--text-faint); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
  .price-card { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .price-list { display: block; margin: 0 0 16px; }
  .price-list li.off { display: none; }
  .price-terms { margin-top: auto; }
  .company-proof, .testimonial-grid { grid-template-columns: 1fr; }
  .press-card, .industry-card { flex: 0 1 calc(50% - 8px); }
  .pillar-card { flex: 0 1 calc(50% - 12px); }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .steps, .stat-grid { grid-template-columns: 1fr; }
  .press-card, .industry-card, .pillar-card { flex: 0 1 100%; }
  .wrap { padding: 0 20px; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
}
