/*************************
  GLOBAL
*************************/

/* Root */

:root {
  --text-primary:   hsl(220,  20%,  30%);
  --text-secondary: hsl(220,  20%,  45%);
  --text-tertiary:  hsl(220,  20%,  65%);
  --separator:      hsl(220,  20%,  90%);
  --shadow:         hsl(220,  20%,  90%);
  --dark-shadow:    hsl(220,  20%,  57%);
  --well:           hsl(220,  20%,  94%);
  --background:     hsl(220,  20%,  97%);
  --white:          hsl(220,   0%, 100%);

  --red:         hsl(  0, 80%, 60%);
  --redLight:    hsl(  0, 80%, 94%);
  --orange:      hsl( 30, 99%, 60%);
  --orangeLight: hsl( 30, 99%, 94%);
  --green:       hsl(120, 70%, 45%);
  --greenLight:  hsl(120, 70%, 94%);
  --blue:        hsl(220, 80%, 60%);
  --blueLight:   hsl(220, 80%, 94%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  background: var(--background);
  color: var(--text-secondary);
  padding: 0;
  margin: 0;
}
.wrapper {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 5vw;
  position: relative;
}
.wrapper.narrow {
  max-width: 40rem;
}
@media(max-width: 599px) {
  .wrapper {
    padding: 2rem 1.4rem;
  }
}

/* Type */

.link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  outline: none;
  cursor: pointer;
}
.link:hover {
  border-bottom: 2px solid hsla(220, 80%, 60%, 0.3);
}
.link:active {
  border-bottom: 2px solid hsla(220, 80%, 60%, 0.5);
}
hr {
  border: none;
  height: 2px;
  background: var(--separator);
  margin: 3rem 0;
}
@media(max-width: 599px) {
  hr {
    margin: 2rem 0;
  }
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 600;
}
h1 {
  font-size: 1.7rem;
  margin: 4rem 0 .25rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 600;
}
h2 {
  margin: 0 0 4rem;
  font-size: 1.8rem;
  font-weight: 800;
  /* text-align: center; */
  position: relative;
}
h2:after {
  content: '';
  width: 2rem;
  height: .25rem;
  position: absolute;
  left: 50%;
  left: 0;
  /* transform: translate(-50%, 0); */
  background: var(--separator);
  top: 3rem;
}

h3 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
  font-weight: 700;
}
p {
  margin: 0 0 .5rem;
}
ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.5rem;
}
ul li {
  list-style: none;
  position: relative;
}
ul li:after {
  list-style: none;
  content: '\00b7'; /* · */
  position: absolute;
  left: -1rem;
  top: 0;
  font-size: .9rem;
  line-height: 1.4rem;
}

/* Header */

.hero {
  margin: 4rem 0 0;
}

.logo {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: .75rem;
  text-decoration: none;
}
.logo .icon {
  width: 36px;
  height: 36px;
}
.logo h1 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 36px;
  margin: 0;
}

/* Footer */

.footer {
  text-align: center;
  padding: 4rem 0;
  font-size: .9rem;
}
.footer,
.footer p,
.footer a {
  color: var(--text-tertiary);
  text-decoration: none;
}
.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}

/*************************
  HOME
*************************/

/* Hero */
.white-bg {
  background: white;
  box-shadow: 0 0 20px var(--well);
}
.hero-text {
  font-size: 2rem;
  margin: 0 0 .5rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 800;
}
.hero-sub {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 1rem;
}
.cta {
  display: inline-block;
  font-weight: bold;
  color: var(--text-primary);
  position: relative;
}
.cta a {
  font-weight: bold;
}
.highlighter {
  background-image: url('/images/highlighter2.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 1rem 4rem 1rem 2rem;
  margin: 0 -2rem 2rem;
  display: inline-block;
}


/* Steps */

.step {
  display: grid;
  grid-template-columns: max-content auto;
  align-items: self-start;
  margin-bottom: 6rem;
  grid-column-gap: 1.5rem;
}
@media(max-width: 799px) {
  .step {
    grid-template-columns: auto;
  }
}

.step-number {
  content: '1';
  background: var(--separator);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  display: block;
  font-size: 1rem;
  text-align: center;
  color: var(--text-tertiary);
  margin: 0 0 .5rem;
}
.step-preview {
  width: 340px; /* exact png width */
  /* max-width: 100%; */
  border-radius: .5rem;
  box-shadow: 0 15px 25px -15px var(--dark-shadow);
  position: relative;
  z-index: 2;
  margin: 1rem 0 0 0;
}
.step-preview-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  display: none;
}
.step-preview.email {
  border-radius: 0;
}
.email-red-dot {
  background: var(--red);
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.4rem;
  text-align: center;
  font-weight: 500;
  color: var(--white);
  border-radius: 50%;
  z-index: 1000;
  font-size: .8rem;
  top: .5rem;
  left: -.5rem;
}

