/* bam.place theme stylesheet, loaded on the site and in the block editor. Selectors follow the
   markup WordPress prints for core blocks (wp-block-group, wp-block-button, figure > img). */

@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* the brand sheet: hue 300, saturation 100, brightness 100 / 80 / 55, greys 5 % and 10 % */
  --m100: #ff00ff;
  --m80: #cc00cc;
  --m55: #8c008c;
  --g5: #f2f2f2;
  --g10: #e6e6e6;
  --font:
    'Avenir Next', Avenir, 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* weight 300 of Avenir Next is its hairline Ultra Light; the brand's Avenir Light lives in
     the older Avenir family, so light text asks for that one first */
  --font-light:
    Avenir, 'Avenir Next', 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
figure,
.wp-block-image {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--m80);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  border-radius: 8px;
}

/* the glossy ball from the logo; --c sets its colour */
.sphere {
  display: inline-block;
  border-radius: 50%;
  background: radial-gradient(
    circle at 62% 28%,
    #ffffff 0,
    #ffc2ff 6%,
    var(--c, var(--m100)) 30%,
    color-mix(in srgb, var(--c, var(--m100)) 80%, #000000) 100%
  );
}

.field__error {
  font-size: 13px;
  color: #c62828;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root {
  --plum-900: #1c0522;
  --plum-800: #2b0834;
  --brand: #c20fc2;
  --brand-hover: #a30ca3;
  --bright: #ee4dee;
  --soft: #f3a9f3;
  --ink: #1d0b22;
  --text: #5f5463;
  --tint: #f7f2f8;
  --line: #e9e0eb;
  --radius: 22px;
}

body {
  background: #ffffff;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 28px;
}

a {
  color: var(--brand-hover);
}

/* header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--plum-900);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 15px;
}

.nav a {
  color: #d9c9dd;
  text-decoration: none;
  padding: 8px 0;
}

.nav a:hover {
  color: #ffffff;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 17px 26px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn--sm {
  font-size: 15px;
  padding: 13px 20px;
}

.btn--primary {
  background: var(--brand);
  color: #ffffff;
}

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

/* the button block: filled magenta, "btn-arrow" adds the arrow disc, the outline style is
   the quiet one for dark backgrounds */

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--brand-hover);
}

.wp-block-button.btn-arrow .wp-block-button__link {
  padding: 8px 8px 8px 24px;
}

.wp-block-button.btn-arrow .wp-block-button__link::after {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 9l6-6M4 3h5v5' stroke='%23a30ca3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* hero: plum with a magenta light behind the screenshots; the business dashboard
   runs off the right edge, the investor's view of a project sits over its corner */

.hero {
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(46% 68% at 82% 50%, rgba(204, 0, 204, 0.45) 0, rgba(204, 0, 204, 0) 72%),
    var(--plum-900);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 178px;
}

h1 {
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: #d9c9dd;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__no {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
  color: #eadcee;
}

.hero__no li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--bright);
  vertical-align: 2px;
}

.hero__visual {
  position: relative;
}

.hero__main img {
  width: 132%;
  max-width: none;
  aspect-ratio: 2400 / 1400;
  object-fit: cover;
  object-position: left top;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(8, 0, 12, 0.55);
}

.hero__second {
  position: absolute;
  left: -9%;
  bottom: -52px;
  width: 50%;
}

.hero__second img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(8, 0, 12, 0.5);
}

/* numbers: one white panel pulled up over the end of the hero */

.numbers {
  position: relative;
  margin-top: -84px;
}

.numbers__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(40, 8, 48, 0.1);
}

.numbers__item {
  padding: 30px 34px 32px;
  font-size: 15px;
  line-height: 1.5;
}

.numbers__item + .numbers__item {
  border-left: 1px solid var(--line);
}

/* the numeral is the bold part of the line: "<strong>500</strong> mil. Kč" */
.numbers__value {
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 12px;
}

.numbers__value strong {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-right: 0.08em;
}

/* sections */

.section {
  padding-top: 120px;
  scroll-margin-top: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: 40px;
}

.head p {
  font-size: 17px;
  max-width: 380px;
}

/* benefits */

.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 14px;
}

.benefits__intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius);
  padding: 36px;
  background: linear-gradient(155deg, #b40eb4 0%, #7a0c8a 100%);
  color: #ffffff;
}

.benefits__intro h2 {
  color: #ffffff;
}

.benefits__intro p {
  font-size: 18px;
  line-height: 1.5;
}

.benefits__intro::after {
  content: '';
  border-radius: 50%;
  background: radial-gradient(circle at 62% 28%, #ffffff 0, #ffc2ff 6%, #ff00ff 30%, #cc00cc 100%);
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 230px;
  height: 230px;
}

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

.benefit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--tint);
}

.benefit img,
.step img,
.card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.benefit p {
  font-size: 16.5px;
  line-height: 1.45;
}

.benefit strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

/* platform: dark plum band with a two-way switch */

.dark {
  margin: 0 10px;
  border-radius: 30px;
  padding: 88px 0;
  background: var(--plum-900);
  color: #e9dcec;
}

.dark__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.dark h2,
.dark h3 {
  color: #ffffff;
}

.dark__head p {
  font-size: 17px;
  line-height: 1.65;
}

