@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Stylesheet for /crypto-tax-guide/ only. Don't link it from other pages. */

/* ---------- Tokens ---------- */
:root {
  --ink: #062526;
  --sky: #a7d2dd;
  --coral: #f47068;
  --cream: #fff4f0;
  --white: #fff;
  --sun: #ffc24a;

  --fs-display: min(74.67px, 15.3vw);
  --fs-quote: clamp(25.6px, 2.22vw, 32px);
  --fs-eyebrow: clamp(19.2px, 1.67vw, 24px);
  --fs-body: clamp(17px, 1.48vw, 21.33px);
  --fs-small: clamp(14.9px, 1.3vw, 18.67px);
  --fs-tagline: min(32px, 3.44vw);

  --radius-photo: clamp(24px, 2.8vw, 40px);
  --wrap: 1232px;

  /* Step cards are drawn at full size on desktop and scaled to 80% on the phone. */
  --u: 1px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-body);
  /* Canva's "regular" Montserrat renders like Google's 500. */
  font-weight: 500;
  line-height: 1.36;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

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

/* The <picture> wrapper from the responsiveImage shortcode must not affect layout. */
picture {
  display: contents;
}

picture > source {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

b {
  font-weight: 700;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.bullets {
  padding-left: 36px;
  list-style: disc;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.btn--cta {
  min-height: 72px;
  width: min(537px, 100%);
  padding: 0 24px;
  border-color: var(--cream);
  background: var(--coral);
  color: var(--cream);
  font-size: var(--fs-eyebrow);
}

/* ---------- Hero ---------- */
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 685fr) minmax(0, 527fr);
  column-gap: clamp(24px, 2.15vw, 31px);
  align-items: start;
  /* On the 1440px design the text starts at x=125 and the photo ends 72px from the right edge. */
  margin: 82px max(16px, 50% - 648px) 0 max(16px, 50% - 595px);
  padding-bottom: 61px;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.375;
  letter-spacing: .036em;
  text-transform: uppercase;
  color: var(--coral);
}

.hero__title {
  margin-top: 23px;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.058;
}

.hero__title + p {
  margin-top: 22px;
}

.hero__text p + p {
  margin-top: 29px;
}

.hero__text .btn {
  margin: 28px 0 0 58px;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 527 / 609;
  margin-top: 51px;
  object-fit: cover;
  /* Canva shows the right part of a wide photo, where her face is. */
  object-position: 82% center;
  border-radius: var(--radius-photo);
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 65px 0 40px;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.testimonial p {
  font-size: var(--fs-quote);
  line-height: 1.375;
}

/* Canva shows the left end of a landscape photo inside the circle. */
.testimonial img {
  width: clamp(148px, 12.85vw, 185px);
  aspect-ratio: 1;
  margin: 25px auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 0 50%;
}

.testimonial cite {
  font-style: italic;
}

/* A two-line quote. */
.testimonial--long {
  padding: 93px 0 24px;
}

.testimonial--long img {
  margin: 61px auto 33px;
}

/* Canva's second line is 1263px wide; Montserrat 500 needs a little more still. */
@media (min-width: 1281px) {
  .testimonial--long .wrap {
    width: min(1340px, 100% - 32px);
  }
}

/* ---------- Most free guides give you the rules ---------- */
.rules {
  padding: 58px 0 62px;
  overflow-x: clip;
}

.rules__body {
  display: grid;
  grid-template-columns: minmax(0, 692fr) minmax(0, 521fr);
  column-gap: clamp(16px, 1.25vw, 18px);
  width: min(1231px, 100% - 32px);
  margin: 0 0 0 max(16px, 50% - 614px);
}

.rules__text {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.rules__title {
  margin-top: 50px;
  font-size: min(54.68px, 7.3vw);
  font-weight: 900;
  line-height: .914;
  text-transform: uppercase;
}

.rules__subtitle {
  margin-top: 4px;
  font-size: var(--fs-quote);
  font-weight: 600;
  line-height: 1.375;
}

.rules__intro {
  margin: 40px 0 29px;
}

.rules__body .bullets {
  margin-bottom: 29px;
}

.rules__body .btn {
  align-self: center;
  margin-top: 71px;
}

/* The flipbook starts level with the title; its caption and arrow hang below and beside it. */
.rules__flipbook {
  position: relative;
  margin-top: 75px;
}

.rules__flipbook-frame {
  display: block;
  width: 100%;
  aspect-ratio: 521 / 674;
  border: 0;
}

.rules__flipbook-caption {
  margin-top: 23px;
  white-space: nowrap;
  /* Canva's caption is centred a little right of the flipbook. */
  transform: translateX(33px);
  color: var(--sun);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.375;
  text-align: center;
}

/* Canva's arrow image is 800x483 mirrored and turned about 60deg; its box on the page is the rotated outline. */
.rules__flipbook-arrow {
  position: absolute;
  left: calc(100% + 12px);
  top: 612px;
  width: 100px;
  height: auto;
  transform: rotate(60deg) scaleX(-1);
}

/* ---------- Skip straight to your answers ---------- */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 77px 16px 59px;
}

.steps__title {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: .91;
  text-align: center;
  text-transform: uppercase;
}

.steps__list {
  display: grid;
  grid-template-columns: minmax(0, 371fr) minmax(0, 449fr) minmax(0, 371fr);
  gap: 44px;
  width: min(1276px, 100%);
  margin: 67px 0 67px;
}

/* White-ish rounded cards; a numbered disc sits in each one's top-left corner. */
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(445 * var(--u));
  padding: calc(24 * var(--u)) 0;
  border-radius: calc(32 * var(--u));
  background: var(--cream);
  color: var(--ink);
}

.step__number {
  position: absolute;
  top: calc(18 * var(--u));
  left: calc(30 * var(--u));
  display: grid;
  place-items: center;
  width: calc(70 * var(--u));
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: calc(44 * var(--u));
  font-weight: 900;
  line-height: 1;
}

.step--prepare .step__number {
  top: calc(11 * var(--u));
  left: calc(24 * var(--u));
  width: calc(67 * var(--u));
}

.step--next .step__number {
  top: calc(18 * var(--u));
  left: calc(24 * var(--u));
  width: calc(60 * var(--u));
}

.step__icon {
  height: auto;
}

.step--book .step__icon {
  width: calc(133 * var(--u));
  margin-bottom: calc(56 * var(--u));
}

.step--prepare .step__icon {
  width: calc(136 * var(--u));
  margin-bottom: calc(32 * var(--u));
}

.step--next .step__icon {
  width: calc(120 * var(--u));
  margin-bottom: calc(43 * var(--u));
}

.step__title {
  font-size: calc(21.33 * var(--u));
  font-weight: 700;
  line-height: calc(23 * var(--u));
  text-align: center;
}

.step__text {
  width: fit-content;
  max-width: calc(100% - 24 * var(--u));
  margin-top: calc(13 * var(--u));
  font-size: calc(21.33 * var(--u));
  line-height: calc(29 * var(--u));
  text-align: left;
}

.step--prepare .step__text {
  margin-top: calc(7 * var(--u));
}

.step__text + .step__text {
  margin-top: calc(29 * var(--u));
}

.step--next .step__text {
  margin-top: calc(11 * var(--u));
}

/* ---------- About ---------- */
.about {
  padding: 64px 0 39px;
}

.about__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .99;
  text-transform: uppercase;
  text-align: center;
}

