/* ============================================
   AI Tools section  —  Alex Meireles
   Add-on stylesheet. Loaded AFTER style.css.
   ============================================ */

/* ---- Intro ---- */
.am-intro {
    padding: 130px 0 60px;
}
.am-intro .am-eyebrow {
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #f9004d;
    margin-bottom: 14px;
}
.am-intro h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 22px;
}
.am-intro p.am-lead {
    font-size: 18px;
    line-height: 1.75;
    max-width: 820px;
    color: #717173;
}
@media only screen and (max-width: 767px) {
    .am-intro { padding: 100px 0 40px; }
    .am-intro h1 { font-size: 30px; }
    .am-intro p.am-lead { font-size: 16px; }
}

/* ---- Section heading ---- */
.am-section-head {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 40px;
    margin-bottom: 40px;
}
.am-section-head h3 {
    font-size: 26px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.am-section-head p {
    margin-bottom: 0;
    color: #717173;
    font-size: 15px;
}

/* ---- Tool card ---- */
.am-tool-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}
.am-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.18);
}
.am-tool-card .am-thumb {
    display: block;
    overflow: hidden;
}
.am-tool-card .am-thumb img {
    width: 100%;
    display: block;
    transition: 0.6s;
}
.am-tool-card:hover .am-thumb img {
    transform: scale(1.05);
}
.am-tool-card .am-body {
    padding: 28px 28px 30px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.am-tool-card .am-kicker {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #f9004d;
    margin-bottom: 8px;
    display: block;
}
.am-tool-card h4 {
    font-size: 22px;
    margin-bottom: 18px;
}
.am-tool-card h4 a { color: inherit; }

/* problem -> decision -> result */
.am-pdr { margin: 0 0 20px; padding: 0; list-style: none; }
.am-pdr li { margin-bottom: 12px; line-height: 1.6; font-size: 15px; color: #717173; }
.am-pdr li:last-child { margin-bottom: 0; }
.am-pdr li b {
    display: block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #1f1f25;
    margin-bottom: 2px;
    font-weight: 700;
}

.am-tags { margin: auto 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.am-tags li {
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    color: #717173;
}
.am-tool-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f9004d;
}
.am-tool-link:hover { color: #f9004d; opacity: 0.75; }

/* ---- Infrastructure strip ---- */
.am-infra {
    margin-top: 50px;
    padding: 40px 34px;
    border-radius: 8px;
    background: #f8f8fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.am-infra h5 {
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 26px;
    color: #1f1f25;
}
.am-infra-item h6 { font-size: 16px; margin-bottom: 6px; }
.am-infra-item p { font-size: 14px; line-height: 1.6; color: #717173; margin-bottom: 0; }
@media only screen and (max-width: 767px) {
    .am-infra-item { margin-bottom: 26px; }
}

/* ---- Stack line ---- */
.am-stack {
    margin-top: 26px;
    font-size: 13px;
    line-height: 1.9;
    color: #717173;
}
.am-stack b { color: #1f1f25; letter-spacing: 0.6px; }

/* ---- Tool detail page bits ---- */
.bg_image--tools {
    background-image: url(../images/tools/tools-hero.jpg);
}
.am-detail-block { margin-bottom: 34px; }
.am-detail-block h4 {
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #f9004d;
    margin-bottom: 10px;
}
.am-detail-block p { margin-bottom: 12px; }
.am-note {
    border-left: 3px solid #f9004d;
    padding: 4px 0 4px 20px;
    margin: 34px 0;
    font-size: 17px;
    line-height: 1.7;
    color: #717173;
}

/* ============================================
   Dark mode
   ============================================ */
.active-dark-mode .am-intro p.am-lead,
.active-dark-mode .am-section-head p,
.active-dark-mode .am-pdr li,
.active-dark-mode .am-tags li,
.active-dark-mode .am-infra-item p,
.active-dark-mode .am-stack,
.active-dark-mode .am-note { color: #c6c9d8bf; }

.active-dark-mode .am-section-head { border-top-color: rgba(255, 255, 255, 0.12); }

.active-dark-mode .am-tool-card {
    background: #191921;
    border-color: rgba(255, 255, 255, 0.09);
}
.active-dark-mode .am-tool-card:hover {
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.6);
}
.active-dark-mode .am-pdr li b,
.active-dark-mode .am-infra h5,
.active-dark-mode .am-stack b { color: #ffffff; }

.active-dark-mode .am-tags li { border-color: rgba(255, 255, 255, 0.14); }

.active-dark-mode .am-infra {
    background: #191921;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Fixes for the shared template ---- */
/* the theme sets line-height:27px on this h2, which collapses multi-line titles */
.portfolio-details .inner h2 {
    line-height: 1.25;
    padding-bottom: 30px;
}
.portfolio-details .inner .portfolio-view-list .port-view { margin-bottom: 18px; }

/* header brand line: readable in both modes */
.header-area .logo a .am-brand { color: #1d1d24; }
.header-area .logo a .am-brand small { display: block; font-weight: 400; letter-spacing: 0.4px; }
.active-dark-mode .header-area .logo a .am-brand { color: #ffffff; }

/* ---- v2: lighter home ---- */
.am-lead--small { font-size: 14px !important; letter-spacing: 0.3px; margin-top: -6px; }
.am-infra-line {
    margin-top: 10px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 15px;
    line-height: 1.75;
    color: #717173;
    max-width: 980px;
}
.am-infra-line b { color: #1f1f25; }
.am-infra-line .am-stack-inline {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    opacity: 0.8;
}
.am-footer-contact { font-size: 14px; color: #fff; }
.am-footer-contact a { color: #fff; font-weight: 600; }
.am-footer-contact a:hover { color: #f9004d; }
.am-footer-contact span { margin: 0 8px; opacity: 0.6; }
.am-tool-card h4 { margin-bottom: 14px; }
.am-pdr { margin-bottom: 22px; }
.am-figcap {
    font-size: 13px;
    color: #717173;
    margin: -18px 0 34px;
    letter-spacing: 0.2px;
}
.active-dark-mode .am-infra-line { color: #c6c9d8bf; border-top-color: rgba(255,255,255,0.12); }
.active-dark-mode .am-infra-line b { color: #fff; }
.active-dark-mode .am-figcap { color: #c6c9d8bf; }

.am-footer-contact { white-space: nowrap; }
@media only screen and (max-width: 991px) { .am-footer-contact { white-space: normal; } }

.am-rights { font-size: 12.5px; line-height: 1.7; color: #9a9aa0; margin-top: 18px; letter-spacing: 0.2px; }
.am-rights b { color: #717173; font-weight: 600; }
.active-dark-mode .am-rights { color: #8b8e9c; }
.active-dark-mode .am-rights b { color: #c6c9d8bf; }

/* ---- text covers (used while screenshots are not published) ---- */
.am-cover {
    display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 10 / 7; padding: 22px 26px;
    background: linear-gradient(135deg, #1b1b25 0%, #2c2947 100%);
    position: relative; overflow: hidden; color: #fff;
}
.am-cover::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 28px);
}
.am-cover-num { font-size: 13px; letter-spacing: 3px; color: #f9004d; font-weight: 700; position: relative; z-index: 1; }
.am-cover-word { font-size: 40px; font-weight: 700; letter-spacing: 1px; line-height: 1.05; position: relative; z-index: 1; }
.am-cover:hover { color: #fff; }
.am-cover--related { aspect-ratio: 16 / 9; border-radius: 6px; }
.am-screens-note {
    border: 1px dashed rgba(0,0,0,0.18); border-radius: 6px;
    padding: 22px 24px; font-size: 14px; color: #717173; margin-bottom: 8px;
}
.active-dark-mode .am-screens-note { border-color: rgba(255,255,255,0.18); color: #c6c9d8bf; }

/* ============================================
   Feature card (single) + illustrative dash
   ============================================ */
.am-feature {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden;
}
.am-feature-text { padding: 36px 40px 30px; }
.am-feature-text h4 { font-size: 24px; line-height: 1.3; margin: 10px 0 16px; }
.am-feature-lead { font-size: 15px; line-height: 1.7; color: #717173; margin-bottom: 18px; }
.am-feature-lead b { color: #1f1f25; }
.am-feature-list { list-style: none; padding: 0; margin: 0 0 18px; }
.am-feature-list li { padding: 11px 0; border-top: 1px solid rgba(0,0,0,0.08); font-size: 14.5px; line-height: 1.6; }
.am-feature-list li:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.am-feature-list a { color: #717173; display: block; }
.am-feature-list a b { color: #1f1f25; font-size: 15px; }
.am-feature-list a:hover b { color: #f9004d; }
.am-feature-foot { font-size: 13.5px; line-height: 1.7; color: #717173; margin-bottom: 8px; }
.am-feature .am-rights { margin-top: 12px; }
.am-craft .am-section-head { padding-top: 30px; }
@media only screen and (max-width: 991px) {
    .am-feature { grid-template-columns: 1fr; }
    .am-feature-text { padding: 26px 22px; }
}

/* ---- the dash ---- */
.am-dash {
    background: #15151d; color: #d7d8e2; font-size: 11.5px; line-height: 1.4;
    display: flex; flex-direction: column; min-height: 100%;
    font-family: "Poppins", system-ui, sans-serif;
}
.am-dash-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #101017; border-bottom: 1px solid rgba(255,255,255,0.07); }
.am-dash-dot { width: 9px; height: 9px; border-radius: 50%; background: #2c2c3a; }
.am-dash-title { margin-left: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; font-size: 10.5px; color: #8e90a3; }
.am-dash-tabs { margin-left: auto; display: flex; gap: 4px; }
.am-dash-tabs b, .am-dash-tabs i { font-style: normal; font-weight: 500; padding: 3px 9px; border-radius: 4px; color: #8e90a3; }
.am-dash-tabs b { background: #f9004d; color: #fff; }
.am-dash-body { display: grid; grid-template-columns: 150px 1fr; flex: 1; }
.am-dash-side { padding: 16px 14px; border-right: 1px solid rgba(255,255,255,0.07); background: #12121a; }
.am-dash-main { padding: 16px 18px; }
.am-dash-label { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #8e90a3; margin-bottom: 10px; }
.am-dash-label.mt { margin-top: 18px; }
.am-dash-asset { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.am-dash-asset span:last-child { display: flex; flex-direction: column; color: #e6e7ef; font-weight: 500; }
.am-dash-asset small { font-size: 9.5px; color: #4fc38a; font-weight: 400; }
.am-sw { width: 26px; height: 26px; border-radius: 5px; flex: none; }
.am-sw--a { background: linear-gradient(135deg, #f9004d, #ff8a3d); }
.am-sw--b { background: linear-gradient(135deg, #3d6bff, #6be0ff); }
.am-sw--c { background: linear-gradient(135deg, #2f9e6d, #a6e3a1); }
.am-dash-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.am-dash-chips span { padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); color: #8e90a3; font-size: 10.5px; }
.am-dash-chips span.on { border-color: #f9004d; color: #fff; }
.am-dash-shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.am-shot { background: #1c1c27; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 7px; }
.am-shot b { display: block; color: #e6e7ef; font-weight: 500; margin-top: 7px; font-size: 10.5px; }
.am-shot i { font-style: normal; font-size: 9.5px; color: #8e90a3; }
.am-shot.ok i { color: #4fc38a; } .am-shot.cur { border-color: #f9004d; } .am-shot.cur i { color: #f9004d; }
.am-shot.end .am-shot-frame { background: repeating-linear-gradient(45deg, #2a2a38 0 4px, #1c1c27 4px 8px); }
.am-shot-frame { display: block; aspect-ratio: 9 / 12; border-radius: 4px; background: #262633; opacity: 0.9; }
.am-ladder div { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.am-ladder span { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #f9004d, #ff8a3d); display: block; }
.am-ladder b { font-weight: 500; color: #e6e7ef; font-size: 10.5px; width: 26px; }
.am-dash-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.am-dash-check { color: #4fc38a; font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; }
.am-dash-cost { margin-left: auto; color: #8e90a3; font-size: 10.5px; }
.am-dash-cost b { color: #fff; font-weight: 500; }
@media only screen and (max-width: 575px) {
    .am-dash-body { grid-template-columns: 1fr; }
    .am-dash-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .am-dash-shots { grid-template-columns: repeat(3, 1fr); }
}

/* dark mode */
.active-dark-mode .am-feature { background: #191921; border-color: rgba(255,255,255,0.09); }
.active-dark-mode .am-feature-lead, .active-dark-mode .am-feature-foot, .active-dark-mode .am-feature-list a { color: #c6c9d8bf; }
.active-dark-mode .am-feature-lead b, .active-dark-mode .am-feature-list a b { color: #fff; }
.active-dark-mode .am-feature-list li { border-color: rgba(255,255,255,0.1); }

.am-dash-body { align-content: center; }
.am-kicker { display:block; font-size:12px; letter-spacing:1.4px; text-transform:uppercase; font-weight:600; color:#f9004d; margin-bottom:8px; }
@media only screen and (max-width: 767px) {
    .am-brand-role, .header-area .logo a .am-brand small { display: none; }
}

.am-feature-list li b { color: #1f1f25; font-size: 15px; }
.am-feature-list li { color: #717173; }
.active-dark-mode .am-feature-list li b { color:#fff; }
.active-dark-mode .am-feature-list li { color:#c6c9d8bf; }
