/* gnss.css — GNSS receiver guide page
   BoundaryFinder NZ — boundaryfinder.co.nz
   Uses boundaryfinder.co.nz design system (--bf-* tokens from preview-boundary.css)
*/

/* ── Design tokens (matches preview-boundary.css) ── */
:root {
    --bf-primary: #1a5632;
    --bf-primary-dark: #134025;
    --bf-primary-light: #2a7a4a;
    --bf-accent: #e8a838;
    --bf-accent-dark: #d4922c;
    --bf-text: #333;
    --bf-text-light: #666;
    --bf-text-muted: #999;
    --bf-bg: #fff;
    --bf-bg-light: #f7f8fa;
    --bf-border: #e0e0e0;
    --bf-radius: 8px;
    --bf-radius-lg: 12px;
    --bf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --bf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ── Hero ───────────────────────────────── */
.gn-hero {
    padding: 2.5rem 0 0;
}

.gn-hero .container {
    background: #ffffff;
    border: 3px solid #e8a838;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(184, 130, 30, 0.08);
    text-align: center;
}

.gn-hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #4a3510;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.gn-hero__lead {
    font-size: 1.05rem;
    color: #64748b;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Content area ────────────────────────── */
.gn-content {
    padding: 3rem 0 4rem;
}

.gn-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bf-primary);
}

.gn-content h2:first-child {
    margin-top: 0;
}

.gn-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.gn-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.gn-content ul,
.gn-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.gn-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ── Compare cards ───────────────────────── */
.gn-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.gn-compare__card {
    padding: 1.5rem;
    border-radius: var(--bf-radius-lg);
    border: 1px solid #e8d5a3;
    background: var(--bf-bg);
    text-align: center;
}

.gn-compare__card--highlight {
    border-color: #e8a838;
    border-width: 2px;
    background: #fef9ef;
}

.gn-compare__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gn-compare__card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.gn-compare__card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gn-compare__accuracy {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #888;
}

.gn-compare__accuracy--good {
    color: var(--bf-primary);
}

@media (max-width: 600px) {
    .gn-compare {
        grid-template-columns: 1fr;
    }
}

/* ── Callout boxes ───────────────────────── */
.gn-callout {
    background: #fef9ef;
    border-left: 4px solid #e8a838;
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--bf-radius) var(--bf-radius) 0;
    margin: 1.5rem 0;
}

.gn-callout--info {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: #3b82f6;
}

.gn-callout h3 {
    margin: 0 0 0.5rem !important;
    font-size: 1rem;
}

.gn-callout p {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

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

/* ── Steps list ──────────────────────────── */
.gn-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0 !important;
}

.gn-steps li {
    counter-increment: step;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    border-left: 2px solid var(--bf-border);
    margin-bottom: 0 !important;
}

.gn-steps li:last-child {
    border-left-color: transparent;
}

.gn-steps li::before {
    content: counter(step);
    position: absolute;
    left: -0.85rem;
    top: 1rem;
    width: 1.7rem;
    height: 1.7rem;
    background: var(--bf-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ── Features grid ───────────────────────── */
.gn-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gn-features__item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--bf-radius);
    border: 1px solid #e8d5a3;
    background: var(--bf-bg);
}

.gn-features__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.gn-features__item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.gn-features__item p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--bf-text-light);
}

@media (max-width: 600px) {
    .gn-features {
        grid-template-columns: 1fr;
    }
}

/* ── Device cards ────────────────────────── */
.gn-device {
    padding: 1.5rem;
    border-radius: var(--bf-radius-lg);
    border: 1px solid #e8d5a3;
    background: var(--bf-bg);
    margin-bottom: 1rem;
}

.gn-device--recommended {
    border: 2px solid #e8a838;
    position: relative;
    background: #fef9ef;
}

.gn-devices-grid--recommended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gn-devices-grid--recommended .gn-device {
    margin-bottom: 0;
}

.gn-device__badge {
    position: absolute;
    top: -0.7rem;
    left: 1.5rem;
    background: var(--bf-primary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: var(--bf-radius-sm, 4px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.gn-device--pro {
    border-color: #1a2e56;
    background: rgba(26, 46, 86, 0.02);
}

.gn-device h3 {
    margin: 0 0 0.75rem !important;
    font-size: 1.05rem;
}

.gn-device__specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.gn-device__specs td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--bf-border);
}

.gn-device__specs td:first-child {
    font-weight: 600;
    color: var(--bf-text-light);
    width: 120px;
}

.gn-device__why {
    font-size: 0.9rem;
    background: rgba(26, 86, 50, 0.04);
    padding: 0.75rem 1rem;
    border-radius: var(--bf-radius);
    margin-bottom: 1rem;
}

.gn-device__buy-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--bf-primary);
    color: #fff;
    border-radius: var(--bf-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.gn-device__buy-btn:hover {
    background: var(--bf-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.gn-device__note {
    font-size: 0.85rem;
    color: var(--bf-text-light);
    margin-bottom: 0.5rem;
}

.gn-device__buy-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bf-primary);
}

.gn-device__buy-link:hover {
    text-decoration: underline;
}

/* ── Devices grid ────────────────────────── */
.gn-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gn-devices-grid .gn-device {
    margin-bottom: 0;
}

/* ── Summary table ───────────────────────── */
.gn-summary {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.gn-summary__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gn-summary__table th,
.gn-summary__table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e8d5a3;
}

.gn-summary__table th {
    background: #fef3c7;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
}

.gn-summary__highlight {
    background: #fef9ef;
    font-weight: 600;
}

/* ── FAQ ─────────────────────────────────── */
.gn-faq {
    margin: 1.5rem 0;
}

.gn-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bf-border);
}

.gn-faq__item:last-child {
    border-bottom: none;
}

.gn-faq__item h3 {
    margin: 0 0 0.4rem !important;
    font-size: 0.95rem;
}

.gn-faq__item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--bf-text-light);
}

/* ── Bottom CTA ──────────────────────────── */
.gn-bottom-cta {
    background: #fef9ef;
    border: 3px solid #e8a838;
    padding: 2rem;
    border-radius: var(--bf-radius-lg);
    text-align: center;
    margin-top: 2rem;
}

.gn-bottom-cta p {
    max-width: 600px;
    margin: 0 auto 1rem;
}

.gn-bottom-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gn-bottom-cta__btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--bf-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.gn-bottom-cta__btn--primary {
    background: var(--bf-primary);
    color: #fff;
}

.gn-bottom-cta__btn--primary:hover {
    background: var(--bf-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.gn-bottom-cta__btn--secondary {
    background: #fff;
    color: var(--bf-primary);
    border: 2px solid var(--bf-primary);
}

.gn-bottom-cta__btn--secondary:hover {
    background: rgba(26, 86, 50, 0.05);
    transform: translateY(-1px);
}
