/* ==========================================================================
   Deedalo — vanilla rebuild
   Values are taken 1:1 from the production stylesheet + computed styles.

   Breakpoints (inherited from the original build):
     min  768   — side-by-side columns
     max 1200 & min 768
     max 1024 & min 768
     max 1366   — "laptop"
     max 1200   — "tablet landscape"
     max 1024   — "tablet portrait"
     max  880   — "mobile landscape"
     max  767   — "mobile portrait"
   Order matters: later blocks override earlier ones at equal specificity.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --black:     #000000;
  --white:     #ffffff;
  --turquoise: #27ABA8;   /* h1, links                */
  --green:     #1DA786;   /* green panel, second CTA  */
  --blue:      #20AEC9;   /* section headings, first CTA */

  --font-sans:    "Lato", Sans-serif;
  --font-display: "Petrov Sans", Sans-serif;

  --shell-max: 2000px;    /* header + footer inner width */
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, img, ul, ol, li, figure, iframe, button, section, header, footer,
main, nav, article, aside {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

main, section, header, footer, nav, article, figure { display: block; }

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

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

/* --------------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------------- */

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* the feature artwork bleeds past the left edge */
}

a {
  color: var(--turquoise);
  text-decoration: underline;
}

a:hover,
a:focus,
a:active { color: var(--white); }

h1, h2 {
  font-weight: 400;
  line-height: 1;
}

h1 {
  color: var(--turquoise);
  font-family: var(--font-sans);
  font-size: 120px;
  font-weight: 500;
  letter-spacing: -3.5px;
}

/* Visually hidden, still reachable by screen readers. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--turquoise);
}

/* --------------------------------------------------------------------------
   4. Shared pieces
   -------------------------------------------------------------------------- */

/* Image widget — centred by default, like the original. */
.media { text-align: center; }
.media--start { text-align: start; }

.media img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

.media a { display: inline-block; }

/* Outlined CTA. Deliberately has no hover state: on the original the
   per-element colour rule outranks every :hover rule in the cascade. */
.btn {
  display: inline-block;
  background-color: transparent;
  border-style: solid;
  border-width: 4px;
  border-radius: 3px;
  padding: 20px 80px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: underline;
  transition: all .3s;
}

.btn--blue  { color: var(--blue);  border-color: var(--blue);  fill: var(--blue); }
.btn--green { color: var(--green); border-color: var(--green); fill: var(--green); }

.btn--blue:hover,  .btn--blue:focus,  .btn--blue:active  { color: var(--blue); }
.btn--green:hover, .btn--green:focus, .btn--green:active { color: var(--green); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header { position: relative; }

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-block;
  max-width: 100%;
  margin-right: 1em;
}

.site-logo a { text-decoration: none; }

.header-image {
  width: 150px;
  height: auto;
  vertical-align: middle;
}

.site-nav { margin-left: auto; }

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu li { position: relative; }

.nav-menu a {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 0.5px;
  padding: 0 20px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus { color: var(--white); }

/* Toggle — hidden until the mobile breakpoint. */
.menu-toggle {
  display: none;
  background-color: rgba(0, 0, 0, .02);
  color: var(--white);
  font-size: 15px;
  line-height: 60px;
  padding: 0 20px;
  margin-left: auto;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle__icon {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  vertical-align: middle;
}

.menu-toggle svg { fill: currentColor; }
.menu-toggle .icon-close { display: none; }

.menu-toggle[aria-expanded="true"] .icon-bars  { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 70px 0;
  padding: 100px 250px;
  width: 100%;
}

.hero__title {
  text-align: center;
  margin: 0;
}

.hero__lead {
  text-align: center;
  line-height: 42px;
  margin: 0;
}

.hero__cta {
  text-align: center;
  margin-top: 50px;
}

/* --------------------------------------------------------------------------
   7. Photo + green panel
   -------------------------------------------------------------------------- */

.split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  min-height: 100vh;
  width: 100%;
}

.split__media {
  display: flex;
  flex-direction: column;
  width: 55%;
  min-width: 0;
}

.split__panel {
  display: flex;
  flex-direction: column;
  width: 45%;
  min-width: 0;
  gap: 40px 0;
  padding: 60px 40px;
  background-color: var(--green);
}

.panel__display {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  text-align: start;
}

.panel__body {
  font-size: 22px;
  line-height: 35px;
  text-align: start;
  margin-top: 30px;
}

.panel__lead {
  font-size: 40px;
  line-height: 35px;
  text-align: start;
}

/* --------------------------------------------------------------------------
   8. Icon + steps + CTA
   -------------------------------------------------------------------------- */

.feature {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
  margin: 25px 0;
  padding: 0 0 50px;
}

.feature__art {
  display: flex;
  flex-direction: column;
  width: 40%;
  min-width: 0;
  margin-left: -250px;   /* the mark bleeds off the left edge */
}

.feature__art { text-align: start; }

.feature__art-inner { overflow: visible; }

.feature__art img {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  max-width: 100%;
}

.feature__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 70%;
  min-width: 0;
  gap: 50px 0;
  padding: 150px 150px 50px 250px;
}

/* Zero-height stand-in for the empty logo widget: adds one row gap. */
.feature__spacer { height: 0; }