.tabs__switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.tabs__switch button {
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.tabs__switch button[aria-selected='true'] {
  background: var(--bright);
  color: var(--plum-900);
}

/* in the editor, and without the script, the panels follow one another */
.tabs__panel + .tabs__panel {
  margin-top: 64px;
}

.tabs__switch ~ .tabs__panel {
  margin-top: 0;
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__label {
  font-size: 15px;
  color: var(--soft);
  margin-bottom: 4px;
}

.tabs h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.feat {
  columns: 2;
  column-gap: 56px;
}

.feat li {
  break-inside: avoid;
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15.5px;
  line-height: 1.5;
}

.feat li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bright);
}

.tabs__shot {
  margin-top: 44px;
  border-radius: 16px;
}

/* steps: the number comes from a counter, so a step added in the editor numbers itself */

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--tint);
  counter-increment: step;
}

.step:nth-child(n + 4) {
  grid-column: span 3;
}

.step:last-child {
  background: var(--plum-900);
  color: #e9dcec;
}

.step::before {
  content: counter(step);
  display: block;
  font-size: 64px;
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--brand);
  margin-bottom: 36px;
}

.step:last-child::before {
  color: var(--bright);
}

.step .wp-block-image {
  position: absolute;
  top: 28px;
  right: 28px;
}

.step:last-child img {
  padding: 8px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
}

.step h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.step:last-child h3 {
  color: #ffffff;
}

.step p {
  font-size: 15.5px;
  max-width: 520px;
}

/* support */

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.card h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  margin: 26px 0 8px;
}

.card p {
  font-size: 15.5px;
}

/* contact: plum again, with the same corner light as the hero */

.stage--contact {
  margin: 0 10px;
  border-radius: 30px;
  padding: 80px 0;
  color: #ffffff;
  background:
    radial-gradient(60% 90% at 100% 0, rgba(204, 0, 204, 0.4) 0, rgba(204, 0, 204, 0) 62%),
    var(--plum-900);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.contact h2 {
  color: #ffffff;
}

.contact__lead {
  margin-top: 16px;
  font-size: 19px;
}

.contact__terms {
  margin-top: 28px;
  max-width: 440px;
}

.contact__terms li {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #eadcee;
}

.contact__label {
  margin-top: 32px;
  font-size: 14px;
  color: var(--soft);
}

.contact__name {
  font-size: 18px;
  font-weight: 500;
}

.contact__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact__links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* the editor's stand-in for the form */
.bam-form-slot {
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 34px;
  color: #eadcee;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 30px 60px rgba(8, 0, 12, 0.4);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field label {
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--tint);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: #ffffff;
}

.field [aria-invalid='true'] {
  border-color: #c62828;
}

.form__note {
  font-size: 14px;
  color: var(--text);
}

.form__note--error {
  color: #c62828;
}

/* a field people never see; a bot that fills it gives itself away */
.form__trap {
  position: absolute;
  left: -9999px;
}

/* footer */

.footer {
  padding: 36px 0 48px;
  font-size: 14px;
}

.footer__in,
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__brand img {
  height: 30px;
  width: auto;
}

.footer a {
  color: var(--text);
}

/* smaller screens */

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero__in,
  .dark__head,
  .benefits,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__in {
    gap: 48px;
    padding-top: 44px;
    padding-bottom: 170px;
  }

  .hero__main img {
    width: 100%;
  }

  .hero__second {
    left: auto;
    right: -14px;
    bottom: -44px;
    width: 46%;
  }

  .dark__head {
    gap: 18px;
  }

  .benefits__intro {
    padding-bottom: 120px;
  }

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

  .step,
  .step:nth-child(n + 4) {
    grid-column: span 3;
  }

  .step:last-child {
    grid-column: 1 / -1;
  }

  .contact {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header__in {
    height: 64px;
  }

  .logo img {
    height: 30px;
  }

  .hero__in {
    padding-bottom: 176px;
  }

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

  .numbers__item {
    padding: 22px 24px;
  }

  .numbers__item + .numbers__item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stage--contact,
  .dark {
    margin: 0 6px;
    border-radius: 22px;
  }

  .benefits__intro {
    padding: 28px 28px 110px;
  }

  .benefits__intro::after {
    width: 150px;
    height: 150px;
    right: -40px;
    bottom: -55px;
  }

  .benefits__grid,
  .cards,
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-top: 80px;
  }

  .benefit {
    min-height: 0;
    gap: 24px;
  }

  .dark {
    padding: 56px 0;
  }

  .tabs__switch {
    display: flex;
    border-radius: 26px;
  }

  .tabs__switch button {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
  }

  .feat {
    columns: 1;
  }

  .step,
  .step:nth-child(n + 4) {
    grid-column: 1 / -1;
  }

  .stage--contact {
    padding: 48px 0;
  }

  .form {
    padding: 22px;
  }
}

/* other pages (anything that is not the home page): one readable column */

.plain {
  max-width: 808px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: #3c3140;
  font-size: 17px;
  line-height: 1.65;
}

.plain h1 {
  color: var(--ink);
  margin-bottom: 28px;
}

.plain h2 {
  font-size: 28px;
  margin: 40px 0 12px;
}

.plain h3 {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 8px;
}

.plain p,
.plain ul,
.plain ol {
  margin-bottom: 16px;
}

.plain ul,
.plain ol {
  padding-left: 22px;
}

.plain ul {
  list-style: disc;
}

.plain ol {
  list-style: decimal;
}
