/* Plain CSS for the standalone landing pages */
:root {
    --bg: #ffffff;
    --text: #0b0b0c;
    --muted: #5f6368;
    --accent: #0a84ff; /* iOS blue */
    --accent-2: #ff6b6b; /* coral */
    --accent-3: #34c759; /* iOS green */
    --border: #e6e6e6;
    --surface: #f7f7f8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0c0d;
        --text: #f5f7fa;
        --muted: #b5bcc6;
        --border: #2a2a2d;
        --surface: #161617;
    }
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7; /* Improve readability: more comfortable line spacing */
}

/* Typography defaults */
p, li {
    line-height: 1.7;
}

.lead {
    line-height: 1.65;
}

.hero p.sub {
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

header.hero {
    padding: 64px 0 24px;
    background: radial-gradient(1200px 400px at 80% 0%, color-mix(in oklab, var(--accent) 30%, transparent) 0%, transparent 70%),
    radial-gradient(800px 300px at 10% 10%, color-mix(in oklab, var(--accent-2) 24%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 100%, white) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden
}

nav.top {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px
}

nav.top .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit
}

nav.top .brand .app-icon {
    width: 48px;
    height: 48px
}

nav.top .nav-right {
    display: flex;
    gap: 16px;
    align-items: center
}

nav.top a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500
}

a.cta {
    text-decoration: none;
    font-weight: 500;

    color: #fff !important;
    background: var(--accent);
    padding: 10px 14px;
    border-radius: 10px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 100%;
        gap: 16px
    }
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px
}

.badges .badge {
    display: flex;
    align-items: center;
    font-weight: bold;

    &::before {
        content: url("/assets/apple-accolade.svg");
        padding-top: 4px;
        padding-right: 4px;

        filter: invert(0); /* Light mode */
        @media (prefers-color-scheme: dark) {
            filter: invert(1); /* Dark mode: white if original is black */
        }
    }

    &::after {
        display: inline-block;
        content: url("/assets/apple-accolade.svg");
        transform: scaleX(-1);
        padding-top: 4px;
        padding-left: 4px;

        filter: invert(0); /* Light mode */
        @media (prefers-color-scheme: dark) {
            filter: invert(1); /* Dark mode: white if original is black */
        }
    }
}

.kicker {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px
}

.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 8px 0 12px
}

.hero p.sub {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 20px
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
}

.rating-display .stars {
    display: flex;
    gap: 2px;
    color: #ff9500;
    font-size: 18px;
}

.rating-display .rating-text {
    font-size: 14px;
    color: var(--text);
}

.rating-display .rating-text strong {
    font-weight: 600;
    font-size: 16px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.trust-icon {
    font-size: 18px;
}

.trust-text {
    font-weight: 500;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: var(--bg)
}

.button.primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.button.secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    font-weight: 500;
}

.button.secondary:hover {
    border-color: var(--accent);
}

.phone {
    position: relative
}

.phone img {
    width: 100%;
    max-width: 420px;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .22));
    border-radius: 24px
}

/* floating animation */
.float {
    animation: float 6s ease-in-out infinite
}

@keyframes float {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-8px)
    }
}

.section {
    padding: 32px 0 64px 0;
    border-top: 1px solid var(--border)
}

.section.alt {
    background: var(--surface)
}

.section h2 {
    font-size: 32px;
    margin: 0 0 12px
}

.section p {
    color: var(--muted);
    margin: 0 0 12px
}

.flex {
    display: flex;
    align-items: center;
    gap: 16px;

    @media (max-width: 900px) {
        flex-direction: column;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center
}

.grid.mirror {
    grid-template-columns:1fr 1.2fr
}

.grid .image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18)
}

@media (max-width: 900px) {
    .grid, .grid.mirror {
        grid-template-columns: 100%;
    }
}

.features {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;

    @media (max-width: 900px) {
        grid-template-columns: 100%;
    }
}

.feature {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}

.feature h3 {
    margin: 6px 0 8px;
    font-size: 18px
}

.ipad-screens {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 20px;

    @media (max-width: 900px) {
        grid-template-columns: 100%;
    }
}

.ipad-screens img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border)
}

.faq details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--bg)
}

.faq details + details {
    margin-top: 12px
}

.faq summary {
    cursor: pointer;
    font-weight: 600
}

.faq p {
    margin-top: 10px;
    color: var(--muted)
}

.videos {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px
}

.videos iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18)
}

.single-video {
    display: flex;
    justify-content: center;
}

.single-video iframe {
    max-width: 350px;
    aspect-ratio: 9/16;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18)
}

@media (max-width: 900px) {
    .videos {
        grid-template-columns:1fr
    }
}

.footer {
    padding: 28px 0;
    color: var(--muted);
    font-size: 14px
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px
}

.social {
    display: flex;
    gap: 10px;
    align-items: center
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-decoration: none
}

.social a:hover {
    border-color: var(--accent)
}

.app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    border: 1px solid var(--border);
    object-fit: cover
}

.awards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.awards img {
    height: 34px
}

.content-marketing {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px;

    @media (max-width: 900px) {
        grid-template-columns: 100%;
    }
}

.content-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit
}

.content-card h4 {
    margin: 0 0 6px
}

.content-card p {
    margin: 0;
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.devices-container {
    grid-column-gap: 8px;
    justify-content: space-around;
    max-width: 386px;
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
}

.single-device-container {
    background-color: var(--bg);
    border-radius: 13px;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 8px;
    display: flex;
    color: var(--text);

    img {
        filter: invert(0); /* Light mode */

        @media (prefers-color-scheme: dark) {
            filter: invert(1); /* Dark mode: white if original is black */
        }
    }
}

.device-label {
    margin-bottom: 0;
    margin-top: 8px;
}

.content img {
    max-width: 100%;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;

    @media (max-width: 900px) {
        grid-template-columns: 100%;
    }
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-stars {
    color: #ff9500;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.testimonial-quote {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 15px;
    color: var(--text);
}

.testimonial-role {
    font-size: 14px;
    color: var(--muted);
}

/* FAQ Pages Styles */
.breadcrumb {
    margin: 8px 0 24px 0;
    font-size: 14px;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li::after {
    content: '›';
    margin-left: 8px;
    color: var(--muted);
}

.breadcrumb ol li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--muted);
}

/* Individual FAQ Page */
.faq-single-page {
    padding: 32px 0 64px;
}

.faq-article {
    max-width: 800px;
    margin: 0 auto;
}

.faq-article header h1 {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--text);
}

.faq-answer {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 40px;
}

.faq-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 48px 0;
}

.faq-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.faq-cta .button {
    margin: 0 8px;
}

/* Related FAQs */
.related-faqs {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-faqs h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.faq-card:hover {
    border-color: var(--accent);
}

.faq-card h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: var(--text);
}

.faq-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.view-all {
    text-align: center;
    margin-top: 24px;
}

.view-all a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.view-all a:hover {
    text-decoration: underline;
}

/* FAQ List Page */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.faq-item h2 a {
    color: var(--text);
    text-decoration: none;
}

.faq-item h2 a:hover {
    color: var(--accent);
}

.faq-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 12px;
}

.faq-item .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.faq-item .read-more:hover {
    text-decoration: underline;
}