.feature__title {
  font-family: var(--font-sans);
  font-size: 60px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--blue);
  text-align: center;
}

.feature__title--sm { font-size: 40px; }

.feature__steps {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  text-align: start;
}

.feature__cta {
  text-align: center;
  margin-top: 20px;
}

.feature__powered {
  font-weight: 600;
  line-height: 1;
  text-align: start;
  margin-top: 80px;
}

.feature__partner {
  margin-top: -25px;
  width: 100%;
}

.feature__partner img { width: 25%; }

/* --------------------------------------------------------------------------
   9. Video
   -------------------------------------------------------------------------- */

.video {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  transform: translateZ(0);
}

.video__frame { aspect-ratio: 1.77777; }

.video__frame iframe {
  display: flex;
  width: 100%;
  height: 100%;
  border: none;
  background-color: var(--black);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  font-size: 15px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   11. Responsive — same order as the original cascade
   ========================================================================== */

/* — column widths ≥ 768 ————————————————————————————————————— */
@media (min-width: 768px) {
  .split__media     { width: 55%; }
  .split__panel     { width: 45%; }
  .feature          { width: 100%; }
  .feature__art     { width: 40%; }
  .feature__content { width: 70%; }
}

@media (max-width: 1200px) and (min-width: 768px) {
  .split__media { width: 45%; }
  .split__panel { width: 55%; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .split__media { width: 100%; }
  .split__panel { width: 100%; }
}

/* — laptop ————————————————————————————————————————————————— */
@media (max-width: 1366px) {
  body { font-size: 18px; }
  h1   { font-size: 72px; }

  .hero {
    gap: 50px 0;
    padding: 80px 200px;
  }

  .hero__lead { line-height: 28px; }

  .btn {
    font-size: 24px;
    border-width: 4px;
    padding: 15px 60px;
  }

  .split { min-height: 0; }

  .split__panel { padding: 40px 30px; }

  .panel__display { font-size: 30px; }
  .panel__body    { font-size: 18px; line-height: 28px; }
  .panel__lead    { font-size: 18px; line-height: 28px; }

  .feature { min-height: 0; }

  .feature__art {
    justify-content: center;
    margin-left: -150px;
  }

  .feature__content {
    gap: 30px 0;
    padding: 50px 100px 0 150px;
  }

  .feature__title     { font-size: 42px; }
  .feature__title--sm { font-size: 42px; }

  .feature__partner     { margin-top: -15px; }
  .feature__partner img { width: 30%; }
}

/* — tablet landscape ——————————————————————————————————————— */
@media (max-width: 1200px) {
  .hero { padding: 80px 100px; }

  .split__panel { gap: 20px 0; }

  .panel__display { font-size: 26px; }
  .panel__body    { font-size: 16px; line-height: 22px; }
  .panel__lead    { font-size: 16px; line-height: 22px; }

  .feature { min-height: 0; }

  .feature__powered     { margin-top: 50px; }
  .feature__partner img { width: 40%; }
}

/* — tablet portrait ———————————————————————————————————————— */
@media (max-width: 1024px) {
  body { font-size: 16px; }
  h1   { font-size: 60px; }

  .btn {
    font-size: 18px;
    border-width: 3px;
    padding: 10px 40px;
  }

  .split { flex-wrap: wrap; }

  .split__media img {
    height: 400px;
    object-fit: cover;
    object-position: top center;
  }

  .feature__art { margin-left: -115px; }

  .feature__content { padding: 50px 50px 0 70px; }

  .feature__title     { font-size: 32px; }
  .feature__title--sm { font-size: 32px; }
}

/* — mobile landscape ——————————————————————————————————————— */
@media (max-width: 880px) {
  .hero { padding: 60px 50px; }

  .hero__cta    { margin-top: 20px; }
  .feature__cta { margin-top: 20px; }
}

/* — mobile portrait ————————————————————————————————————————— */
@media (max-width: 767px) {
  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero { padding: 50px 20px; }

  /* Below the mobile breakpoint every child container goes full width
     and the rows wrap. */
  .split,
  .feature { flex-wrap: wrap; }

  .split__media,
  .split__panel,
  .feature__art,
  .feature__content { width: 100%; }

  .split__panel { padding: 40px 20px; }

  .feature { margin: 0; }

  .feature__art {
    margin-left: 0;
    padding: 55px;
  }

  /* Once the columns stack, the art column sizes to the mark's *intrinsic*
     height (510px) rather than its scaled height, so a wide mark spills past
     the column and over the section below. Capping the inner box reproduces
     that. Below ~557px the scaled height is already under the cap and nothing
     overflows. Drop this rule to have the artwork sit fully inside instead. */
  .feature__art-inner { max-height: 510px; }

  .feature__content { padding: 0 20px 100px; }
}

/* — mobile navigation ——————————————————————————————————————— */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding-left: 30px;
    padding-right: 30px;
  }

  .menu-toggle { display: block; }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .site-nav .nav-menu { display: none; }

  .site-nav.is-open .nav-menu {
    display: block;
    width: 100%;
  }

  .site-nav.is-open { background-color: rgba(0, 0, 0, .02); }

  .nav-menu li {
    width: 100%;
    text-align: left;
  }

  .footer-inner {
    padding-left: 30px;
    padding-right: 30px;
  }
}
