/* MMBtu Desk homepage — the approved Website prototype.
   Layout lives inline in the template; this file carries what
   inline styles cannot: keyframes, hover/focus states, the
   interactive tool/FAQ states and responsive tweaks. */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; padding: 0; background: #f7f6fc; overflow-x: hidden; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* fixed top nav — body padding is kept in sync by homepage.js */
.hp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
body { padding-top: 69px; }
a { color: #3b2fb5; text-decoration: none; }
a:hover { color: #2a1f8f; text-decoration: underline; }
a.hp-plain:hover { text-decoration: underline; }
input::placeholder, textarea::placeholder { color: #9a95b8; }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: #3b2fb5 !important;
    box-shadow: 0 0 0 3px rgba(59, 47, 181, .18);
}

@keyframes holoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes starPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes starShimmer { 0%, 100% { opacity: .85; } 30% { opacity: 1; } 55% { opacity: .78; } 70% { opacity: 1; } }
@keyframes starGlowPulse { 0%, 100% { transform: scale(.8); opacity: .45; } 50% { transform: scale(1.35); opacity: .95; } }
@keyframes moteTwinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 40% { opacity: .95; transform: scale(1.1); } 60% { opacity: .6; transform: scale(.9); } }
@keyframes featIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* primary CTA */
.hp-cta { background: #3b2fb5; }
.hp-cta:hover { background: #2f2496; color: #fff; text-decoration: none; }
a.hp-cta { color: #fff; }
.hp-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }

/* hero rotating cards */
.hp-dots { display: flex; gap: 4px; }
.hp-dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: width .4s, background .4s; }
.hp-dots i.on { width: 14px; background: #c9fbff; }
#hp_feat_risk > span, #hp_feat_gas > span { display: block; animation: featIn .6s ease-out; }
.hp-heropill { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 600; color: #e8e4ff; }

/* dark module / segment / compliance cards */
.hp-mod { padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 8px; }
.hp-mod:hover { background: rgba(255, 255, 255, .1); }

/* daily-cycle cards */
.hp-cyc { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #e4e1f1; display: flex; flex-direction: column; gap: 8px; }

/* tools */
.hp-tooltab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font: inherit; cursor: pointer; width: 100%; }
.hp-tooltab.on { border-color: rgba(159, 243, 255, .5); background: rgba(255, 255, 255, .12); }
.hp-inp { height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid #d6d2ea; font: inherit; font-size: 15px; color: #14103a; }
.hp-inp.err { border-color: #d9534f; }
.hp-err { display: none; font-size: 12px; color: #b3261e; font-weight: 500; }
.hp-err.show { display: block; }
.hp-ent { padding: 7px 12px; border-radius: 999px; border: 1px solid #d6d2ea; background: #fff; color: #2a2650; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hp-ent.on { border-color: #3b2fb5; background: #3b2fb5; color: #fff; }
.hp-uft-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px 16px; }
.hp-uft-box { display: flex; flex-direction: column; padding: 6px 16px; border-radius: 12px; background: #f7f6fc; font-size: 14px; }
.hp-uft-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 10px 0; border-bottom: 1px solid #e4e1f1; }
.hp-uft-meta > div { display: flex; align-items: baseline; gap: 8px; }
.hp-uft-meta > div > span:first-child { font-size: 11px; letter-spacing: .1em; color: #7a7599; }
.hp-uft-meta > div > span:last-child { font-size: 15px; font-weight: 700; color: #2a2650; }
.hp-article-card { transition: border-color .15s, box-shadow .15s; }
.hp-article-card:hover { border-color: #3b2fb5 !important; box-shadow: 0 10px 28px rgba(20, 16, 58, .08); text-decoration: none; color: inherit; }
.hp-article-body p { margin: 0 0 12px; }
.hp-article-body p:last-child { margin-bottom: 0; }
.hp-uft-warn { padding: 14px 16px; border-radius: 12px; background: #fff7e6; color: #7a4b00; font-size: 14px; line-height: 1.5; }
.hp-conv-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #e9e6f4; }
.hp-conv-row:last-child { border-bottom: 0; }

/* FAQ accordion */
.hp-faq { border-bottom: 1px solid #e4e1f1; }
.hp-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600; color: #14103a; text-align: left; cursor: pointer; }
.hp-faq-i { font-size: 20px; color: #3b2fb5; flex: none; }
.hp-faq-a { display: none; padding: 0 0 18px; font-size: 15px; line-height: 1.6; color: #4b4670; max-width: 560px; }
.hp-faq.open .hp-faq-a { display: block; }

/* responsive */
/* mobile menu button — created by homepage.js, shown only on small screens */
.hp-burger {
    display: none; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: none;
    border: 1px solid #d6d2ea; border-radius: 10px; background: #fff;
    font-size: 19px; line-height: 1; color: #2a2650; cursor: pointer;
}
@media (max-width: 960px) {
    .hp-navlinks { display: none !important; }
    .hp-burger { display: inline-flex; }
    /* one row on small screens: logo left, demo CTA and burger right */
    .hp-nav > div { flex-wrap: nowrap !important; gap: 12px !important; }
    .hp-nav-cta { margin-left: auto; }
    /* open state: nav links drop down as a full-width panel under the fixed bar */
    .hp-nav.menu-open .hp-navlinks {
        display: flex !important; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0; padding: 6px 0 10px;
        background: #fff; border-bottom: 1px solid #e4e1f1;
        box-shadow: 0 18px 36px rgba(20, 16, 58, .14);
    }
    .hp-nav.menu-open .hp-navlinks a { padding: 13px 24px; font-size: 15px; }
}
@media (max-width: 720px) {
    #top h1 { font-size: 34px; }
    #top > div:nth-child(3) { padding-top: 64px; padding-bottom: 48px; }
    /* tighter section rhythm and gutters on phones */
    div[style*="max-width:1240px"] { padding-left: 16px !important; padding-right: 16px !important; }
    div[style*="padding:96px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
    .hp-nav > div { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 600px) {
    /* keep the header to logo + demo CTA + burger */
    .hp-nav .hp-cta { padding: 10px 14px !important; white-space: nowrap; }
}
@media (max-width: 480px) {
    .hp-brand-sub { display: none; }
    .hp-nav .hp-cta { padding: 9px 12px !important; font-size: 13px !important; }
    /* stack the paired input grids and slim the cards */
    div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    #hp_tool_uft, #hp_tool_conv, #hp_demo_form { padding: 18px !important; }
    .hp-uft-grid { gap: 6px 8px; font-size: 13px; }
    .hp-cta, .hp-ghost { font-size: 15px !important; }
}