.about__tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  font-size: var(--fs-tagline);
  font-weight: 700;
  line-height: 1.375;
  white-space: nowrap;
}

.about__tagline img {
  height: 1.8em;
  width: auto;
  /* The tall emoji must not make the line taller than the text.
     Its transparent right edge sits under the start of "Crypto", as in Canva. */
  position: relative;
  top: .125em;
  margin: -.22em -.375em -.22em .59em;
}

.about__body {
  display: grid;
  grid-template-columns: minmax(0, 562fr) minmax(0, 544fr);
  column-gap: clamp(24px, 3.75vw, 54px);
  align-items: start;
  width: min(1160px, 100% - 32px);
  margin: 46px 0 0 max(16px, 50% - 625px);
}

.about__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 562 / 582;
  border-radius: var(--radius-photo);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgb(6 37 38 / .85);
  font-size: var(--fs-small);
  line-height: 1.07;
  letter-spacing: .036em;
  color: var(--cream);
}

@media (min-width: 1281px) {
  .photo-caption {
    padding: 14px 8px 14px 16px;
    letter-spacing: .01em;
    white-space: nowrap;
  }
}

.about__text {
  padding-top: 13px;
}

/* Montserrat 500 runs a little wider than Canva's text, so the hard line breaks
   need a bit more room than Canva's 544px column; there is space to the right. */
@media (min-width: 1281px) {
  .about__text {
    margin-right: -40px;
  }
}

.about__text p + p {
  margin-top: 29px;
}

.about__text .btn {
  margin: 63px 0 0 9px;
}

