/* UseFreeAITool.com styles. Colours follow the original prototype. */
:root {
  --g: #003d32;
  --g2: #006448;
  --g3: #00704d;
  --y: #ffc400;
  --y2: #ffb000;
  --ink: #101828;
  --muted: #475467;
  --line: #dce5ed;
  --soft: #f5f8fa;
  --mint: #d1f4ef;
  --radius: 15px;
  --shadow: 0 2px 5px #0f172a0a;
  --shadow-lg: 0 5px 14px #0f172a18;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--g2); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.container { max-width: 1480px; margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--y); color: var(--ink); padding: 8px 14px; z-index: 100; font-weight: 800; }
.skip-link:focus { left: 10px; top: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #edf1f4; }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 18px; }
.logo { font-size: 27px; font-weight: 900; color: var(--g); text-decoration: none; letter-spacing: -.5px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo span { font-size: 19px; }
.logo svg { flex: none; }
.main-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 700; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--g2); border-color: var(--y); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 25px; padding: 10px 16px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn-yellow { background: var(--y); color: var(--ink); }
.btn-yellow:hover { background: var(--y2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #d4dee7; }
.btn-ghost:hover { border-color: var(--g2); color: var(--g2); }
.btn-green { background: var(--g2); color: #fff; }
.btn-green:hover { background: var(--g); }
.menu-toggle { display: none; background: none; border: 1px solid #d4dee7; border-radius: 10px; width: 42px; height: 40px; font-size: 20px; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 70% 70%, #078a5c, transparent 35%), linear-gradient(105deg, #003d32, #002f29 60%, #004637); color: #fff; }
.hero-inner { min-height: 320px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; padding: 34px 5% 48px; gap: 20px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -1.8px; margin: 0; font-weight: 900; }
.hero h1 span { color: var(--y); }
.hero-sub { font-size: 16px; font-weight: 600; margin: 14px 0 18px; color: #e3f5ee; max-width: 640px; }
.search { height: 56px; border-radius: 18px; background: #fff; display: flex; align-items: center; padding: 4px 5px 4px 17px; max-width: 750px; color: #344054; }
.search svg { flex: none; color: #667085; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; height: 100%; background: transparent; font-size: 15px; }
.search button { height: 46px; border: 0; border-radius: 14px; padding: 0 26px; background: var(--y); font-size: 16px; font-weight: 900; }
.search button:hover { background: var(--y2); }
.quick { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.quick a { border-radius: 22px; padding: 8px 13px; background: #075c49; color: #fff; font-size: 12.5px; font-weight: 800; text-decoration: none; }
.quick a:hover { background: #0a7059; }
.hero-art { display: flex; align-items: center; justify-content: center; position: relative; min-height: 260px; }
.hero-art svg.robot { width: min(260px, 100%); height: auto; filter: drop-shadow(0 14px 16px #001b18); }
.slogan { position: absolute; right: 2%; top: 18px; font-size: 26px; font-weight: 900; font-style: italic; line-height: 1.05; transform: rotate(-7deg); }
.slogan span { color: var(--y); }

/* ---------- Category strip ---------- */
.categories { position: relative; margin: -26px 25px 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); padding: 14px 7px; z-index: 2; }
.category { border-right: 1px solid #d8e1e8; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 4px; text-align: center; font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; }
.category:last-child { border: 0; }
.category:hover .cat-icon { transform: translateY(-2px); }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; transition: transform .15s; }
.category small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- Sections ---------- */
.content { padding: 26px 26px 0; }
.section { margin-bottom: 26px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.head h2 { font-size: 25px; margin: 0; font-weight: 900; letter-spacing: -.3px; }
.head p { font-size: 14px; color: #40536b; margin: 3px 0 0; }
.outline { border: 1px solid #d4dee7; border-radius: 24px; padding: 9px 17px; background: #fff; font-weight: 800; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.outline:hover { border-color: var(--g2); color: var(--g2); }
.main-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(265px, 1.05fr); gap: 22px; align-items: start; }

/* ---------- Tool cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; min-height: 210px; display: flex; flex-direction: column; box-shadow: var(--shadow); background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tool-card:hover { box-shadow: 0 8px 22px #0f172a14; transform: translateY(-2px); border-color: #b9cfdd; }
.tool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tool-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900; flex: none; overflow: hidden; }
.tool-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tool-logo.lg { width: 76px; height: 76px; border-radius: 18px; font-size: 34px; }
.tool-logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.badge { display: inline-block; border-radius: 15px; padding: 3px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-featured { background: #08b83e; color: #fff; }
.badge-new { background: #e0f2fe; color: #075985; }
.tool-card .tool-name { font-size: 18px; margin: 12px 0 4px; line-height: 1.25; }
.tool-card .tool-name a { color: var(--ink); text-decoration: none; }
.tool-card .tool-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-cat { font-size: 12px; font-weight: 700; color: var(--g2); margin: 0 0 6px; }
.tool-card p.desc { font-size: 14px; line-height: 1.35; color: #344966; margin: 0; flex: 1; }
.tool-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; }
.price-tag { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 8px; }
.try { position: relative; z-index: 1; border: 1px solid #05b66c; background: #f1fff7; color: #006b3a; border-radius: 12px; padding: 7px 12px; font-size: 13px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.try:hover { background: #dcfbe9; }

/* ---------- Popular sidebar ---------- */
.popular { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 12px #0f172a14; background: #fff; }
.pop-head { background: linear-gradient(90deg, #004335, #00704d); color: #fff; padding: 11px 17px; }
.pop-head h2 { font-size: 19px; font-weight: 900; margin: 0; }
.pop-head p { font-size: 12px; margin: 2px 0 0; color: #c9eee0; }
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #edf1f4; font-size: 14px; text-decoration: none; color: var(--ink); }
.pop-row:hover { background: var(--soft); }
.pop-num { width: 20px; font-weight: 900; color: var(--g2); text-align: center; }
.pop-name { font-weight: 800; flex: 1; }
.pop-cat { font-size: 11px; color: var(--muted); }
.pop-more { display: block; margin: 10px 5%; text-align: center; border-radius: 20px; padding: 8px; font-size: 13px; font-weight: 900; background: var(--y); color: var(--ink); text-decoration: none; }

/* ---------- Bottom band ---------- */
.bottom { display: grid; grid-template-columns: 1.1fr 1.55fr 1fr; gap: 14px; margin: 8px 0 26px; }
.promo, .newsletter { background: linear-gradient(110deg, #003f34, #00734e); border-radius: var(--radius); color: #fff; padding: 18px 20px; min-height: 140px; }
.promo h2, .newsletter h2 { font-size: 19px; margin: 0 0 4px; }
.promo p, .newsletter p { font-size: 13.5px; line-height: 1.35; margin: 0; color: #e3f5ee; }
.promo .btn { margin-top: 12px; padding: 8px 18px; }
.stats { background: var(--mint); border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; padding: 14px 5px; }
.stat { border-right: 1px solid #85cfc2; padding: 3px 6px; }
.stat:last-child { border: 0; }
.stat .symbol { font-size: 28px; }
.stat strong { display: block; font-size: 22px; line-height: 1.2; }
.stat span { font-size: 13px; font-weight: 800; }
.email-row { display: flex; background: #fff; border-radius: 25px; padding: 3px; margin-top: 12px; }
.email-row input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--ink); }
.email-row button { border: 0; border-radius: 22px; padding: 8px 14px; font-size: 13px; font-weight: 900; background: var(--y); }
.newsletter .note { font-size: 12px; margin-top: 8px; color: #c9eee0; }
.coming-pill { display: inline-block; margin-top: 12px; background: #ffffff1f; border: 1px dashed #ffffff66; border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 800; }

/* ---------- Ad slots (hidden until enabled in site.config.json) ---------- */
.ad-slot { margin: 6px 0 26px; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.ad-slot[hidden] { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(105deg, #003d32, #002f29 60%, #004637); color: #fff; padding: 34px 26px 38px; }
.page-hero h1 { font-size: clamp(28px, 3.2vw, 42px); margin: 0; font-weight: 900; letter-spacing: -1px; }
.page-hero p { margin: 8px 0 0; color: #e3f5ee; font-weight: 500; max-width: 720px; }
.breadcrumb { font-size: 13px; margin-bottom: 10px; color: #c9eee0; }
.breadcrumb a { color: #fff; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }

/* ---------- Explore page ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(140px, .5fr)); gap: 10px; margin: 22px 0 12px; }
.toolbar.no-pricing { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(150px, .5fr)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.field input, .field select { height: 46px; border: 1px solid #cfdbe5; border-radius: 12px; padding: 0 12px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid #ffc40066; border-color: var(--g2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.filter { border: 1px solid var(--line); padding: 7px 12px; border-radius: 22px; font-size: 13px; font-weight: 800; background: #fff; }
.filter:hover { border-color: var(--g2); }
.filter[aria-pressed="true"] { background: #006b4c; border-color: #006b4c; color: #fff; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 12px; min-height: 30px; }
.result-bar button { background: none; border: 0; color: var(--g2); font-weight: 800; text-decoration: underline; }
.empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Categories page ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 30px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: 0 8px 22px #0f172a14; transform: translateY(-2px); }
.cat-card h2 { font-size: 18px; margin: 0 0 4px; }
.cat-card p { margin: 0; font-size: 14px; color: #344966; }
.cat-card .count { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--g2); }

/* ---------- Tool detail page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 24px; padding: 26px 26px 10px; align-items: start; }
.detail-main, .detail-side { border: 1px solid var(--line); border-radius: 17px; padding: 26px; background: #fff; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.detail-head h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.8px; }
.detail-head .tool-cat { font-size: 14px; margin: 4px 0 0; }
.detail-head .tool-cat a { color: var(--g2); }
.lead { font-size: 17px; color: #344966; margin: 0 0 18px; }
.detail-main h2 { font-size: 20px; margin: 24px 0 8px; }
.features { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #dcfbe9; color: #006b3a; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 4px 11px; font-size: 13px; font-weight: 700; color: #344966; text-decoration: none; }
.tag:hover { border-color: var(--g2); color: var(--g2); }
.side-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f4; font-size: 14px; }
.side-row:last-of-type { border: 0; }
.side-row strong { text-align: right; }
.visit { width: 100%; margin-top: 16px; padding: 13px 16px; font-size: 15px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Prose pages ---------- */
.prose { max-width: 820px; padding: 30px 26px 40px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose h3 { font-size: 18px; margin: 20px 0 6px; }
.prose p, .prose li { color: #344966; font-size: 16px; }
.prose .callout { background: var(--mint); border-radius: 12px; padding: 14px 18px; color: var(--ink); }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: 20px; padding: 0; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 25px 60px #0007; }
.modal::backdrop { background: #001b18b3; }
.modal-body { padding: 30px 28px 26px; text-align: center; }
.modal-icon { font-size: 44px; }
.modal h2 { margin: 6px 0 8px; font-size: 24px; }
.modal p { margin: 0 0 20px; color: #344966; }

/* ---------- Footer ---------- */
.site-footer { background: #00382f; color: #fff; padding: 32px 30px 20px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.foot-logo { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; }
.site-footer p { color: #c9eee0; font-size: 14px; margin: 8px 0 0; max-width: 340px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; margin: 4px 0 10px; color: var(--y); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; }
.foot-bottom { border-top: 1px solid #ffffff22; margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #c9eee0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 14px; }
  .categories { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 12px; }
  .category:nth-child(6) { border: 0; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .main-grid { grid-template-columns: 1fr; }
  .cards, .cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: span 2; }
  .detail { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .toolbar, .toolbar.no-pricing { grid-template-columns: 1fr 1fr; }
  .toolbar .field:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 12px; height: 58px; }
  .logo { font-size: 22px; }
  .logo span { font-size: 16px; }
  .header-actions .btn-yellow { padding: 8px 11px; font-size: 12px; }
  .hero-inner { display: block; padding: 28px 18px 42px; min-height: 0; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 14px; }
  .hero-art { display: none; }
  .search { height: 50px; padding-left: 12px; }
  .search button { height: 42px; padding: 0 14px; font-size: 14px; }
  .quick { gap: 6px; }
  .quick a { font-size: 11px; padding: 7px 10px; }
  .categories { margin: -18px 10px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 4px; }
  .category { border: 0 !important; font-size: 11px; }
  .category small { display: none; }
  .cat-icon { width: 36px; height: 36px; font-size: 18px; }
  .content { padding: 20px 12px 0; }
  .head { flex-wrap: wrap; align-items: center; }
  .head h2 { font-size: 21px; }
  .cards, .cards.cols-3 { gap: 9px; }
  .tool-card { padding: 12px; min-height: 0; }
  .tool-logo { width: 40px; height: 40px; font-size: 17px; }
  .tool-card .tool-name { font-size: 15px; margin-top: 10px; }
  .tool-card p.desc { font-size: 12.5px; }
  .tool-bottom { flex-wrap: wrap; }
  .try { font-size: 12px; padding: 6px 9px; }
  .badge { font-size: 10px; padding: 2px 7px; }
  .bottom { grid-template-columns: 1fr; }
  .newsletter { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .stat:nth-child(2) { border: 0; }
  .page-hero { padding: 26px 14px 30px; }
  .detail { padding: 16px 12px 6px; }
  .detail-main, .detail-side { padding: 18px; }
  .prose { padding: 22px 14px 30px; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 26px 18px 18px; }
  .toolbar, .toolbar.no-pricing { grid-template-columns: 1fr; }
  .toolbar .field:first-child { grid-column: auto; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filter { flex: none; }
}
@media (max-width: 380px) {
  .cards, .cards.cols-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.page-hero.slim { padding: 16px 26px 14px; } .page-hero.slim .breadcrumb { margin: 0; }

/* ---------- AI tool cards ---------- */
.badge-free { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.tool-logo.emoji { font-size: 23px; font-weight: 400; }
.tool-logo.emoji.lg { font-size: 38px; }
.tool-logo.emoji.sm { font-size: 15px; }

/* ---------- AI tool page ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, .9fr); gap: 24px; padding: 22px 26px 10px; align-items: start; }
.tool-panel { border: 1px solid var(--line); border-radius: 17px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.tool-panel .detail-head { margin-bottom: 8px; }
.tool-form { display: grid; gap: 14px; margin-top: 18px; }
.tool-form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tool-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 800; color: #344054; }
.tool-form input, .tool-form select, .tool-form textarea { border: 1px solid #cfdbe5; border-radius: 12px; padding: 11px 12px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); width: 100%; }
.tool-form textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { outline: 3px solid #ffc40066; border-color: var(--g2); }
.req { color: #d92d20; }
.counter { font-size: 11.5px; font-weight: 600; color: var(--muted); align-self: flex-end; margin-top: -2px; }
.generate { justify-self: start; padding: 13px 26px; font-size: 16px; }
.generate:disabled { opacity: .75; cursor: progress; }
.privacy-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2.5px solid #0003; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
.spinner.big { width: 40px; height: 40px; border-width: 4px; border-color: #00644833; border-top-color: var(--g2); }
@keyframes spin { to { transform: rotate(360deg); } }
.status { border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600; margin-top: 14px; }
.status.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.status.warn { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }
.status.info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.output-wrap { margin-top: 20px; border: 1px solid #b9e6d4; border-radius: 15px; overflow: hidden; }
.output-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #f0fbf6; padding: 10px 14px; border-bottom: 1px solid #b9e6d4; }
.output-head h2 { font-size: 16px; margin: 0; }
.output-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.output-actions .btn { padding: 6px 12px; font-size: 13px; }
.output { padding: 18px 20px; font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.output h2, .output h3, .output h4 { margin: 18px 0 6px; line-height: 1.25; }
.output h2:first-child, .output h3:first-child { margin-top: 0; }
.output p { margin: 0 0 12px; }
.output ul, .output ol { margin: 0 0 12px; padding-left: 22px; }
.output pre { background: #0f1f1b; color: #e6f4ee; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.output code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.output :not(pre) > code { background: #eef4f1; padding: 1px 5px; border-radius: 5px; }
.output .gt { color: #3f8f1f; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.skeleton { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #eef2f5 25%, #dfe7ec 50%, #eef2f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 10px 0; }
.skeleton.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.img-frame { width: 100%; max-height: 560px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; }
.gen-img { width: 100%; height: auto; border-radius: 12px; }
.side-card { border: 1px solid var(--line); border-radius: 17px; padding: 20px; background: #fff; margin-bottom: 16px; }
.side-card h2 { font-size: 17px; margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: #344966; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f4; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.mini-list li:last-child a { border: 0; }
.mini-list a:hover { color: var(--g2); }
.about-tool { padding: 6px 26px 10px; }
.about-tool .prose { padding: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: #344966; }
.apps-teaser { background: var(--soft); border: 1px solid var(--line); border-radius: 17px; padding: 20px; margin-bottom: 26px; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .tool-layout { padding: 14px 12px 6px; }
  .tool-panel { padding: 16px; }
  .generate { width: 100%; justify-content: center; }
  .output { padding: 14px; font-size: 15px; }
  .about-tool { padding: 6px 12px 10px; }
}

/* ---------- SEO content sections ---------- */
.byline { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.example { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--soft); }
.example p { margin: 0 0 8px; }
.ex-label { font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--g2) !important; margin-top: 6px !important; }
.ex-out { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.ex-out p, .ex-out li { font-size: 15px; }
.ex-out pre { background: #0f1f1b; color: #e6f4ee; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.cat-intro { padding: 0; max-width: 900px; margin-bottom: 18px; }
.why { border: 1px solid var(--line); border-radius: 17px; padding: 22px; }
.why h2 { margin: 0 0 14px; font-size: 22px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-grid h3 { margin: 0 0 6px; font-size: 16px; }
.why-grid p { margin: 0; font-size: 14px; color: #344966; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.guide-grid.big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 24px; }
.guide-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); background: #fff; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s, transform .15s; }
.guide-card:hover { box-shadow: 0 8px 22px #0f172a14; transform: translateY(-2px); }
.guide-card h2, .guide-card h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.guide-card p { font-size: 14px; color: #344966; margin: 0; flex: 1; }
.guide-card span { font-size: 13px; font-weight: 800; color: var(--g2); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; padding-right: 26px; }
.guide-layout aside { padding-top: 30px; }
@media (max-width: 1280px) { .main-nav { gap: 16px; font-size: 13.5px; } .header-actions .btn { padding: 9px 13px; font-size: 13px; } }
@media (max-width: 980px) { .why-grid, .guide-grid { grid-template-columns: 1fr 1fr; } .guide-layout { grid-template-columns: 1fr; padding: 0 0 20px; } .guide-layout aside { padding: 0 14px; } }
@media (max-width: 600px) { .why-grid, .guide-grid { grid-template-columns: 1fr; } .why { padding: 16px; } }

.main-nav a { white-space: nowrap; }
@media (max-width: 1150px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-nav { display: none; border-top: 1px solid #edf1f4; padding: 10px 20px 16px; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 10px 0; font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0f3f6; }
  .mobile-nav .mobile-actions { display: flex; gap: 8px; margin-top: 12px; }
}
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.proscons > div { border-radius: 14px; padding: 4px 18px 10px; }
.proscons h2 { font-size: 17px !important; margin: 14px 0 8px !important; }
.proscons ul { margin: 0; padding-left: 20px; }
.proscons li { margin-bottom: 5px; }
.pros { background: #ecfdf3; border: 1px solid #abefc6; }
.cons { background: #fff6ed; border: 1px solid #fddcab; }
.detail-main .faq { margin-top: 6px; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .logo { font-size: 19px; gap: 6px; letter-spacing: -.3px; }
  .logo span { display: none; }
  .logo svg { width: 24px; height: 24px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-yellow { padding: 7px 10px; font-size: 11.5px; }
  .menu-toggle { width: 38px; height: 36px; }
}
@media (max-width: 370px) { .header-actions .btn-yellow { display: none; } }

/* ================= Hero v2: robot + world map ================= */
.header-inner { justify-content: flex-start; }
.main-nav { margin-left: 34px; }
.header-actions { margin-left: auto; }
.page-home .site-header { position: relative; }
.hero { position: relative; isolation: auto;
  background:
    radial-gradient(ellipse 38% 60% at 72% 62%, rgba(16, 190, 120, .45), transparent 70%),
    linear-gradient(90deg, #00352c 0%, #00382e 34%, rgba(0, 56, 46, .72) 52%, rgba(0, 56, 46, .25) 78%, rgba(0, 56, 46, .45) 100%),
    url(../img/hero-map.webp) 70% 55% / cover no-repeat,
    #003d32; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, rgba(0, 40, 33, .55)); pointer-events: none; }
.hero-inner { position: relative; min-height: 400px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 34px 5% 56px; }
.hero-inner > div:first-child { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { font-size: clamp(38px, 3.9vw, 58px); text-shadow: 0 2px 18px rgba(0, 20, 16, .35); }
.hero-visual { position: absolute; top: 0; bottom: 0; left: calc(50% + 10px); right: 0; pointer-events: none; z-index: 1; }
.hero-robot { position: absolute; bottom: 0; left: 0; height: calc(100% + 52px); width: auto; max-width: none;
  filter: drop-shadow(0 18px 30px rgba(0, 15, 12, .55)) drop-shadow(0 0 40px rgba(40, 140, 255, .18));
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  z-index: 55; }
.float-tile { position: absolute; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(40, 230, 170, .55), rgba(0, 120, 90, .35)); border: 1px solid rgba(160, 255, 220, .45);
  box-shadow: 0 10px 26px rgba(0, 20, 15, .45), inset 0 1px 0 rgba(255, 255, 255, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite; z-index: 56; }
.float-tile svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-tile svg .fill, .float-tile svg path.fill { fill: #fff; stroke: none; }
.float-tile.t1 { left: 330px; top: 34px; transform: rotate(-8deg); animation-delay: -1s; }
.float-tile.t2 { left: 410px; top: 132px; width: 58px; height: 58px; animation-delay: -2.5s; }
.float-tile.t3 { left: 352px; top: 238px; animation-delay: -4s; }
.float-tile.t4 { left: 470px; top: 262px; width: 70px; height: 70px; transform: rotate(6deg); animation-delay: -3s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-visual .slogan { position: absolute; right: 2%; top: 26px; left: auto; font-size: 30px; z-index: 56; text-shadow: 0 2px 12px rgba(0, 20, 16, .4); }
.slogan .swoosh { display: block; width: 110px; height: 16px; margin: 2px 0 0 18px; fill: none; stroke: var(--y); stroke-width: 4; stroke-linecap: round; }
.categories { z-index: 60; }
/* Categories: richer icon tiles */
.cat-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }

@media (max-width: 1365px) {
  .hero-robot { height: calc(100% - 4px); }
  .float-tile { width: 56px; height: 56px; } .float-tile svg { width: 27px; height: 27px; }
  .float-tile.t1 { left: 285px; top: 30px; } .float-tile.t2 { left: 355px; top: 118px; }
  .float-tile.t3 { left: 300px; top: 215px; } .float-tile.t4 { left: 395px; top: 238px; width: 60px; height: 60px; }
  .hero-visual .slogan { font-size: 25px; }
}
@media (max-width: 1100px) {
  .hero-visual { left: 52%; }
  .float-tile.t3, .float-tile.t4 { display: none; }
  .hero-visual .slogan { display: none; }
}
@media (max-width: 760px) {
  .hero-visual { display: none; }
  .hero { background:
    linear-gradient(180deg, rgba(0, 56, 46, .82), rgba(0, 56, 46, .9)),
    url(../img/hero-map.webp) 60% 40% / cover no-repeat, #003d32; }
  .hero-inner { display: block; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .float-tile { animation: none; } }
/* hero v2 fixes: let the robot rise above the header; keep tablets tidy */
.hero-visual { z-index: auto; }
.hero-robot { height: calc(100% + 40px); }
@media (min-width: 1600px) { .hero-visual { left: calc(50% - 30px); } .hero-robot { height: calc(100% + 48px); } }
@media (max-width: 1439px) {
  .hero-robot { height: calc(100% - 4px); }
}
@media (max-width: 1100px) {
  .hero { overflow: hidden; }
  .hero-robot { height: 370px; }
}
/* hero v2 polish: shadow stays below the head; glow lives in the hero background */
.hero-robot { filter: drop-shadow(0 34px 22px rgba(0, 15, 12, .5)); }
.hero-visual::before { content: ""; position: absolute; left: 4%; bottom: 0; width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 170, 255, .28), rgba(30, 200, 140, .12) 55%, transparent); filter: blur(8px); }
@media (min-width: 1440px) { .main-nav { gap: 21px; margin-left: 30px; } .hero-robot { height: calc(100% + 30px); } .hero-visual { left: calc(50% + 4px); } }
@media (min-width: 1600px) { .hero-visual { left: calc(50% - 22px); } .hero-robot { height: calc(100% + 40px); } }
.hero-inner > div:first-child { max-width: 740px; }
.categories { max-width: 1430px; margin-left: auto; margin-right: auto; }
@media (max-width: 1480px) { .categories { margin-left: 25px; margin-right: 25px; } }
@media (max-width: 600px) { .categories { margin-left: 10px; margin-right: 10px; } }
@media (min-width: 1440px) { .hero-robot { height: 466px; } }
@media (min-width: 1600px) { .hero-robot { height: 478px; } }
.hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 760px) { .hero-inner { display: block; } }
@media (min-width: 1440px) { .hero-robot { height: calc(100% + 36px); } }
@media (min-width: 1600px) { .hero-robot { height: calc(100% + 44px); } }
@media (min-width: 1600px) { .hero-visual { left: calc(50% + 40px); } .hero .search, .hero .quick { max-width: 690px; } }
@media (max-width: 900px) { .float-tile.t2 { display: none; } .float-tile.t1 { left: 250px; top: 20px; } }
@media (min-width: 1600px) { .hero-visual { left: calc(50% + 26px); } .hero .search, .hero .quick { max-width: 630px; } }
/* robot v3 placement */
@media (min-width: 1101px) and (max-width: 1599px) { .hero-visual { left: calc(50% + 62px); } .hero .search, .hero .quick { max-width: 620px; } }
@media (min-width: 1101px) and (max-width: 1279px) { .hero-visual { left: calc(50% + 40px); } .hero .search, .hero .quick { max-width: 540px; } }
.float-tile.t1 { left: 310px; }
@media (max-width: 1365px) { .float-tile.t1 { left: 270px; } .float-tile.t3 { left: 285px; } }

/* ================= Premium icons + deeper palette ================= */
:root { --g: #00382d; --g2: #00694a; --y: #ffc727; --y2: #ffb300; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.itile { --g1: #22c55e; --g2: #047857; width: 46px; height: 46px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--g1) 0%, var(--g2) 100%);
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--g2) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12);
  position: relative; overflow: hidden; }
.itile::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); border-radius: inherit; pointer-events: none; }
.itile .ico { width: 24px; height: 24px; stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); position: relative; z-index: 1; }
.itile.sm { width: 30px; height: 30px; border-radius: 9px; } .itile.sm .ico { width: 16px; height: 16px; }
.itile.lg { width: 76px; height: 76px; border-radius: 20px; } .itile.lg .ico { width: 38px; height: 38px; }
.itile.cat { width: 46px; height: 46px; border-radius: 14px; } .itile.cat .ico { width: 23px; height: 23px; }
.category:hover .itile { transform: translateY(-2px); } .category .itile { transition: transform .15s; }
.tool-logo.mono { background: linear-gradient(145deg, var(--g1), var(--g2)) !important; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--g2) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.45); }
.head h2, .pop-head h2 { display: flex; align-items: center; gap: 10px; }
.head-ico { width: 34px !important; height: 34px !important; border-radius: 10px !important; } .head-ico .ico { width: 19px !important; height: 19px !important; }
.pop-head .pop-ico { color: var(--y); width: 22px; height: 22px; }
.quick a { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 105, 74, .75); border: 1px solid rgba(120, 240, 190, .25); }
.quick a .q { color: var(--y); width: 15px; height: 15px; }
.quick a:hover { background: rgba(0, 125, 88, .9); }
.chip-ico { width: 15px; height: 15px; vertical-align: -3px; }
.filter[aria-pressed="true"] .chip-ico { color: var(--y); }
.why-grid h3 { display: flex; align-items: center; gap: 10px; }
.stat .symbol { display: grid; place-items: center; margin-bottom: 4px; }
.stat .symbol .itile { width: 44px; height: 44px; }
.promo { position: relative; padding-left: 92px; }
.promo-ico { position: absolute; left: 20px; top: 20px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #ffd54a, #ff8a00); box-shadow: 0 8px 18px -6px rgba(255, 140, 0, .7), inset 0 1px 0 rgba(255,255,255,.5); }
.promo-ico .ico { width: 30px; height: 30px; }
.newsletter h2 { display: flex; align-items: center; gap: 8px; } .newsletter .nl-ico { color: var(--y); }
.coming-pill { display: inline-flex; align-items: center; gap: 6px; } .coming-pill .q { color: var(--y); }
.modal-icon .itile { margin: 0 auto 4px; }

/* deeper, richer greens (matching the reference) */
.hero { background:
    radial-gradient(ellipse 34% 62% at 70% 62%, rgba(18, 214, 128, .55), transparent 70%),
    radial-gradient(ellipse 60% 90% at 100% 100%, rgba(0, 150, 95, .45), transparent 70%),
    linear-gradient(90deg, #002a22 0%, #003128 32%, rgba(0, 52, 42, .62) 52%, rgba(0, 52, 42, .12) 80%, rgba(0, 46, 37, .35) 100%),
    url(../img/hero-map.webp) 70% 55% / cover no-repeat,
    #00382d; }
.page-hero { background: radial-gradient(ellipse 50% 120% at 85% 100%, rgba(18, 200, 120, .35), transparent 70%), linear-gradient(105deg, #002a22, #00332a 55%, #004a37); }
.promo, .newsletter { background: radial-gradient(ellipse 70% 120% at 100% 100%, rgba(30, 210, 130, .35), transparent 65%), linear-gradient(115deg, #00332a, #006b49); }
.pop-head { background: linear-gradient(95deg, #00332a, #007a52); }
.stats { background: linear-gradient(135deg, #d4f7ec, #bff0e3); border: 1px solid #a8e6d4; }
.stat { border-color: #8fd6c2; }
.site-footer { background: linear-gradient(180deg, #00302a, #002520); }
.btn-yellow, .search button, .pop-more, .email-row button { background: linear-gradient(180deg, #ffd23f, #ffb800); box-shadow: 0 4px 12px -4px rgba(255, 170, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-yellow:hover, .search button:hover { background: linear-gradient(180deg, #ffdb5c, #ffc21a); }
.badge-featured { background: linear-gradient(135deg, #22c55e, #059669); box-shadow: 0 3px 8px -3px rgba(5, 150, 105, .7); }
.try { border-color: #10b981; color: #047857; }
.tool-card { border-color: #d6e2ea; }
.tool-card:hover { border-color: #9fd9c3; box-shadow: 0 12px 26px -10px rgba(0, 80, 55, .28); }
.categories { box-shadow: 0 14px 34px -12px rgba(0, 40, 30, .28); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #00805a; }
.generate .ico { width: 18px; height: 18px; }
.foot-logo { display: inline-flex; align-items: center; gap: 8px; }
