/* Import Graphik fonts */
@import url('./fonts/graphik.css');

/* Import Self Modern fonts */
@font-face {
    font-family: 'Self Modern';
    src: url('./fonts/self-modern_regular_web.woff2') format('woff2'),
         url('./fonts/self-modern_regular_web.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Self Modern';
    src: url('./fonts/self-modern_book_web.woff2') format('woff2'),
         url('./fonts/self-modern_book_web.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Self Modern';
    src: url('./fonts/self-modern_italic_web.woff2') format('woff2'),
         url('./fonts/self-modern_italic_web.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

/* Basic reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Graphik Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header styles */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

header img {
    width: 128px;
    height: 33px;
}

section.hero p {
    max-width: 500px;
    margin: 3rem auto;
    text-align: center;
    font-size: 1.5rem;
}

/* Image display styles - preserve original sizing */
img {
    max-width: 100%;
    height: auto;
}

section.two-column {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

section.two-column .typeLeft, section.two-column .typeRight {
    width: 60%;
    padding: 3rem 0;
}

section.two-column .typeLeft {
    margin-right: 100px;
}

section.two-column .typeRight {
    margin-left: 100px;
}

.squircle {
    clip-path: path("M 306 0 c 67.8823 0 101.823 0 122.912 21.0883 a 72 72 0 0 1 0 0 c 21.0883 21.0883 21.0883 55.0294 21.0883 122.912 L 450 194 c 0 67.8823 0 101.823 -21.0883 122.912 a 72 72 0 0 1 0 0 c -21.0883 21.0883 -55.0294 21.0883 -122.912 21.0883 L 144 338 c -67.8823 0 -101.823 0 -122.912 -21.0883 a 72 72 0 0 1 0 0 c -21.0883 -21.0883 -21.0883 -55.0294 -21.0883 -122.912 L 0 144 c 0 -67.8823 0 -101.823 21.0883 -122.912 a 72 72 0 0 1 0 0 c 21.0883 -21.0883 55.0294 -21.0883 122.912 -21.0883 Z");
    overflow: hidden;
    will-change: transform, opacity;
    width: 720px;
    height: 360px;
}


.squircle img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 60px 0 40px;
}

.app-carousel {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin-right: 20px;
}

.carousel-slide:last-child {
    margin-right: 0;
}

.carousel-slide img {
    max-height: 600px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn svg {
    width: 30px;
    height: 30px;
    fill: #333;
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.download-buttons img.googleplay {
    width: 210px;
    height: 136.5px;
}

.download-buttons img.appstore {
    width: 193.195px;
    height: 56.25px;
}

.footer-brand img {
    width: 261px;
    height: 27px;
}

.footer-brand p {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: -.32px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-content .footer-brand {
    max-width: 30%;
}

nav.SocialIcons {
    display: flex;
    flex-direction: row;
}

nav.footer-links {

}

nav.footer-links a {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -.32px;
    color:  #b8b8b8;
    text-decoration: underline;
    text-underline-position: from-font;
    transition: color .2s ease, opacity .2s ease;
    white-space: nowrap;
}

h1 {
    font-weight: 400;
    font-size: 56px;
    line-height: 72px;
    letter-spacing: -1.12px;
    font-family: 'Self Modern', sans-serif;
    color: #1a1a1a;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

h2 {
    font-weight: 400;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: -1.12px;
    font-family: 'Self Modern', sans-serif;
    color: #1a1a1a;
}

/* Basic layout styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.why-choose {
    max-width: 60%;
    margin: 0 auto;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content, .footer-links, .copyright {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.8;
}

.highlighter {
  font-style: italic;
  font-family: inherit;
  display: inline-block;
  position: relative;
  font-size: inherit !important;
}

.highlighter::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -3px;
  left: 0;
  right: 0;
  background: #DFFE18;
  border-radius: 3px;
  width: 100%;
  transform: rotate(-1deg);
  z-index: -1;
  box-decoration-break: clone;
}

.nowrap {
  white-space: nowrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 400px;
        width: auto;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }

    .carousel-btn-prev {
        left: -20px;
    }

    .carousel-btn-next {
        right: -20px;
    }

    .download-buttons img:first-child {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .download-buttons img.googleplay {
        width: 160px;
        height: 104px;
    }

    .download-buttons img.appstore {
        width: 147px;
        height: 42.75px;
    }

    /* Mobile Footer Styles */
    footer {
        padding: 32px 20px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-brand {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .footer-brand img {
        width: 200px;
        height: auto;
        margin-bottom: 16px;
    }

    .footer-brand p {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
        margin: 0;
    }

    nav.SocialIcons {
        justify-content: center;
        margin: 16px 0;
    }

    nav.footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 24px 0;
        width: 100%;
    }

    nav.footer-links a {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
        width: auto;
    }

    .copyright {
        font-size: 12px;
        line-height: 16px;
        text-align: center;
        margin-top: 24px;
        width: 100%;
    }

    h1 {
        font-size: 3rem;
        line-height: 125%;
    }

    h2 {
        font-size: 2.75rem;
        line-height: 125%;
    }

    section.two-column {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    section.two-column .typeLeft, section.two-column .typeRight {
        width: 100%;
        margin: auto;
        padding: initial;
    }

    section.two-column .squircle {
        margin: 0 auto;
        margin-left: auto !important;
    }

    section.two-column .typeLeft,
    section.two-column .typeRight {
        width: 100%;
        margin: 0;
        padding: 2rem 0;
        order: 2;
    }

    section.two-column .squircle {
        width: 100vw;
        height: 75vw;
        max-height: 450px;
        order: 1;
        margin-bottom: 1rem;
        margin-left: calc(-50vw + 50%);
        clip-path: path("M 306 0 c 67.8823 0 101.823 0 122.912 21.0883 a 72 72 0 0 1 0 0 c 21.0883 21.0883 21.0883 55.0294 21.0883 122.912 L 450 194 c 0 67.8823 0 101.823 -21.0883 122.912 a 72 72 0 0 1 0 0 c -21.0883 21.0883 -55.0294 21.0883 -122.912 21.0883 L 144 338 c -67.8823 0 -101.823 0 -122.912 -21.0883 a 72 72 0 0 1 0 0 c -21.0883 -21.0883 -21.0883 -55.0294 -21.0883 -122.912 L 0 144 c 0 -67.8823 0 -101.823 21.0883 -122.912 a 72 72 0 0 1 0 0 c 21.0883 -21.0883 55.0294 -21.0883 122.912 -21.0883 Z");
    }

    section.two-column h2 {
        text-align: center;
        font-size: 2.5rem;
    }

    section.two-column p {
        text-align: center;
        max-width: 400px;
        margin: 1rem auto;
    }
}
