/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Byte Size Computer Repair (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, techy but friendly. The hero has a terminal
    window (a <pre> block styled as a console) with a cursor that blinks
    with @keyframes. The "what's wrong" flowchart is an ordered list: a
    question box, then three paths, with arrows drawn by CSS border
    triangles in ::after pseudo-elements. Repair stages are a progress
    track where finished steps get a check. Media queries at 576px,
    768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0B1220 console black   #15803D green (darker than #16A34A for text
      on light)   #4ADE80 terminal green (on dark only)   #0369A1 cyan text
      #F5F7FA light   #4B5563 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Light page with console-black text. */
body {
    background-color: #F5F7FA;
    color: #0B1220;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Monospace headings. */
h1,
h2,
h3 {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    line-height: 1.12;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
}

/* A green prompt before every section title. */
h2::before {
    content: "> ";
    color: #15803D;
}

/* Cyan links. */
a {
    color: #0369A1;
    font-weight: 600;
}

/* Green focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #15803D;
    outline-offset: 3px;
}

/* Muted intro text. */
.lead {
    color: #4B5563;
    max-width: 40rem;
    margin: 8px 0px 24px 0px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #4B5563;
    margin-top: 10px;
}

/* ----- Header (class) ----- */

/* Sticky console-black header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0B1220;
    color: #F5F7FA;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Monospace logo. */
.logo {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Green prompt and second word. */
.logo .prompt,
.logo span {
    color: #4ADE80;
}

/* Small second line. */
.logo small {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #9CA3AF;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    border: 1px solid #4ADE80;
    color: #4ADE80;
    padding: 4px 12px;
    font-family: "JetBrains Mono", monospace;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #F5F7FA;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #1F2937;
}

/* Green on hover. */
.site-nav a:hover {
    color: #4ADE80;
}

/* Concept notice. */
.concept-note {
    background-color: #1F2937;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Hero (class) ----- */

/* Hero stacks on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 44px 20px 56px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    margin-bottom: 14px;
}

/* Green second line. */
.hero h1 span {
    display: block;
    color: #15803D;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Green button. */
.button,
button {
    display: inline-block;
    background-color: #15803D;
    color: #FFFFFF;
    border: 2px solid #15803D;
    border-radius: 6px;
    padding: 11px 20px;
    margin: 0px 8px 8px 0px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Darker green on hover. */
.button:hover,
button:hover {
    background-color: #166534;
    border-color: #166534;
}

/* Outline version. */
.button-ghost {
    background-color: transparent;
    color: #15803D;
}

/* Ghost hover. */
.button-ghost:hover {
    color: #FFFFFF;
}

/* The terminal window. */
.terminal {
    background-color: #0B1220;
    border-radius: 10px;
    box-shadow: 0px 20px 40px rgba(11, 18, 32, 0.3);
    overflow: hidden;
}

/* Title bar with three dots. */
.bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #1F2937;
    color: #9CA3AF;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* One window dot. */
.bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #F87171;
}

/* Second dot yellow. */
.bar span:nth-child(2) {
    background-color: #FBBF24;
}

/* Third dot green. */
.bar span:nth-child(3) {
    background-color: #4ADE80;
    margin-right: 8px;
}

/* The console text. */
.terminal pre {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #4ADE80;
    padding: 16px;
    overflow-x: auto;
}

/* Blinking block cursor. */
.cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background-color: #4ADE80;
    vertical-align: middle;
    animation: blink 1s steps(1) infinite;
}

/* Cursor on, then off. */
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ----- Flowchart (ID and class) ----- */

/* White band. */
#flow {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* The chart list, centered. */
.chart {
    list-style: none;
    text-align: center;
}

/* Every box in the chart. */
.step {
    display: inline-block;
    border: 2px solid #0B1220;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: "JetBrains Mono", monospace;
}

/* The question box is filled dark, with an arrow pointing down below it. */
.question {
    position: relative;
    background-color: #0B1220;
    color: #4ADE80;
    margin-bottom: 34px;
}

/* Down arrow: a CSS triangle made from borders. */
.question::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -26px;
    margin-left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #0B1220;
}

/* The three paths stack on phones. */
.branch {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* One path. */
.path {
    flex: 1 1 30%;
}

/* The answer label above each result, with a small down arrow. */
.answer {
    position: relative;
    font-weight: 600;
    color: #15803D;
    margin-bottom: 18px;
}

/* Small arrow under each answer. */
.answer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    margin-left: -7px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #15803D;
}

/* Result boxes. */
.result {
    display: block;
    background-color: #F0FDF4;
    border-color: #15803D;
    font-size: 0.9rem;
}

/* Fix line inside a result. */
.result em {
    display: block;
    font-style: normal;
    color: #0369A1;
    font-family: Inter, sans-serif;
    font-weight: 600;
}

/* Two photos. */
.flow-photos {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Each photo. */
.flow-photos img {
    width: 50%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* ----- Prices (ID and class) ----- */

/* Console band. */
#prices {
    background-color: #0B1220;
    color: #F5F7FA;
    padding: 56px 20px;
}

/* Light intro. */
#prices .lead {
    color: #9CA3AF;
}

/* Prices in a console-style list. */
.price-list {
    font-family: "JetBrains Mono", monospace;
    max-width: 720px;
}

/* One row with a dotted leader. */
.price-list div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 0px;
}

/* Service name grows and draws the dots. */
.price-list dt {
    flex-grow: 1;
    border-bottom: 2px dotted #374151;
}

/* Price in terminal green. */
.price-list dd {
    color: #4ADE80;
    white-space: nowrap;
}

/* ----- Privacy (class) ----- */

/* Photo then text on phones. */
.privacy {
    display: flex;
    flex-direction: column;
}

/* Bench photo. */
.privacy > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Text column. */
.privacy-text {
    padding: 50px 20px;
}

/* Promise list. */
.promise {
    list-style: none;
    margin-top: 18px;
}

/* One promise. */
.promise li {
    padding: 10px 0px;
    border-bottom: 1px solid #E5E7EB;
}

/* Green icons. */
.promise i {
    color: #15803D;
    width: 26px;
}

/* ----- Status (class) ----- */

/* White band. */
.status {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Lookup form in a row on wide screens. */
.status-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 14px;
    margin: 18px 0px 30px 0px;
}

/* Labels take a full row on phones. */
.status-form label {
    flex: 1 1 100%;
    font-weight: 600;
}

/* Inputs. */
.status-form input {
    flex: 1 1 100%;
    padding: 10px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
}

/* The stage track. */
.stages {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* One stage. */
.stages li {
    padding: 8px 12px;
    border-left: 6px solid #D1D5DB;
    background-color: #F5F7FA;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
}

/* Finished stages: green edge and a check before the name. */
.stages .done {
    border-left-color: #15803D;
}

/* Check before finished stages. */
.stages .done::before {
    content: "\2713  ";
    color: #15803D;
    font-weight: 700;
}

/* The current stage, labeled "now" in words. */
.stages .now {
    border-left-color: #0369A1;
    background-color: #E0F2FE;
    font-weight: 700;
}

/* "now" tag after the current stage. */
.stages .now::after {
    content: "  (now)";
    color: #0369A1;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #0B1220;
    color: #9CA3AF;
    text-align: center;
    font-size: 0.8rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger console text. */
    .terminal pre {
        font-size: 0.9rem;
    }

    /* Taller flow photos. */
    .flow-photos img {
        height: 240px;
    }

    /* Each label sits beside its field. */
    .status-form label {
        flex: 0 0 140px;
    }

    /* Fields take the rest of their row. */
    .status-form input {
        flex: 1 1 60%;
        max-width: 420px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #flow,
    #prices,
    .status {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* The three paths sit side by side. */
    .branch {
        flex-direction: row;
        gap: 18px;
        border-top: 2px solid #0B1220;
        padding-top: 16px;
    }

    /* Stages in a row like a progress bar. */
    .stages {
        flex-direction: row;
        gap: 0px;
    }

    /* Each stage takes a quarter, with a top edge instead of a side one. */
    .stages li {
        flex: 1 1 25%;
        border-left: none;
        border-top: 6px solid #D1D5DB;
    }

    /* Finished stages green on top. */
    .stages .done {
        border-top-color: #15803D;
    }

    /* Current stage blue on top. */
    .stages .now {
        border-top-color: #0369A1;
    }

    /* Photo and privacy text side by side. */
    .privacy {
        flex-direction: row;
    }

    /* Photo half. */
    .privacy > img {
        width: 45%;
        height: auto;
    }

    /* Text half. */
    .privacy-text {
        flex: 1 1 55%;
        padding: 56px 40px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text and terminal side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* Each hero half. */
    .hero-text,
    .terminal {
        flex: 1 1 50%;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    #flow,
    #prices,
    .status {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* The cursor stays solid. */
    .cursor {
        animation: none;
    }
}
