:root {
    --bg: #0f1115;
    --surface: #151823;
    --text: #eef1f8;
    --muted: #b7bdc9;
    --primary: #34C759;
    /* mint */
    --primary-ink: #0b2414;
    --border: #262a36;
    --accent: #8ab4f8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        linear-gradient(rgba(15, 17, 21, 0.78), rgba(15, 21, 32, 0.82)),
        url('./background.jpg') center / cover no-repeat fixed;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    padding-left: 24px;
    padding-right: 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand .logo {
    font-size: 22px;
}

.logo-img {
    width: 28px;
    height: 28px;
    display: inline-block;
}

.brand-name {
    letter-spacing: 0.2px;
}

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

.brand-link:hover {
    opacity: 0.9;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.nav-btn:hover {
    background: var(--surface);
}

.nav a:focus-visible,
.nav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav a:hover {
    background: var(--surface);
}

/* Mobile nav */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 2px;
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        padding: 10px 0;
        align-items: center;
    }

    .site-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: rgba(15, 17, 21, 0.98);
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a,
    .nav-btn {
        padding: 12px 10px;
    }
}

@media (min-width: 821px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        display: flex;
        gap: 4px;
        background: transparent;
        border: 0;
        padding: 0;
    }
}

.hero {
    padding: 72px 0 32px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 40px);
}

.hero p {
    margin: 0 auto 20px;
    max-width: 640px;
    color: var(--muted);
}

.cta-row {
    display: inline-flex;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--primary-ink);
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.button:hover {
    filter: brightness(0.96);
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.section {
    padding: 48px 0;
}

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

.section h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

/* Showcase */
.showcase {
    padding-top: 48px;
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .showcase-inner {
        grid-template-columns: 1.1fr 1fr;
        gap: 40px;
    }
}

.showcase-title {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.05;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.title-logo {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
}

.showcase-sub {
    margin: 0 0 14px;
    color: var(--primary);
    font-weight: 700;
}

.showcase-lead {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.6;
}

.showcase-kicker {
    margin: 22px 0 10px;
    color: var(--primary);
}

.showcase-features {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
    font-size: 15px;
}

.showcase-cta {
    margin-top: 14px;
}

.appstore-link {
    line-height: 0;
}

.appstore-badge {
    height: 44px;
    width: auto;
    display: block;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* iPhone mock */
.iphone {
    width: min(240px, 65%);
    aspect-ratio: 9/19.5;
    border-radius: 36px;
    padding: 14px;
    background: linear-gradient(145deg, #0c0f14, #1a2030);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    position: relative;
}

.iphone::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 400ms ease;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
    background: #000;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.slider-nav:hover {
    filter: brightness(1.2);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    padding: 0;
}

.slider-dots button[aria-current="true"] {
    background: #fff;
}

.accordion details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
}

.accordion summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion details>div {
    margin-top: 10px;
    color: var(--muted);
}

label {
    display: block;
    margin: 10px 0;
    font-weight: 600;
}

.req-mark {
    color: var(--primary);
    margin-left: 4px;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 700px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.actions {
    margin-top: 12px;
}

.hidden {
    position: absolute !important;
    left: -10000px;
}

.typeform .responsive-iframe {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    /* 16:10-ish */
}

.typeform iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.notice {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 12px 0 16px;
}

.notice.success {
    background: rgba(110, 231, 183, 0.1);
    border-color: rgba(110, 231, 183, 0.35);
}

.notice.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

/* Contact Form Enhancements */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading[hidden] {
    display: none !important;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation Styles */
input.valid,
textarea.valid {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.2);
}

input.error,
textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

input:focus.valid,
textarea:focus.valid {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.3);
}

input:focus.error,
textarea:focus.error {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* FAQ Categories */
.faq-category {
    margin: 32px 0;
}

.faq-category h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* Troubleshooting Steps */
.intro-text {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 16px;
}

.troubleshoot-steps {
    margin: 24px 0;
}

.troubleshoot-step {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--primary-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0 0 12px;
    color: var(--text);
}

.step-content p:last-child {
    margin-bottom: 0;
}

/* Troubleshooting Images */
.troubleshoot-image {
    margin: 12px 0 0;
    text-align: center;
}

.troubleshoot-image img {
    max-height: 200px;
    max-width: 100%;
    height: auto;
}

/* Contact Link */
.contact-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--accent);
}

/* Enhanced List Styling */
.accordion ul,
.accordion ol {
    margin: 8px 0;
    padding-left: 20px;
}

.accordion li {
    margin: 4px 0;
    line-height: 1.5;
}

.accordion li strong {
    color: var(--primary);
}

.accordion p {
    margin: 8px 0;
    line-height: 1.6;
}

.accordion p:first-child {
    margin-top: 0;
}

.accordion p:last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--muted);
}

/* Gentle inline link chips for footer and about */
.modal-sub a,
.site-footer a {
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 2px 8px;
    border: 1px solid transparent;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.modal-sub a:hover,
.site-footer a:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.modal-sub a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(680px, 92%);
    height: fit-content;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content {
    padding: 20px;
}

.modal-title {
    margin: 0 0 6px;
    color: var(--primary);
}

.modal-sub {
    margin: 0 0 12px;
    color: var(--muted);
}

.modal-body {
    color: var(--text);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.modal-close:hover {
    filter: brightness(1.2);
}