/* ---------- Book your session ---------- */
.booking {
  padding: 64px 16px 36px;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.booking__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.booking__break {
  display: none;
}

/* Room for the calendar embed that goes in here. */
.booking__embed {
  min-height: 640px;
  margin-top: 40px;
}

/* ---------- Full desktop width: Canva's own line breaks, so keep each line whole ---------- */
@media (min-width: 1281px) {
  .rules__title,
  .rules__intro,
  .rules__text > p:not(.rules__subtitle) {
    white-space: nowrap;
  }
}

/* ---------- Below the full desktop width ---------- */
@media (max-width: 1280px) {

  /* Canva's hard line breaks only fit the full 1440px design; below it text wraps naturally.
     The step cards keep theirs: they are drawn at a fixed size. */
  p:not(.step__text) br,
  h1 br,
  h2 br {
    display: none;
  }

  .hero__text {
    display: grid;
  }

  .hero__text .btn,
  .rules__body .btn {
    margin-left: 0;
    justify-self: center;
  }

  /* Leave room for the arrow, which hangs out to the right of the flipbook. */
  .rules__body {
    padding-right: 110px;
  }

  .rules__body .btn {
    align-self: center;
    margin-top: 34px;
  }

  .about__text {
    display: grid;
  }

  .about__text .btn {
    margin-left: 0;
    justify-self: center;
  }
}

/* ---------- Tablet: three cards no longer fit side by side ---------- */
@media (max-width: 1200px) {
  .steps__list {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: calc(16 * var(--u));
  }

  .step {
    width: calc(371 * var(--u));
    max-width: 100%;
  }

  .step--prepare {
    width: calc(449 * var(--u));
  }

  .step--book {
    min-height: calc(410 * var(--u));
  }

  .step--prepare {
    min-height: calc(432 * var(--u));
  }

  .step--next {
    min-height: calc(421 * var(--u));
  }
}

/* ---------- Phone layout (Canva's 390px design) ---------- */
@media (max-width: 800px) {

  /* Canva's phone design is 390px wide; on larger phones and small tablets keep it from ballooning. */
  :root {
    --wrap: 560px;
    --u: .8px;
  }

  .btn--cta {
    width: 100%;
    min-height: 58px;
  }

  .hero__body {
    display: block;
    width: auto;
    max-width: var(--wrap);
    margin: 22px max(16px, 50% - 280px) 0;
    padding-bottom: 18px;
  }

  .hero__title {
    margin-top: 18px;
  }

  .hero__title + p {
    margin-top: 18px;
  }

  .hero__text p + p {
    margin-top: 23px;
  }

  .hero__text .btn {
    margin-top: 14px;
  }

  .hero__photo {
    margin-top: 15px;
  }

  .testimonial {
    padding: 49px 0 32px;
  }

  .testimonial img {
    margin: 16px auto 13px;
  }

  .testimonial--long {
    padding: 75px 0 20px;
  }

  .testimonial--long img {
    margin: 16px auto 13px;
  }

  .rules {
    padding: 46px 0 50px;
  }

  .rules__body {
    display: block;
    width: auto;
    max-width: var(--wrap);
    margin-inline: max(16px, 50% - 280px);
    padding: 0;
  }

  .rules__title {
    margin-top: 18px;
    font-size: min(28.45px, 7.3vw);
  }

  .rules__subtitle {
    margin-top: 2px;
    font-size: min(16.65px, 4.27vw);
  }

  .rules__intro {
    margin: 13px 0 23px;
  }

  .bullets {
    padding-left: 29px;
  }

  .rules__body .bullets {
    margin-bottom: 23px;
  }

  .rules__body .btn {
    margin-top: 19px;
  }

  .rules__flipbook {
    width: 100%;
    margin: 16px auto 0;
  }

  .rules__flipbook-caption {
    margin-top: 14px;
    transform: translateX(17px);
  }

  .rules__flipbook-arrow {
    left: calc(100% - 11px);
    top: 403px;
    width: 29px;
  }

  .steps {
    padding: 61px 16px 47px;
  }

  .steps__list {
    margin: 25px 0 19px;
  }

  .about {
    padding: 51px 0 31px;
  }

  .about__body {
    display: block;
    width: auto;
    margin: 15px max(16px, 50% - 280px) 0;
  }

  .about__photo {
    aspect-ratio: 359 / 480;
  }

  .photo-caption {
    bottom: 8px;
    padding: 6px 29px 6px 34px;
    font-size: 14px;
    line-height: 20px;
  }

  .about__text {
    padding-top: 14px;
    margin: 0;
  }

  .about__text p + p {
    margin-top: 23px;
  }

  .about__text .btn {
    margin: 17px 0 0;
  }

  .booking {
    padding: 51px 16px 35px;
  }

  .booking__break {
    display: inline;
  }

  .booking__embed {
    min-height: 500px;
  }
}

/* ---------- Very narrow phones ---------- */
@media (max-width: 360px) {
  .btn {
    white-space: normal;
    text-align: center;
  }

  .step__text br {
    display: none;
  }
}
