/* Public pages of root-bots.com. Built on the tokens and pieces of app.css. */

.site-view { padding-top: 40px; }

.site-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.site-links a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: color 0.2s, background 0.2s; }
.site-links a:hover, .site-links a.on { color: var(--text); background: rgba(213, 213, 216, 0.07); }
@media (max-width: 640px) {
  .site-links a { padding: 8px 9px; font-size: 13.5px; }
  .site .nav-end .btn span { display: none; }
  .site .nav-end .btn { width: 40px; padding: 0; }
}
@media (max-width: 420px) { .site-links { display: none; } .site .nav { justify-content: space-between; } }

.sec-head { margin: 0 0 22px; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; }
.sec-head p { margin: 6px 0 0; }
.small { font-size: 13px; }

/* bots */
.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bot-grid { grid-template-columns: minmax(0, 1fr); } }
.bot-card { border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.bot-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tc) 35%, transparent); }
.bot-card::before { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -60px; top: -60px; border-radius: 50%; background: var(--tc); opacity: 0.12; filter: blur(24px); }
.bot-card h3 { margin: 16px 0 6px; font-size: 19px; }
.bot-card > p { margin: 0 0 14px; font-size: 14px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.ticks .ico { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; }

/* apps */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-card { border-radius: 26px; padding: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.app-card::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px; border-radius: 50%; background: var(--ac); opacity: 0.13; filter: blur(40px); pointer-events: none; }
.ac-coral { --ac: var(--coral); }
.ac-mint { --ac: var(--mint); }
.ac-top { display: flex; align-items: center; gap: 16px; }
.ac-icon { width: 72px; height: 72px; border-radius: 20px; object-fit: contain; background: rgba(12, 12, 15, 0.6); border: 1px solid var(--line2); padding: 8px; flex-shrink: 0; image-rendering: auto; }
.app-card h3 { margin: 0; font-size: 24px; }
.app-card .ac-top p { margin: 2px 0 0; font-size: 14px; }
.ac-desc { margin: 0; color: var(--text); opacity: 0.9; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-meta .pill .ico { width: 13px; height: 13px; }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.btn .ico + * { margin: 0; }
.btn small { opacity: 0.7; font-weight: 500; font-size: 12px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.why .ico { width: 26px; height: 26px; color: var(--coral2); margin-bottom: 6px; }
.why b { font-size: 16px; }
.why span { font-size: 13.5px; }

/* call to action */
.cta { margin-top: 56px; border-radius: 28px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 219, 222, 0.22), transparent 65%); pointer-events: none; }
.cta h2 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 32px); }
.cta p { margin: 0; }

/* app page */
.app-hero { border-radius: 28px; padding: 30px; display: flex; gap: 26px; align-items: center; position: relative; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; inset: -120px -120px auto auto; width: 380px; height: 380px; border-radius: 50%; background: var(--ac); opacity: 0.14; filter: blur(50px); pointer-events: none; }
.ah-icon { width: 128px; height: 128px; border-radius: 32px; object-fit: contain; background: rgba(12, 12, 15, 0.6); border: 1px solid var(--line2); padding: 14px; flex-shrink: 0; box-shadow: 0 20px 50px -20px var(--ac); }
.ah-text { min-width: 0; position: relative; z-index: 1; }
.ah-text h1 { margin: 10px 0 6px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.ah-text .lead { margin: 0 0 20px; text-align: start; max-width: 640px; }
.ah-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ah-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 700px) { .app-hero { flex-direction: column; align-items: flex-start; padding: 24px; } .ah-icon { width: 96px; height: 96px; } }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: 20px; padding: 10px; overflow: hidden; }
.shot img { width: 100%; height: auto; border-radius: 12px; display: block; }
.shot figcaption { color: var(--muted); font-size: 13px; padding: 10px 6px 2px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }
.feat { border-radius: 20px; padding: 20px; --tc: var(--aqua); }
.feat:nth-child(3n + 2) { --tc: var(--coral2); }
.feat:nth-child(3n) { --tc: var(--mint); }
.feat b { display: block; margin: 14px 0 4px; font-size: 16px; }
.feat p { margin: 0; font-size: 14px; }

.num-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.num-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.num-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(96, 96, 99, 0.16); color: var(--mint); font-family: var(--mono); font-weight: 500; flex-shrink: 0; }

.notes { font-size: 14.5px; }
.notes h4 { margin: 14px 0 6px; font-size: 15px; color: var(--mint); }
.notes p { margin: 6px 0; }
.notes ul { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.notes li { position: relative; padding-inline-start: 16px; }
.notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--coral); }
.notes code { font-family: var(--mono); font-size: 12.5px; background: rgba(12, 12, 15, 0.6); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.notes a { color: var(--coral2); text-decoration: underline; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 70px; }
.sf-in { max-width: 1240px; margin: 0 auto; padding: 34px 16px 20px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand img { width: 44px; height: 44px; border-radius: 50%; }
.sf-brand b { display: block; font-size: 18px; }
.sf-brand span { color: var(--muted); font-size: 13px; }
.sf-cols { display: flex; gap: 50px; }
.sf-cols div { display: flex; flex-direction: column; gap: 8px; }
.sf-cols b { font-size: 14px; margin-bottom: 2px; }
.sf-cols a { color: var(--muted); font-size: 14px; }
.sf-cols a:hover { color: var(--text); }
.sf-bottom { max-width: 1240px; margin: 0 auto; padding: 16px 16px 30px; display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.sf-bottom a:hover { color: var(--muted); }

/* nav: with «الأوامر» and «الشرح» added, scroll sideways when tight (الشروط stays in the footer) */
@media (max-width: 1000px) { .site-links a[href="/terms"] { display: none; } }
@media (max-width: 860px) { .site-links { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .site-links::-webkit-scrollbar { display: none; } .site-links a { white-space: nowrap; } }

/* developer card (sandboxed iframe) */
.sf-dev { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 8px; margin-top: 22px; border-top: 1px solid var(--line); }
.sf-dev-label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.sf-dev-label i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--mint)); opacity: .7; }
.sf-dev-label i:last-child { transform: scaleX(-1); }
.sf-dev-card { width: min(360px, 100%); height: 300px; border: 0; background: transparent; color-scheme: normal; border-radius: 18px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); transition: height .25s ease; }