.sub-note {
  font-size: .9rem;
  margin: 0 0 .5em;
  color: var(--text-tertiary);
  line-height: 1.3;
  max-width: 360px;
}
.sub-note a {
  color: var(--text-tertiary);
}


/* Videos */

.video-wrapper {
  position: relative;
  background: var(--separator);
  border-radius: 6px;
  padding-bottom: 40%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 20px -10px var(--dark-shadow);
  margin: 0 auto 2rem;
}
  
.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.upgrade-well {
  margin: 5rem auto 0;
  border-radius: .5rem;
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 5px 5px -3px var(--shadow);
  display: grid;
  grid-template-columns: auto max-content;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  align-items: center;
  z-index: 100;
  position: relative;
}
@media(max-width: 599px) {
  .upgrade-well {
    grid-template-columns: auto;
  }
}


/* Features */

.feature-row {
  border-top: 2px solid var(--separator);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-column-gap: 5rem;
}
@media(max-width: 599px) {
  .feature-row {
    grid-template-columns: auto;
  }
}
.feature-explanation {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-column-gap: 2rem;
}
@media(max-width: 599px) {
  .feature-row {
    grid-template-columns: auto;
  }
}

blockquote {
  border-left: 2px solid hsl(220, 20%, 80%);
  padding: .3rem 0 .3rem .75rem;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.4;
  background: var(--background);
  border-radius: 2px;
}

/* Settings */
[v-cloak] {
  display: none;
}
.message {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: var(--blueLight);
  color: var(--blue);
  padding: 1rem 1.5rem;
  font-weight: 500;
  border: 2px solid;
}
.message.success {
  background: var(--greenLight);
  color: var(--green);
}
.message.error {
  background: var(--redLight);
  color: var(--red);
}
.settings-card {
  margin: 0 0 1rem;
  display: grid;
  grid-template-rows: auto max-content;
  grid-row-gap: 2rem;
  background: white;
  padding: 2.5rem;
  box-shadow: 0 2px 4px var(--shadow);
  text-align: center;
  justify-content: center;
}
@media(max-width: 599px) {
  .settings-card {
    grid-template-columns: auto;
    grid-row-gap: .5rem;
  }
  .settings-card button {
    display: block;
    width: 100%;
    float: none;
  }
}
.settings-card > div > *:last-child {
  margin-bottom: 0;
}
.badge {
  color: var(--green);
  background: var(--greenLight);
  padding: .2rem .5rem;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  border-radius: 3px;
  white-space: nowrap;
  margin: 4px 0;
  display: inline-block;
}
.button,
button {
  border: none;
  padding: .66rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 4px var(--shadow);
  border-radius: 3px;
  cursor: pointer;
  opacity: .9;
  transition: all .1s ease;
  outline: none;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;

  background: var(--white);
  color: var(--blue);
}
.button ion-icon,
button ion-icon {
  color: inherit;
  width: 20px;
  height: 20px;
  margin: -4px 4px -4px 0;
  opacity: 0.7;
  pointer-events: none;
}
.button.blue,
button.blue {
  background: var(--blue);
  color: white;
}
.button.blue:focus,
button.blue:focus {
  box-shadow: 0 0 0 4px var(--blueLight);
}
.button.red,
button.red {
  background: var(--red);
  color: white;
}
.button.red:focus,
button.red:focus {
  box-shadow: 0 0 0 4px var(--redLight);
}
.button:hover,
button:hover {
  opacity: 1;
}
.button:focus,
button:focus {
  box-shadow: 0 0 0 4px var(--blueLight);
}
.button:active,
button:active {
  transform: translateY(1px);
}
.button[disabled],
button[disabled] {
  cursor: auto;
  opacity: .3;
}
