/***
    The new CSS reset - version 1.11.3 (last updated 25.08.2024)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

/*
    Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
    - The "symbol *" part is to solve Firefox SVG sprite bug
    - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
 */
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

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

/* Fix mobile Safari increase font-size on landscape mode */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Reapply the pointer cursor for anchor tags */
a,
button {
    cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol,
ul,
menu,
summary {
    list-style: none;
}

/* Firefox: solve issue where nested ordered lists continue numbering from parent (https://bugzilla.mozilla.org/show_bug.cgi?id=1881517) */
ol {
    counter-reset: revert;
}

/* For images to not be able to exceed their container */
img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

/* removes spacing between cells in tables */
table {
    border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input,
textarea {
    -webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
    white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
    -webkit-appearance: revert;
    appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
    all: revert;
    box-sizing: border-box;
}

/* reset default text opacity of input placeholder */
::placeholder {
    color: unset;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
    display: none;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly.
   - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    -webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
    -webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
    all: revert;
    box-sizing: border-box;
}

/* Remove details summary webkit styles */
::-webkit-details-marker {
    display: none;
}

:root {
    --font-family: 'Karla', serif, sans-serif;

    /* Colors */
    --primary-color: #2ab3b1;
    --secondary-color: #c0df34;
    --text-primary-color: #ffffff;
    --text-secondary-color: #9aa7be;
    --background-color: #e6eff5;
    --card-light-color: #4abebd;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;

    /* Font sizes */
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;

    /* Border radius */
    --border-radius: 8px;
}

/* Base Layout Styles
   ========================================================================== */
html {
    font-family: var(--font-family);
    font-optical-sizing: auto;
}

body {
    align-items: center;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Card One - Join Community Section
   ========================================================================== */
.card__one {
    background-color: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 0 var(--spacing-md);
    width: 311px;
}

/* Card One Typography */
.card__one-h1 {
    color: var(--primary-color);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.25px;
    margin-bottom: var(--spacing-md);
    padding-top: 28px;
}

.card__one-h2 {
    color: var(--secondary-color);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.19px;
    line-height: 20px;
    margin-bottom: var(--spacing-sm);
}

.card__one-p {
    color: var(--text-secondary-color);
    font-size: var(--text-sm);
    font-weight: 300;
    letter-spacing: -0.17px;
    line-height: 26px;
    padding-bottom: var(--spacing-lg);
}

/* Card Two - Subscription Section
   ========================================================================== */
.card__two {
    background-color: var(--primary-color);
    padding: var(--spacing-md);
    width: 311px;
}

/* Card Two Typography */
.card__two-h1 {
    color: var(--text-primary-color);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.22px;
    margin-bottom: var(--spacing-md);
}

/* Price Display */
.card__two-price {
    align-items: center;
    color: var(--text-primary-color);
    display: flex;
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: var(--spacing-xs);
}

.card__two-period {
    color: var(--text-primary-color);
    font-size: var(--text-base);
    font-weight: 300;
    letter-spacing: -0.2px;
    margin-left: 11px;
    opacity: 0.5;
}

.card__two-p {
    color: var(--text-primary-color);
    font-size: var(--text-base);
    font-weight: 300;
    letter-spacing: -0.2px;
    margin-bottom: 26px;
}

/* Sign Up Button */
.card__two-button {
    align-items: center;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    box-shadow: 0px 10px 10px 1px rgba(0, 0, 0, 0.15);
    color: var(--text-primary-color);
    display: flex;
    font-size: var(--text-base);
    font-weight: 700;
    height: 48px;
    justify-content: center;
    letter-spacing: -0.2px;
    width: 100%;
}

/* Card Three - Features Section
   ========================================================================== */
.card__three {
    background-color: var(--card-light-color);
    padding: var(--spacing-md);
    width: 311px;
}

/* Card Three Typography */
.card__three-h1 {
    color: var(--text-primary-color);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.22px;
    margin-bottom: 18px;
}

.card__three-ul {
    color: var(--text-primary-color);
    font-size: var(--text-sm);
    font-weight: 300;
    letter-spacing: -0.17px;
    line-height: 20px;
    opacity: 0.75;
}

/* Desktop Styles
   ========================================================================== */
@media screen and (min-width: 1024px) {

    /* Grid Layout */
    main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 635px;
    }

    /* Card One - Desktop */
    .card__one {
        grid-column: 1 / -1;
        padding: var(--spacing-xl);
        width: 635px;
    }

    .card__one-h1 {
        font-size: var(--text-2xl);
        letter-spacing: -0.3px;
        padding-top: 0;
    }

    .card__one-h2 {
        font-size: var(--text-lg);
        letter-spacing: -0.22px;
        margin-bottom: 11px;
    }

    .card__one-p {
        font-size: var(--text-base);
        letter-spacing: -0.2px;
        padding-bottom: 0;
        padding-right: 10px;
    }

    /* Card Two - Desktop */
    .card__two {
        border-radius: 0 0 0 var(--border-radius);
        grid-column: 1 / 2;
        padding: var(--spacing-xl);
        width: 100%;
    }

    /* Card Three - Desktop */
    .card__three {
        border-radius: 0 0 var(--border-radius) 0;
        grid-column: 2 / 3;
        padding: var(--spacing-xl);
        width: 100%;
    }
}