:root {
    --border-color: rgba(0,0,0,0.1);
    --shadow-color: 216deg 30% 60%;
}

html {
    font-family: -apple-system, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', 'Helvetica Neue', sans-serif; 
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #F7F6F5;
}

/* Typography */ 

h2, h3, h4 {
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.275em; 
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.275em;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.275em; 
}

b, strong {
    font-weight: 700;
}

i, em {
    font-style: italic;
}

button {
    background-color: #0000F5;
    color: #FFF;
    border: 0;
    border-radius: 12.5px;
    padding: 17.5px 20px;
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 600;
    box-shadow: rgba(0, 0, 0, 0.125) 0 2px 4px,rgba(0, 0, 0, 0.1) 0 5px 10px -3px,rgba(0,0,0,0.5) 0 -3px 0 inset;
    margin: 0 auto;
}

.button-details {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

button:hover {
    background-color: #1F1FFF;
}

mark {
    margin: 0 -0.4em;
    padding: 0.1em 0.4em;
    border-radius: 0.8em 0.3em;
    background: transparent;
    background-image: linear-gradient(
      to right,
      rgba(255, 225, 0, 0.1),
      rgba(255, 225, 0, 0.7) 4%,
      rgba(255, 225, 0, 0.3)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

/* Grid */

.container {
    margin: 0 auto;
    max-width: 768px;
}

/* Nav */

#header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-bottom: 1px solid var(--border-color);
}

#header-nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.5px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.65px;
}

/* Hero */

#hero {
    margin-top: 75px;
    margin-bottom: 75px;
    text-align: center;
}

#hero h2 {
    color: #e70a0a;
    font-family: 'Instrument Serif', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3em;
}

#hero .smaller {
    display: block;
    color: #000;
    font-size: 2.125rem;
    display: block;
    line-height: 1.45em;
    margin-top: 7.5px;
}

p.landing-copy {
    display: block;
    font-size: 1.2rem;
    line-height: 1.45em;
    margin: 15px auto 0 auto;
    max-width: 768px; 
    text-align: center;
}

#hero p {
    display: block;
    font-size: 1.2rem;
    line-height: 1.45em;
    margin: 25px auto 0 auto;
    max-width: 768px;
}

/* Preview */

#preview {
    border-bottom: 1px solid #f0efe9;
    box-shadow: 0px 5px 10px -7.5px rgba(0, 0, 0, 0.1);
    margin-bottom: 75px;
    position: relative;
    max-width: 95vw;
}

#preview #laptop #frame {
    background-color: #000;
    border-top-left-radius: 12.5px;
    border-top-right-radius: 12.5px;
    padding: 14px 14px 0 14px;
    margin: 0 auto;
    max-width: 768px;;
}

#preview #laptop #screen {
    background-color: #FFF;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    padding: 40px 0 60px 0;
    text-align: center;
}

#preview #laptop #screen #notch {
    background-color: black;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    top: 0;
    position: absolute;
    height: 30px;
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
}

#preview #laptop #screen #call-to-action {
    margin-top: 30px;
}

#preview #laptop #screen #call-to-action #typewriter {
    font-family: Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

#preview #laptop #screen #call-to-action #typewriter #animated {
    font-weight: bold;
}

#preview button {
    margin-top: 50px;
}

#preview #app-version {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    user-select: none;
}

/* Features */

#features {
    margin-bottom: 75px;
}

#features h3 {
    text-align: center;
}

#features blockquote {
    color: #0000f5;
    font-family: 'Caveat';
    font-size: 2rem;
    margin-top: 50px;
    line-height: 1.3em;
    letter-spacing: -0.5px;
    text-align: center;
}

#features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    line-height: 1.45em;
    margin-top: 75px;
  }

  #features .features-grid h4 {
    margin-bottom: 10px;
    margin-top: 10px;
  }
  
  #features .single-feature {
    background: #fff;
    border: 1px solid #EAE1D7;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  #features .single-feature img {
    max-width: 100%;
  }

/* FAQ */

#faq {
    margin-bottom: 75px;
}

#faq .question {
    margin-top: 20px;
}

#faq .question summary {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.425em;
    margin-top: 15px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

#faq .question p {
    margin-top: 5px;
    line-height: 1.45em;
}

/* Page */

.page-content {
    margin-bottom: 75px;
}

.page-content, .page-content + footer {
    max-width: 640px;
}

.page-content .page-meta-updated {
    font-size: 0.8rem;
    color: #444;
    display: block;
}

.page-content h3 {
    font-size: 1.5rem;
}

.page-content p {
    line-height: 1.45em;
}

.page-content > * {
    margin-top: 15px;
}

/* More Tools */

#more-tools {
    margin-bottom: 75px;
}

#more-tools ul {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#more-tools ul li.linked-tool {
    display: flex;
    align-items: center;
    gap: 10px;
}

#more-tools ul li.linked-tool a {
    color: rgb(34, 34, 34);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.425em;
    text-decoration: none;
}

#more-tools ul li.linked-tool a:hover {
    text-decoration: underline;
}

/* Footer */

footer {
    color: #444;
    font-size: 0.75rem;
    padding-bottom: 40px;
}

footer a, footer a:visited {
    color: #444;
}

footer a:hover, footer a:active {
    color: #222;
}

footer ul {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive styles */

@media (max-width: 767px) {

    .container {
        max-width: 90vw;
    }

    #hero {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    #hero h2 {
        font-size: 2.725rem;
    }

    #hero h2 .smaller {
        font-size: 1.75rem;
    }

    #preview #laptop #screen {
        padding: 40px 0 40px 0;
    }

    #preview button {
        margin-top: 40px;
    }

    #features blockquote {
        font-size: 1.75rem;
    }

    #features .single-feature img {
        margin: 0 auto;
        max-width: 50%;
        display: block;
    }

    #more-tools ul li.linked-tool {
        align-items: flex-start;
    }

    #more-tools ul li.linked-tool img {
        margin-top: 5px;
    }

}