/* ===========================
   SunEyed — Shared Stylesheet
   =========================== */

:root {
    --blue:       #0d6b8c;
    --blue-dark:  #08485e;
    --blue-light: #e6f4f9;
    --amber:      #f5a623;
    --amber-dark: #d4891a;
    --text:       #1a1a1a;
    --text-muted: #555;
    --border:     #e0e0e0;
    --bg-alt:     #f5f7f8;
    --radius:     12px;
    --radius-sm:  6px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.2;
    color: var(--text);
}

/* ---- Layout helpers ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

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

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    text-decoration: none;
}

.nav__logo-sun {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.nav__links a:hover { color: var(--blue); text-decoration: none; }

.nav__cta {
    background: var(--amber);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
}
.nav__cta:hover { background: var(--amber-dark) !important; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.1s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--blue);
    color: #fff;
}
.btn--amber {
    background: var(--amber);
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(160deg, #08485e 0%, #0d6b8c 55%, #1c90b8 100%);
    color: #fff;
    padding: 100px 24px 80px;
    text-align: center;
}

.hero__eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.1;
}

.hero__title em {
    color: var(--amber);
    font-style: normal;
}

.hero__sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.82);
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__badges {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

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

/* ---- App Store badge ---- */
.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.appstore-badge:hover { opacity: 0.85; text-decoration: none; }
.appstore-badge__icon { font-size: 28px; }
.appstore-badge__text { text-align: left; }
.appstore-badge__sub { font-size: 10px; color: rgba(255,255,255,0.7); display: block; }
.appstore-badge__main { font-size: 18px; font-weight: 700; line-height: 1.1; }

/* ---- Screenshots ---- */
.screenshots {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 56px;
}

.screenshot-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    flex-shrink: 0;
}

.screenshot-card__img-placeholder {
    width: 100%;
    aspect-ratio: 9/19.5;
    background: linear-gradient(180deg, var(--blue-light) 0%, #d4edf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.screenshot-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step__number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.step__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

/* ---- Features grid ---- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.feature-card__icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.feature-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Trust row ---- */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-dark);
}

/* ---- Installer CTA band ---- */
.installer-band {
    background: var(--blue-dark);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
}

.installer-band h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 12px;
}

.installer-band p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ---- Section header ---- */
.section-header {
    text-align: center;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
}

.section-header p {
    margin-top: 12px;
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

/* ---- Footer ---- */
.footer {
    background: #0d1f26;
    color: rgba(255,255,255,0.6);
    padding: 48px 24px;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__logo-img {
    height: 20px;
    width: auto;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.footer__links a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}
.footer__links a:hover { color: #fff; text-decoration: none; }

.footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    width: 100%;
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
}

/* ---- Interior page layout ---- */
.page-content {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 24px 80px;
}

.page-content h1 {
    font-size: 32px;
    margin-bottom: 4px;
}

.page-content h2 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 10px;
}

.page-content p { margin-bottom: 14px; color: var(--text-muted); }
.page-content ul { padding-left: 20px; margin-bottom: 14px; }
.page-content li { color: var(--text-muted); margin-bottom: 4px; }
.page-content .meta { color: #888; font-size: 14px; margin-bottom: 40px; }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---- Form ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.15s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    max-width: 600px;
    margin: 48px auto 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-success {
    display: none;
    background: #e6f9ee;
    border: 1px solid #6dcf95;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: #1a6b38;
    font-weight: 500;
    margin-top: 16px;
}

/* ---- FAQ ---- */
details {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

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

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 14px;
    color: var(--blue);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

details[open] summary::after { content: "−"; }

details p {
    margin: 0 0 14px 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ---- How It Works page ---- */
.step-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    margin-bottom: 56px;
    align-items: start;
}

.step-row__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.step-row__body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-row__body p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.step-row__sub {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--blue);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .nav__links { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-box { padding: 28px 20px; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
    .hero { padding: 72px 20px 56px; }
    .step-row { grid-template-columns: 44px 1fr; gap: 16px; }
    .step-row__num { width: 44px; height: 44px; font-size: 18px; }
}
