/* Page styles for https://earthgrid.com/ai (loaded by grid.php). */
/* ---------------------------------------------------------------------------
   Earthgrid AI page. Same system as why.php and viktor.php, prefixed .ai-
   Accent colors: green #5cb85c, orange #f0932b, blue #4a90d9
--------------------------------------------------------------------------- */
.ai-wrap { max-width: 940px; margin: 0 auto; padding: 10px 10px 30px; color: #f2f2f2; text-align: left; }
.ai-wrap p { color: #e8e8e8; font-size: 17px; line-height: 1.7; }
.ai-wrap a { color: #ffc27a; }
.ai-wrap strong { color: #fff; }

/* Hero */
.ai-hero { position: relative; text-align: center; padding: 26px 0 30px; overflow: hidden; }
.ai-tri-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.ai-hero > *:not(svg) { position: relative; }
.ai-kicker { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #ffb35c; font-weight: bold; margin-bottom: 10px; }
.ai-hero h1 { color: #fff; font-size: 54px; line-height: 1.05; margin: 0 0 14px; letter-spacing: 4px; text-transform: uppercase; font-weight: bold; }
.ai-hero p { font-size: 21px; line-height: 1.45; color: #ddedfb; margin: 0 auto; max-width: 680px; }
.ai-sig { display: block; margin-top: 14px; font-size: 15px; color: #c9d4dd; font-style: italic; }

/* Jump cards */
.ai-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 6px 0 10px; }
.ai-card {
  flex: 0 1 calc(25% - 11px); min-width: 150px; box-sizing: border-box; display: block;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 18px 16px 16px; text-decoration: none; transition: all .15s ease;
}
.ai-card:hover, .ai-card:focus { background: rgba(240,147,43,0.16); border-color: #f0932b; transform: translateY(-3px); text-decoration: none; }
.ai-num {
  display: inline-block; width: 0; height: 0; margin-bottom: 12px; position: relative;
  border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid #f0932b;
}
.ai-num span { position: absolute; left: -5px; top: 9px; font-size: 12px; font-weight: bold; color: #111; width: 10px; text-align: center; }
.ai-card-title { display: block; font-size: 18px; font-weight: bold; line-height: 1.25; color: #fff; margin-bottom: 6px; }
.ai-card-note  { display: block; font-size: 13px; line-height: 1.5; color: #c9d4dd; }

/* Sections */
.ai-sec { padding: 34px 0 10px; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 30px; scroll-margin-top: 20px; }
.ai-eyebrow { display: block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #ffb35c; font-weight: bold; margin-bottom: 8px; }
.ai-sec h2 { color: #fff; font-size: 32px; line-height: 1.2; margin: 0 0 18px; font-weight: bold; }
.ai-sec h3 { color: #fff; font-size: 22px; margin: 22px 0 8px; }

/* The zero click meter: 100 squares, 68 of them dark */
.ai-meter { max-width: 560px; margin: 22px auto 10px; }
.ai-dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.ai-dots i { display: block; padding-top: 100%; border-radius: 2px; background: #5cb85c; }
.ai-dots i.off { background: rgba(255,255,255,.18); }
.ai-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 12px 0 0; font-size: 14px; color: #c9d4dd; }
.ai-legend span:before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 7px; vertical-align: baseline; }
.ai-legend .k-off:before { background: rgba(255,255,255,.18); }
.ai-legend .k-on:before  { background: #5cb85c; }

/* Three frustrations, and the workflow columns */
.ai-cols { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.ai-col { flex: 1 1 250px; border-radius: 10px; padding: 18px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.ai-col h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.ai-col p { font-size: 15px; margin: 0; }
.ai-col-tag { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: bold; color: #ffb35c; margin-bottom: 6px; }
.ai-col.eg { border-color: rgba(240,147,43,.6); background: rgba(240,147,43,.10); }
.ai-col.eg .ai-col-tag { color: #ffd98a; }

/* Numbers */
.ai-nums { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.ai-nums li { flex: 1 1 150px; padding: 14px 16px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); text-align: center; }
.ai-nums b { display: block; font-size: 24px; color: #fff; line-height: 1.2; }
.ai-nums span { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #c9d4dd; margin-top: 4px; }

/* Model chips */
.ai-models { list-style: none; padding: 0; margin: 16px auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 700px; }
.ai-models li { padding: 7px 14px; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); font-size: 14px; color: #fff; }

/* Videos */
.ai-video { position: relative; width: 100%; padding-top: 56.25%; margin: 8px 0 6px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #000; }
.ai-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ai-videos { display: flex; flex-wrap: wrap; gap: 20px; margin: 18px 0 6px; }
.ai-videos > div { flex: 1 1 340px; }
.ai-cap { display: block; font-size: 13px; color: #c9d4dd; }

/* Handout cards */
.ai-docs { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 8px; }
.ai-doc {
  flex: 1 1 250px; display: block; text-decoration: none; border-radius: 10px; padding: 18px 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); transition: all .15s ease;
}
.ai-doc:hover, .ai-doc:focus { background: rgba(240,147,43,.14); border-color: #f0932b; transform: translateY(-3px); text-decoration: none; }
.ai-doc-tag { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: bold; color: #ffb35c; margin-bottom: 6px; }
.ai-doc-title { display: block; font-size: 20px; font-weight: bold; color: #fff; margin-bottom: 6px; line-height: 1.25; }
.ai-doc-note { display: block; font-size: 15px; line-height: 1.5; color: #c9d4dd; }

/* Numbered steps */
.ai-steps { list-style: none; padding: 0; margin: 18px 0 8px; counter-reset: aistep; }
.ai-steps li { position: relative; padding: 12px 14px 12px 52px; margin: 8px 0; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); font-size: 16px; line-height: 1.5; color: #e8e8e8; }
.ai-steps li:before {
  counter-increment: aistep; content: counter(aistep);
  position: absolute; left: 14px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: #f0932b; color: #111; font-weight: bold; font-size: 14px; text-align: center; line-height: 26px;
}

/* Callouts and quotes */
.ai-callout { background: rgba(255,255,255,0.07); border-left: 3px solid #f0932b; border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 26px 0 0; }
.ai-callout p { margin: 0; font-size: 16px; }
.ai-callout p + p { margin-top: 6px; }
.ai-quote {
  text-align: center; font-size: 24px; line-height: 1.4; font-weight: bold; color: #fff;
  padding: 24px 10px; margin: 26px 0 0;
  border-top: 1px solid rgba(240,147,43,0.6); border-bottom: 1px solid rgba(240,147,43,0.6);
}
.ai-bigquote { text-align: center; margin: 26px 0; padding: 22px 16px; border-radius: 10px; background: rgba(240,147,43,.12); border: 1px solid rgba(240,147,43,.5); }
.ai-bigquote q { display: block; quotes: "\201C" "\201D"; font-size: 23px; line-height: 1.4; color: #fff; font-weight: bold; margin: 0 auto; }
.ai-bigquote span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffb35c; }

/* Buttons */
.ai-btn {
  display: inline-block; background: #5cb85c; color: #fff !important;
  font-size: 17px; font-weight: bold; padding: 14px 28px; border-radius: 5px;
  text-decoration: none; margin: 18px 8px 0 0; transition: background .15s ease;
}
.ai-btn:hover, .ai-btn:focus { background: #4a9d4a; color: #fff !important; text-decoration: none; }
.ai-btn-orange { background: #f0932b; color: #111 !important; }
.ai-btn-orange:hover, .ai-btn-orange:focus { background: #d97d16; color: #111 !important; }
.ai-btn-dark { background: #222; border: 1px solid rgba(255,255,255,0.3); }
.ai-btn-dark:hover, .ai-btn-dark:focus { background: #000; }
.ai-fine { display: block; font-size: 14px; color: #b9c4cd; margin-top: 12px; }
.ai-center-btns { text-align: center; max-width: none; }

.ai-end { text-align: center; padding: 34px 0 10px; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 34px; }
.ai-end h3 { color: #fff; font-size: 28px; margin: 0 0 12px; font-weight: bold; }

/* ===========================================================================
   STYLE RULE: apple-first  (9 to 12 words per line, see STYLE-GUIDE.md)
=========================================================================== */
.apple-first p,
.apple-first li,
.apple-first q,
.apple-first .ai-card-note,
.apple-first .ai-fine { max-width: 25em; text-wrap: pretty; }
.apple-first .ai-bigquote q { max-width: 22em; }
.apple-first h2, .apple-first h3 { max-width: 20em; text-wrap: balance; }
.apple-first .ai-hero p,
.apple-first .ai-end p,
.apple-first .ai-quote,
.apple-first .ai-bigquote q { margin-left: auto; margin-right: auto; }
.apple-first .ai-hero p { max-width: 24em; }
.apple-first .ai-hero p + p { margin-top: 6px; }
.apple-first .ai-nums li,
.apple-first .ai-models li,
.apple-first .ai-legend span { max-width: none; }

@media (max-width: 700px) {
  .ai-card { flex: 1 1 100%; }
  .ai-hero h1 { font-size: 36px; letter-spacing: 2px; }
  .ai-hero p  { font-size: 18px; }
  .ai-sec h2  { font-size: 25px; }
  .ai-wrap p  { font-size: 16px; }
  .ai-quote, .ai-bigquote q { font-size: 19px; }
  .ai-dots { grid-template-columns: repeat(10, 1fr); }
}
