/* The scouting app's public pages. Extends landing.css (hero, section
 * rhythm, closing panel, .tool). Everything here is specific to these pages. */

.hero-tools {
    background-color: var(--color-timber);
    background-image: repeating-linear-gradient(
        -8deg,
        transparent 0 38px,
        rgba(232, 235, 230, 0.05) 38px 40px
    );
}

.hero-note {
    margin-top: var(--spacing-5);
    color: rgba(232, 235, 230, 0.75);
    font-size: var(--font-size-sm);
}

/* Sub-navigation strip under the hero */
.tools-nav {
    background-color: var(--color-timber-deep);
    border-bottom: 1px solid rgba(232, 235, 230, 0.12);
}

.tools-nav ul {
    display: flex;
    gap: var(--spacing-1);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tools-nav a {
    display: block;
    padding: var(--spacing-3) var(--spacing-4);
    color: rgba(232, 235, 230, 0.8);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tools-nav a:hover,
.tools-nav a:focus-visible {
    color: var(--color-white);
}

.tools-nav a.is-active {
    color: var(--color-white);
    border-bottom-color: var(--color-blaze);
}

.tools-section {
    padding: var(--spacing-12) 0;
}

.tools-section + .tools-section {
    border-top: 1px solid var(--color-gray-200);
}

.tools-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-4);
}

.tools-checklist li {
    position: relative;
    padding-left: var(--spacing-6);
    margin-bottom: var(--spacing-2);
}

.tools-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 1px;
    background: var(--color-contour);
}

.tools-checklist.is-muted li {
    color: var(--color-gray-600);
}

.tools-checklist .swatch {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    border-radius: 0.2em;
    margin-right: 0.4em;
    vertical-align: -0.05em;
}

.tools-steps {
    padding-left: 1.25rem;
    margin: 0 0 var(--spacing-4);
}

.tools-steps li {
    margin-bottom: var(--spacing-3);
}

.tools-faq details {
    border-top: 1px solid var(--color-gray-200);
    padding: var(--spacing-3) 0;
}

.tools-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.tools-faq p {
    margin: var(--spacing-3) 0 0;
    color: var(--color-gray-700);
}

.install-card {
    height: 100%;
    padding: var(--spacing-6);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    background: var(--color-white);
}

.compare-wide td {
    white-space: normal;
    text-align: left;
}

.score-band {
    padding: var(--spacing-4);
    border-radius: 0.6rem;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
}

.score-band strong {
    font-size: var(--font-size-2xl);
}

.score-band.is-prime {
    background: #15803d;
}

.score-band.is-ready {
    background: #65a30d;
}

.score-band.is-fair {
    background: #d97706;
}

.score-band.is-poor {
    background: #b91c1c;
}

/* Phone frame with a drawn map. Replaced by real screenshots when
 * static/images/scouting/*.png exist (see _phone.html). */
.phone {
    width: min(100%, 320px);
    margin: 0 auto;
    aspect-ratio: 9 / 18.5;
    border-radius: 2.4rem;
    background: #0b1413;
    padding: 0.55rem;
    box-shadow: 0 20px 50px rgba(16, 27, 26, 0.35);
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 1.9rem;
    overflow: hidden;
    background: #1a2e1f;
    color: #f4f1ea;
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-topbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1.1rem 0.8rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(26, 46, 31, 0.9);
}

.phone-mark {
    display: inline-grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.3rem;
    background: #f97316;
    color: #1a2e1f;
    font-size: 0.55rem;
}

.phone-pill {
    margin-left: auto;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.35);
    color: #bbf7d0;
    font-size: 0.55rem;
    text-transform: uppercase;
}

.phone-map {
    position: relative;
    flex: 1;
    background:
        radial-gradient(ellipse at 30% 30%, #3f5a34 0 18%, transparent 19%),
        radial-gradient(ellipse at 70% 65%, #2f4a2a 0 22%, transparent 23%),
        repeating-linear-gradient(35deg, rgba(232, 235, 230, 0.06) 0 2px, transparent 2px 22px),
        linear-gradient(160deg, #56703f, #2b3f27 60%, #1d2b1c);
}

.phone-boundary {
    position: absolute;
    inset: 18% 14% 22% 12%;
    border: 2px solid #f97316;
    border-radius: 18% 40% 30% 45%;
    background: rgba(249, 115, 22, 0.08);
}

.phone-area {
    position: absolute;
    inset: 14% 10% 30% 10%;
    border: 2px dashed #38bdf8;
    border-radius: 4%;
}

.phone-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 1.6rem;
    height: 1.6rem;
    padding: 0.25rem;
    border-radius: 999px 999px 999px 0.15rem;
    background: #f97316;
    color: #1a2e1f;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.phone-pin svg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
}

.phone-dot {
    position: absolute;
    left: 50%;
    top: 78%;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: #3b82f6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.2);
}

.phone-cone {
    position: absolute;
    left: 40%;
    top: 46%;
    width: 0;
    height: 0;
    border-left: 3.2rem solid transparent;
    border-right: 3.2rem solid transparent;
    border-top: 7rem solid rgba(16, 185, 129, 0.35);
    transform: translate(-50%, 0) rotate(-35deg);
    transform-origin: top center;
}

.phone-cone::after {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: -7.2rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #8b4513;
    border: 2px solid #fff;
}

.phone-arrow {
    position: absolute;
    width: 2rem;
    height: 2px;
    background: #10b981;
    transform: rotate(-35deg);
}

.phone-arrow::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
}

.phone-banner {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    top: 0.6rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(26, 46, 31, 0.9);
    color: #fde68a;
    font-size: 0.55rem;
}

.phone-sheet {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    background: #f4f1ea;
    color: #14201a;
    font-size: 0.62rem;
    border-radius: 0.8rem 0.8rem 0 0;
}

.phone-sheet strong {
    font-size: 0.78rem;
}

.phone-score {
    color: #15803d;
    font-weight: 700;
    font-size: 0.9rem;
}

.phone-toolbar {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0.3rem 0.9rem;
    background: #1a2e1f;
    font-size: 0.5rem;
}
