/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 30px;
}

.hero-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 14px;
    color: #111827;
    white-space: pre-line;
}

.hero-title span {
    background: linear-gradient(120deg, #4f46e5, #a855f7, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 22px;
    max-width: 480px;
    white-space: pre-line;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    padding: 6px 10px 4px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(148, 163, 184, 0.3);
}

.tag-accent {
    border-color: rgba(129, 140, 248, 0.9);
    background: var(--accent-soft);
    color: #312e81;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-cta-secondary {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.9);
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
}

.hero-cta-secondary-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.26);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
}

.device-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
}

.device-screen {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: radial-gradient(circle at 0 0, #e5e7eb 0, #ffffff 60%);
    padding: 14px 14px 12px;
}

.device-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px;
    color: #111827;
}

.device-map {
    border-radius: 16px;
    background-image: radial-gradient(circle at 10% 10%, #22c55e 0, #4f46e5 30%, #a855f7 55%, #eff6ff 100%);
    padding: 12px;
    position: relative;
    overflow: hidden;
    min-height: 152px;
}

.device-card {
    margin-top: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.device-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, #f97316 0, #6366f1 60%, #22c55e);
    border: 1px solid rgba(148, 163, 184, 0.9);
}

.device-text {
    flex: 1;
}

.device-text h4 {
    font-size: 11px;
    margin-bottom: 4px;
    color: #111827;
}

.device-text p {
    font-size: 11px;
    color: #374151;
}

.device-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: #6b7280;
}

/* Features */

.features {
    padding-top: 6px;
    padding-bottom: 38px;
}

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

.feature-card {
    border-radius: var(--radius-xl);
    padding: 16px 16px 18px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) {
    background: linear-gradient(145deg, #eef2ff, #ffffff);
}

.feature-card:nth-child(2) {
    background: linear-gradient(145deg, #ecfdf3, #ffffff);
}

.feature-card:nth-child(3) {
    background: linear-gradient(145deg, #f9fafb, #ffffff);
}

.feature-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6366f1;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.feature-desc {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
}

.feature-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.feature-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
}

.feature-label {
    padding: 5px 8px 3px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(255, 255, 255, 0.96);
}

.feature-card-link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: block;
}

.feature-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Guide Page */

.guide-page {
    padding-top: 80px;
}

.guide-header {
    margin-bottom: 32px;
}

.guide-back {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 16px;
}

.guide-back:hover {
    color: var(--accent);
}

.guide-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.guide-subtitle {
    font-size: 15px;
    color: #4b5563;
}

.guide-content {
    max-width: 680px;
}

.guide-section {
    margin-bottom: 40px;
}

.guide-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-soft);
}

.guide-section p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.7;
}

.guide-section ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.guide-section li {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-image-placeholder {
    margin: 20px 0;
    padding: 8px;
    background: #f3f4f6;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(148, 163, 184, 0.3);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    overflow: hidden;
}

.guide-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    margin: 0 auto;
}

.guide-image-row {
    display: flex;
    gap: 12px;
}

.guide-image-row img {
    width: calc(50% - 6px);
    height: auto;
    border-radius: var(--radius-lg);
    margin: 0;
}

.guide-notice {
    margin-top: 32px;
    padding: 16px;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: #4338ca;
}

/* Terms */

.terms {
    padding-top: 20px;
    padding-bottom: 48px;
}

.terms-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.terms-summary {
    border-radius: var(--radius-xl);
    padding: 16px 16px 18px;
    border: 1px solid rgba(209, 213, 219, 0.95);
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.pill-danger {
    border-color: rgba(248, 113, 113, 0.9);
    color: #b91c1c;
    background: #fee2e2;
}

.pill-info {
    border-color: rgba(129, 140, 248, 0.9);
    color: #3730a3;
    background: #e0e7ff;
}

.terms-summary h3 {
    font-size: 15px;
    margin: 10px 0 8px;
    color: #111827;
}

.terms-summary p {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}

.terms-highlights {
    list-style: none;
    font-size: 13px;
    color: #374151;
}

.terms-highlights li {
    display: flex;
    gap: 8px;
    padding-block: 4px;
}

.terms-highlights li::before {
    content: "•";
    color: #4f46e5;
    font-size: 16px;
    line-height: 1.2;
}

.terms-actions {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.terms-actions button {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #f9fafb;
    padding: 6px 10px;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
}

.terms-actions button span {
    font-size: 14px;
}

.terms-panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(209, 213, 219, 0.95);
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
}

.terms-panel .terms-content {
    flex: 1;
}

.terms-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    padding-bottom: 10px;
}

.terms-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.terms-tab:hover {
    background: rgba(243, 244, 246, 0.9);
    color: #111827;
}

.terms-tab.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.terms-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.terms-version-pill {
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #f9fafb;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.terms-version-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.terms-content {
    max-height: 260px;
    overflow: auto;
    padding: 10px 6px 6px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.9) transparent;
    font-size: 12px;
    color: #374151;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: transparent;
}

.terms-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.9);
    border-radius: 999px;
}

.terms-section {
    margin-bottom: 12px;
}

.terms-section h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4338ca;
}

.terms-section p,
.terms-section li {
    font-size: 12px;
    color: #374151;
}

.terms-section ul {
    margin-top: 4px;
    padding-left: 14px;
}

.terms-section li {
    list-style: disc;
    margin-bottom: 2px;
}

.terms-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(209, 213, 219, 0.9);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Privacy Table (for tab content) */

.privacy-table-wrapper {
    overflow-x: auto;
    margin-top: 8px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.privacy-table th,
.privacy-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid rgba(209, 213, 219, 0.9);
}

.privacy-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

.privacy-table td {
    color: #374151;
}

/* Responsive - Main */

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
    }

    .terms-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 26px;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .terms {
        padding-top: 10px;
    }
}