/*
 * pg-public.css — Public-site redesign styles (home marketing sections +
 * guide.php). Kept SEPARATE from praytime.css deliberately: praytime.css
 * is relied on by the live signup wizard (index.php), pricing.php, and
 * manage.php, and this redesign must not risk regressing that working
 * checkout flow. Every class here is namespaced "pg-" so it can never
 * collide with existing classes in praytime.css or the inline styles
 * already in index.php/nav.php.
 *
 * Brand color matches nav.php/the existing signup wizard's green (#1a6b3c)
 * rather than praytime.css's separate teal token (--primary-color:
 * #0d9488) — those two "brand greens" already coexist inconsistently in
 * the current site (a pre-existing issue, flagged in the redesign report,
 * not fixed wholesale here to avoid touching the working wizard's CSS).
 * New content sits directly beside the nav/wizard on the same page, so it
 * follows their color rather than introducing a third one.
 *
 * No web fonts, no JS-driven interactions, no animation libraries.
 */

/* No box-sizing reset needed here — praytime.css already sets a global
   `box-sizing: border-box` (line 9), and every page using this stylesheet
   also links praytime.css. */

.pg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 1.25rem;
}

/* ==================== Section rhythm ==================== */

.pg-section {
    padding-block: 3rem;
}
.pg-section-alt { background: #f7faf8; }
.pg-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 .6rem;
    text-align: center;
}
.pg-section-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
}
.pg-kicker {
    display: block;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a6b3c;
    margin-bottom: .5rem;
}

/* ==================== Hero ==================== */

