/* Standalone install page — light store-style UI, independent of app theme */

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

html {
    -webkit-text-size-adjust: 100%;
}

body.gp-page {
    margin: 0;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #202124;
    background: #fff;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Top bar */
.gp-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 56px;
    padding: 0 0.35rem 0 0.15rem;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
}

.gp-back {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #5f6368;
}

.gp-back:active {
    background: #f1f3f4;
}

.gp-topbar-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

/* Main */
.gp-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.15rem 1.25rem 2.5rem;
}

.gp-app-head {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.gp-icon {
    width: 72px;
    height: 72px;
    border-radius: 20%;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}

.gp-app-name {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
    color: #202124;
}

.gp-developer {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #01875f;
}

/* Stats row */
.gp-stats {
    display: flex;
    align-items: stretch;
    margin-bottom: 1.35rem;
}

.gp-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    padding: 0 0.35rem;
}

.gp-stat strong {
    font-size: 0.88rem;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
}

.gp-stat .gp-star {
    color: #202124;
    font-size: 0.75rem;
}

.gp-stat-18 {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border: 1px solid #202124;
    border-radius: 2px;
    font-size: 0.72rem !important;
    line-height: 1;
}

.gp-stat span {
    font-size: 0.68rem;
    color: #5f6368;
    line-height: 1.3;
}

.gp-stat-div {
    width: 1px;
    background: #dadce0;
    margin: 0.15rem 0;
    flex-shrink: 0;
}

/* Install CTA */
.gp-cta {
    margin-bottom: 1.5rem;
}

.gp-install-btn {
    width: 100%;
    padding: 0.72rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #01875f;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.gp-install-btn:hover {
    background: #056449;
}

.gp-install-btn:active {
    background: #045c42;
}

.gp-install-btn.is-open {
    background: #1a73e8;
}

.gp-install-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.gp-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: #5f6368;
    line-height: 1.5;
    text-align: center;
}

/* Preview */
.gp-preview {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.gp-preview-img {
    width: 100%;
    border-radius: 12px;
}

/* Content blocks */
.gp-block {
    margin-bottom: 1.75rem;
    color: #3c4043;
    font-size: 0.88rem;
    line-height: 1.65;
}

.gp-block-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}

.gp-tagline {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
}

.gp-block p {
    margin: 0 0 0.75rem;
}

.gp-note {
    margin: 0;
    color: #5f6368;
    font-size: 0.8rem;
}

/* FAQ */
.gp-faq-item {
    border-top: 1px solid #e8eaed;
}

.gp-faq-item:last-of-type {
    border-bottom: 1px solid #e8eaed;
}

.gp-faq-item summary {
    padding: 0.85rem 0;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
    list-style: none;
}

.gp-faq-item summary::-webkit-details-marker {
    display: none;
}

.gp-faq-item summary::after {
    content: "+";
    float: right;
    color: #5f6368;
    font-weight: 400;
}

.gp-faq-item[open] summary::after {
    content: "−";
}

.gp-faq-item p {
    margin: 0 0 0.85rem;
    padding: 0 0 0.15rem;
    color: #5f6368;
    font-size: 0.84rem;
}

/* Contact */
.gp-contact-lines a {
    color: #1a73e8;
    font-weight: 500;
}

.gp-contact-lines a:hover {
    text-decoration: underline;
}

/* Footer */
.gp-foot {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.gp-foot p {
    margin: 0;
    font-size: 0.75rem;
    color: #80868b;
}

.gp-ios-steps {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #e8f0fe;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #174ea6;
    line-height: 1.5;
}

.gp-ios-steps p {
    margin: 0;
}
