/* Basic Style */

html {
    box-sizing: border-box;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: normal;
    font-size: 13px;
    color: black;
}

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

h1,
h2,
h3,
h4,
h5,
p {
    margin: 0;
}

div {
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0;
    display: block;
    background-color: white;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 21px;
    font-weight: bold;
}

h3 {
    font-size: 17px;
    font-weight: bold;
}

h4 {
    font-size: 15px;
    font-weight: normal;
}

h5 {
    font-size: 13px;
    font-weight: normal;
}

p {
    font-size: 13px;
}

a {
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
}

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

button {
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 400;
}

button:focus {
    outline: none;
}

img {
    display: block;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.logo {
    width: 120px;
    height: 120px;
    background: url(../images/logo-square.png) center no-repeat;
    background-size: contain;
}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.hero-text {
    padding: 16px;
    margin-bottom: 40px;
}

.hero-img {
    width: 100%;
    max-width: 600px;
}

.hero-img img {
    width: 100%;
    object-fit: contain;
}

.products {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.products h1 {
    margin-bottom: 40px;
}

.product-row {
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: center;
}

.product-previews {
    flex: 1;
    display: flex;
    align-items: center;
}

.product-previews img {
    width: 50%;
    object-fit: contain;
}

.product-previews img:first-child {
    transform: scale(0.95);
}

.product-previews img:last-child {
    transform: translateX(-32px);
}

.product-info {
    flex: 1;
}

.product-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.product-logo#cyclehud-cn {
    background: url(../images/cyclehud-cn-logo.png) center no-repeat;
    background-size: 80px;
}

.product-info p {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .product-row {
        flex-direction: column;
    }

    .product-previews {
        transform: translateX(16px);
    }
}

.footer {
    width: 100%;
    padding: 24px;
}

.footer {
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.terms-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.sll-logo {
    width: 100px px;
    height: 100px;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px;
    background-image: url(../images/cyclehud-cn-logo.png);
    background-size: 100px 100px;
}

.terms,
.privacy {
    margin-top: 32px;
}

.terms-wrap h1 {
    display: block;
    width: 100%;
    border-bottom: 2px solid #333;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.terms-wrap h3 {
    margin-bottom: 8px;
}

.terms-wrap p {
    margin-bottom: 16px;
}