.pg-hero {
    padding-block: 3.5rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, #f0faf5 0%, #fff 100%);
}
.pg-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #10321f;
    margin: 0 0 .9rem;
    line-height: 1.15;
}
.pg-hero-sub {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}
.pg-hero-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== Buttons ==================== */

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
    padding: .85rem 1.6rem;
    border-radius: 9px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.pg-btn-primary { background: #1a6b3c; color: #fff; }
.pg-btn-primary:hover { background: #155830; color: #fff; }
.pg-btn-secondary { background: #fff; color: #1a6b3c; border-color: #1a6b3c; }
.pg-btn-secondary:hover { background: #f0faf5; }
.pg-btn:focus-visible { outline: 2px solid #1a6b3c; outline-offset: 3px; }

/* ==================== SMS phone mockup (CSS-only, no JS/library) ==================== */

.pg-phone-mock {
    max-width: 300px;
    margin: 0 auto;
    background: #1f2937;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.pg-phone-screen {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1rem 1.5rem;
    min-height: 180px;
}
.pg-phone-contact {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}
.pg-sms-bubble {
    max-width: 85%;
    padding: .65rem .9rem;
    border-radius: 16px;
    font-size: .88rem;
    line-height: 1.45;
    margin-bottom: .6rem;
    word-wrap: break-word;
}
.pg-sms-in {
    background: #e5f6ec;
    color: #10321f;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.pg-sms-out {
    background: #f1f3f5;
    color: #1f2937;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.pg-sms-caption {
    text-align: center;
    color: #6b7280;
    font-size: .92rem;
    margin-top: 1.5rem;
}

/* Small inline SMS example used inside the Guide (not the hero phone mock) */
.pg-sms-mini { max-width: 420px; margin: 1.25rem 0; }
.pg-sms-mini .pg-sms-bubble { display: block; }

/* ==================== How it works / 3 steps ==================== */

.pg-steps-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.pg-step-card { text-align: center; padding: 0 .5rem; }
.pg-step-num {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #1a6b3c;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    margin: 0 auto .9rem;
}
.pg-step-card h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: #1a1a1a; }
.pg-step-card p { font-size: .9rem; color: #666; line-height: 1.55; margin: 0; }

/* ==================== Cards (calc methods, asr, commands) ==================== */

.pg-method-grid, .pg-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.pg-method-card, .pg-command-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.pg-method-card h3, .pg-command-card h3 {
    font-size: 1rem;
    margin: 0 0 .35rem;
    color: #10321f;
}
.pg-method-region { font-size: .82rem; color: #6b7280; margin: 0 0 .3rem; }
.pg-method-note { font-size: .82rem; color: #888; margin: 0; }
.pg-command-card p { font-size: .87rem; color: #555; margin: 0 0 .4rem; line-height: 1.5; }
.pg-command-example code {
    background: #f1f3f5;
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
}
.pg-command-meta, .pg-command-note { font-size: .78rem; color: #888; margin: .25rem 0 0; }

/* ==================== Midnight timeline ==================== */

.pg-midnight-diagrams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.pg-midnight-diagram {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}
.pg-midnight-diagram-label {
    font-size: .82rem;
    font-weight: 700;
    color: #10321f;
    text-align: center;
    margin: 0 0 1rem;
}
.pg-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}
.pg-timeline::before {
    content: '';
    position: absolute;
    top: 5px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a6b3c, #f59e0b, #1a6b3c);
    border-radius: 2px;
}
.pg-timeline span {
    position: relative;
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    padding: 0 .4rem;
}
.pg-timeline span::before {
    content: '';
    display: block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #1a6b3c;
    margin: -14px auto 6px;
}
.pg-timeline-mid { color: #10321f; font-weight: 800; }
.pg-timeline-mid::before { background: #f59e0b; width: 12px; height: 12px; margin-top: -16px; }

/* ==================== Lists / callouts ==================== */

.pg-steps-list, .pg-reason-list {
    line-height: 1.75;
    color: #444;
    padding-left: 1.3rem;
}
.pg-callout {
    background: #f0faf5;
    border: 1px solid #cdeedd;
    border-radius: 10px;
    padding: .9rem 1.1rem;
    font-size: .92rem;
    color: #10321f;
}
.pg-callout-note {
    background: #fffaf0;
    border-color: #fde7b8;
    color: #7a5800;
}
.pg-note { font-size: .85rem; color: #888; }

/* ==================== Trust section ==================== */

.pg-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: center;
}
.pg-trust-item { font-size: .88rem; color: #555; }
.pg-trust-item i { color: #1a6b3c; font-size: 1.3rem; display: block; margin-bottom: .5rem; }
.pg-attribution { text-align: center; font-size: .82rem; color: #888; max-width: 640px; margin: 1.5rem auto 0; line-height: 1.6; }
.pg-attribution a { color: #1a6b3c; }

/* ==================== Final CTA ==================== */

.pg-cta-final { text-align: center; }
.pg-cta-final h2 { margin-bottom: .5rem; }

/* ==================== Guide page ==================== */

.pg-page-header {
    background: linear-gradient(180deg, #f0faf5 0%, #fff 100%);
    padding-block: 2.5rem 1.5rem;
    text-align: center;
}
.pg-page-header h1 { font-size: 2rem; font-weight: 800; color: #10321f; margin: 0 0 .5rem; }
.pg-page-header p { color: #555; margin: 0; }

.pg-toc {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 5;
    overflow-x: auto;
}
.pg-toc-inner {
    display: flex;
    gap: .25rem;
    padding-block: .6rem;
    white-space: nowrap;
}
.pg-toc a {
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 6px;
}
.pg-toc a:hover { background: #f0faf5; color: #1a6b3c; }
.pg-toc a:focus-visible { outline: 2px solid #1a6b3c; outline-offset: 2px; }

.pg-guide { padding-block: 2.5rem 3rem; }
.pg-guide-section {
    padding-block: 2rem;
    border-bottom: 1px solid #edf0ee;
    scroll-margin-top: 4.5rem; /* keep the anchored heading clear of the sticky TOC */
}
.pg-guide-section:last-child { border-bottom: none; }
.pg-guide-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #10321f;
    text-align: left;
    margin: 0 0 .75rem;
}
.pg-guide-section p { color: #444; line-height: 1.65; }

/* ==================== Responsive ==================== */

@media (max-width: 480px) {
    .pg-hero { padding-block: 2.5rem 2rem; }
    .pg-steps-3 { grid-template-columns: 1fr; }
    .pg-phone-mock { max-width: 260px; }
}

@media (max-width: 768px) {
    .pg-steps-3 { grid-template-columns: 1fr; gap: 2rem; }
    .pg-method-grid, .pg-command-grid { grid-template-columns: 1fr; }
    .pg-section h2 { font-size: 1.35rem; }
}

@media (min-width: 1920px) {
    .pg-container { max-width: 1200px; }
}

/* Never let the redesigned content stretch edge-to-edge on very large
   displays — a fixed, generous max-width plus centering handles 4K the
   same way it handles a laptop. */
@media (min-width: 2560px) {
    .pg-container { max-width: 1280px; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-btn, .pg-toc a { transition: none; }
}

/* ==================== Pricing page ==================== */

.pg-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.pg-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    flex: 1 1 300px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}
.pg-plan-card.pg-plan-featured { border-color: #1a6b3c; }
.pg-plan-card:hover { border-color: #1a6b3c; box-shadow: 0 4px 18px rgba(26,107,60,.12); }
.pg-plan-badge {
    display: inline-block;
    background: #1a6b3c;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: .25rem .6rem;
    border-radius: 20px;
    text-transform: uppercase;
    width: fit-content;
}
.pg-plan-name { font-size: 1.3rem; font-weight: 700; color: #10321f; }
.pg-plan-price { font-size: 2.2rem; font-weight: 800; color: #1a6b3c; }
.pg-plan-price span { font-size: 1rem; font-weight: 400; color: #666; }
.pg-plan-price .pg-plan-price-crossed {
    font-size: 1.1rem;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
    margin-right: .5rem;
}
.pg-plan-seats { font-size: .9rem; color: #555; }
.pg-plan-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; padding: 0; }
.pg-plan-features li { font-size: .9rem; display: flex; align-items: flex-start; gap: .5rem; line-height: 1.45; color: #333; }
.pg-plan-features li::before { content: "\2713"; color: #1a6b3c; font-weight: 700; flex-shrink: 0; }
.pg-plan-trial-note {
    font-size: .78rem;
    color: #888;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: .75rem;
    margin-top: auto;
}

.pg-faq { max-width: 640px; margin: 0 auto; }
.pg-faq details { border-bottom: 1px solid #e0e0e0; padding: .75rem 0; }
.pg-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: #1a1a1a;
}
.pg-faq summary:focus-visible { outline: 2px solid #1a6b3c; outline-offset: 3px; }
.pg-faq p { margin-top: .5rem; font-size: .9rem; color: #555; line-height: 1.6; }

@media (max-width: 480px) {
    .pg-plan-card { padding: 1.5rem 1.25rem; }
}
