/* AMG Tools: a quieter, more refined layer shared by every page. */
:root {
  --premium-ink: #080a0e;
  --premium-panel: #11151c;
  --premium-panel-raised: #171c24;
  --premium-line: rgba(231, 223, 207, .13);
  --premium-gold: #f4bd62;
  --premium-copy: #b9bdc4;
  --premium-shadow: 0 26px 70px -42px rgba(0, 0, 0, .82);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a, button, .card, .landing-tool, .category-card { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--premium-gold) !important;
  outline-offset: 3px;
}

/* Shared tool, article, and policy pages. */
html:has(.site-header) {
  --bg-base: #090c10;
  --bg-elevated: #131820;
  --text-primary: #f7f5f0;
  --text-secondary: #bec2c8;
  --text-muted: #a7adb5;
  --border: #323943;
  --border-hover: #bd9354;
  --accent-1: #f4bd62;
  --accent-2: #f4bd62;
  --gradient-brand: linear-gradient(135deg, #ffd486, #ecad4d);
  --font-heading: 'Manrope', sans-serif;
}
html[data-theme="light"]:has(.site-header) {
  --bg-base: #f5f2ec;
  --bg-elevated: #fffefa;
  --text-primary: #24282d;
  --text-secondary: #535b63;
  --text-muted: #606872;
  --border: #d8d4ca;
  --border-hover: #9b692e;
  --accent-1: #8e570f;
  --accent-2: #8e570f;
  --gradient-brand: linear-gradient(135deg, #e7ab4e, #f3c678);
}
body:has(.site-header) { background: var(--bg-base); }
.site-header, .site-header.is-scrolled {
  background: rgba(9, 12, 16, .88);
  border-bottom-color: var(--premium-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-scrolled { background: rgba(250, 248, 243, .9); border-bottom-color: var(--border); }
.main-nav a { border-radius: 9px; font-weight: 600; }
.main-nav a:hover { background: rgba(244, 189, 98, .09); }
.brand { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: .035em; }
.theme-toggle, .hamburger { border-radius: 12px; }
.nav-drawer { background: var(--bg-base); }
.breadcrumb { padding-top: 28px; }
.tool-header { padding-top: 23px; padding-bottom: 30px; }
.tool-header h1,
.guide-article h1,
main .section-head h2 { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.055em; line-height: 1.13; }
.tool-header h1 { font-size: clamp(2rem, 4.3vw, 3.25rem); max-width: 960px; }
.tool-header .tool-desc { font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.72; max-width: 760px; }
.eyebrow { letter-spacing: .13em; }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--premium-shadow);
}
.tool-card-lg { padding: clamp(20px, 3vw, 40px); }
.btn { border-radius: 11px; font-weight: 750; }
.btn-primary { background: var(--gradient-brand); color: #16120c; border-color: transparent; box-shadow: 0 10px 28px -17px rgba(244, 189, 98, .8); }
.btn-primary:hover:not(:disabled) { background: #ffd286; box-shadow: 0 17px 35px -20px rgba(244, 189, 98, .8); }
.btn-secondary, .pill, .theme-toggle, .hamburger { background: var(--bg-elevated); }
.privacy-badge { border-radius: 999px; background: rgba(244, 189, 98, .08); }
.site-footer { border-top-color: var(--border); background: var(--bg-base); }
.site-footer .footer-grid { gap: 32px; }
.site-footer .footer-col h4 { color: var(--text-primary); }
.guide-article, .prose { line-height: 1.78; }
.guide-article h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
html[data-theme="light"] .card,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .pill { box-shadow: 0 20px 50px -45px rgba(50, 42, 30, .5); }

/* Homepage: generous hierarchy and a restrained ambient glow. */
.landing-nav {
  background: rgba(9, 12, 16, .88) !important;
  border-bottom: 1px solid var(--premium-line) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 14px clamp(20px, 4vw, 64px) !important;
}
.landing-nav > div:first-child span { font-family: 'Manrope', sans-serif !important; font-size: 15px !important; font-weight: 800; letter-spacing: .075em !important; }
.landing-categories { scrollbar-width: none; }
.landing-categories::-webkit-scrollbar { display: none; }
.landing-categories a { color: #bfc2c8; font-weight: 650; transition: color .2s ease; }
.landing-categories a:hover,
.landing-categories a:focus-visible { color: #ffd286; }
.task-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 8vw, 122px) clamp(22px, 5vw, 72px) 60px !important;
  background: radial-gradient(ellipse 68% 78% at 84% 10%, rgba(198, 137, 57, .16), transparent 72%),
              radial-gradient(ellipse 55% 75% at 0% 65%, rgba(94, 109, 111, .12), transparent 75%), #090c10 !important;
}
.task-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}
.hero-inner { max-width: 1180px; }
.task-hero .eyebrow { color: var(--premium-gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.task-hero h1 {
  max-width: 1050px;
  margin: 22px 0 22px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3.25rem, 6.1vw, 6.25rem) !important;
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1.07;
}
.task-hero h1 span { color: #f6c473; }
.task-hero .hero-inner > p:not(.eyebrow) { max-width: 680px; color: #c5c7cc; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.7; }
.task-hero label { margin-top: 42px; color: #f7f5f0; font-size: 14px; }
.task-search {
  max-width: 790px;
  min-height: 68px;
  background: rgba(22, 27, 35, .92);
  border: 1px solid rgba(230, 209, 174, .32);
  border-radius: 16px;
  box-shadow: 0 24px 55px -35px rgba(0, 0, 0, .85), inset 0 1px rgba(255, 255, 255, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.task-search:focus-within { border-color: #f4bd62; box-shadow: 0 0 0 4px rgba(244, 189, 98, .12), 0 24px 55px -35px #000; }
#landing-search { font: 500 16px 'Manrope', sans-serif; }
#landing-search::placeholder { color: #aeb3bb; }
.task-search a { color: #f6c473; font-weight: 750; }
.quick-tasks { gap: 10px; margin-top: 22px; }
.quick-tasks a,
.library-controls button,
.browse-heading button {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(230, 209, 174, .17);
  border-radius: 999px;
  color: #e5e5e3;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.quick-tasks a:hover,
.library-controls button:hover,
.browse-heading button:hover { background: rgba(244, 189, 98, .1); border-color: rgba(244, 189, 98, .55); transform: translateY(-2px); text-decoration: none; }
.workflow-jump { color: #f6c473; font-weight: 700; }
.home-privacy-note { max-width: 790px; margin-top: 30px; border-radius: 16px; }
.tool-browser { max-width: 1344px; padding: 58px clamp(22px, 5vw, 72px) 96px; }
.browse-heading h2,
.task-paths h2 { font: 800 clamp(1.85rem, 3vw, 2.65rem)/1.18 'Manrope', sans-serif; letter-spacing: -.055em; }
#result-count { color: #c2c4ca; }
#landing-results { gap: 18px; }
.landing-tool,
.task-path-grid article,
.category-card {
  background: linear-gradient(150deg, #171c24, #11151c) !important;
  border: 1px solid rgba(228, 217, 198, .15) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px -38px #000;
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
.landing-tool { min-height: 238px; padding: 25px; }
.landing-tool:hover,
.landing-tool:focus-visible,
.category-card:hover,
.category-card:focus-within,
.task-path-grid article:hover { transform: translateY(-4px); border-color: rgba(244, 189, 98, .53) !important; box-shadow: 0 22px 54px -34px #000; }
.landing-tool h3 { font: 750 17px/1.35 'Manrope', sans-serif; letter-spacing: -.025em; margin: 20px 0 9px; }
.landing-tool p { color: #c2c5ca; line-height: 1.6; }
.tool-icon { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(244, 189, 98, .2); border-radius: 12px; background: rgba(244, 189, 98, .07); }
.tool-icon svg { width: 23px; height: 23px; color: #f4bd62; }
.tool-category { color: #f1be6a; font: 700 11px/1.4 'Manrope', sans-serif; letter-spacing: .035em; }
.save-tool { background: #20252d; border-color: rgba(244, 189, 98, .2); border-radius: 12px; }
.task-paths { max-width: 1344px; }
.task-path-grid article { padding: 30px; }
.task-path-grid p { color: #c2c5ca; }
.category-card { padding: 30px !important; }

/* A single home for the other Amit Mehta Groups sites. */
.group-network {
  scroll-margin-top: 150px;
  padding: 50px clamp(22px, 5vw, 72px) 38px;
  background: linear-gradient(180deg, #0b0e13, #090c10);
  border-block: 1px solid rgba(228, 217, 198, .12);
}
.group-network-inner { max-width: 1200px; margin: 0 auto; }
.group-network .eyebrow { color: #f4bd62; font: 700 11px/1.4 'Fragment Mono', monospace; letter-spacing: .16em; }
.group-network h2 { max-width: 760px; margin: 12px 0 10px; color: #f7f5f0; font: 800 clamp(2rem, 3.2vw, 3rem)/1.14 'Manrope', sans-serif; letter-spacing: -.055em; }
.group-network-intro { max-width: 760px; margin: 0 0 28px; color: #bdc2c9; font-size: 16px; line-height: 1.7; }
.group-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.group-network-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px;
  color: #f7f5f0;
  text-decoration: none;
  background: linear-gradient(155deg, #1a2028, #11161d);
  border: 1px solid rgba(228, 217, 198, .18);
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.group-network-card:hover { color: #f7f5f0; text-decoration: none; transform: translateY(-4px); border-color: rgba(244, 189, 98, .58); box-shadow: 0 20px 50px -35px #000; }
.group-network-card .group-network-type { margin-bottom: 20px; color: #f4bd62; font: 700 11px/1.4 'Fragment Mono', monospace; letter-spacing: .08em; }
.group-network-card strong { display: flex; justify-content: space-between; gap: 12px; font: 750 22px/1.2 'Manrope', sans-serif; letter-spacing: -.035em; }
.group-network-card strong span { color: #f4bd62; }
.group-network-card > span:nth-of-type(2) { margin: 12px 0 18px; color: #bbc0c7; font-size: 14px; line-height: 1.65; }
.group-network-card em { margin-top: auto; color: #f4bd62; font-size: 13px; font-style: normal; font-weight: 750; }
.group-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0; padding: 14px 0; border-block: 1px solid var(--border, rgba(255,255,255,.13)); }
.group-footer-links span { color: var(--text-secondary, #b9bdc4); font-size: 13px; font-weight: 750; }
.group-footer-links a { color: var(--accent-1, #f4bd62); font-size: 13px; font-weight: 700; }
.group-footer-links a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .landing-nav { padding: 12px 18px !important; gap: 8px !important; }
  .landing-nav > div:first-child img { width: 34px; height: 34px; }
  .landing-categories { width: 100%; }
  .task-hero { padding: 58px 22px 38px !important; }
  .task-hero h1 { font-size: clamp(2.65rem, 10.4vw, 4.1rem) !important; line-height: 1.08; }
  .task-hero .hero-inner > p:not(.eyebrow) { font-size: 16px !important; }
  .task-hero label { margin-top: 30px; }
  .task-search { min-height: 64px; padding: 12px; }
  #landing-search { font-size: 16px; }
  .quick-tasks a { min-height: 42px; display: inline-flex; align-items: center; }
  .tool-browser { padding: 40px 22px 75px !important; }
  #landing-results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .landing-tool { min-height: 210px; }
  .breadcrumb { padding-top: 18px; }
  .tool-header { padding-top: 15px; }
  .tool-header h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .tool-card-lg { padding: 20px 16px; }
  .group-network { padding: 38px 22px; }
  .group-network-grid { grid-template-columns: 1fr; }
  .group-network-card { min-height: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-tool, .category-card, .task-path-grid article, .quick-tasks a,
  .library-controls button, .browse-heading button { transition: none; }
  .group-network-card { transition: none; }
}
